@charset "UTF-8";
/**
 * Petrichor — Register Layer
 * Three registers, one surface:
 *   day: the hall (Starlight whitewash, Mars terracotta) — all non-siege routes
 *   night: /siege/* (sepia-ink warm dark, beacon amber) — the room that remembers
 *   dusk: the crossing (gold, reserved, ceremonial, 2000ms) — the fade between hall and siege
 *
 * Swap via data-register="day" | "night" | "dusk" on <html> (the Document
 * emits data-register; jsx/document.tsx is the writer). The legacy
 * data-theme attribute remains matched as a compat alias — scoped
 * surfaces (scriptorium, the lab) still hang it on container divs.
 * The dusk crossing is a .dusk-crossing class added to <html> during register transitions.
 * Source: STYLE-CRIB.md §The registers + WIND-SAND-AND-STARLIGHT.md §II.
 *
 * Typography canon (A16, Chicago 2026-09-07):
 *   --font-display    Didact Gothic           nav, markings, labels (400 only — NEVER weight)
 *   --font-body       Atkinson Hyperlegible   chat, threads, UI reading (BOUNDED UPWARD — large type never body)
 *   --font-editorial  Newsreader Display      ceremony, long-form, letter-from-home
 *   --font-mono       IBM Plex Mono           instruments, telemetry, provenance (Plex binder: neutral canon, SQUARE as NIGHT livery)
 * Banned: Inter, Roboto, Arial, Space Grotesk, Instrument Serif, Geist, DM Sans.
 * Neutrality = the token contract: components declare VOICE, host resolves face.
 */
[data-register="day"],
[data-theme=day] {
  --bg: #F4EDE4;
  --bg-panel: #ECE5DB;
  --bg-panel-alt: #E5DDD2;
  --bg-surface: #F9F5F0;
  --ink: #3D3428;
  --ink-muted: #7A6E64;
  --ink-faint: #A89E94;
  --accent: #C87349;
  --accent2: #7A8B6F;
  --accent3: #4A6FA5;
  --band-hot: #C0392B;
  --band-warm: #D9A441;
  --band-cooling: #7A8B6F;
  --band-cold: #A89E94;
  --border: #D5CCC0;
  --border-focus: #C87349;
  --status-live: #4A7C59;
  --status-sample:#A89E94;
  --shadow: rgba(74, 55, 40, 0.15);
  /* Typography canon (A16). The hall: cream daylight, every face lands. */
  --font-display: "Didact Gothic", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-editorial: "Newsreader Display", "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  color-scheme: light;
}

[data-register="night"],
[data-theme=night] {
  --bg: #14100C;
  /* Panels warmed one step — the beige-ward value law (STYLE-BIBLE §3.1 ● ratify) */
  --bg-panel: #1F1A12;
  --bg-panel-alt: #272115;
  --bg-surface: #2A2418;
  /* sepia-ink: headlines on night ground (bible token; --ink keeps its name) */
  --ink: #E8E0D0;
  /* sepia-body — the "lighter body" ruling in token form (bible §3.1; lifts #A89E8E) */
  --ink-muted: #C7BB9F;
  /* lifted ink-faint (bible §3.2 meta row) */
  --ink-faint: #857A6A;
  --accent: #D4A017;
  --accent2: #4A6FA5;
  --accent3: #7A8B6F;
  /* rust-warning warmed off #C0392B — failure/alarm ONLY (bible §3.1) */
  --band-hot: #B85C38;
  --band-warm: #D4A017;
  --band-cooling: #5D737E;
  --band-cold: #565B52;
  --border: #2E2818;
  --border-focus: #D4A017;
  /* fern-green — the ONE green; retires the wild #4ADE80 (bible §3.1) */
  --status-live: #7FA05F;
  --status-sample:#A89E8E;
  --shadow: rgba(0, 0, 0, 0.4);
  /* ── Bible-named naturalism tokens (STYLE-BIBLE §3.1 ● ratify) ── */
  --sepia-ink: #E8E0D0;
  --sepia-body: #C7BB9F;
  --aged-paper: #BDA68C;
  --specimen-ink: #2A1E0E;
  --beacon-amber: #D4A017;
  --moth-amber: #93714E;
  --fern-green: #7FA05F;
  --lichen: #817848;
  --moss-olive: #6B6E3B;
  --rust-warning: #B85C38;
  --watchtower-steel: #5F86AB;
  --walnut: #4E342E;
  --hairline: #2A251D;
  /* Typography canon (A16). The room that remembers: war-wing livery.
     Plex binder stays SQUARE — neutral canon across registers. */
  --font-display: "Didact Gothic", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-editorial: "Newsreader Display", "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "GohuFont Mono", "JetBrains Mono", monospace;
  color-scheme: dark;
}

