/* rex-tokens.css — the palette, declared once.
 *
 * Two stylesheets consume it and they name things differently, because they do
 * different jobs:
 *
 *   rex-system.css  the new pages (homepage, R.E.X.). Its own names: --ground,
 *                   --chamber, --surface.
 *   rex-skin.css    the existing pages, retargeted in place. It has to keep the
 *                   names those pages already declare: --field, --paper, --soft.
 *
 * Both used to carry their own copy of the hex values, which meant warming the
 * ground by two points was two edits that could silently drift apart. The
 * values live here now and both sheets alias to them.
 *
 * Load this BEFORE either sheet.
 */
:root{
  /* ── ground ── */
  --p-ground:#f2f1ef;          /* the studio floor */
  --p-chamber:#f8f7f5;         /* one step lighter, the top of the vertical ramp */
  --p-surface:#fefefd;         /* card and panel fill */

  /* ── ink ── */
  --p-ink:#1a1a19;
  --p-ink-soft:#4a4a47;
  --p-ink-muted:#5c5c58;

  /* ── structure ── */
  --p-line:#dedcd7;
  --p-line-strong:#c3c0b9;
  --p-veil:rgba(255,255,255,.72);

  /* One accent. Measured, not chosen: anything lighter than this fails AA at
     11px against --p-ground, and 11px mono is most of the chrome. */
  --p-accent:#6f6255;

  /* Bare RGB triples. Several rules consume the palette inside rgba(), which
     cannot take a hex, so the same two colours have to exist in both forms. */
  --p-ink-rgb:26,26,25;
  --p-accent-rgb:111,98,85;

  /* ── the ambient ground, per channel ──
     Default is the index hue; each room overrides below. --node is an unquoted
     RGB triple because the lattice composes it with a computed alpha. */
  --g1:rgba(196,178,186,.30); --g2:rgba(186,192,198,.26); --g3:rgba(206,196,182,.22);
  --node:70,68,64;
}

/* Both class families, one declaration. The new pages use .ch-*, the retrofitted
   live pages use .p-*, and there is no reason for the hue to be written twice. */
body.ch-home,     body.p-home    {--g1:rgba(196,178,186,.30); --g2:rgba(186,192,198,.26); --g3:rgba(206,196,182,.22); --node:70,68,64}
body.ch-work,     body.p-work    {--g1:rgba(178,190,202,.30); --g2:rgba(190,194,196,.26); --g3:rgba(196,200,198,.22); --node:60,68,76}
body.ch-about,    body.p-about   {--g1:rgba(206,184,172,.30); --g2:rgba(198,190,178,.26); --g3:rgba(208,192,180,.22); --node:82,70,62}
body.ch-thoughts, body.p-thoughts{--g1:rgba(180,178,200,.28); --g2:rgba(190,194,206,.26); --g3:rgba(196,192,204,.22); --node:66,64,80}
body.ch-loadout,  body.p-loadout {--g1:rgba(174,196,188,.28); --g2:rgba(190,198,196,.26); --g3:rgba(198,200,190,.22); --node:56,72,68}
