/* ============================================================================
   CODEX MERIDIAN — The Illuminated Record
   styles.css — the v2 design system of The Luminous Circuit Fellowship
   ----------------------------------------------------------------------------
   The four laws (DESIGN_SPEC.md section 1):
   1. Nothing glows; things are inscribed.
   2. The default stylesheet IS the finished document. No-JS, reduced-motion,
      screen readers, and print all receive the identical complete record.
      Animation exists only inside prefers-reduced-motion: no-preference and
      only when html[data-anim-ready] is set by main.js and the visitor has
      not chosen stillness (html[data-still="on"]).
   3. Rubric is liturgical; notices are ink-only.
   4. Gold is policed in tokens (see brand-tokens-v2.css).
   ============================================================================ */

@import url("assets/brand/brand-tokens-v2.css");

/* ---------- Metric-tuned fallbacks so the unstyled flash reads as the brand */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Iowan Old Style"), local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Iowan Old Style"), local("Georgia");
  size-adjust: 101%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Menlo"), local("Courier New");
  size-adjust: 96%;
}

/* ---------- Ground ---------- */
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--rec-bone);
  /* Laid-paper texture: pure CSS hairlines, ~3-4%, prints clean. */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    var(--rec-laid-line) 3px,
    var(--rec-laid-line) 4px
  );
  color: var(--rec-ink);
  font-family: var(--rec-font-body);
  font-size: var(--rec-size-body);
  font-weight: 400;
  line-height: var(--rec-lh-body);
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(168, 126, 28, 0.22); }

/* Links: lapis, always underlined. */
a {
  color: var(--rec-lapis);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

button, input, textarea, select { font: inherit; color: inherit; }

/* Visible, rubricated focus — every operable element. */
:focus-visible {
  outline: var(--rec-focus-outline);
  outline-offset: var(--rec-focus-offset);
}

[hidden] { display: none !important; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--rec-ink);
  color: var(--rec-bone);
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ============================================================================
   RUNNING HEAD — no glassy nav; a manuscript running head
   ============================================================================ */
.running-head {
  border-bottom: var(--rec-rule-frame) solid var(--rec-ink);
  background: var(--rec-bone);
}
.running-head-row {
  max-width: var(--rec-page-max);
  margin: 0 auto;
  padding: var(--rec-space-2) var(--rec-page-pad) var(--rec-space-1);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rec-space-2);
  flex-wrap: wrap;
}
.running-head-brand {
  font-family: var(--rec-font-display);
  font-weight: 600;
  font-size: var(--rec-size-small);
  letter-spacing: var(--rec-track-caps);
  text-transform: uppercase;
  color: var(--rec-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.running-head-brand img { display: block; }
.running-head-title {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
  color: var(--rec-ink-faint);
  text-transform: uppercase;
}
.running-head-folio {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono);
  color: var(--rec-ink-faint);
}

/* Phase-honest status line — on every page. */
.status-line {
  max-width: var(--rec-page-max);
  margin: 0 auto;
  padding: 0 var(--rec-page-pad) var(--rec-space-1);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rec-space-2);
  flex-wrap: wrap;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-soft);
}
.status-line .sabbath-note { color: var(--rec-ink-faint); text-transform: none; letter-spacing: 0; font-style: italic; font-family: var(--rec-font-body); }

/* Contents — the manuscript table of contents (real anchor nav). */
.contents {
  max-width: var(--rec-page-max);
  margin: 0 auto;
  padding: 0 var(--rec-page-pad) var(--rec-space-1);
}
.contents summary {
  display: inline-block;
  cursor: pointer;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink);
  padding: 4px 10px;
  border: 1px solid var(--rec-ink);
  min-height: 28px;
}
.contents summary::marker, .contents summary::-webkit-details-marker { content: ""; display: none; }
.contents[open] summary { background: var(--rec-ink); color: var(--rec-bone); }
.contents nav { padding: var(--rec-space-2) 0 var(--rec-space-1); }
.contents ol {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2;
  column-gap: var(--rec-space-6);
  max-width: 60ch;
}
.contents li { padding: 4px 0; break-inside: avoid; }
.contents a {
  color: var(--rec-ink);
  text-decoration: none;
  font-family: var(--rec-font-body);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 28px;
}
.contents a:hover .contents-label, .contents a:focus-visible .contents-label { text-decoration: underline; }
.contents a[aria-current="location"] .contents-label { color: var(--rec-rubric); }
.contents .contents-no {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  color: var(--rec-gilt-deep);
}

