/* THE CHEAT CODE UNIVERSE, SHARED DESIGN TOKENS
   Source A: approved landing page (cheat-code-landing-v11.html), extracted verbatim.
   Source B: the book epub CSS (idGeneratedStyles.css), family colors approved by Kai, July 2026.
   Rule: every build session that touches visuals receives this file. Colors are referenced
   by token name only, never by raw hex, so a correction is one edit here.
   Decision recorded: the light canvas (paper, cream) is the base surface for the
   informational and reading layer. Dark ink surfaces are reserved for the universe map
   and cinematic moments, as on the landing page. */

:root {

  /* ---- Canvas and ink, from the approved landing page ---- */
  --ink: #0B0A08;
  --dark: #14120F;
  --paper: #FBFAF7;            /* near-white surface */
  --cream: #EDE7DC;            /* the light canvas: base for the reading and informational layer */
  --paper-dim: rgba(251, 250, 247, .8);
  --paper-faint: rgba(251, 250, 247, .45);
  --muted-l: #3f3b34;
  --hairline: rgba(251, 250, 247, .10);   /* on dark */
  --hairline-l: #E6E2D8;                  /* on light */
  --grid: rgba(251, 250, 247, .035);

  /* ---- The liquid, from the approved landing page ---- */
  --liquid: #E8532A;           /* Aperol red-orange, landing hero */
  --terra: #D85A30;
  --peach: #F2A285;

  /* ---- Typography, from the approved landing page ---- */
  --display: 'Archivo', system-ui, sans-serif;
  --serif: 'Fraunces', serif;
  /* The printed book uses Mattone (display), Lora (serif), Satoshi (sans).
     Reconciling book type and landing type is a Phase 0 question: each design
     one-pager must state its typography position explicitly. */

  /* ---- The nine families, from the book, bold and tint per family ---- */
  --balance: #CBDB2A;          /* Daiquiri */
  --balance-tint: #E8EEAE;
  --layers: #BCAFD6;           /* Mai Tai */
  --layers-tint: #E0DBED;
  --restraint: #84C2EA;        /* Highball */
  --restraint-tint: #CCE2F5;
  --control: #B9E5FB;          /* Martini */
  --control-tint: #E1F4FD;
  --patience: #FBB161;         /* Old Fashioned */
  --patience-tint: #FFDDB9;
  --touch: #53BE95;            /* Mojito */
  --touch-tint: #BCE1CF;
  --rhythm: #FFDE2F;           /* Aperol Spritz */
  --rhythm-tint: #FFEFB2;
  --texture: #F7B7D3;          /* Frozen Margarita */
  --texture-tint: #FCE1ED;
  --warmth: #F37043;           /* Hot Toddy. Near neighbor of --liquid, keep them distinct on purpose */
  --warmth-tint: #FBC2A6;

  /* ---- Sealed tutorial-button colours (BUTTON-APPLY-BRIEF.md) ----
     Each world token has a "-soft" companion: its saturation halved in HSV
     (kept value/lightness). --control and --texture use ~65% instead of
     50% because their bases are already pale on cream. --terra-soft is the
     basecamp / non-world fallback so a button never renders black. Each
     "-soft-tint" is a lighter blend of the -soft toward paper for the
     hover fill (~72% toward #FBFAF7). Values were computed with colorsys
     from the tokens above; see 05-decisions-log.md for the exact recipe. */
  --balance-soft: #D3DB82;   --balance-soft-tint: #F0F1D6;
  --layers-soft: #C9C3D6;    --layers-soft-tint: #EDEBEE;
  --restraint-soft: #B7D6EA; --restraint-soft-tint: #E8F0F3;
  --control-soft: #D0EDFB;   --control-soft-tint: #EFF6F8;
  --patience-soft: #FBD6AE;  --patience-soft-tint: #FBF0E3;
  --touch-soft: #88BEAA;     --touch-soft-tint: #DBE9E1;
  --rhythm-soft: #FFEE97;    --rhythm-soft-tint: #FCF7DC;
  --texture-soft: #F7CDE0;   --texture-soft-tint: #FAEDF1;
  --warmth-soft: #F3B29B;    --warmth-soft-tint: #F9E6DD;
  --terra-soft: #D89984;     --terra-soft-tint: #F1DFD7;    /* basecamp / no-world fallback */

  /* ---- Usage laws ----
     1. Family color is identity: every element tied to a family carries its family
        token everywhere it appears. No exceptions, no decorative borrowing.
     2. Bold tokens are for identity moments: gates, ignition, headings, play buttons.
        Tints are for surfaces: cards, quiz backgrounds, reading accents on cream.
     3. Text on tints is ink. Text on bold family colors must pass contrast checks
        per family; several bolds (rhythm, control) are light and need ink text.
     4. The liquid tokens belong to the landing and to universe-level moments.
        Inside a world, the family color leads. */
}
