/* ============================================================
   Occupy Mars — design system: "Readiness Review"
   ------------------------------------------------------------
   The site is a flight readiness review of a slogan. Report
   paper by day; console night by default. One identity accent
   (international orange — the aerospace flight-test color, and
   the planet's own); four verdict colors, reserved for
   epistemic status and nothing else. Frozen spec: design.html,
   token record: specs/design.md.
   House rules that survive any redesign:
   - tokens on :root, dark variant re-declares them under html.dark
   - reading surface never pure white, ink never pure black
   - one strong accent; further accents carry meaning
   ============================================================ */

:root {
  /* surfaces & ink */
  --paper: #F3F1EC;        /* report stock — never pure white */
  --panel: #EAE7DE;        /* table stripe, raised panel */
  --ink: #22201B;          /* warm ink — never pure black */
  --ink-soft: #5C574C;     /* secondary text */
  --line: #CFCABE;         /* hairline rules */
  /* identity accent */
  --accent: #B4400F;       /* international orange (text-safe): links, identity */
  --accent-bright: #E8500A;/* international orange (graphic scale): marks, rules, the disc */
  /* verdict colors — badges, scorecard stamps, diagram semantics ONLY */
  --go: #2C6E49;           /* verdict: established */
  --caution: #8A5B0A;      /* verdict: contested */
  --unknown: #33546E;      /* verdict: unknown — the crux color */
  --stated: #6B6459;       /* verdict: stated goal — hollow, dashed border */
  --grain-opacity: .05;
  /* type trio */
  --font-display: "Jost", "Avenir Next", Futura, sans-serif;
  --font-body: "Spectral", Georgia, serif;
  --font-mono: "B612 Mono", ui-monospace, monospace;
  --font-ui: "B612", system-ui, sans-serif;
  /* layout */
  --measure: 40rem;
  --page: 64rem;
  /* structural aliases used by the skeleton's layout rules */
  --c-bg: var(--paper);
  --c-surface: var(--panel);
  --c-ink: var(--ink);
  --c-muted: var(--ink-soft);
  --c-rule: var(--line);
  --c-accent: var(--accent);
  --c-accent-soft: var(--accent-bright);
}

html.dark {
  --paper: #12161B;        /* console night — cruise phase, not inverted paper */
  --panel: #1A2027;
  --ink: #E6E1D6;
  --ink-soft: #A49D8E;
  --line: #2C333C;
  --accent: #FF8A50;
  --accent-bright: #FF6B2C;
  --go: #63BE92;
  --caution: #E0A63C;
  --unknown: #8FB4DC;
  --stated: #8D8677;
  --grain-opacity: .04;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; scrollbar-color: var(--line) var(--paper); }
html.dark { color-scheme: dark; }

body {
  margin: 0;
  /* Seat the footer at the bottom on short pages — without this, a 404 at
     800px tall ends with the colophon mid-viewport and bare paper below. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper grain — tiled on body, opacity baked into the SVG (never position:fixed) */
body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

body > main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-ink); text-decoration-thickness: 2px; }

code, pre, .data, .mono { font-family: var(--font-mono); font-size: 0.9em; font-feature-settings: "tnum"; }
.ui { font-family: var(--font-ui); }

::selection { background: var(--accent-bright); color: var(--paper); }

/* verdict badges — the four epistemic states (see specs/design.md) */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 0.14rem 0.5rem 0.1rem;
  border-radius: 2px; vertical-align: 0.12em;
}
.badge.go { color: var(--paper); background: var(--go); }
.badge.caution { color: var(--paper); background: var(--caution); }
.badge.unknown { color: var(--paper); background: var(--unknown); }
.badge.stated { color: var(--stated); background: transparent; border: 1px dashed var(--stated); }
html.dark .badge.go, html.dark .badge.caution, html.dark .badge.unknown { color: #10141A; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--c-accent); color: var(--c-bg); padding: 0.5rem 1rem;
}
.skip-link:hover, .skip-link:focus { color: var(--c-bg); }
.skip-link:focus { left: 0; z-index: 40; }

/* ---------- masthead ---------- */

.masthead { border-bottom: 2px solid var(--ink); z-index: 30; }  /* heavy document rule; z-index keeps the phone menu above main */

