/* ============================================================
   marrow landing — the page hands you the room as evidence.
   Warm bone shell, one marrow-gold spark, Fraunces/Geist/Geist Mono.
   Depth is a 1px warm hairline, never a glow. Serif = decided truth,
   sans = the working voice, mono = the raw evidence. The exhibits
   carry the argument; the chrome stays quiet.
   ============================================================ */

/* The brand faces. index.html preloads these woff2 files, but without an
   @font-face to bind them the browser fell back to system fonts. Variable fonts
   (wght 100–900; Fraunces also carries an optical-size axis driven per use via
   font-variation-settings). font-display:swap so text paints immediately. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --paper: #100f0d;
  --surface: #1a1815;
  --surface-2: #221f1b;
  --surface-3: #2a2620;
  --line: #2c2823;
  --line-strong: #3a352d;
  --ink: #ece6d8;
  --ink-muted: #9b9384;
  --ink-faint: #968d7d;

  --gold-300: #e6c98e;
  --gold-400: #e4bc78;
  --gold-500: #d8a657;
  --gold-600: #c2913f;
  --gold-border: rgba(216, 166, 87, 0.3);
  --gold-wash: rgba(216, 166, 87, 0.12);
  --gold-wash-strong: rgba(216, 166, 87, 0.26);
  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --accent-ink: #1a1206;
  --accent-text: var(--gold-500); /* gold as TEXT; light theme darkens it for AA */

  --decided: #8bb88a;
  --decided-bg: rgba(139, 184, 138, 0.12);
  --decided-border: rgba(139, 184, 138, 0.34);
  --open: #e3a24a;
  --open-bg: rgba(227, 162, 74, 0.13);
  --open-border: rgba(227, 162, 74, 0.36);
  --contested: #d98a73;
  --contested-bg: rgba(217, 138, 115, 0.12);
  --contested-border: rgba(217, 138, 115, 0.36);
  --superseded: #968d7d;
  --superseded-bg: rgba(111, 104, 92, 0.14);
  --superseded-border: rgba(111, 104, 92, 0.3);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-marker: cubic-bezier(0.65, 0, 0.35, 1); /* the drag of a highlighter */
  --ease-spring: cubic-bezier(0.34, 1.45, 0.6, 1); /* the promote beat only */
  --dur: 200ms;
  --doc-radius: 8px;
  --maxw: 1120px;

  /* paper grain for the document sheets only. static, near-invisible. */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: 0.025;

  color-scheme: dark;
}