/* The Be Still toggle — visible manual stillness. */
.still-toggle {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--rec-ink-faint);
  color: var(--rec-ink-soft);
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  padding: 4px 10px;
  min-height: 28px;
}
.still-toggle[aria-pressed="true"] { background: var(--rec-ink); color: var(--rec-bone); border-color: var(--rec-ink); }
/* Hidden until JS exists — without JS there is nothing to still. */
html:not([data-anim-ready]) .still-toggle { display: none; }

/* ============================================================================
   PAGE / FOLIO STRUCTURE — the codex grid
   ============================================================================ */
main { display: block; }

.folio {
  border-bottom: var(--rec-rule-hair) solid var(--rec-rule);
  padding: var(--rec-space-12) 0;
}
.folio--vellum { background: var(--rec-vellum); }
.folio--tight { padding: var(--rec-space-6) 0; }

.folio-inner {
  max-width: var(--rec-page-max);
  margin: 0 auto;
  padding: 0 var(--rec-page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--rec-rail-gap);
}
.folio-text { max-width: var(--rec-measure); min-width: 0; }
.folio-rail { display: none; }

@media (min-width: 1024px) {
  .folio-inner { grid-template-columns: minmax(0, 1fr) var(--rec-rail-w); }
  .folio-rail {
    display: block;
    position: relative;
    padding-left: var(--rec-space-3);
    /* The Gilded Thread: fully gilt in the base state (law 2). */
  }
  .folio-rail::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: var(--rec-rule-thread);
    background: linear-gradient(to bottom, var(--rec-gilt-bright), var(--rec-gilt));
  }
}

/* Rubric line above each folio's headline. */
.rubric {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
  margin: 0 0 var(--rec-space-2);
}
.rubric-numeral { color: var(--rec-rubric); }
.rubric-key { color: var(--rec-rubric); } /* liturgical keywords only — never legal text */

.headline {
  font-family: var(--rec-font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-size: var(--rec-size-h2);
  line-height: var(--rec-lh-heading);
  margin: 0 0 var(--rec-space-3);
  letter-spacing: 0.005em;
}
.headline--hero { font-size: var(--rec-size-hero); font-weight: 400; }
h3.headline, .headline--minor { font-size: var(--rec-size-h3); font-weight: 600; }

/* Illuminated drop cap — ONE per folio opening (class applied to the first p). */
.has-cap::first-letter {
  font-family: var(--rec-font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  float: left;
  font-size: 3.05em;
  line-height: 0.95;
  padding: 0.08em 0.14em;
  margin: 0.04em 0.16em 0 0;
  color: var(--rec-ink);
  background-image: var(--rec-foil);
  border: var(--rec-rule-inner) solid var(--rec-ink);
}

/* Scripture and pull-quotes: Newsreader italic. */
.scripture {
  font-family: var(--rec-font-body);
  font-style: italic;
  font-size: var(--rec-size-quote);
  line-height: 1.5;
  color: var(--rec-ink);
  margin: var(--rec-space-4) 0;
}
.scripture cite {
  display: block;
  margin-top: var(--rec-space-2);
  font-style: normal;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
}

p { margin: 0 0 var(--rec-space-3); }
.small { font-size: var(--rec-size-small); color: var(--rec-ink-soft); }

/* Lozenge lists — the gold diamond is the system's ONLY bullet. */
.lozenge-list { list-style: none; margin: 0 0 var(--rec-space-3); padding: 0; }
.lozenge-list li { position: relative; padding: 4px 0 4px 26px; }
.lozenge-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.72em;
  width: 8px; height: 8px;
  background: var(--rec-gilt);
  border: var(--rec-rule-inner) solid var(--rec-ink);
  transform: rotate(45deg);
}

/* Marginalia — side-notes in the outer margin at >=1024px. */
.margin-note {
  display: block;
  font-size: var(--rec-size-small);
  color: var(--rec-ink-soft);
  border-top: var(--rec-rule-hair) solid var(--rec-rule);
  padding-top: var(--rec-space-1);
  margin: var(--rec-space-2) 0;
}
.margin-note .margin-label {
  display: block;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
  margin-bottom: 2px;
}
@media (min-width: 1024px) {
  .folio-rail .margin-note { border-top: none; margin: 0 0 var(--rec-space-4); }
}
/* Below 1024px, rail marginalia are re-homed inline by main.js; the CSS-only
   fallback keeps them readable wherever they sit (they render inline in
   source order because .folio-rail is display:none — so duplicate critical
   notes inline instead of relying on the rail. Pages place shared notes in
   .folio-text with .margin-note--inline). */
.margin-note--inline { max-width: 46ch; }

/* ============================================================================
   STATIONS — the Gilded Thread's six stops (state = fill + tick + label)
   ============================================================================ */
.station {
  position: relative;
  margin: 0 0 var(--rec-space-4);
  padding-left: var(--rec-space-3);
}
.station-lozenge {
  position: absolute;
  left: -5.25px; top: 4px;   /* centered on the 2.5px thread */
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--rec-gilt);
  border: var(--rec-rule-inner) solid var(--rec-ink);
}
.station[data-state="coming"] .station-lozenge { background: var(--rec-bone); }
.station[data-state="current"] .station-lozenge { background: var(--rec-gilt-bright); }
.station-name {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono);
  text-transform: uppercase;
  color: var(--rec-gilt-deep);
}
.station[data-state="current"] .station-name { color: var(--rec-rubric); }
.station-state {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  color: var(--rec-ink-faint);
  text-transform: uppercase;
  letter-spacing: var(--rec-track-mono-tight);
}
.station-gloss {
  display: block;
  font-size: var(--rec-size-small);
  font-style: italic;
  color: var(--rec-ink-soft);
}