html.dusk,
[data-register="dusk"] {
  --bg: #C8B88A;
  --ink: #3D3428;
  --accent: #D9A441;
  --accent2: #D9A441;
  --border: #D9A441;
  --border-focus: #D9A441;
  /* Typography canon inherited — the crossing carries the same voices. */
  --font-display: "Didact Gothic", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-editorial: "Newsreader Display", "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "GohuFont Mono", "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================================
   THE PAPER FLOOR — the paint law (fail-safe; Crown ruling 2026-10-01)
   The paper ALWAYS paints. html and body carry a solid-color floor whose
   var() chain terminates in a literal — a broken register, a dead token
   sheet, a missing asset degrades to readable paper, NEVER to
   transparency. Ghost text (night ink on browser-white) is a bug class,
   not a style. Background imagery layers ABOVE this floor; it can never
   be the only source of the backdrop.
   Chain: register --bg → composed-plain --ground → literal day paper.
   ============================================================================ */
html {
  background-color: var(--bg, var(--ground, #F4EDE4));
  /* The dusk crossing: 2000ms transition between registers */
  transition: background-color 2000ms ease, color 2000ms ease;
}

body {
  background-color: var(--bg, var(--ground, #F4EDE4));
  /* THE IMAGERY SEAM — the asset pass (maps + backgrounds via image
     generation) plugs in ABOVE the solid floor by setting --surface-image
     per register (a url() or comma-separated layer list) in a register-
     scoped block or a later sheet. A 404 image paints nothing; the floor
     below always shows. The floor is never the imagery's job. */
  background-image: var(--surface-image, none);
  color: var(--ink, #3D3428);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 2000ms ease, color 2000ms ease;
}

/* The building — Didact Gothic (400 only). Hierarchy by tracking & light, NEVER weight. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Ceremony — Newsreader display cuts for headings (the long-form voice on display). */
h1, h2 {
  font-family: var(--font-editorial);
  letter-spacing: 0.02em;
}

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

a:hover {
  text-decoration: underline;
}

/* The needles — IBM Plex Mono (Plex binder: neutral canon across all registers). */
code, pre, .mono, .telemetry {
  font-family: var(--font-mono);
  background: var(--bg-panel);
  color: var(--ink);
}

pre {
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

/* ============================================================================
   The struts — walnut grid lines, timber on plaster
   ============================================================================ */
.strut {
  border: 2px solid #4E342E;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.strut-grid {
  background-image: linear-gradient(#4E342E 2px, transparent 2px), linear-gradient(90deg, #4E342E 2px, transparent 2px);
  background-size: 2rem 2rem;
  opacity: 0.08;
}

/* ============================================================================
   Eroded corners — tumbled by time
   ============================================================================ */
.eroded {
  border-radius: 12px;
}

.eroded-sm {
  border-radius: 8px;
}

/* ============================================================================
   Stucco texture — kills the flat-design void (3-5% opacity)
   Applied as a data-URI SVG noise overlay
   ============================================================================ */
.stucco {
  position: relative;
}

.stucco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.stucco > * {
  position: relative;
  z-index: 1;
}

/* ============================================================================
   Font utility classes (the four voices) — bound to --font-* tokens
   so the register layer resolves the face. Components declare VOICE,
   the host resolves the family.
   ============================================================================ */
.voice-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.voice-body {
  font-family: var(--font-body);
}

.voice-editorial {
  font-family: var(--font-editorial);
  text-transform: capitalize;
}

.voice-mono {
  font-family: var(--font-mono);
}

/* Legacy aliases — kept for pages that pre-date the A16 ruling.
   These all resolve to the same four tokens. Retire once the surface
   is rebuilt; the bridge prevents 404s in the meantime. */
.voice-building {  /* → voice-display */
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.voice-scribe {  /* → voice-editorial (display cuts are the canonical ceremony face) */
  font-family: var(--font-editorial);
}
.voice-ceremony {  /* → voice-editorial */
  font-family: var(--font-editorial);
  text-transform: capitalize;
}
.voice-needles {  /* → voice-mono */
  font-family: var(--font-mono);
}

/* ============================================================================
   Register-aware component tokens
   ============================================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}


.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

/* Beacon pulse — night register only */
@keyframes beacon-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.beacon {
  color: var(--accent);
  animation: beacon-pulse 3s ease-in-out infinite;
}

/* Watchtower — night-only vigilance accent */
.watchtower {
  border-left: 3px solid var(--accent2);
}


/* Space Maximalization Settings - For Horror Vacui */
.vacui .card {
  padding: 0.75rem;
  border-radius: 4px;
}

/* ============================================================================
   THE FIELD-NOTEBOOK KIT LAYER — STYLE-BIBLE §3.3/§3.4 (CROWN-RATIFIED 2026-09-16)
   Four reusable instruments: the quiet null, the capsule, the weighted action,
   the booktabs table. Rooms CONSUME these; none re-derives them.
   All colors ride tokens — the register resolves the values.
   ============================================================================ */

/* ── The quiet null (§3.4): every empty state is a sentence, mono 11, faint.
   Nothing fabricates; an empty drawer is labeled "quiet", not hidden. ── */
.quiet-null {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ── The capsule (§3.4): mono 10 caps 0.1em, 1px source-tinted border,
   12% source-tint fill, 4px radius — a specimen label, not a SaaS chip.
   Source tints: fleet = lichen, ops = beacon-amber, rain = fern,
   observer = watchtower-steel; alarm = rust (true alarms only);
   quiet = the unlabeled rest. Text mixes toward sepia-body so every
   tint clears 4.5:1 at 10px (computed 2026-09-17). ── */
.capsule {
  --cap-tint: var(--ink-faint);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--cap-tint) 55%, var(--sepia-body, var(--ink)));
  background: color-mix(in srgb, var(--cap-tint) 12%, transparent);
  color: color-mix(in srgb, var(--cap-tint) 45%, var(--sepia-body, var(--ink)));
  white-space: nowrap;
}
.capsule-fleet    { --cap-tint: var(--lichen); }
.capsule-ops      { --cap-tint: var(--beacon-amber, var(--accent)); }
.capsule-rain     { --cap-tint: var(--fern-green, var(--status-live)); }
.capsule-observer { --cap-tint: var(--watchtower-steel); }
.capsule-alarm    { --cap-tint: var(--rust-warning, var(--band-hot)); }
.capsule-quiet    { --cap-tint: var(--ink-faint); }

/* ── The weighted action (§3.4): three tiers, visibly unequal.
   Benign = ghost. Consequential = aged-paper fill, specimen-ink text.
   Destructive = rust outline + a confirm step (the host wiring arms it).
   No three equal ghosts, ever. ── */
.act {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
}
.act:focus-visible {
  outline: 1px solid var(--beacon-amber, var(--border-focus));
  outline-offset: 2px;
}
.act:disabled { opacity: 0.45; cursor: default; }
.act-ghost:hover { border-color: var(--moth-amber); color: var(--ink); background: color-mix(in srgb, var(--aged-paper, var(--ink)) 4%, transparent); }
.act-paper {
  background: var(--aged-paper, var(--ink));
  color: var(--specimen-ink, var(--bg));
  border-color: var(--aged-paper, var(--ink));
}
.act-paper:hover { background: color-mix(in srgb, var(--aged-paper, var(--ink)) 88%, var(--specimen-ink, black)); }
.act-rust {
  border-color: var(--rust-warning, var(--band-hot));
  color: var(--rust-warning, var(--band-hot));
  background: transparent;
}
.act-rust:hover { background: color-mix(in srgb, var(--rust-warning, var(--band-hot)) 12%, transparent); }
/* The armed moment of the dual-key ceremony: the destructive key is halfway
   turned. The host wiring toggles [data-armed]; the label swap is CSS-only. */
.act-rust.act-armed {
  background: var(--rust-warning, var(--band-hot));
  color: var(--bg);
}

/* ── Booktabs (§3.3): 2px walnut above, 1px under the head, hairline row
   separators, 2px walnut below, row height ≥32. The specimen table's rules. ── */
.booktabs {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--walnut, var(--border));
  border-bottom: 2px solid var(--walnut, var(--border));
}
.booktabs thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--walnut, var(--border));
}
.booktabs tbody td {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline, var(--border));
  vertical-align: baseline;
  overflow-wrap: anywhere;
}
.booktabs tbody tr:last-child td { border-bottom: none; }

/* ── Section-head voices (§3.2): a room picks ONE and keeps it — never both.
   .head-monocaps — the cartouche line (instruments rooms).
   .head-serifsc — serif small caps (reading rooms). ── */
.head-monocaps {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.head-serifsc {
  font-family: var(--font-editorial);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}

/*# sourceMappingURL=theme.css.map */