[data-theme="light"] {
  --paper: #f4efe4;
  --surface: #fbf7ee;
  --surface-2: #fffdf8;
  --surface-3: #efe9dc;
  --line: #e2dacb;
  --line-strong: #d2c9b6;
  --ink: #2a2620;
  --ink-muted: #6f685c;
  --ink-faint: #736b5d;

  --gold-500: #b0822e;
  --gold-600: #946a22;
  --accent: var(--gold-500);
  --accent-hover: var(--gold-600);
  --accent-ink: #231807; /* dark warm ink on a gold fill, AA at small sizes */
  --accent-text: #7d5c1a; /* gold as text on bone paper, 4.5+ */
  --gold-border: rgba(176, 130, 46, 0.34);
  --gold-wash: rgba(176, 130, 46, 0.1);
  --gold-wash-strong: rgba(176, 130, 46, 0.22);

  --decided: #3f6b43;
  --decided-bg: #e4efe2;
  --decided-border: #bcd6ba;
  --open: #8a6420;
  --open-bg: #f6ecd6;
  --open-border: #e6d2a6;
  --contested: #9c4a33;
  --contested-bg: #f6e2da;
  --contested-border: #e4bbaa;
  --superseded: #6b645a;
  --superseded-bg: #ece7de;
  --superseded-border: #d8d1c4;

  --noise-opacity: 0.015;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

/* selecting transcript text literally highlights it. free grit. */
::selection {
  background: var(--gold-wash-strong);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---- layout shells ---- */
main {
  display: block;
}
section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- masthead ----
   the bar and its hairline are full-bleed: the separator spans the whole
   viewport, never a floating line with empty paper to its left and right.
   the content inside is centered to the same max-width as every section. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.masthead.scrolled {
  border-bottom-color: var(--line);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}
.wordmark-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 999px;
  /* Drop the mark to the optical center of the wordmark. */
  transform: translateY(0.092em);
  background: linear-gradient(
    145deg,
    var(--gold-300) 0%,
    var(--gold-500) 52%,
    var(--gold-600) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 220, 0.42),
    inset 0 -1px 0 rgba(48, 31, 7, 0.34),
    0 0 0 1px var(--gold-border);
}
.wordmark-dot::before,
.wordmark-dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.wordmark-dot::before {
  inset: 6px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 220, 0.18),
    0 0 0 1px rgba(48, 31, 7, 0.14);
}
.wordmark-dot::after {
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  background: radial-gradient(circle at center, var(--gold-300) 0 38%, var(--gold-500) 39% 100%);
  box-shadow: 0 0 0 1px rgba(48, 31, 7, 0.14);
}
.masthead-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.masthead-nav a {
  color: var(--ink-muted);
  font-size: 14px;
  transition: color var(--dur) var(--ease-out);
}
.masthead-nav a:hover {
  color: var(--ink);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.theme-toggle:active {
  transform: scale(0.94);
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 540;
  border: 1px solid transparent;
  transition:
    transform 140ms var(--ease-out),
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- cover ---- */
.cover {
  padding-top: 64px;
  padding-bottom: 44px;
}
.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.cover-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 14ch;
}
.standfirst {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
@media (min-width: 861px) {
  .cover {
    max-width: 1280px;
  }
  .cover-title {
    max-width: 20ch;
  }
  .standfirst {
    max-width: 78ch;
  }
}
.cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cover-meta {
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* the command chip: a developer trusts a command more than a get-started.
   the label crossfades to "copied", opacity only, then back. */
.cmd-chip {
  display: inline-grid;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background var(--dur) var(--ease-out);
}
.cmd-chip:hover {
  background: var(--accent-hover);
}
.cmd-chip:active {
  transform: scale(0.97);
}
.cmd-chip .cmd-text,
.cmd-chip .cmd-copied {
  grid-area: 1 / 1;
  transition: opacity 200ms var(--ease-out);
}
.cmd-chip .cmd-copied {
  opacity: 0;
  text-align: center;
}
.cmd-chip.copied .cmd-text {
  opacity: 0;
}
.cmd-chip.copied .cmd-copied {
  opacity: 1;
}

/* ---- exhibits ---- */
.exhibit {
  padding-top: 96px;
}
#exhibit-a {
  padding-top: 56px;
}
.exhibit-head {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.exhibit-head .ex-label {
  color: var(--accent-text);
}
.exhibit-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 32px;
  align-items: start;
}

/* ---- the document sheet ---- */
.sheet {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--doc-radius);
  overflow: hidden;
}
/* paper grain, static, sheets only. the one texture on the page. */
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 2;
}
.sheet-head {
  margin: 0;
  padding: 10px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.sheet-head .id {
  color: var(--accent-text);
}
.sheet-head .append {
  color: var(--accent-text);
}

/* ---- transcript anatomy ---- */
.transcript {
  list-style: none;
  margin: 0;
  padding: 14px 0 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
}
.transcript li {
  display: grid;
  grid-template-columns: 44px 78px 92px minmax(0, 1fr);
  gap: 12px;
  padding: 1px 18px;
  align-items: baseline;
}
/* the standup sheet has no timestamps; the file is the file. */
#exhibit-b .transcript li {
  grid-template-columns: 44px 92px minmax(0, 1fr);
}
.transcript .ln {
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
  user-select: none;
  transition: color 200ms var(--ease-out);
}
.transcript .ts {
  font-size: 11px;
  color: var(--ink-faint);
  user-select: none;
}
.transcript .spk {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.transcript .txt {
  color: var(--ink);
  overflow-wrap: break-word;
}

/* the highlighter: a gold wash with the uneven caps of a real marker.
   in exhibit a it sweeps on stage; in exhibit b it is already dry. */
.hl {
  position: relative;
  background: transparent;
  color: inherit;
}
#exhibit-a .hl::before {
  content: "";
  position: absolute;
  inset: -1px -3px;
  background: var(--gold-wash);
  border-radius: 2px 6px 3px 5px;
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
}
#exhibit-a[data-stage="swept"] .hl::before,
#exhibit-a[data-stage="proposed"] .hl::before,
#exhibit-a[data-stage="decided"] .hl::before {
  transform: scaleX(1);
  transition: transform 460ms var(--ease-marker);
}
#exhibit-a[data-stage="swept"] .s2 .hl::before,
#exhibit-a[data-stage="proposed"] .s2 .hl::before,
#exhibit-a[data-stage="decided"] .s2 .hl::before {
  transition-delay: 90ms;
}
#exhibit-a[data-stage="swept"] .s3 .hl::before,
#exhibit-a[data-stage="proposed"] .s3 .hl::before,
#exhibit-a[data-stage="decided"] .s3 .hl::before {
  transition-delay: 180ms;
}
[data-stage="swept"] .is-swept .ln,
[data-stage="proposed"] .is-swept .ln,
[data-stage="decided"] .is-swept .ln {
  color: var(--accent-text);
}
#exhibit-b .hl {
  background: var(--gold-wash);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 2px;
  padding: 1px 2px;
}