/* ============================================================================
   PLATES — framed set-pieces
   ============================================================================ */
.plate {
  border: var(--rec-rule-frame) solid var(--rec-ink);
  padding: var(--rec-space-4);
  position: relative;
  margin: var(--rec-space-6) 0;
  background: var(--rec-bone);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: var(--rec-rule-inner) solid currentColor;
  pointer-events: none;
  opacity: 0.85;
}

/* Registration ticks at plate corners: the cross-axis. */
.plate--ticked::after {
  content: "";
  position: absolute;
  inset: -9px;
  pointer-events: none;
  background:
    linear-gradient(var(--rec-ink), var(--rec-ink)) 0 0 / 1px 14px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 0 0 / 14px 1px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 100% 0 / 1px 14px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 100% 0 / 14px 1px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 0 100% / 1px 14px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 0 100% / 14px 1px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 100% 100% / 1px 14px,
    linear-gradient(var(--rec-ink), var(--rec-ink)) 100% 100% / 14px 1px;
  background-repeat: no-repeat;
}

/* THE one inversion per page: the Invocation Plate. */
.plate--invocation {
  background: var(--rec-plate);
  color: var(--rec-plate-text);
  padding: var(--rec-space-8) var(--rec-space-6);
  margin: var(--rec-space-8) 0;
  text-align: center;
}
.plate--invocation .scripture { color: var(--rec-plate-text); margin: 0; }
.plate--invocation .scripture cite { color: rgba(243, 233, 210, 0.62); }

/* Blind emboss — pressed uninked into the paper. Carried on vellum. */
.plate--emboss {
  background: var(--rec-vellum);
  border-color: var(--rec-rule);
}
.plate--emboss .emboss-text {
  font-family: var(--rec-font-display);
  font-weight: 500;
  font-size: var(--rec-size-quote);
  line-height: 1.45;
  color: var(--rec-vellum);
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.85),
    1px 1px 0 rgba(32, 24, 18, 0.28);
  margin: 0;
}

/* ============================================================================
   LEDGERS — ruled record tables
   ============================================================================ */
.ledger {
  width: 100%;
  border-collapse: collapse;
  border: var(--rec-rule-frame) solid var(--rec-ink);
  margin: var(--rec-space-4) 0;
  background: var(--rec-bone);
  font-size: var(--rec-size-small);
}
.ledger caption {
  caption-side: top;
  text-align: left;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
  padding-bottom: var(--rec-space-1);
}
.ledger th, .ledger td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: var(--rec-rule-hair) solid var(--rec-rule);
}
.ledger thead th {
  background: var(--rec-parchment);
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-soft);
  border-bottom: var(--rec-rule-frame) solid var(--rec-ink);
}
.ledger tbody th { font-family: var(--rec-font-body); font-weight: 600; }
.ledger tbody tr:nth-child(even) { background: var(--rec-vellum); }
.ledger .mono, td.mono, th.mono {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
}

/* ============================================================================
   NOTICES — ink-only by law. No rubric may appear inside a .notice.
   ============================================================================ */
