/* tokens.css — the single source of palette, type, and motion knobs.
   Gothic / candlelit. Dark ground, bone text, amber candle, dried-blood accent,
   a sparing sickly green. WCAG-AA contrast checked for body text on --bg. */

:root {
  /* ground */
  --bg:        #0b0a0c;   /* near-black, faintly warm */
  --bg-2:      #141110;   /* raised panel ground */
  --panel:     rgba(20, 17, 15, 0.66);
  --border:    #2b2723;
  --border-2:  #3a342d;

  /* ink */
  --text:      #ddd6c8;   /* bone / parchment */
  --text-dim:  #b8b0a2;
  --muted:     #8c8578;   /* ash */
  --faint:     #5f594f;

  /* accents */
  --candle:    #d8a24a;   /* amber candlelight — primary accent */
  --candle-ink:#140d04;   /* text on candle fills */
  --bile:      #8a9a63;   /* sickly green — sparing, for unease */
  --blood:     #8c352b;   /* dried-blood rust — rare emphasis */

  --shadow:    0 18px 60px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.5);

  /* type — system serif stack (no webfont = no licensing/perf risk on a public site) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  --measure: 34rem;             /* readable line length for prose */
  --leading: 1.72;

  /* fluid type scale */
  --fs-display: clamp(2.6rem, 8vw, 4.6rem);
  --fs-h1:      clamp(1.9rem, 5.5vw, 3rem);
  --fs-h2:      clamp(1.4rem, 3.6vw, 1.9rem);
  --fs-lead:    clamp(1.05rem, 2.4vw, 1.2rem);
  --fs-body:    clamp(1.02rem, 2.1vw, 1.16rem);
  --fs-small:   0.85rem;

  /* motion knobs — all gated off under prefers-reduced-motion in atmosphere.css */
  --drift:   42s;   /* fog drift cycle */
  --flicker: 6.5s;  /* candle flicker cycle (slow, low-amplitude — photosensitivity-safe) */
  --rise:    640ms; /* finite content entrance */
}
