:root {
  --ink: #16211d;
  --muted: #59635e;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --forest: #173d32;
  --forest-2: #205747;
  --sage: #cfdbcb;
  --sage-light: #e9eee5;
  --gold: #c39443;
  --gold-light: #f4ead7;
  --line: #d8d8cf;
  --danger: #8d4a3b;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-150%);
}

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

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 15%, rgba(195, 148, 67, 0.17), transparent 28%),
    linear-gradient(135deg, #102d25 0%, #173d32 55%, #0d2922 100%);
}

.hero::after {
  position: absolute;
  right: -110px;
  bottom: -230px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.02);
  content: "";
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest);
  background: var(--gold-light);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.nav-links a {
  color: #eef3ef;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 72px;
  align-items: end;
  min-height: 690px;
  padding-block: 100px 94px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--forest-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow,
.eyebrow.light {
  color: #d9b56f;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.99;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.lede {
  max-width: 700px;
  margin-bottom: 34px;
  color: #e2e9e5;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.primary:hover {
  background: #ffe7ba;
}

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

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #cbd8d2;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #82c99e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(130, 201, 158, 0.13);
}

.question-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.question-card .card-label {
  margin-bottom: 14px;
  color: #d9b56f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-card h2 {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.18;
}

.question-card p:last-child {
  margin-bottom: 0;
  color: #dce6e1;
}

.section {
  padding-block: 110px;
}

.section.soft {
  background: var(--sage-light);
}

.section.dark {
  color: #f5f5ef;
  background: #122720;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 64px;
  align-items: end;
  max-width: none;
}

.split-heading h2 {
  margin-bottom: 0;
}

.section-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-intro {
  color: #c7d3cd;
}

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

.act {
  min-height: 390px;
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--forest-2);
  border-radius: 8px;
}

.act-number {
  margin-bottom: 42px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.act h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.act .proof {
  margin: 28px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.act .proof span {
  color: var(--forest-2);
  font-weight: 800;
}

.score-list {
  display: grid;
  gap: 16px;
}

.score-card {
  padding: 28px 30px 24px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid #cfd8ca;
  border-radius: 8px;
}

.score-card.selected {
  background: var(--white);
  border-left: 5px solid var(--forest-2);
}

.score-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.tag {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag.neutral {
  color: #6a716d;
}

.tag.gold {
  color: #8c672b;
}

.score-card h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  margin: 0;
  color: var(--forest);
}

.score strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.score span {
  color: var(--muted);
  font-size: 13px;
}

.bar {
  overflow: hidden;
  height: 5px;
  margin: 18px 0;
  background: #dae1d7;
  border-radius: 4px;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest-2), #72a081);
  border-radius: inherit;
}

.score-29 { width: 96.67%; }
.score-28 { width: 93.33%; }
.score-27 { width: 90%; }
.score-26 { width: 86.67%; }
.score-24 { width: 80%; }

.score-card > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.outline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.outline-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.panel-head {
  padding: 34px;
  border-bottom: 1px solid var(--line);
}

.public-panel .panel-head {
  background: var(--sage-light);
}

.private-panel .panel-head {
  background: var(--gold-light);
}

.panel-head h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.panel-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.chapter-list {
  margin: 0;
  padding: 10px 28px 24px;
  list-style: none;
}

.chapter-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #e4e3dc;
}

.chapter-list li:last-child {
  border-bottom: 0;
}

.chapter-list li > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.chapter-list strong,
.chapter-list small {
  display: block;
}

.chapter-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chapter-list.compact li {
  padding-block: 14px;
}

