/*
 * CrewHub Labor design tokens, copied from Kallmekaida/ConventionSafetySuite
 * (public/css/tokens.css). Keep the two in step.
 * Light is the default; the dark "venue" theme follows prefers-color-scheme
 * unless the person picked one with the toggle (html[data-theme]).
 */
:root {
  color-scheme: light;

  --surface-0: #f4f3ef;
  --surface-1: #ffffff;
  --surface-2: #ebe9e3;
  --border: #d9d6ce;
  --border-strong: #8f8b82;
  --ink: #17181a;
  --ink-muted: #5c5f63;
  --cue: #f0a80e;
  --on-cue: #17181a;
  --cue-ink: #8a5a00;
  --cue-tint: #fdf1d6;
  --signal: #1f5fbf;
  --signal-tint: #e4edfb;
  --ok: #1d6b46;
  --ok-tint: #e2f1e8;
  --bad: #9e2a22;
  --bad-tint: #f8e3e0;

  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-input: 4px;
  --radius-tag: 4px;
  --radius-button: 6px;
  --radius-card: 10px;
  --radius-pill: 999px;

  --shadow-faint: 0 1px 2px rgba(23, 24, 26, 0.06);
  --focus-ring: 2px solid var(--signal);
  --touch: 44px;
}

/* The dark ("venue") values, in one place so they can be reused below. */
:root[data-theme='dark'],
.venue {
  --surface-0: #121314;
  --surface-1: #1b1d1f;
  --surface-2: #24272a;
  --border: #33373b;
  --border-strong: #6b7178;
  --ink: #f1efe9;
  --ink-muted: #a4a7ab;
  --cue: #f2b23a;
  --on-cue: #17181a;
  --cue-ink: #f5c25e;
  --cue-tint: #33280f;
  --signal: #6aa3ff;
  --signal-tint: #18263d;
  --ok: #5fd39a;
  --ok-tint: #14291f;
  --bad: #ff8a7e;
  --bad-tint: #36191a;
  --shadow-faint: 0 1px 2px rgba(0, 0, 0, 0.4);
}
:root[data-theme='dark'] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --surface-0: #121314;
    --surface-1: #1b1d1f;
    --surface-2: #24272a;
    --border: #33373b;
    --border-strong: #6b7178;
    --ink: #f1efe9;
    --ink-muted: #a4a7ab;
    --cue: #f2b23a;
    --on-cue: #17181a;
    --cue-ink: #f5c25e;
    --cue-tint: #33280f;
    --signal: #6aa3ff;
    --signal-tint: #18263d;
    --ok: #5fd39a;
    --ok-tint: #14291f;
    --bad: #ff8a7e;
    --bad-tint: #36191a;
    --shadow-faint: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