/* a citation lookup relights its span: the wash flares once and dries. */
.relit {
  animation: relight 1.84s var(--ease-out);
}
@keyframes relight {
  0% {
    background-color: transparent;
  }
  13% {
    background-color: var(--gold-wash-strong);
  }
  78% {
    background-color: var(--gold-wash-strong);
  }
  100% {
    background-color: transparent;
  }
}

/* contested: a redline, the only red on the page, tension not failure. */
.hl-c {
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--contested);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.is-contested .ln {
  color: var(--contested);
}
/* superseded: struck, never deleted. */
.dead {
  color: var(--superseded);
  text-decoration-color: var(--superseded);
}
.is-open .ln {
  color: var(--open);
}

/* ---- the margin ---- */
.margin {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slot {
  position: relative;
  min-height: 252px;
}
.marginalia,
.margin-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.marginalia {
  padding-left: 14px;
  border-left: 2px solid var(--gold-border);
}
.note-contested {
  padding-left: 14px;
  border-left: 2px solid var(--contested-border);
}
.note-loop {
  padding-left: 14px;
  border-left: 2px solid var(--gold-border);
}
.note-superseded {
  padding-left: 14px;
  border-left: 2px solid var(--superseded-border);
  color: var(--ink-faint);
}
.reenact {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---- the fact card (exhibit a) ---- */
.fact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
  opacity: 0;
  transform: translateY(12px);
  /* until the lift, the card is not on stage: invisible, unclickable,
     unreachable by tab. */
  visibility: hidden;
}
[data-stage="proposed"] .fact-card,
[data-stage="decided"] .fact-card {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 560ms var(--ease-out),
    transform 560ms var(--ease-out);
}
/* children arrive a beat apart; the card reads top to bottom. the stamp,
   nudge and aftermath are not part of the arrival, they have their own cues. */
.fact-card > :not(.stamp):not(.nudge):not(.aftermath) {
  opacity: 0;
  transform: translateY(6px);
}
[data-stage="proposed"] .fact-card > :not(.stamp):not(.nudge):not(.aftermath),
[data-stage="decided"] .fact-card > :not(.stamp):not(.nudge):not(.aftermath) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}
[data-stage="proposed"] .fact-card > :nth-child(2),
[data-stage="decided"] .fact-card > :nth-child(2) {
  transition-delay: 60ms;
}
[data-stage="proposed"] .fact-card > :nth-child(3),
[data-stage="decided"] .fact-card > :nth-child(3) {
  transition-delay: 120ms;
}
[data-stage="proposed"] .fact-card > :nth-child(4),
[data-stage="decided"] .fact-card > :nth-child(4) {
  transition-delay: 180ms;
}
/* the promote spring: the only spring on the page, fired by a human hand. */
[data-stage="decided"] .fact-card {
  animation: promote 700ms var(--ease-spring) 60ms;
}
@keyframes promote {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.005);
  }
  100% {
    transform: scale(1);
  }
}
[data-stage="decided"] .fact-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: promote-ring 700ms var(--ease-spring) 60ms;
}
@keyframes promote-ring {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

.fact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-open,
.pill-q {
  color: var(--open);
  background: var(--open-bg);
  border: 1px solid var(--open-border);
}
/* on promotion the open pill simply leaves; the stamp is the one verdict. */
[data-stage="decided"] .pill-open {
  opacity: 0;
  transition: opacity 240ms var(--ease-out) 120ms;
}
.kind-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.fact-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 560;
  color: var(--ink);
}
/* the settle: each word carries both faces in one grid cell, the line never
   reflows, and the serif arrives word by word on the one rationed spring. */
.fact-title .word {
  display: inline-grid;
  white-space: pre;
}
.fact-title .face {
  grid-area: 1 / 1;
}
.fact-title .face-sans {
  font-family: var(--font-sans);
  font-weight: 560;
}
.fact-title .face-serif {
  font-family: var(--font-display);
  font-weight: 620;
  font-variation-settings: "opsz" 40;
  letter-spacing: 0;
  opacity: 0;
}
[data-stage="decided"] .face-sans {
  animation: face-out 320ms var(--ease-out) forwards;
  animation-delay: calc(60ms + var(--i) * 30ms);
}
[data-stage="decided"] .face-serif {
  animation: face-in 460ms var(--ease-spring) forwards;
  animation-delay: calc(60ms + var(--i) * 30ms);
}
@keyframes face-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes face-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* reduced motion or no JS: the decided face is simply the serif. */
.title-text.is-decided,
html.reduce [data-stage="decided"] .title-text {
  font-family: var(--font-display);
  font-weight: 620;
  font-variation-settings: "opsz" 40;
  letter-spacing: 0;
}