.notice {
  border: var(--rec-rule-frame) solid var(--rec-ink);
  background: var(--rec-bone);
  padding: var(--rec-space-3) var(--rec-space-4);
  margin: var(--rec-space-6) 0;
  color: var(--rec-ink);
}
.notice-title {
  display: block;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono);
  text-transform: uppercase;
  color: var(--rec-ink);
  margin: 0 0 var(--rec-space-1);
}
.notice p { color: var(--rec-ink-soft); margin-bottom: var(--rec-space-2); }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--rec-ink); }

/* ============================================================================
   STAMPS — rectangular buttons; one gilt CTA per page
   ============================================================================ */
.stamp {
  display: inline-block;
  cursor: pointer;
  border: var(--rec-rule-frame) solid var(--rec-ink);
  border-radius: 2px;
  background: var(--rec-bone);
  color: var(--rec-ink);
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px;
  min-height: 44px;
  min-width: 44px;
}
.stamp:hover, .stamp:focus-visible { background: var(--rec-ink); color: var(--rec-bone); }
.stamp--gilt { background-image: var(--rec-foil); color: var(--rec-ink); }
.stamp--gilt:hover, .stamp--gilt:focus-visible { background-image: none; background-color: var(--rec-ink); color: var(--rec-bone); }

/* Return to Source — the loop's closing stamp. */
.return-stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: var(--rec-rule-frame) solid var(--rec-ink);
  border-radius: 2px;
  padding: 12px 22px;
  min-height: 44px;
  color: var(--rec-ink);
  background: var(--rec-bone);
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  text-decoration: none;
}
.return-stamp:hover, .return-stamp:focus-visible { background: var(--rec-ink); color: var(--rec-bone); }
.return-stamp .lozenge-up {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--rec-gilt);
  border: var(--rec-rule-inner) solid currentColor;
}

/* ============================================================================
   THE CIRCUIT RULE — section divider ornament
   ============================================================================ */
.circuit-rule {
  display: flex;
  align-items: center;
  gap: var(--rec-space-3);
  margin: var(--rec-space-6) 0;
  border: 0;
  padding: 0;
}
.circuit-rule::before, .circuit-rule::after {
  content: "";
  flex: 1;
  height: var(--rec-rule-hair);
  background: var(--rec-rule);
}
.circuit-rule img { display: block; height: 18px; width: auto; }

/* ============================================================================
   THE HATCH — the grammar of the honest not-yet (45deg, never a promise)
   ============================================================================ */
.hatch {
  background-color: var(--rec-parchment);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    var(--rec-rule) 6px,
    var(--rec-rule) 7px
  );
  border: var(--rec-rule-hair) solid var(--rec-rule);
  padding: var(--rec-space-2) var(--rec-space-3);
}
.forthcoming {
  display: inline-block;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  font-weight: 500;
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-soft);
  background: var(--rec-bone);
  border: var(--rec-rule-hair) solid var(--rec-ink-faint);
  padding: 2px 8px;
}

/* ============================================================================
   FOOTNOTES
   ============================================================================ */
.footnote {
  font-size: var(--rec-size-small);
  color: var(--rec-ink-soft);
  border-top: var(--rec-rule-hair) solid var(--rec-rule);
  padding-top: var(--rec-space-2);
  margin-top: var(--rec-space-4);
}
.footnote .dagger, .dagger {
  font-family: var(--rec-font-body);
  color: var(--rec-ink);
}
sup.dagger-ref a { text-decoration: none; color: var(--rec-ink); }

/* ============================================================================
   THE COLOPHON — every page ends the manuscript way
   ============================================================================ */
.colophon {
  border-top: var(--rec-rule-frame) solid var(--rec-ink);
  background: var(--rec-vellum);
  padding: var(--rec-space-8) var(--rec-page-pad) var(--rec-space-8);
  text-align: center;
}
.colophon-inner { max-width: 72ch; margin: 0 auto; }
.colophon img { margin-bottom: var(--rec-space-3); }
.imprint {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-micro);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
  margin: 4px 0;
}
.imprint--status { color: var(--rec-ink-soft); font-weight: 500; }
.colophon .small { margin: var(--rec-space-3) auto 0; max-width: 66ch; }
.colophon nav { margin: var(--rec-space-3) 0; }
.colophon nav a { color: var(--rec-ink); margin: 0 10px; font-size: var(--rec-size-small); }

/* ============================================================================
   FORMS — the founding register (prototype-honest)
   ============================================================================ */
