/* /record — the claim-record front door.
   Instrument-lab system, ported from the Landing v2 design bundle. Tokens are
   --rc-* scoped so they cannot collide with theme.css or book.css's --bk-*.
   Light mode keys off the same [data-theme] attribute partials/theme-init
   manages. No webfonts: deliberate system stack, so there is no silent
   fallback and no external request under CSP.

   ⚑ DOCTRINE THIS FILE ENFORCES VISUALLY (BOOK_INTEGRATION.md):
   - a MISS renders at identical weight to a HIT; --rc-hit/--rc-miss are
     equal-lightness pairs, never a green win and a muted grey loss
   - waiting/absent states are copper and slate, never error red
   - no glow, gradient, or animation loop anywhere near a number
   - the only motion verbs are settle and print-in, both reduced-motion safe */

:root {
  --rc-bg: #070C0B;
  --rc-surface: #0D1513;
  --rc-sunk: #0A100F;
  --rc-line: #1B2723;
  --rc-firm: #2A3B35;
  --rc-ink: #E9EEEC;
  --rc-ink2: #9CACA6;
  --rc-ink3: #657671;
  --rc-ink4: #47554F;
  /* Equal-lightness pair. A miss weighs exactly what a hit weighs. */
  --rc-hit: #53B896;
  --rc-miss: #D97D71;
  --rc-copper: #D98A5F;
  --rc-slate: #87968F;
  --rc-band: rgba(135, 150, 143, .13);
  --rc-display: ui-serif, Georgia, 'Iowan Old Style', serif;
  --rc-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --rc-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
  --rc-bg: #F7F8F7;
  --rc-surface: #FFFFFF;
  --rc-sunk: #EFF2F0;
  --rc-line: #DCE3E0;
  --rc-firm: #C2CDC8;
  --rc-ink: #101816;
  --rc-ink2: #3D4B46;
  --rc-ink3: #63736D;
  --rc-ink4: #8A9791;
  --rc-hit: #1F7A5A;
  --rc-miss: #B04A3B;
  --rc-copper: #A0552A;
  --rc-slate: #5E6D67;
  --rc-band: rgba(94, 109, 103, .14);
}

.rc-page {
  min-height: 100vh;
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-ink);
  font-family: var(--rc-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Load-bearing: the settle bar translates past the viewport edge. */
  overflow-x: hidden;
  position: relative;
}

.rc-page a { color: var(--rc-ink2); text-decoration: none; }
.rc-page a:hover { color: var(--rc-ink); }
.rc-page ::selection { background: var(--rc-copper); color: var(--rc-bg); }
.rc-page :focus-visible { outline: 2px solid var(--rc-copper); outline-offset: 3px; }

/* ── The ambient field ────────────────────────────────────────────────────
   Six traces, the centre one copper. Decorative and DELIBERATELY UNLABELLED:
   the instant a caption or a readout is attached to it, it becomes fake
   telemetry, which this repo bans by name. It carries no number and no
   number may ever be derived from it. */
#rc-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease .2s;
  pointer-events: none;
}
#rc-field.rc-lit { opacity: .5; }

.rc-shell { position: relative; z-index: 1; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.rc-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding: 22px 40px;
  font-family: var(--rc-mono);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rc-ink3);
}
.rc-nav b { color: var(--rc-ink); font-weight: 600; }
.rc-nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.rc-nav-links a { letter-spacing: .16em; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.rc-hero { padding: 96px 40px 88px; max-width: 1080px; }
.rc-eyebrow {
  font-family: var(--rc-mono);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rc-copper);
  margin-bottom: 26px;
}
.rc-hero h1 {
  font-family: var(--rc-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 28px;
  color: var(--rc-ink);
  max-width: 20ch;
}
.rc-hero h1 em { font-style: italic; color: var(--rc-copper); }
.rc-rule { height: 1px; background: var(--rc-copper); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1) 1.1s; max-width: 340px; }
.rc-page.rc-ready .rc-rule { width: 340px; }
.rc-lede { color: var(--rc-ink2); font-size: 17px; max-width: 62ch; margin: 28px 0 0; }