.fact-meta {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.fact-meta .conf {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.conf-final {
  display: none;
}
.fact-meta .conf-src.is-human,
.conf-src.is-human {
  color: var(--decided);
}

/* citations are controls: every span on this page can be looked up. */
.cite {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: inherit;
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}
.cite:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* a citation that leaves the page says so. */
.cite[data-demo-link]::after {
  content: " ↗";
}

.answer-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  transition: opacity 150ms var(--ease-out);
}
.answer-row.fading {
  opacity: 0;
  pointer-events: none;
}
.answer-row.gone {
  display: none;
}
.answer-input {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  padding: 8px 11px;
  transition: border-color var(--dur) var(--ease-out);
}
.answer-input::placeholder {
  color: var(--ink-faint);
}
.answer-input:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-promote {
  flex: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms var(--ease-out),
    opacity 140ms var(--ease-out);
}
.btn-promote:hover {
  background: var(--accent-hover);
}
.btn-promote:active {
  transform: scale(0.97);
}
.btn-promote:disabled {
  opacity: 0.4;
  cursor: default;
}

.nudge {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--open);
}
.aftermath {
  margin: 0;
  min-height: 78px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
  animation: rise-in 360ms var(--ease-out);
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.aftermath .after-answer {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* the stamp: sage, tilted, the only rotated element on the site. */
.stamp {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--decided);
  background: var(--decided-bg);
  border: 1.5px solid var(--decided-border);
  border-radius: 4px;
  opacity: 0;
  transform: rotate(-2.5deg) scale(1.15);
}
[data-stage="decided"] .stamp {
  opacity: 1;
  transform: rotate(-2.5deg) scale(1);
  transition:
    opacity 240ms var(--ease-out) 550ms,
    transform 240ms var(--ease-out) 550ms;
}

/* the thread: provenance drawn as a line from the document to the fact. */
.thread {
  position: absolute;
  top: 96px;
  left: -44px;
  width: 44px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
[data-stage="proposed"] .thread,
[data-stage="decided"] .thread {
  transform: scaleX(1);
  transition: transform 320ms var(--ease-out) 550ms;
}

/* ---- exhibit b: the pinned question ---- */
.pin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.pin-prompt {
  margin: 10px 0 12px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.pin-meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.answer-link {
  display: block;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-faint);
  transition:
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.answer-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* pins settle once, on first sight. */
.pin-card,
.margin-note {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}
.margin > :nth-child(1) {
  transition-delay: 0ms;
}
.margin > :nth-child(2) {
  transition-delay: 60ms;
}
.margin > :nth-child(3) {
  transition-delay: 120ms;
}
.margin > :nth-child(4) {
  transition-delay: 180ms;
}
.pin-card.pinned,
.margin-note.pinned {
  opacity: 1;
  transform: translateY(0);
}

/* ---- exhibit c: the slice ---- */
.lead {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.slice {
  max-width: 760px;
}
.fact-rows {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.brief-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.brief-callout {
  display: grid;
  gap: 5px;
  padding: 9px 18px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.brief-callout + .brief-callout {
  border-left: 1px solid var(--line);
}
.brief-label {
  text-transform: uppercase;
}
.brief-safe .brief-label {
  color: var(--decided);
}
.brief-ask .brief-label {
  color: var(--open);
}
.fact-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 84px 150px;
  column-gap: 14px;
  row-gap: 2px;
  align-items: baseline;
  padding: 10px 18px;
}
.fact-row .cite {
  text-align: left;
  justify-self: start;
}
.fact-row + .fact-row {
  border-top: 1px solid var(--line);
}
.f-status {
  letter-spacing: 0.03em;
}
.st-open {
  color: var(--open);
}
.st-decided {
  color: var(--decided);
}
.st-entity {
  color: var(--ink-muted);
}
/* serif is decided, sans is open, mono is the machine tokens around them:
   the slice performs the colophon's law. */
.f-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.f-title.is-decided {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  font-variation-settings: "opsz" 40;
  letter-spacing: 0;
}
.f-conf {
  color: var(--ink-faint);
}
.f-note {
  grid-column: 2 / -1;
  color: var(--ink-faint);
  font-size: 11px;
}
.agent-line {
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.slice-caption {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 70ch;
}
/* links inside running text never rely on color alone. */
.slice-caption a,
.aftermath a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-border);
}

/* ---- intake ---- */
.intake {
  padding-top: 112px;
}
.intake-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
}
.intake-copy {
  margin: 0 0 28px;
  color: var(--ink-muted);
  max-width: 44ch;
}
.intake-sheet {
  max-width: 760px;
}
.intake-lines {
  padding: 8px 0 10px;
}
.intake-line {
  display: block;
  width: 100%;
  padding: 8px 18px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 140ms var(--ease-out);
}
.intake-line:hover {
  background: var(--surface-3);
}
.intake-line .c {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
}
.intake-line .p {
  color: var(--accent-text);
}
.intake-line .copied-note {
  opacity: 0;
  color: var(--accent-text);
  transition: opacity 200ms var(--ease-out);
}
.intake-line.copied .copied-note {
  opacity: 1;
}
.intake-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 760px;
  margin-top: 24px;
}
.tokens {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.token {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.intake-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- the footnote ---- */
.footnote-band {
  padding-top: 128px;
  padding-bottom: 24px;
  text-align: center;
}
.moat {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 540;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}
.moat-line {
  display: inline-block;
}
.moat .fn {
  font-family: var(--font-mono);
  font-size: 0.4em;
  font-weight: 400;
}
.moat .fn a {
  color: var(--accent-text);
}

/* ---- colophon ---- */
.colophon {
  padding-top: 64px;
  padding-bottom: 40px;
  text-align: center;
}
.colophon p {
  margin: 0 auto 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}
.colophon .t-decided {
  color: var(--decided);
}
.colophon .t-open {
  color: var(--open);
}
.colophon .t-superseded {
  color: var(--superseded);
}
.colophon .eof {
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 11px;
}

/* ---- footer ---- */
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.footer-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
}
.footer-tag {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1;
}
.footer-nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: var(--ink-muted);
  font-size: 13px;
  transition: color var(--dur) var(--ease-out);
}
.footer-nav a:hover {
  color: var(--ink);
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .exhibit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .margin {
    position: static;
  }
  .slot {
    min-height: 0;
  }
  .thread {
    top: -24px;
    left: 24px;
    width: 1px;
    height: 24px;
    transform: scaleY(0);
    transform-origin: top;
  }
  [data-stage="proposed"] .thread,
  [data-stage="decided"] .thread {
    transform: scaleY(1);
  }
  .cover {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 640px) {
  /* wrapped marks: the sweep becomes a static wash that appears with its
     stage. the ::before block cannot follow wrapped inline lines honestly. */
  #exhibit-a .hl::before {
    display: none;
  }
  [data-stage="swept"] .hl,
  [data-stage="proposed"] .hl,
  [data-stage="decided"] .hl {
    background: var(--gold-wash);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 2px;
  }
  .fact-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .brief-callouts {
    grid-template-columns: 1fr;
  }
  .brief-callout + .brief-callout {
    border-top: 1px solid var(--line);
    border-left: none;
  }
  .fact-row .f-conf,
  .fact-row .cite {
    grid-column: 2;
  }
}
@media (max-width: 600px) {
  .masthead-nav {
    gap: 14px;
  }
  .masthead-nav .nav-gh {
    display: none;
  }
  /* attribution is the evidence: the speaker stays, the timestamp goes. */
  .transcript li,
  #exhibit-b .transcript li {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 0;
  }
  .transcript .ts {
    display: none;
  }
  .transcript .spk {
    grid-column: 2;
    font-size: 11px;
  }
  .transcript .txt {
    grid-column: 2;
  }
  .standfirst {
    font-size: 16px;
  }
  .fact-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .fact-row .f-conf,
  .fact-row .cite {
    grid-column: 2;
  }
}
@media (max-width: 420px) {
  .masthead-nav a[href="#support"] {
    display: none;
  }
}

/* ---- reduced motion: meaning stays, movement goes ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
html.reduce *,
html.reduce *::before,
html.reduce *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
/* motion goes, meaning stays: the relight becomes a steady wash. */
html.reduce .relit {
  animation: none !important;
  background-color: var(--gold-wash-strong) !important;
}

/* ---- support + faq ---- */
.support {
  padding-top: 112px;
}
.faq {
  max-width: 760px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: color 140ms var(--ease-out);
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q:hover {
  color: var(--accent-text);
}
.faq-q::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 2px 20px;
  max-width: 64ch;
}
.faq-a p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-muted);
}
.support-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 760px;
  margin-top: 28px;
}
.support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