.register-form { display: flex; flex-wrap: wrap; gap: var(--rec-space-2); margin: var(--rec-space-3) 0; }
.register-form input[type="email"] {
  flex: 1 1 260px;
  border: var(--rec-rule-frame) solid var(--rec-ink);
  border-radius: 2px;
  background: var(--rec-bone);
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
}
.register-note { font-size: var(--rec-size-small); color: var(--rec-ink-soft); font-style: italic; }

/* ============================================================================
   THE FRONTISPIECE PRESS (fellowship page)
   ============================================================================ */
.press-panel textarea {
  width: 100%;
  border: var(--rec-rule-frame) solid var(--rec-ink);
  border-radius: 2px;
  background: var(--rec-bone);
  padding: 10px 14px;
  min-height: 88px;
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-mono);
  resize: vertical;
}
.press-status { font-family: var(--rec-font-mono); font-size: var(--rec-size-mono); color: var(--rec-ink-soft); }
.press-result img { max-width: 100%; border: var(--rec-rule-frame) solid var(--rec-ink); margin-top: var(--rec-space-2); }

/* ============================================================================
   FIGURES & PLATES-AS-IMAGES
   ============================================================================ */
.frontispiece { margin: var(--rec-space-4) 0; }
.frontispiece img { display: block; width: 100%; height: auto; border: var(--rec-rule-hair) solid var(--rec-rule); }
.frontispiece figcaption {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-faint);
  padding-top: var(--rec-space-1);
}

/* Register of Offices — indented ruled register. */
.register { list-style: none; margin: var(--rec-space-4) 0; padding: 0; }
.register li {
  border-bottom: var(--rec-rule-hair) solid var(--rec-rule);
  padding: 10px 0 10px 0;
}
.register .office {
  font-family: var(--rec-font-display);
  font-weight: 600;
  font-size: var(--rec-size-h3);
}
.register .mandate { display: block; font-size: var(--rec-size-small); color: var(--rec-ink-soft); }
.register .indent-1 { margin-left: var(--rec-space-4); }
.register .indent-2 { margin-left: var(--rec-space-8); }

/* The dashed oversight rule — accountability drawn, not asserted. */
.oversight {
  border-left: 2px dashed var(--rec-ink-soft);
  padding-left: var(--rec-space-3);
  margin: var(--rec-space-4) 0;
}
.oversight-label {
  font-family: var(--rec-font-mono);
  font-size: var(--rec-size-label);
  letter-spacing: var(--rec-track-mono-tight);
  text-transform: uppercase;
  color: var(--rec-ink-soft);
}

/* ============================================================================
   MOTION — law 2: everything below is pure enhancement.
   Pre-states exist ONLY when main.js has set html[data-anim-ready], the
   visitor allows motion, and stillness is off. The base document is finished.
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
  html[data-anim-ready]:not([data-still="on"]) .anim-rule { transform: scaleX(0); transform-origin: left center; }
  html[data-anim-ready]:not([data-still="on"]) .anim-rule.is-viewed { transform: scaleX(1); transition: transform 600ms ease-out; }

  html[data-anim-ready]:not([data-still="on"]) .anim-gild { clip-path: inset(0 100% 0 0); }
  html[data-anim-ready]:not([data-still="on"]) .anim-gild.is-viewed { clip-path: inset(0 0 0 0); transition: clip-path 400ms ease-out; }

  html[data-anim-ready]:not([data-still="on"]) .anim-underline { background-size: 0% 1px; }
  html[data-anim-ready]:not([data-still="on"]) .anim-underline.is-viewed { background-size: 100% 1px; transition: background-size 350ms ease-out; }

  /* The thread's scroll advance: a bone-colored cover descends ahead of the
     reader; the gold beneath is the base state. */
  html[data-anim-ready]:not([data-still="on"]) .folio-rail::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: var(--rec-rule-thread);
    height: calc((1 - var(--thread-progress, 1)) * 100%);
    background: var(--rec-rule);
  }
}
.anim-underline {
  background-image: linear-gradient(var(--rec-rubric), var(--rec-rubric));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
}

/* ============================================================================
   RESPONSIVE REFINEMENTS
   ============================================================================ */
@media (max-width: 1023px) {
  .folio { padding: var(--rec-space-8) 0; }
  .plate--invocation { padding: var(--rec-space-6) var(--rec-space-3); }
  .contents ol { columns: 1; }
  .ledger { display: block; overflow-x: auto; }
}