.rc-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.rc-btn {
  font-family: var(--rc-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 2px; border: 1px solid transparent;
  display: inline-block;
}
.rc-btn-primary { background: var(--rc-copper); color: var(--rc-bg) !important; }
.rc-btn-primary:hover { filter: brightness(1.08); }
.rc-btn-ghost { border-color: var(--rc-firm); color: var(--rc-ink2) !important; }
.rc-btn-ghost:hover { border-color: var(--rc-copper); color: var(--rc-ink) !important; }

/* ── Sections ────────────────────────────────────────────────────────── */
.rc-section { border-top: 1px solid var(--rc-line); padding: 76px 40px; }
.rc-section-sunk { background: var(--rc-sunk); }
.rc-h2 {
  font-family: var(--rc-display); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25;
  margin: 0 0 20px; color: var(--rc-ink); max-width: 26ch;
}
.rc-body { color: var(--rc-ink2); max-width: 64ch; }
.rc-body + .rc-body { margin-top: 14px; }

/* ── The claim record: the artifact ──────────────────────────────────── */
.rc-steps { display: grid; gap: 1px; background: var(--rc-line); border: 1px solid var(--rc-line); margin-top: 34px; }
@media (min-width: 860px) { .rc-steps { grid-template-columns: repeat(4, 1fr); } }
.rc-step { background: var(--rc-surface); padding: 26px 22px; }
.rc-step-k {
  font-family: var(--rc-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rc-copper); margin-bottom: 12px;
}
.rc-step-t { color: var(--rc-ink); font-weight: 600; margin-bottom: 8px; }
.rc-step-d { color: var(--rc-ink3); font-size: 13.5px; }

/* ── Doctrine: equal weight ──────────────────────────────────────────── */
.rc-pair { display: grid; gap: 1px; background: var(--rc-line); border: 1px solid var(--rc-line); margin-top: 34px; }
@media (min-width: 720px) { .rc-pair { grid-template-columns: 1fr 1fr; } }
.rc-card { background: var(--rc-surface); padding: 30px 26px; }
/* ⚑ Identical type scale, identical weight, identical padding. The only
   difference between these two cards is the word and its hue. */
.rc-card-word {
  font-family: var(--rc-mono); font-size: 13px;
  letter-spacing: .26em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 14px;
}
.rc-card-hit .rc-card-word { color: var(--rc-hit); }
.rc-card-miss .rc-card-word { color: var(--rc-miss); }
.rc-card-sub { color: var(--rc-ink3); font-size: 13.5px; }

/* ── The standing number ─────────────────────────────────────────────── */
.rc-standing { margin-top: 30px; }
.rc-figure {
  font-family: var(--rc-mono);
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.02em; color: var(--rc-ink); line-height: 1;
}
.rc-figure-muted { font-family: var(--rc-display); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); color: var(--rc-ink2); line-height: 1.35; max-width: 30ch; }
.rc-meta { font-family: var(--rc-mono); font-size: 12px; letter-spacing: .06em; color: var(--rc-ink3); margin-top: 16px; }
.rc-meta b { color: var(--rc-ink2); font-weight: 500; }
.rc-against { color: var(--rc-copper); }

/* ── Seal ────────────────────────────────────────────────────────────── */
.rc-seal-clock { font-family: var(--rc-mono); font-size: clamp(22px, 3vw, 32px); color: var(--rc-copper); letter-spacing: .04em; margin-top: 8px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.rc-foot {
  border-top: 1px solid var(--rc-line);
  padding: 34px 40px 60px;
  font-family: var(--rc-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--rc-ink4);
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}

/* ── Motion: settle and print-in only, and never near a number ───────── */
.rc-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rc-page.rc-ready .rc-reveal { opacity: 1; transform: none; }
.rc-late { opacity: 0; transition: opacity .7s ease 1.5s; }
.rc-page.rc-ready .rc-late { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  /* ⚑ Everything reaches its END STATE, nothing is left hidden. The design
     bundle's version left the settle bar in the DOM as a static bar under
     animation:none; here the bar is omitted server-side instead. */
  .rc-page *, .rc-page *::before, .rc-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .rc-reveal, .rc-late { opacity: 1; transform: none; }
  .rc-rule { width: 340px; }
  #rc-field { opacity: .5; }
}
