:root {
  --paper: #efe5d3;
  --paper-dark: #d9cbb1;
  --ink: #090909;
  --petrol: #0d7275;
  --petrol-dark: #064e50;
  --orange: #ef4b28;
  --gold: #d19a36;
  --white: #fff9ee;
  --line: 2px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --measure: 72rem;
}

* { box-sizing: border-box; }
html { color-scheme: light; 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: 1.0625rem; line-height: 1.55; }
a { color: inherit; text-decoration-thickness: .13em; text-underline-offset: .18em; }
a:hover { text-decoration-style: double; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink) !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .button, .eyebrow, .number, .cue { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: .025em; }
h1 { max-width: 16ch; font-size: clamp(3rem, 10vw, 7.5rem); line-height: .86; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 3.1rem); line-height: 1; }
h3 { font-size: 1.4rem; line-height: 1.1; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--white); border: var(--line); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 20; display: flex; align-items: center; gap: 1.25rem; max-width: var(--measure); margin: auto; padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: var(--line); }
.brand { display: grid; width: 8.5rem; color: var(--ink); font-size: 1.45rem; line-height: .76; text-decoration: none; transform: rotate(-1deg); }
.brand span:last-of-type { color: var(--orange); }
.brand i { margin-top: .45rem; font-family: inherit; font-size: .62rem; font-style: normal; letter-spacing: .12em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem 1rem; margin-left: auto; }
.site-nav a { padding: .55rem .15rem; font-weight: 750; }
.site-nav [aria-current="page"] { text-decoration: none; box-shadow: inset 0 -.45em var(--gold); }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: .5rem .85rem; background: var(--white); border: var(--line); font-weight: 800; }
main { overflow: clip; }
.hero, .page-hero, .section, .ai-note, .privacy-promise, .no-ending { width: min(calc(100% - 2rem), var(--measure)); margin-inline: auto; }
.hero { position: relative; min-height: min(48rem, 78vh); padding: clamp(4rem, 10vw, 8rem) 0 4rem; }
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; border: var(--line); }
.hero::before { top: 3rem; right: 3%; width: min(32vw, 23rem); height: 72%; background: var(--petrol); transform: rotate(3deg); box-shadow: var(--shadow); }
.hero::after { right: 22%; bottom: 2.5rem; width: min(19vw, 13rem); height: 34%; background: var(--gold); transform: rotate(-7deg); }
.hero h1 em { display: inline-block; color: var(--white); background: var(--ink); padding: .04em .1em; font-style: normal; transform: rotate(-1deg); }
.hero-lead { max-width: 42rem; padding: 1rem; background: color-mix(in srgb, var(--paper) 92%, transparent); border-left: .6rem solid var(--orange); font-size: clamp(1.15rem, 2.3vw, 1.6rem); font-weight: 650; }
.eyebrow { margin-bottom: .65rem; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.cue { position: absolute; top: 2.5rem; right: 1%; width: 5.5rem; padding: .7rem; background: var(--orange); border: var(--line); box-shadow: 4px 4px 0 var(--ink); font-size: 1.15rem; line-height: 1; transform: rotate(6deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.15rem; border: var(--line); box-shadow: 4px 4px 0 var(--ink); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.button.primary { background: var(--orange); color: var(--ink); }
.button.secondary { background: var(--white); color: var(--ink); }
.ai-note { display: grid; grid-template-columns: minmax(7rem, 15rem) 1fr; margin-bottom: 5rem; background: var(--petrol-dark); color: var(--white); border: var(--line); box-shadow: var(--shadow); }
.ai-note > b { display: grid; place-items: center; padding: 1.5rem; background: var(--gold); color: var(--ink); font-family: Impact, sans-serif; font-size: 1.5rem; text-align: center; }
.ai-note > div { padding: clamp(1.5rem, 5vw, 3rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section > header { max-width: 52rem; margin-bottom: 2rem; }
.modes { border-top: .7rem solid var(--ink); }
.mode-grid, .card-grid, .companion-grid, .method-steps, .doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.2rem; }
.mode-grid a, .doc-grid a { display: flex; min-height: 10rem; flex-direction: column; justify-content: space-between; padding: 1.3rem; background: var(--white); border: var(--line); box-shadow: 5px 5px 0 var(--ink); text-decoration: none; }
.mode-grid b { font-family: Impact, sans-serif; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.mode-grid a:nth-child(2) { background: var(--gold); transform: rotate(1deg); }
.mode-grid a:nth-child(3) { background: var(--petrol); color: var(--white); transform: rotate(-1deg); }
.mode-grid a:nth-child(4) { background: var(--orange); }
.timeline-preview { width: 100%; max-width: none; padding-inline: max(1rem, calc((100% - var(--measure)) / 2)); background: var(--ink); color: var(--white); }
.stage-line { display: grid; grid-auto-columns: minmax(17rem, 1fr); grid-auto-flow: column; gap: 1.5rem; overflow-x: auto; padding: 1rem .25rem 2rem; scroll-snap-type: x mandatory; }
.stage-line article { min-height: 23rem; padding: 1.25rem; background: var(--paper); color: var(--ink); border: 2px solid var(--white); scroll-snap-align: start; }
.stage-line article:nth-child(3n+2) { background: var(--petrol); color: var(--white); }
.stage-line article:nth-child(3n) { background: var(--orange); }
.stage-line article > span, .number { display: inline-grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1rem; background: var(--ink); color: var(--white); border-radius: 50%; }
.questions { display: grid; gap: 0; }
.questions a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: var(--line); font-size: clamp(1.3rem, 3vw, 2.3rem); font-weight: 800; text-decoration: none; }
.questions a:last-child { border-bottom: var(--line); }
.questions a b { color: var(--orange); font-size: 2em; }
.people-strip > div { display: flex; flex-wrap: wrap; gap: 1rem; }
.people-strip article { flex: 1 1 15rem; padding: 1.1rem; background: var(--paper-dark); border-left: .5rem solid var(--petrol); }
.page-hero { position: relative; padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem); }
.page-hero::after { position: absolute; z-index: -1; top: 2rem; right: 2%; width: 22%; height: 70%; background: var(--gold); border: var(--line); content: ""; transform: rotate(4deg); }
.page-hero > p { max-width: 48rem; font-size: 1.25rem; }
.record-card, .method-steps article, .companion-grid article { position: relative; min-height: 17rem; padding: 1.4rem; background: var(--white); border: var(--line); box-shadow: 5px 5px 0 var(--ink); }
.record-card:nth-child(4n+2) { background: var(--paper-dark); }
.record-card:nth-child(4n+3) { border-top: .7rem solid var(--petrol); }
.meta { font-weight: 800; }
.verified { margin-top: 1.5rem; font-size: .9rem; }
.verified::before { content: "✓ "; color: var(--petrol-dark); font-weight: 900; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(17rem, .8fr); gap: clamp(2rem, 5vw, 5rem); width: min(calc(100% - 2rem), var(--measure)); margin: 0 auto 4rem; }
.statement { margin-bottom: 1rem; padding: 1.4rem; background: var(--white); border: var(--line); }
.statement > b { display: inline-block; padding: .25rem .5rem; background: var(--ink); color: var(--white); font-family: Impact, sans-serif; letter-spacing: .08em; }
.statement.context { border-left: .7rem solid var(--petrol); }
.statement.uncertainty { border-left: .7rem solid var(--gold); }
.statement.ai-interpretation { border-left: .7rem solid var(--orange); }
.citations { font-size: .9rem; }
.try, .limits, .context { margin-block: 1.5rem; padding: 1.5rem; border: var(--line); }
.try { background: var(--orange); box-shadow: var(--shadow); }
.limits { background: var(--paper-dark); }
.source-panel { align-self: start; padding: 1.3rem; background: var(--petrol-dark); color: var(--white); border: var(--line); }
.source-panel ol { padding-left: 1.25rem; }
.source-panel li { margin-bottom: 1.5rem; }
.source-panel span { display: block; font-size: .85rem; }
.back { width: min(calc(100% - 2rem), var(--measure)); margin: 2rem auto 5rem; }
.story-score article { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: var(--line); }
.score { display: grid; align-content: start; }
.score b { font-family: Impact, sans-serif; font-size: 4rem; line-height: 1; }
.no-ending { margin-bottom: 5rem; padding: 2rem; background: var(--orange); border: var(--line); box-shadow: var(--shadow); }
.privacy-promise, .local-test-notice { margin-bottom: 2rem; padding: 1.25rem; background: var(--petrol-dark); color: var(--white); border: var(--line); }
.privacy-promise b, .local-test-notice strong { display: inline-block; margin-bottom: .5rem; color: var(--gold); font-family: Impact, sans-serif; font-size: 1.5rem; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .7fr); gap: 2rem; }
.lab-controls { display: grid; gap: 1.2rem; }
.lab fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .7rem; padding: 1rem; border: var(--line); }
.lab legend { padding: 0 .5rem; font-family: Impact, sans-serif; font-size: 1.4rem; text-transform: uppercase; }
.lab fieldset button { min-height: 48px; padding: .8rem; background: var(--white); border: var(--line); cursor: pointer; }
.lab fieldset button[aria-pressed="true"] { background: var(--orange); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; }
.lab-stage { align-self: start; min-height: 22rem; padding: 2rem; background: var(--ink); color: var(--white); border: .7rem solid var(--petrol); box-shadow: var(--shadow); }
.lab-stage [data-lab-output] { min-height: 8rem; font-size: 1.3rem; }
.doc-grid a:nth-child(3n+2) { background: var(--gold); }
.doc-grid a:nth-child(3n) { background: var(--petrol); color: var(--white); }
.method-steps article > b, .doc-grid > a > b { font-family: Impact, sans-serif; letter-spacing: .08em; }
.prose { max-width: 52rem; }
.prose p, .prose li { max-width: 70ch; }
.source-register ol { display: grid; gap: 1rem; padding: 0; list-style: none; counter-reset: source; }
.source-register li { padding: 1.3rem; background: var(--white); border-left: .6rem solid var(--gold); counter-increment: source; }
.media-intro { padding-bottom: 1rem; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); padding-top: 1rem; }
.media-card, .evidence-image { margin: 0; background: var(--white); border: var(--line); box-shadow: var(--shadow); }
.media-card { align-self: start; }
.media-card:nth-child(even) { transform: translateY(2rem) rotate(.4deg); }
.media-card img, .evidence-image img { display: block; width: 100%; height: auto; border-bottom: var(--line); }
.media-card-body, .evidence-image figcaption { padding: 1.25rem; }
.media-card-body h2 { margin-bottom: .75rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.media-card-body h3 { margin-top: 1.5rem; }
.media-card details { margin-top: 1.25rem; padding-top: 1rem; border-top: var(--line); }
.media-card summary { font-weight: 850; cursor: pointer; }
.media-type { display: block; padding: .55rem .8rem; background: var(--petrol-dark); color: var(--white); font-family: Impact, sans-serif; letter-spacing: .08em; }
.evidence-image { margin: 2rem 0 2.5rem; transform: rotate(-.4deg); }
.evidence-image figcaption > strong { display: block; margin-bottom: .6rem; }
.evidence-image figcaption p { margin-bottom: .75rem; }
.network-list { display: grid; gap: 1rem; }
.network-list article { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border: var(--line); text-align: center; }
.network-list span { font-weight: 800; }
.network-list small { grid-column: 1 / -1; }
.search > div:first-of-type { display: flex; gap: .7rem; }
.search input, .participation-form input, .participation-form select, .participation-form textarea { width: 100%; min-height: 48px; padding: .75rem; background: var(--white); border: var(--line); }
.search input { max-width: 35rem; }
.participation-form { display: grid; gap: .65rem; max-width: 52rem; }
.participation-form textarea { min-height: 9rem; }
.participation-form label:not(.checkbox) { margin-top: .7rem; font-weight: 850; }
.participation-form label small { display: block; font-weight: 500; }
.checkbox { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; margin: 1rem 0; }
.checkbox input { width: 1.5rem; min-height: 1.5rem; }
.honeypot { position: absolute; left: -10000px; }
.form-error, .field-error { padding: .7rem; border-left: .5rem solid var(--orange); font-weight: 700; }
.form-notice { padding: 1rem; background: var(--gold); border: var(--line); }
.feedback-boundary { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--paper-dark); border-left: .7rem solid var(--orange); }
.feedback-boundary h2 { font-size: 1.8rem; }
.review-panel, .result-panel, .form-section { width: min(calc(100% - 2rem), 52rem); margin: 0 auto 5rem; padding: 2rem; background: var(--white); border: var(--line); }
.review-panel dd { margin: 0 0 1rem; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.review-actions form { margin: 0; }
.text-button { min-height: 44px; padding: .5rem; background: transparent; border: 0; text-decoration: underline; text-decoration-thickness: .13em; text-underline-offset: .18em; cursor: pointer; }
.site-footer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; padding: clamp(2rem, 6vw, 4rem) max(1rem, calc((100% - var(--measure)) / 2)); background: var(--ink); color: var(--white); }
.site-footer nav { display: grid; align-content: start; gap: .6rem; }

@media (max-width: 760px) {
  h1 { font-size: clamp(2.8rem, 10vw, 4rem); overflow-wrap: anywhere; }
  .site-header { flex-wrap: wrap; }
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; align-items: stretch; }
  .js .site-nav[data-open] { display: grid; }
  .site-nav { width: 100%; justify-content: flex-start; }
  .site-nav a { min-height: 44px; }
  .hero { min-height: auto; }
  .hero::before { right: -8%; width: 48%; height: 44%; }
  .hero::after { display: none; }
  .cue { display: none; }
  .ai-note, .detail-grid, .lab, .site-footer { grid-template-columns: 1fr; }
  .story-score article { grid-template-columns: 4.5rem 1fr; }
  .network-list article { grid-template-columns: 1fr; text-align: left; }
  .network-list small { grid-column: auto; }
  .search > div:first-of-type { align-items: stretch; flex-direction: column; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card:nth-child(even) { transform: none; }
  .review-panel, .result-panel, .form-section { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  * { box-shadow: none !important; }
  .hero::before, .hero::after, .page-hero::after { display: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero, .hero { width: 100%; padding: 1rem 0; }
}
