/* Colour tokens — the palette in the brief (§8), with one pairing adjusted.
   Every colour in every component reads one of these custom properties; no
   hard-coded hex exists outside this file (acceptance #16).

   CHANGED FROM THE BRIEF, as §8 requires be reported: --ink-3 in both
   themes. It carries metadata at 9–13 px — "2d late", "EVERY 6 MONTHS" —
   so the 4.5:1 body-text threshold applies to it, and it was at 2.37:1 in
   light and 3.56:1 in dark. Now 4.66:1 and 4.66:1 at worst, chosen with
   margin so a rounding difference cannot drop it back under. Hue unchanged;
   only lightness moved.

     light  #949B94 -> #646964
     dark   #6E766F -> #838983

   --ink and --ink-2, which carry actual prose, always passed and are
   untouched. tests/stage3 computes these ratios so they cannot drift.

   The six domain pigments (time, exec, body, mind, people, career) carry
   meaning and appear only as dots, left borders and markers — never as
   background fills. --signal is reserved for the now-line, overdue items
   and expiry alerts, and appears nowhere else. */

:root {
  /* light */
  --paper:#E8EBE6; --card:#F8F9F6; --card-2:#F1F3EE;
  --ink:#171A18;   --ink-2:#5E6660; --ink-3:#646964;
  --rule:#D3D8CF;  --rule-2:#E0E4DC;
  --time:#26565B;  --exec:#8E7328;  --body:#4F6B47;
  --mind:#5E4B6B;  --people:#2F4C7A; --career:#6B4A2E;
  --signal:#B0392B;

  /* derived, non-colour */
  --r: 3px;
  --hour: 46px;

  /* Set by a skin (§8 v2). Kept here so the default needs no skin at all,
     and so a skin that only changes the typeface does not have to restate
     the spacing. */
  --density: 1;
  --pad-x: 14px;

  /* Width of the colour bar that carries an event's pigment. The brief §9
     specifies 3px; widened on use because at 3px the distinction between
     two events was hard to read at a glance, which is the whole point of
     colouring them. Two sizes: the day rail can afford width, the week and
     month grids are dense and would lose text space. */
  --bar: 6px;
  --bar-sm: 4px;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* interaction states, derived from the palette (kept as tokens so
     components never invent a colour) */
  --hover:#E4E8E0; --active:#DFE4DB;
  --part: color-mix(in srgb, var(--body) 45%, var(--card));
  --scrim: rgba(23,26,24,.38);
}

[data-theme="dark"] {
  --paper:#131614; --card:#1B1F1C; --card-2:#181C19;
  --ink:#E4E8E2;   --ink-2:#9AA39B; --ink-3:#838983;
  --rule:#2C322D;  --rule-2:#232823;
  --time:#5FA3A8;  --exec:#C9A64E;  --body:#86AC7C;
  --mind:#A38CB0;  --people:#7495C4; --career:#BE9068;
  --signal:#E0705E;

  --hover:#21261F; --active:#262B24;
  --part: color-mix(in srgb, var(--body) 45%, var(--card));
  --scrim: rgba(0,0,0,.55);
}