.masthead__inner {
  max-width: var(--page); margin: 0 auto; padding: 0.88rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { text-decoration: none; color: var(--c-ink); }
.brand__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.masthead__right { display: flex; align-items: center; gap: 1.4rem; }
.masthead__links { display: flex; align-items: center; gap: 1.1rem; }
.masthead__actions { display: flex; align-items: center; gap: 0.6rem; }

.navlink {
  font-family: var(--font-ui); font-size: 0.95rem;
  color: var(--c-ink); text-decoration: none;
}
.navlink:hover { color: var(--c-accent); }

.masthead__burger { display: none; }

.theme-toggle {
  background: none; border: 1px solid var(--c-rule); border-radius: 3px;
  width: 2.75rem; height: 2.75rem; padding: 0.65rem; cursor: pointer; color: var(--c-ink);
}
.theme-toggle svg { width: 100%; height: 100%; }
.theme-toggle__moon { display: none; }
html.dark .theme-toggle__sun { display: none; }
html.dark .theme-toggle__moon { display: block; }

@media (max-width: 40rem) {
  .masthead__burger {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; padding: 0.4rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; justify-content: center;
  }
  .masthead__burger span { width: 20px; height: 2px; background: var(--c-ink); }
  /* The open menu is a ruled strip under the document rule — report ruling, not a card. */
  .masthead__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 0 1.25rem 0.35rem;
  }
  .masthead__links.is-open { display: flex; }
  .masthead__links .navlink { border-bottom: 1px solid var(--line); padding: 0.25rem 0; font-size: 1rem; min-height: 3rem; }
  .masthead__links .navlink:last-child { border-bottom: 0; }
  .masthead__links .navlink[aria-current] { color: var(--accent); border-bottom-color: var(--line); }
  /* the toggle and burger stay side by side and always visible */
  .masthead__right { gap: 0.6rem; }
}

/* ---------- content ---------- */

.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 0 0 0.5rem; letter-spacing: 0.045em; text-transform: uppercase; font-weight: 700; }

.prose h1 { font-size: clamp(2.1rem, 5vw, 2.4rem); margin: 0 0 1rem; }
.prose img { max-width: 100%; height: auto; }
.prose blockquote {
  margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 1px solid var(--line); color: var(--ink-soft); font-style: italic;
}
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--c-rule); padding: 0.4rem 0.6rem; text-align: left; }
.prose th { font-family: var(--font-ui); font-size: 0.88rem; }

/* ---------- masthead: document chrome ---------- */

.brand__ast, .colophon__title sup { color: var(--accent); font-size: 0.7em; margin-left: 0.05em; }
.navlink { border-bottom: 2px solid transparent; padding-bottom: 0.1rem; font-size: 0.88rem; display: inline-flex; align-items: center; min-height: 2.75rem; }
.navlink:hover, .navlink[aria-current] { color: var(--ink); border-bottom-color: var(--accent-bright); }
.docline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 64rem) { .docline { display: none; } }
.colophon__rev { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.colophon__foot { max-width: var(--measure); }

/* ---------- home ---------- */

.hero {
  max-width: var(--page); margin: 0 auto; padding: 3rem 1.25rem 1.6rem;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2rem; align-items: center;
}
@media (max-width: 44rem) { .hero { grid-template-columns: 1fr; padding-top: 2rem; } .disc { max-width: 14rem; } }
.hero__title sup { font-size: 0.45em; color: var(--accent); top: -0.9em; position: relative; }
.hero__fn { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin: 0.5rem 0 1.1rem; }
.hero__dek { font-size: 1.16rem; max-width: 34rem; color: var(--ink); margin: 0; }
.disc { display: block; width: 100%; max-width: 20rem; margin: 0 auto; }
.disc text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-soft); }
.disc--small { max-width: 15rem; margin: 2rem 0 0; }
/* The one authored motion on the site: the figure is plotted, not faded in.
   Reduced motion sets the offsets to 0 below, so the drawing is always complete. */
.disc .draw-ring { stroke-dasharray: 604; stroke-dashoffset: 604; animation: draw 1s cubic-bezier(.16, 1, .3, 1) .05s forwards; }
.disc .draw-hair { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s cubic-bezier(.16, 1, .3, 1) .55s forwards; }
.disc .draw-late { opacity: 0; animation: appear .4s ease-out .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.section { max-width: var(--page); margin: 0 auto; padding: 1.2rem 1.25rem 2rem; }
.section > h2 { font-size: 1.45rem; margin: 1.2rem 0 0.88rem; }
.findings { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.findings li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.findings li:first-child { border-top: 2px solid var(--ink); }
.findings p { margin: 0.35rem 0 0; }
.badge-key { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); margin: 0 0 1rem; max-width: 46rem; }
.badge-key p { margin: 0; }
.badge-key__row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.45rem 0 0; padding: 0; list-style: none; }
.badge-key__row li { display: inline-flex; align-items: baseline; }
.badge-key__row .badge { margin-right: 0.3rem; }
.soft { color: var(--ink-soft); }
.note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.cases__foot { max-width: 58rem; margin-top: 1.2rem; }
.board__foot { margin-top: 0.7rem; max-width: 46rem; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 58rem; }
@media (max-width: 44rem) { .cases { grid-template-columns: 1fr; } }
.cases h3 { font-size: 1.05rem; margin: 0 0 0.5rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); }
.cases p { font-size: 0.95rem; margin: 0 0 0.75rem; }
.cases p:last-child { margin: 0; }
.prose .cases { margin: 1.6rem 0 2rem; }
.board { max-width: 46rem; border-top: 2px solid var(--ink); }
.board a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.board a { transition: background-color .15s ease-out; }
.board a:hover { background: var(--panel); }
.board .no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.board .t { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; }
.board .d { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 40rem) { .board a { grid-template-columns: 2.4rem minmax(0, 1fr); } .board .badge { grid-column: 2; justify-self: start; } }

