/* ============================================================
   COLOR TOKENS - dark, warm-technical palette
   Derived from brand source hexes: #a9370e #cab197 #08432a #d58237 #051e11
   ============================================================ */
:root {
  /* ---- base surfaces (deep forest, near-black) ---- */
  --surface-0: #060f0a;   /* page background */
  --surface-1: #0b1a12;   /* card / panel background */
  --surface-2: #12291b;   /* raised panel, from #08432a family */
  --surface-3: #1c3e2a;   /* border / hover surface */
  --surface-4: #29553a;   /* strong border, dividers on dark */
  --surface-well: #0a1610; /* backing behind photos and video wells */

  /* ---- sand / warm neutrals (from #cab197) ---- */
  --sand-100: #f6f0e6;    /* near-white warm - headings, primary text */
  --sand-200: #e8dcc7;    /* prose workhorse - every paragraph on the site */
  --sand-300: #cab197;    /* brand sand - secondary text */
  --sand-500: #97876e;    /* muted text / placeholder */
  --sand-700: #5c5240;    /* faint text / disabled */

  /* ---- rust accent (from #a9370e) - primary CTA / emphasis ---- */
  --rust-400: #c44a1c;    /* hover / bright */
  --rust-500: #a9370e;    /* brand rust - base */
  --rust-600: #8a2c0b;    /* pressed */
  --rust-tint: #2a1409;   /* rust-on-dark wash, for subtle fills */

  /* ---- amber accent (from #d58237) - secondary accent ---- */
  --amber-300: #e6a668;
  --amber-400: #d58237;   /* brand amber - base */
  --amber-600: #a9631f;   /* pressed */

  /* ---- forest accent (from #08432a) - tertiary / success-ish ---- */
  --forest-300: #1c8a56;
  --forest-400: #157849;
  --forest-500: #08432a;  /* brand forest - base */
  --forest-600: #052e1c;

  /* ---- semantic aliases ---- */
  --bg-page: var(--surface-0);
  --bg-surface: var(--surface-1);
  --bg-surface-raised: var(--surface-2);
  --bg-surface-hover: var(--surface-3);
  --border-subtle: var(--surface-3);
  --border-strong: var(--surface-4);

  --text-primary: var(--sand-100);
  --text-secondary: var(--sand-300);
  --text-muted: var(--sand-500);
  --text-on-accent: var(--sand-100);

  /* Live accent. Amber leads the current site: it carries every eyebrow,
     nav rail, arrow and marker, and it is tweakable per page via --accent.
     Rust is now reserved for heat - hero washes, glows, ::selection. */
  --accent: var(--amber-400);
  --accent-wash: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-hairline: color-mix(in oklab, var(--accent) 42%, transparent);

  /* Button surface - rust fill under an amber hairline, wiped in on hover */
  --btn-fill: color-mix(in oklab, var(--rust-500) 26%, transparent);
  --btn-fill-hover: color-mix(in oklab, var(--rust-500) 92%, transparent);
  --btn-border: color-mix(in oklab, var(--accent) 58%, transparent);
  --btn-border-hover: color-mix(in oklab, var(--accent) 80%, transparent);
  --btn-focus-ring: color-mix(in oklab, var(--accent) 55%, transparent);

  --accent-primary: var(--rust-500);
  --accent-primary-hover: var(--rust-400);
  --accent-primary-active: var(--rust-600);
  --accent-secondary: var(--amber-400);
  --accent-secondary-hover: var(--amber-300);
  --accent-tertiary: var(--forest-400);

  --link: var(--amber-300);
  --link-hover: var(--sand-100);
  --focus-ring: var(--amber-400);

  --success: var(--forest-300);
  --warning: var(--amber-400);
  --danger: var(--rust-400);
}

/* ============================================================
   RAVEN WORLD - the homepage redesign (owner, 9 Nov 2026)
   From the inspiration board: Raven Black and Ice share the field and flow into
   each other through a hot Poppy seam; red stays a strong, small accent.
   The case studies keep the forest palette above until their own phase.
   ============================================================ */
:root {
  /* ground and raised surfaces (warm black) */
  --raven: #070403;          /* page ground */
  --raven-1: #100b0a;        /* solid panels on black */
  --raven-2: #181211;        /* raised panels, inputs */
  --raven-line: #2a201e;     /* hairlines on black */

  /* ice: the light half of the board, and the text family on black */
  --ice-100: #eef6fc;        /* headings and primary text on black (18.7:1) */
  --ice-200: #d6e8f6;        /* prose on black (16.3:1) */
  --ice-300: #bedef4;        /* board Powder Blue: panels, secondary text (14.5:1) */
  --ice-500: #7f97a8;        /* muted text on black (6.7:1) */
  --ice-ink: #1a2a36;        /* secondary text on ice panels */

  /* poppy: the accent */
  --poppy: #d0372a;          /* board Poppy Red: fills, large type, the active mark (4.15:1, never small text) */
  --poppy-300: #e8503f;      /* red small text and icons on black (5.5:1) */
  --poppy-700: #8f2318;      /* deep seam */
  --ember: #6e140c;          /* mesh point between black and red */
  --slate: #34424f;          /* mesh point between red and ice, instead of mauve */
  --on-poppy: #f7fbfe;       /* label on a poppy fill (4.7:1) */
  --poppy-hover: #bc2d21;    /* poppy fill on hover: a deeper press, so the white label holds 5.7:1 */
  --ice-50: #e2f1fb;         /* the light corner of an ice panel */
  --screen-well: #262628;    /* ground behind product screenshots (DesignPlan's own dark surface) */
}