.evidence-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.evidence-row {
  display: grid;
  grid-template-columns: 48px minmax(170px, 1.2fr) 80px minmax(120px, 0.8fr) minmax(220px, 1.35fr);
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.evidence-row:last-child {
  border-bottom: 0;
}

.evidence-row h3,
.evidence-row p {
  margin-bottom: 0;
}

.evidence-row h3 {
  color: var(--white);
  font-size: 1rem;
}

.evidence-row p {
  color: #bfcac5;
  font-size: 14px;
}

.chapter-id {
  color: #d9b56f !important;
  font-family: var(--serif);
  font-size: 1.45rem !important;
}

.confidence {
  justify-self: start;
  padding: 5px 9px;
  color: #eaf2ed !important;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-weight: 800;
}

.confidence.c3 {
  color: #f2d7a4 !important;
}

.mini-label {
  margin-bottom: 4px !important;
  color: #d9b56f !important;
  font-size: 10px !important;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-note {
  max-width: 900px;
  margin-top: 32px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
}

.source-note p:last-child {
  margin-bottom: 0;
  color: #d0dad5;
  font-size: 14px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.boundary-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.boundary-card.safe {
  border-top: 5px solid var(--forest-2);
}

.boundary-card.private {
  border-top: 5px solid var(--gold);
}

.boundary-card h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
}

.boundary-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.boundary-card li {
  margin-bottom: 10px;
  color: var(--muted);
}

.gap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gap-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid #cbd5c7;
}

.rank {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--forest-2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.gap-list h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.gap-list p {
  margin-bottom: 8px;
  color: var(--muted);
}

.gap-list .stop {
  margin-bottom: 0;
  color: var(--forest);
  font-size: 14px;
}

.dna-callout {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin-inline: auto;
  padding: 54px;
  background: var(--gold-light);
  border: 1px solid #dfc99f;
  border-radius: 10px;
}

.dna-callout::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 50px double rgba(140, 103, 43, 0.08);
  border-radius: 50%;
  content: "";
}

.dna-callout h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.dna-callout p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: #514839;
}

.dna-callout p:last-child {
  margin-bottom: 0;
}

.section.decision {
  color: var(--white);
  background: var(--forest-2);
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 80px;
  align-items: center;
}

.decision h2 {
  max-width: 660px;
}

.decision-grid > div:first-child > p:last-child {
  max-width: 650px;
  color: #d6e1dc;
  font-size: 1.08rem;
}

.decision-card {
  padding: 36px;
  color: var(--ink);
  background: var(--white);
  border-radius: 9px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);
}

.decision-card h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.decision-card ol {
  padding-left: 22px;
}

.decision-card li {
  margin-bottom: 10px;
}

.decision-note {
  margin: 24px 0 0;
  padding-top: 18px;
  color: var(--danger);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.footer {
  padding-block: 42px;
  color: #bac8c1;
  background: #0c1b16;
}

.footer-grid {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
}

.footer p {
  margin-bottom: 0;
  font-size: 13px;
}

.footer .footer-title {
  margin-bottom: 5px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.45rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-heading,
  .outline-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 50px;
    min-height: 0;
    padding-block: 80px;
  }

  .question-card {
    max-width: 650px;
  }

  .split-heading,
  .decision-grid {
    gap: 28px;
  }

  .acts {
    grid-template-columns: 1fr;
  }

  .act {
    min-height: 0;
  }

  .act-number {
    margin-bottom: 20px;
  }

  .evidence-row {
    grid-template-columns: 42px 1fr 72px;
  }

  .evidence-row > div:nth-of-type(2),
  .evidence-row > div:nth-of-type(3) {
    grid-column: 2 / -1;
  }
}

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

  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero-grid {
    padding-block: 68px 70px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .question-card,
  .score-card,
  .panel-head,
  .boundary-card,
  .decision-card {
    padding: 25px 22px;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .score-top {
    gap: 14px;
  }

  .score strong {
    font-size: 2rem;
  }

  .chapter-list {
    padding-inline: 20px;
  }

  .evidence-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 21px 18px;
  }

  .confidence {
    grid-column: 2;
  }

  .evidence-row > div:nth-of-type(2),
  .evidence-row > div:nth-of-type(3) {
    grid-column: 2;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .gap-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .rank {
    width: 40px;
    height: 40px;
  }

  .dna-callout {
    padding: 40px 25px;
  }

  .footer-grid {
    display: block;
  }

  .footer-grid > p {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