/* ---------- chapter ---------- */

.prose { max-width: var(--measure); margin: 0 auto; padding: 2.6rem 1.25rem 1rem; }
.chapter > .chap-dek + p::first-letter, .chapter > .contents + p::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.1em; float: left;
  line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--accent-bright);
}
.chap-title { font-size: clamp(2.1rem, 5vw, 2.6rem); margin: 0 0 0.4rem; font-weight: 700; }
.chap-title__no { color: var(--accent-bright); margin-right: 0.35em; }
.chap-dek { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 2rem; }
.prose h2 { font-size: 1.4rem; margin: 2.4rem 0 0.75rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); scroll-margin-top: 1.5rem; }
.chapter { position: relative; }
/* Contents rail: the report's table of contents, seated in the wide gutter beside the
   measure. Liquid-built from the chapter's h2s (no JS needed); JS only marks the
   section in view. Hidden until the gutter is wide enough to hold it. */
.contents { display: none; }
@media (min-width: 74rem) {
  .contents { display: block; position: absolute; top: 2.6rem; bottom: 0; left: -14.5rem; width: 12rem; }
  .contents__inner { position: sticky; top: 1.6rem; font-family: var(--font-ui); font-size: 0.8rem; line-height: 1.4; }
  .contents__h { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
  .contents ol { list-style: none; margin: 0; padding: 0; }
  .contents li { border-bottom: 1px solid var(--line); }
  .contents a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.4rem; align-items: baseline; padding: 0.42rem 0; color: var(--ink-soft); text-decoration: none; }
  .contents a:hover { color: var(--ink); }
  .contents .contents__no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
  .contents a[aria-current] { color: var(--ink); }
  .contents a[aria-current] .contents__no { color: var(--accent-bright); }
}
.prose h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
.prose p { margin: 0 0 1.05rem; }
.anchor { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-decoration: none; margin-right: 0.5em; scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0 0 0.4rem; }
.prose .data, .prose table td.num { font-family: var(--font-mono); font-feature-settings: "tnum"; white-space: nowrap; }
.prose table { font-size: 0.95rem; margin: 1.4rem 0; }
.prose th { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.prose td { vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--panel); }
.prose .table-wrap { overflow-x: auto; }
/* Flight log on phones: four columns cannot share 390px, so each flight becomes a
   ruled entry — "FLIGHT 10 · 2025-08-26 · Ship 37" over its outcome. */
