/* Cream design tokens: the single definition of the brand.
 *
 * These values are canonical and are documented in DESIGN.md. The marketing
 * website links this file directly. The consoles still embed their own :root
 * block (they predate this file); where they differ, this file wins and the
 * console is the thing to fix.
 *
 * Nothing here describes layout. Tokens only, so any surface can adopt the
 * file without inheriting another surface's opinions.
 *
 * THREE VALUES WERE LIFTED ON 2026-08-30, and the reason is written here
 * because a brand colour should never move without one. design-a11y-test.js
 * computes every text-on-ground contrast ratio from this file and measured
 * three of them under the WCAG AA floor of 4.5:1 for small text, on the live
 * public site: --ink-faint at 4.4134, --t-self at 4.4520, --below at 4.4664.
 * Four browser reviews had missed all three, because the eye cannot judge a
 * ratio and arithmetic can. Each was raised by the smallest step in HLS that
 * clears the floor with a little margin, holding hue and saturation exactly,
 * so the palette reads as itself: a total shift of 7 to 10 points out of 765
 * per colour. The old values are recorded beside the new ones so the change
 * is auditable rather than silent.
 */

:root {
  color-scheme: dark;

  /* ground */
  --ground: #16120B;        /* page */
  --ground-raise: #1E1810;  /* raised panels */
  --ground-sink: #110D07;   /* wells, inputs */

  /* rules and borders */
  --rule: rgba(232, 220, 188, 0.13);
  --rule-strong: rgba(232, 220, 188, 0.28);

  /* ink */
  --ink: #EDE6D3;           /* primary text */
  --ink-soft: #BCB29B;      /* secondary text */
  --ink-faint: #8E836C;     /* labels, eyebrows; sparingly at small sizes.
                               Was #8A8069, which measured 4.4134 on a panel. */

  /* accent */
  --gold: #C6A15B;          /* primary accent, active states */
  --gold-bright: #E4C77E;   /* emphasis within accent, hover */

  /* evidence provenance, the trust ramp. Darkest is least corroborated.
     This is the only place colour encodes data, and it always means
     provenance, never quality. */
  --t-self: #8B8372;        /* was #867E6D. Raised 2026-09-02 because
                               #867E6D cleared 4.5:1 only on the page ground
                               (4.6370) and lost it on the lighter raised panel
                               the recruiting console paints it on (4.3733).
                               This value measures 4.6821 there and 4.9644 on
                               the page ground, which is the same margin the
                               2026-08-30 raises left on --ink-faint and --below. */
  --t-build: #B08A57;
  --t-call: #C6A15B;
  --t-ref: #E7CB82;

  /* semantic */
  --green: #8FA26A;         /* healthy, on track */
  --below: #B67451;         /* below the bar, warm rust, never alarm red.
                               Was #B5714E, which measured 4.4664 on a panel. */

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}
