/* Call Copilot Design System — Quiet Teleprompter (Impeccable Operate + Distill).
 * Evening Dark (default for IST->US calling hours) + Daylight Light OKLCH palettes. */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/font-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/font-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/font-sans-600.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --font-sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Surfaces (Evening Dark — slate neutral with warm ink) */
  --bg: oklch(16% 0.008 250);
  --surface: oklch(21% 0.009 250);
  --surface-2: oklch(26% 0.010 250);
  --border: oklch(31% 0.010 250);
  --border-subtle: oklch(25% 0.009 250);

  /* Ink */
  --text: oklch(94% 0.006 85);
  --muted: oklch(75% 0.008 250);

  /* Status accents & WCAG AA >= 4.5:1 text variants */
  --listen: oklch(70% 0.13 252);
  --listen-text: oklch(80% 0.12 252);
  --listen-bg: oklch(24% 0.03 252);

  --ready: oklch(72% 0.15 152);
  --ready-text: oklch(82% 0.13 152);
  --ready-bg: oklch(24% 0.03 152);

  --warn: oklch(78% 0.14 78);
  --warn-text: oklch(84% 0.12 78);
  --warn-bg: oklch(25% 0.03 78);

  --danger: oklch(68% 0.19 25);
  --danger-text: oklch(79% 0.14 25);
  --danger-bg: oklch(24% 0.035 25);

  --on-accent: oklch(15% 0.01 250);

  /* Type scale (fixed rem, never fluid) */
  --text-cue: 2.5rem;
  --text-ask: 1.25rem;
  --text-title: 1.375rem;
  --text-body: 1rem;
  --text-sm: 0.8125rem;
  --text-xs: 0.75rem;

  /* Spacing & radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(97.5% 0.004 85);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(94.5% 0.005 85);
  --border: oklch(88% 0.006 250);
  --border-subtle: oklch(92% 0.005 250);

  --text: oklch(18% 0.010 250);
  --muted: oklch(44% 0.012 250);

  --listen: oklch(45% 0.14 252);
  --listen-text: oklch(44% 0.14 252);
  --listen-bg: oklch(94% 0.025 252);

  --ready: oklch(42% 0.13 152);
  --ready-text: oklch(40% 0.13 152);
  --ready-bg: oklch(94% 0.03 152);

  --warn: oklch(45% 0.12 72);
  --warn-text: oklch(43% 0.12 72);
  --warn-bg: oklch(95% 0.03 78);

  --danger: oklch(48% 0.18 25);
  --danger-text: oklch(47% 0.18 25);
  --danger-bg: oklch(95% 0.03 25);

  --on-accent: oklch(99% 0 0);
}

* { box-sizing: border-box; }
::selection { background: var(--listen); color: var(--on-accent); }
html { scrollbar-color: var(--border) var(--bg); }
input, textarea, select { caret-color: var(--listen); }