@media (max-width: 40rem) {
  .flights, .flights tbody, .flights tr, .flights td { display: block; width: 100%; }
  .flights thead { position: absolute; left: -999px; }
  .flights caption { display: block; }
  .flights tr { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .flights tr:nth-child(even) td { background: transparent; }
  .flights td { border: 0; padding: 0; }
  .flights td:nth-child(-n+3) { display: inline; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
  .flights td:nth-child(1)::before { content: "FLIGHT "; }
  .flights td:nth-child(2)::before, .flights td:nth-child(3)::before { content: " · "; }
  .flights td:nth-child(4) { margin-top: 0.15rem; }
}
.cite { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.tag-stated {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; border: 1px dashed var(--stated);
  color: var(--stated); border-radius: 2px; padding: 0.05rem 0.4rem; white-space: nowrap; vertical-align: 0.1em;
}
.tag-model {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; border: 1px solid var(--unknown);
  color: var(--unknown); border-radius: 2px; padding: 0.05rem 0.4rem; white-space: nowrap; vertical-align: 0.1em;
}
.quote { border-left: 1px solid var(--line); padding-left: 1rem; color: var(--ink-soft); }

figure.diagram { margin: 2.4rem 0; padding: 1.1rem; border: 1px solid var(--line); background: var(--panel); }
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram text { font-size: 12px; }  /* CSS beats the attribute: 12px floor for every label at the measure */
/* Narrow screens: the drawing scales to width, so enlarge the label text in SVG units
   (CSS beats the font-size attribute) — every number stays readable without zoom or scroll. */
@media (max-width: 44rem) { figure.diagram text { font-size: 16px; } figure.diagram text.mob-hide { display: none; } figure.diagram { padding: 0.75rem 0.4rem; } }
figure.diagram figcaption, figure.plate figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.88rem; }
.diagram text { font-family: var(--font-mono); }
.diagram .onbar { fill: var(--paper); }
html.dark .diagram .onbar { fill: #10141A; }
figure.plate { max-width: var(--measure); margin: 1rem auto 0; padding: 0 1.25rem; }
figure.plate .frame { border: 1px solid var(--line); background: var(--panel); }
figure.plate img { display: block; width: 100%; height: auto; }

.verdict { max-width: var(--measure); margin: 2.4rem auto; border: 1px solid var(--line); background: var(--panel); }
@media (max-width: 44rem) { .verdict { margin-left: 1.25rem; margin-right: 1.25rem; } }
.verdict h2 { margin: 0; padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.verdict ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.verdict li { display: flex; gap: 1rem; align-items: baseline; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.verdict li + li { border-top: 1px solid var(--line); }
.verdict .badge { flex-shrink: 0; }

.pager {
  display: flex; justify-content: space-between; gap: 1rem; max-width: var(--measure); margin: 0 auto;
  padding: 1.4rem 1.25rem 2.6rem; border-top: 2px solid var(--ink); font-family: var(--font-ui); font-size: 0.88rem;
}
.pager a { text-decoration: none; color: var(--ink); padding: 0.4rem 0; display: inline-flex; align-items: center; min-height: 2.75rem; }
.pager a:hover { color: var(--accent); }

/* ---------- scorecard ledger ---------- */

.ledger-wrap { width: min(58rem, 100vw - 2.5rem); margin: 1.8rem 0 2.8rem calc(50% - min(29rem, 50vw - 1.25rem)); overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger th:nth-child(1) { width: 31%; }
.ledger th:nth-child(2) { width: 25%; }
.ledger caption { text-align: left; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); padding-bottom: 0.6rem; }
.stamp-key { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.stamp-key ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.45rem 0 0; padding: 0; list-style: none; }
.stamp-key li { display: inline-flex; align-items: baseline; }
.stamp-key .stamp { margin-right: 0.3rem; }
.ledger th { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; text-align: left; padding: 0.55rem 0.75rem; border-bottom: 2px solid var(--ink); }
.ledger td { padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:nth-child(even) td { background: var(--panel); }
.ledger .gate { font-family: var(--font-ui); font-weight: 700; font-size: 0.88rem; }
.ledger small { color: var(--ink-soft); font-size: 0.88rem; }
.stamp { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; padding: 0.16rem 0.5rem 0.12rem; border-radius: 2px; }
.stamp.no { color: var(--paper); background: var(--caution); }
.stamp.none { color: var(--paper); background: var(--unknown); }
.stamp.part { color: var(--paper); background: var(--go); }
.stamp.pend { color: var(--stated); background: transparent; border: 1px dashed var(--stated); }
html.dark .stamp.no, html.dark .stamp.none, html.dark .stamp.part { color: #10141A; }

@media (max-width: 40rem) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger thead { position: absolute; left: -999px; }
  .ledger caption { display: block; }
  .ledger tr { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
  .ledger tr:nth-child(even) td { background: transparent; }
  .ledger td { border: 0; padding: 0.25rem 0; }
  .ledger td:last-child::before { content: "Would flip it: "; font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
}

/* ---------- sources ---------- */
.prose ol.sources { list-style: none; padding-left: 2.6rem; counter-reset: src; }
.sources li { margin-bottom: 0.88rem; position: relative; counter-increment: src; }
.sources li::before { content: counter(src, decimal-leading-zero); position: absolute; left: -2.6rem; top: 0.3em; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.sources .cite { display: block; margin-top: 0.15rem; }
.prose ul.key { list-style: none; padding-left: 0; }
.prose ul.key li { margin-bottom: 0.6rem; }

/* browser surfaces */
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.theme-toggle:hover { border-color: var(--accent-bright); }

/* ---------- colophon ---------- */

.colophon { border-top: 1px solid var(--c-rule); margin-top: 2rem; }
.colophon__inner {
  max-width: var(--page); margin: 0 auto; padding: 2rem 1.25rem 2.5rem;
  font-family: var(--font-ui); font-size: 0.88rem; color: var(--c-muted);
}
.colophon__title { font-family: var(--font-display); color: var(--c-ink); margin: 0 0 0.5rem; }
.colophon__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.colophon__links a { color: var(--c-muted); }
.colophon__foot { margin-top: 1.25rem; }

/* ---------- motion & print floor (non-negotiable) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .disc .draw-ring, .disc .draw-hair { stroke-dashoffset: 0; }
  .disc .draw-late { opacity: 1; }
}

@media print {
  .masthead, .colophon, .theme-toggle, .skip-link, .contents { display: none; }
  body { background: #fff; color: #000; }
}
