:root {
  color-scheme: light;
  --ink: #081522;
  --ink-2: #10263b;
  --ink-3: #1f3b53;
  --paper: #f5f1e8;
  --paper-2: #e8dfcf;
  --white: #ffffff;
  --muted: #5d6b78;
  --line: rgba(8, 21, 34, 0.16);
  --light-line: rgba(255, 255, 255, 0.22);
  --red: #a84435;
  --teal: #2b746e;
  --brass: #b38a45;
  --blue: #315d88;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  color: var(--white);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  outline: 1px dashed rgba(255, 255, 255, 0.55);
  outline-offset: -7px;
  color: #f2d58f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0;
}

.nav {
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 720;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.nav .nav-access {
  padding: 9px 15px;
  border: 1px solid rgba(242, 213, 143, 0.6);
  color: #f2d58f;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(242, 213, 143, 0.68);
  border-radius: 0;
  background: rgba(8, 21, 34, 0.92);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 2px;
  background: #f2d58f;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  overflow: hidden;
  align-items: end;
  background: var(--ink);
  color: var(--white);
}

.hero-image,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04) brightness(0.82);
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 21, 34, 0.98) 0%, rgba(12, 34, 52, 0.92) 38%, rgba(12, 34, 52, 0.32) 78%),
    linear-gradient(0deg, rgba(8, 21, 34, 0.95) 0%, transparent 46%);
}

.hero-grid {
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 168px 0 154px;
}

.eyebrow,
.section-label,
.card-number {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(47px, 7vw, 90px);
  font-weight: 700;
}

h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.6vw, 66px);
  font-weight: 700;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 820;
}

.button.primary {
  background: #f2d58f;
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.hero-index {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-index span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 21, 34, 0.56);
}

.hero-index strong {
  display: block;
  color: #f2d58f;
  font-size: 11px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.full-section {
  background: var(--ink);
  color: var(--white);
}

.inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.prose p,
.section-heading p,
.decision-list p,
.view-grid p,
.priority-card p,
.society-card p,
.supporter-card p {
  color: var(--muted);
}

.lead-prose {
  font-size: 20px;
}

.scale-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1.6fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 52px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.scale-rule {
  display: block;
  height: 1px;
  background: var(--line);
}

.scale-rule i {
  display: block;
  width: 36%;
  height: 3px;
  transform: translateY(-1px);
  background: var(--red);
}

.scale-rule.long i {
  width: 54%;
  background: var(--teal);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.light-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.priority-grid,
.view-grid,
.supporter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.priority-card,
.view-grid article,
.supporter-card,
.society-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.priority-card:before,
.view-grid article:before,
.society-card:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(8, 21, 34, 0.18);
  pointer-events: none;
}

.priority-card span,
.view-grid span,
.supporter-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.priority-card h3,
.priority-card p,
.view-grid h3,
.view-grid p,
.society-card h3,
.society-card p {
  position: relative;
}

.directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.result-count {
  min-width: 154px;
  padding: 18px;
  border: 1px solid var(--light-line);
  text-align: center;
}

.result-count strong,
.result-count span {
  display: block;
}

.result-count strong {
  color: #f2d58f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1;
}

.result-count span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(170px, 230px);
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
}

.segmented {
  display: flex;
  min-height: 50px;
  border: 1px solid var(--light-line);
}

.filter-button {
  min-width: 78px;
  border: 0;
  border-right: 1px solid var(--light-line);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 850;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button.active {
  background: #f2d58f;
  color: var(--ink);
}

.search-label,
.select-label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-label input,
.select-label select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--light-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px 13px;
  outline: 0;
}

.select-label select option {
  color: var(--ink);
}

.search-label input:focus,
.select-label select:focus {
  border-color: #f2d58f;
}

.society-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.society-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.06);
}

.society-card h3 a {
  text-decoration-color: rgba(242, 213, 143, 0.44);
  text-underline-offset: 4px;
}

.society-card p {
  color: rgba(255, 255, 255, 0.72);
}

.society-meta,
.society-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.society-meta {
  margin-bottom: 24px;
}

.society-meta span {
  padding: 5px 8px;
  background: rgba(242, 213, 143, 0.12);
  color: #f2d58f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.society-foot {
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.society-foot a {
  color: #f2d58f;
  font-weight: 850;
}

.empty-state {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.decision-list {
  display: grid;
  gap: 18px;
}

.decision-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.decision-list article span {
  grid-row: span 2;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.decision-list h3,
.decision-list p {
  margin-bottom: 0;
}

.resources-section .resource-list {
  display: grid;
  gap: 1px;
  background: var(--light-line);
}

.resource-list a {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.78fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--ink);
  text-decoration: none;
}

.resource-list span {
  color: #f2d58f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-list strong {
  font-size: 21px;
  line-height: 1.18;
}

.resource-list em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.source-note {
  padding-top: clamp(62px, 8vw, 96px);
  padding-bottom: clamp(42px, 6vw, 76px);
}

.supporters {
  padding-top: clamp(48px, 7vw, 84px);
}

.supporter-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.supporter-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 22px;
  min-height: 0;
  align-items: center;
}

.supporter-card h3 {
  margin-bottom: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.supporter-card p {
  grid-column: 2;
  margin-bottom: 0;
}

.supporter-card h3 a,
.sponsor-strip a {
  text-decoration-color: rgba(168, 68, 53, 0.4);
  text-underline-offset: 4px;
}

.primary-supporter {
  background: var(--ink);
  color: var(--white);
}

.primary-supporter p {
  color: rgba(255, 255, 255, 0.72);
}

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.sponsor-strip span {
  margin-right: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sponsor-strip a {
  padding: 8px 10px;
  background: var(--white);
  font-size: 15px;
  font-weight: 780;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .priority-grid,
  .view-grid,
  .society-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .directory-head,
  .controls {
    grid-template-columns: 1fr;
  }

  .result-count {
    justify-self: start;
  }

  .resource-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: fixed;
    padding: 12px 16px;
    background: rgba(8, 21, 34, 0.94);
    backdrop-filter: blur(12px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(242, 213, 143, 0.28);
    background: rgba(8, 21, 34, 0.98);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav .nav-access {
    border: 0;
    border-bottom: 0;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding: 140px 0 150px;
  }

  .hero-index {
    right: 20px;
    left: 20px;
    overflow-x: auto;
  }

  .scale-line {
    grid-template-columns: 1fr;
  }

  .scale-rule {
    height: 3px;
  }

  .priority-grid,
  .view-grid,
  .society-grid,
  .supporter-grid {
    grid-template-columns: 1fr;
  }

  .supporter-card {
    grid-template-columns: 1fr;
  }

  .supporter-card p {
    grid-column: auto;
  }

  .controls {
    gap: 18px;
  }

  .segmented {
    overflow-x: auto;
  }

  .filter-button {
    flex: 1 0 78px;
  }

  .decision-list article {
    grid-template-columns: 1fr;
  }

  .decision-list article span {
    grid-row: auto;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand-mark {
    width: 45px;
    height: 40px;
    font-size: 18px;
  }

  .brand-name {
    max-width: 128px;
    line-height: 1.1;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  .priority-card,
  .view-grid article,
  .supporter-card,
  .society-card {
    padding: 22px;
  }
}
