/* Sereo design system — "The Analytic Advisor" tokens.
   Single source of truth; every page links this file. Dark only, by design.
   No red anywhere in this system — semantic states stay warm and non-punitive.

   Grisaille: warm greyscale grounds, one metal. Gold is rationed — it marks
   what changed and what is active, never decoration. Status is carried by
   value and treatment rather than hue, which is why there is only one status
   ink here. */
:root{
  /* grounds & lines */
  --ground:#1C1A16; --surface:#24211B; --sink:#151310; --raised:#322D26;
  --line:#3A342B;
  /* the chrome the ledger sits in: header, panels, modals. One step darker
     than --ground so a fixed bar reads as behind the page, not on it. */
  --chrome:#1A1713;
  /* three quieter rules under --line. A ledger is mostly rules, and one
     weight for all of them flattens the hierarchy it exists to carry. */
  --line-quiet:#2C2721; --line-faint:#232019; --line-ghost:#201D18;
  /* inks */
  --stone:#958E80; --marble:#E7E1D4; --marble-dim:#B7AF9F; --bone:#EFEADD;
  /* stone, further down: eyebrows, spent hours, disabled controls */
  --stone-dim:#6E655A; --stone-quiet:#5E574C; --stone-faint:#4A443B;
  --marble-mid:#D8D2C4;
  /* the one metal, antique */
  --brass:#C7A24E; --brass-bright:#DFBD69; --brass-dim:#9A7C36;
  /* a gold rule at rule weight — the section edge that says "this matters",
     which full --brass at 1px does not, being a mark rather than a ground. */
  --brass-rule:#6E5B2E;
  /* ——— the year dial's extra reach ———
     An instrument drawn at 580px needs more steps than a page does: a rail
     has to read as behind, level with, or in front of its neighbour at eight
     pixels wide, and a struck node has to be legible against a track two
     values away from it. Everything here is the same grisaille and the same
     one metal — no new hue enters the system. */
  --brass-edge:#8A7238;        /* a leader line, a caption: gold at half voice */
  --brass-rule-dim:#4A3F22;    /* a keyline on a secondary control */
  --brass-light:#F2E0AE;       /* the rim of an earned node */
  --brass-lift:#E4C777;        /* travelled ground, gradient start */
  --brass-sink:#B58F3C;        /*      "        "     gradient end */
  --brass-core:#7A5E17;        /* the pupil of a finished goal's seal */
  --glow:#2A251D;              /* the page's own light, top-left */
  --hub-crown:#2A2419;         /* where that light lands on the hub */
  --ink:#0F0D0B;               /* under everything: a slab, text on bone */
  --stone-lit:#9C9484;         /* prose inside a card, a step above --stone */
  --stone-warm:#7A7057;        /* an unmet node's rim, a fixed date's collar */
  --rail-lit:#55503F;          /* the ground still to cover, on the focused rail */
  --track-lit:#252017;         /* the bed that ground sits in */
  --line-raised:#332E27;       /* a rule on a raised surface, not on the page */
  /* what sits ON gold. Near-black with the metal's own warmth in it, so a
     primary button does not read as a hole punched in the page. */
  --on-brass:#1C1408;
  /* semantic states (non-punitive): value, not hue */
  --sage:#C9C0AE; --terra:#C0794C;
  /* Danger (ADR-0194): the one red, for acts that cannot be taken back or
     that hand over the power to change things — deleting the account, a
     token that can write. Never for lateness, a miss or a grade: those are
     said, not alarmed. */
  --danger:#C7604E; --danger-rule:#6E3A30; --danger-wash:#241A15;

  /* ——— The one hue extension: five kinds of time ———
     The day ledger keeps every block's face in stone and spends all of its
     colour on a 5px strip down the left edge. A mark that small can carry
     real pigment without the page turning loud — the way a bound book takes
     a coloured spine. These are the only hues in the system, they appear
     nowhere but that strip, and they are a taxonomy of five that holds
     however many goals a person keeps. */
  --cat-productivity:#DFBD69;  /* gold-bright — work that moves a goal */
  --cat-habit:#688670;         /* verdigris — what you keep up */
  --cat-chore:#B0704A;         /* burnt amber — what has to be done */
  --cat-leisure:#967684;       /* dusty plum — what is yours */
  --cat-external:#8A90B2;      /* slate blue — not yours to move */

  /* voices: serif = the advisor, grotesque = the instrument, mono = data.
     The real faces are self-hosted in sereo/web/fonts (see fonts.css); the
     system stacks behind them are the fallback, not the intent. */
  --serif:"Newsreader","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --grotesque:"Instrument Sans",system-ui,-apple-system,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  /* There is no mono any more (ADR-0170): figures are the grotesque with
     tabular numerals. The name stays so nothing that still says it breaks. */
  --mono:"Instrument Sans",system-ui,-apple-system,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  /* radii: minimal. A ledger rarely rounds. */
  --r-sm:2px; --r:2px; --r-lg:2px;
  /* the ledger's typographic unit: 15px title x 1.3 line-height = 19.5 -> 19.
     Every vertical measure on the day is a whole multiple of it, so blocks,
     gaps and drawers land on one rhythm instead of on whatever the duration
     arithmetic happened to produce. */
  --unit:19px;

  /* ——— The scales (ADR-0170) ———
     Coherence is countable: the stylesheet had grown forty font sizes and a
     hundred and forty paddings, one value at a time. Every size and every
     space now comes from these. The clocks keep their own geometry. */
  --t-12:12px; --t-13:13px; --t-15:15px; --t-17:17px; --t-21:21px; --t-28:28px; --t-40:40px;
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;
  /* One shadow, for what sits in front of the page. */
  --shadow-modal:0 24px 64px rgba(0,0,0,0.55);

  /* Not Sereo's: Google's own colours for its dark sign-in button, from its
     branding guidelines (fill, 1px inside stroke, text). Used on that one
     button and nowhere else. */
  --google-fill:#131314; --google-stroke:#8E918F; --google-text:#E3E3E3;
}
