/* StitchoMR design tokens: the ONE place where brand colours, fonts, radii and the light/dark palettes are defined. Loaded first.
   Brand values come from the public site https://stitchomr.com (/assets/site.css :root and /assets/logo.svg), retrieved 2026-12-05; see docs/BRANDING.md.
   Semantic colours (danger / ok / warn) are NOT brand colours and are kept separate on purpose. */
:root {
  /* --- brand (verbatim from stitchomr.com :root) --- */
  --brand-ink: #14262c; --brand-navy: #101f2a; --brand-muted: #5c7073; --brand-teal: #156f69; --brand-mint: #71d4c3; --brand-gold: #8c692e; --brand-paper: #fafaf5; --brand-line: #dbe3df;
  /* --- logo colours (read from logo.svg) --- */
  --logo-cyan: #00ccde; --logo-needle: #eaba48; --logo-white: #f6f8fd;
  /* --- typography and shape (site: Arial body, Georgia display headings; 5 px buttons, 12 px panels) --- */
  --font: Arial, Helvetica, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 8px; --radius-sm: 5px; --radius-lg: 12px;
  /* --- light palette (default). Page colours are tints of the brand paper / ink; text and control colours were checked for WCAG AA (docs/branding/RESULTS.md) --- */
  --bg: #f2f4ef; --surface: #ffffff; --surface-2: #eaeee9; --surface-3: #dde4df;
  --text: var(--brand-ink); --muted: #556a6d; --border: #cdd8d4; --border-strong: #7f9491;
  --accent: var(--brand-teal); --accent-text: #ffffff; --accent-soft: #d8ece9; --focus: var(--brand-gold);
  --danger: #c0262d; --danger-soft: #fbe3e4; --ok: #1d7a46; --ok-soft: #dff3e7; --warn: #8a5a00; --warn-soft: #fdf0d2;
  /* Canvas colours: light and neutral in light mode so the embroidery is judged on a calm background. Thread colours are never touched by tokens. */
  --canvas-bg: #e6ebe7; --paper: #fbfbf8; --grid: rgba(30, 70, 70, .14); --ruler-bg: #f5f7f4; --ruler-text: #556a6d;
  --shadow: 0 1px 2px rgba(16, 31, 42, .08), 0 4px 14px rgba(16, 31, 42, .08);
  /* Navy surfaces (header bar, welcome hero) look the same in both modes, like the site header. */
  --bar-bg: var(--brand-navy); --bar-text: #eef6f3; --bar-line: rgba(255, 255, 255, .14);
}
/* dark palette: the site's navy page with mint accent. Also applied locally inside the navy bars so their controls read correctly in light mode. */
:root[data-theme="dark"], .page-bar, .ws-top, .on-navy {
  --bg: #101f2a; --surface: #162b37; --surface-2: #1c3544; --surface-3: #274655;
  --text: #eef6f3; --muted: #aabdc0; --border: #2d4756; --border-strong: #6b8a92;
  --accent: var(--brand-mint); --accent-text: #101f2a; --accent-soft: #1b4045; --focus: var(--brand-mint);
  --danger: #ff8a8f; --danger-soft: #3d1c1f; --ok: #5ccf8e; --ok-soft: #14352a; --warn: #f0c261; --warn-soft: #3a2f12;
  --canvas-bg: #0c1822; --paper: #15293a; --grid: rgba(170, 205, 210, .12); --ruler-bg: #162b37; --ruler-text: #aabdc0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101f2a; --surface: #162b37; --surface-2: #1c3544; --surface-3: #274655;
    --text: #eef6f3; --muted: #aabdc0; --border: #2d4756; --border-strong: #6b8a92;
    --accent: var(--brand-mint); --accent-text: #101f2a; --accent-soft: #1b4045; --focus: var(--brand-mint);
    --danger: #ff8a8f; --danger-soft: #3d1c1f; --ok: #5ccf8e; --ok-soft: #14352a; --warn: #f0c261; --warn-soft: #3a2f12;
    --canvas-bg: #0c1822; --paper: #15293a; --grid: rgba(170, 205, 210, .12); --ruler-bg: #162b37; --ruler-text: #aabdc0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
  }
}
