/* ==========================================================================
   CBA / WEB-002 — DESIGN TOKENS
   --------------------------------------------------------------------------
   Every value below is transcribed from a governing instrument. Nothing here
   is invented, sampled, or approximated.

   SOURCES
     CBA · STD · 001  § 05 Colour System   — the house palette
     CBA · STD · 001  § 03 Typography      — the two faces and the scale
     CBA · PAL · 001 · 2026                — "Inside the Fog" atmospheric palette

   STATUS
     CBA·STD·001 is a governing document. It is not recorded as ratified in
     the Founder Decision Register (2026-07-29) — see 06-STATUS.
     Treat this file as WORKING DRAFT until that register is signed.

   NOT YET APPLIED. This file is supplied for review. It is not wired into the
   deployed WEB-001 stylesheet, and the deployed site's current tokens differ
   from it — see 02-STANDARDS/DEVIATIONS.md before adopting.
   ========================================================================== */

:root {

  /* --- § 05 · NEUTRAL PALETTE — THE GROUND ------------------------------ */
  --cba-fog:        #E9E8E2;  /* Primary ground. The paper the archive is printed on. */
  --cba-wet-stone:  #E1DFD6;  /* Alternate leaf. Signals a shift.                     */
  --cba-tideflat:   #DEDCD2;  /* Inset panels and quiet blocks.                       */

  /* --- § 05 · PRIMARY PALETTE — THE INK --------------------------------- */
  --cba-wet-slate:  #1A1C1B;  /* Primary text and titles. Cool near-black.  13.95:1   */
  --cba-graphite:   #4C4F4C;  /* Secondary text, standfirsts.                6.76:1   */
  --cba-mist:       #8E918B;  /* Captions, folios, system voice at rest.     2.60:1 ! */

  /* --- § 05 · ACCENT — THE ONE NOTE ------------------------------------- */
  --cba-spruce:     #2E3B34;  /* THE single accent. Active filing marks.     9.55:1   */
  --cba-lichen:     #6E7A6C;  /* Rarer still. Secondary system states.       3.67:1   */
  --cba-hairline:   #C4C3BA;  /* Every rule and divider.                     1.44:1   */

  /* Contrast figures are against --cba-fog, WCAG 2.1 relative luminance.
     ! --cba-mist does not clear 4.5:1 and must not carry body-size text on
       screen. See 04-ACCESSIBILITY/RECOMMENDATIONS.md § A6. */

  /* --- CBA · PAL · 001 · 2026 — "INSIDE THE FOG" ------------------------
     Atmospheric palette. Sibling to house Fog; use where atmosphere is
     wanted over the flat archive ground. Not a replacement for § 05.        */
  --cba-abyss:      #1F2E35;  /* Deep Pacific. The cold water under everything. */
  --cba-tidewater:  #2F4A54;  /* The body of the sea where light stops reaching. */
  --cba-current:    #47656D;  /* Mid water, moving. Structural mid-tone.        */
  --cba-waterline:  #6C848A;  /* Where sea gives up its edge to the air.        */
  --cba-fogbank:    #96A7AC;  /* Inside the fog. The signature value.           */
  --cba-drift:      #BFCACB;  /* High mist, thinning.                           */
  --cba-veil:       #E2E7E5;  /* Sky-fog. Luminous, cool, almost not white.     */

  /* --- § 05 · THE ONE RULE OF COLOUR ------------------------------------
     "If you are reaching for a second accent, you have a layout problem, not
     a colour problem." There is exactly one accent: --cba-spruce.           */

  /* --- § 03 · THE TWO FACES ---------------------------------------------
     The whole system is two typefaces. A serif for everything human, a
     monospace for everything systemic. No third face is specified.          */
  --cba-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --cba-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- § 03 · THE SMALL DECISIONS --------------------------------------- */
  --cba-leading-body:    1.5;      /* open and unhurried                     */
  --cba-leading-display: 0.94;     /* 0.85–1.02, architectural               */
  --cba-tracking-body:   0;        /* the face is drawn correctly; leave it  */
  --cba-tracking-mono:   0.19em;   /* +.14 to +.24em — reads filed, not typed */

  /* --- § 03 · MEASURE ----------------------------------------------------
     Single measure: one column of body at roughly 60–66 characters.
     Multi-column newspaper grids are not used.                              */
  --cba-measure: 63ch;

  /* WEB-002 screen mapping. The standards vocabulary is canonical; these
     aliases keep the original four-page layout intact while adopting it. */
  --paper: var(--cba-fog);
  --paper-dim: var(--cba-tideflat);
  --ink: var(--cba-wet-slate);
  --fog: var(--cba-mist);
  --bronze: var(--cba-spruce);
  --navy: var(--cba-abyss);
  --rule: var(--cba-hairline);
  --system-voice: var(--cba-graphite);
}
