/* ==========================================================================
   Clarev / Phronesis Design System - Stage 1 Tokens
   --------------------------------------------------------------------------
   REPO COPY of the ratified Stage 1 token file. Drive master:
   1KIKhcdgiBLss2uA7tOLSCCtgvOChX3pW

   Ratified April 2026 by the Eames lineage. Its own header says "drop into any
   project root", and both surfaces - the Clarev app and the marketing sites -
   are meant to consume the same file so tokens change in ONE place.

   *** THIS COPY DIFFERS FROM THE DRIVE MASTER IN EXACTLY ONE VALUE, AND THE
   DIVERGENCE IS DELIBERATE, MEASURED AND MUST BE PUSHED BACK. ***

     --ink-muted   Drive master: #827886      this copy: #5c5462

   Eames, line fc2732d1, task ef53c0c6: #827886 measures 3.62:1 on parchment,
   below the 4.5:1 floor, and S1 assigns it to labels, timestamps and captions -
   small text at low contrast, which is the worst case for ageing eyes and is
   what the board uses for ALL metadata.

   VERIFIED INDEPENDENTLY BEFORE ADOPTING IT, on every ground it can land on:

     #827886  parchment 3.62 FAIL   user-bubble 3.16 FAIL   sidebar 3.28 FAIL
     #6f6673  parchment 4.71        user-bubble 4.11 FAIL   sidebar 4.27 FAIL
     #5c5462  parchment 6.21        user-bubble 5.43        sidebar 5.64

   Every figure Eames quoted reproduced exactly. ONE THING TO ADD TO HERS: she
   reported #827886 as failing on parchment; it fails on ALL THREE grounds, and
   its worst is 3.16 on the user-bubble.

   *** AND #6f6673 IS THE INSTRUCTIVE ONE. *** It clears 4.5 on parchment and
   drops to 4.11 on the user-bubble - passing on the ground you thought about
   and failing on the one it lands on. Eames rejected it for that reason and
   named it as the same shape as the band-colour failure caught the same morning.
   Contrast is a pair, not a colour: measure on every ground, not the first.

   *** THE DRIVE MASTER STILL CARRIES #827886. *** Until it is updated, the next
   project to "drop this into any project root" gets the failing value, and this
   file and the master disagree. That is a divergence with a clock on it and it
   is Reg's or Eames's to close - flagged, not silently absorbed.

   NOT LOADED FROM HERE: Stage 2 (buttons, inputs, cards, focus rings, motion),
   which imports S1 first. Drive 1koh5SeKbEtzqAwyhbIRbvDIaNsPhFTjV.
   ========================================================================== */

:root {
  /* --- Surface ----------------------------------------------------------- */
  --bg: #f4edde;                             /* warm parchment, the page itself */
  --user-bubble: #e8deca;                    /* user speech bubble; also active-state fill */
  --sidebar-bg: #ece2cf;                     /* sidebar surface, between bg and user-bubble */
  --modal-scrim: rgba(232, 222, 202, 0.4);   /* soft, not dark */

  /* --- Ink (text) -------------------------------------------------------- */
  --ink: #262028;                            /* primary text */
  --ink-soft: #4e4650;                       /* secondary text, sub-headings */
  --ink-muted: #5c5462;                      /* labels, timestamps, captions - CORRECTED, see header */
  --user-ink: #2d262d;                       /* user message text */

  /* --- Rules and dividers ------------------------------------------------ */
  --rule: #d2c6b4;                           /* default hairlines */
  --rule-soft: #e0d7c3;                      /* softer dividers between minor sections */
  --clarev-rule: #c8b496;                    /* the warm vertical rule beside Clarev's voice */
  --specialist-rule: #aab4aa;                /* the bracketing rules around specialist turns */

  /* --- Accents (semantic, not decorative) -------------------------------- */
  --dissent-accent: #76503a;                 /* Clarev pushing back. Considered, not alarm. */
  --dissent-accent-dark: #5f402e;            /* hover/active state of dissent affordances */
  --specialist-ink: #324652;                 /* specialist message body text */

  /* --- Focus ring -------------------------------------------------------- */
  --focus-ring: rgba(118, 80, 58, 0.7);      /* umber, around interactive */

  /* --- Type -------------------------------------------------------------- */
  --font-serif: 'Source Serif 4', 'Source Serif Pro', 'Lora', Georgia, serif;
  --font-sans: 'Inter', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* --- Rules and radius carried for Stage 2 ------------------------------ */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

/* ==========================================================================
   *** THE TYPE SCALE IS DELIBERATELY NOT INCLUDED, AND THAT IS EAMES'S RULING
   RATHER THAN AN OMISSION. *** S1's scale is 28px body and 42px h1, built for a
   chat surface. Applied wholesale to a dense board it would make the thing
   unusable. Her instruction: "DO NOT APPLY S1'S TYPE SCALE WHOLESALE."

   Only two sizes are settled, ratified by Reg from a live three-option mockup
   judged on screen, and they are applied in the pages rather than here because
   they are board decisions, not token decisions: board metadata 15px, card
   titles 19px serif.

   *** NO STATE COLOURS EITHER. *** The board's open/completed/blocked fills, the
   urgent marker and the three no-task band colours exist in NEITHER token file:
   Stage 1 and 2 were built for a chat surface with no concept of a work item
   having a state. Eames: that is a real Stage extension, it is unbuilt, and it
   should be specified against measured grounds rather than guessed at mid-build.
   The pages keep their own measured state tokens until she specifies them.
   ========================================================================== */
