/* Design tokens: the GridHawk look. Every colour, size and radius in the app
   comes from here, so a rebrand or a new theme is a change to this file only. */
:root {
  color-scheme: dark;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #08090b;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-solid: #0e0f12;
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #c7c6c2;
  --text-strong: #f7f6f3;
  --muted: #9a9995;
  --primary: #f5820d;
  --primary-soft: rgba(245, 130, 13, 0.13);
  --primary-line: rgba(245, 130, 13, 0.45);
  --on-primary: #130a02;
  --heading: linear-gradient(90deg, #fff4e6, #ffc47e 55%, #f5820d);
  --glow: rgba(245, 130, 13, 0.16);

  --bad: #ff6b5e;
  --bad-soft: rgba(255, 107, 94, 0.13);
  --warn: #ffc247;
  --warn-soft: rgba(255, 194, 71, 0.13);
  --good: #5fd39a;
  --good-soft: rgba(95, 211, 154, 0.12);
  --info: #9a9995;
  --info-soft: rgba(154, 153, 149, 0.13);

  --radius: 4px;
  --radius-sm: 3px;
  --gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  --pad: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --tap: 44px;

  --text-xs: 0.6875rem;
  --text-sm: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  --track: 0.14em;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f4f0;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-solid: #ffffff;
    --surface-2: rgba(0, 0, 0, 0.045);
    --line: rgba(20, 12, 4, 0.12);
    --line-strong: rgba(20, 12, 4, 0.28);
    --text: #3b3833;
    --text-strong: #14110d;
    --muted: #6f6b64;
    --primary: #c25e00;
    --primary-soft: rgba(194, 94, 0, 0.1);
    --primary-line: rgba(194, 94, 0, 0.45);
    --on-primary: #fff;
    --heading: linear-gradient(90deg, #14110d, #7a3b00 60%, #c25e00);
    --glow: rgba(245, 130, 13, 0.1);
    --bad: #c0271b;
    --bad-soft: rgba(192, 39, 27, 0.09);
    --warn: #96650a;
    --warn-soft: rgba(150, 101, 10, 0.11);
    --good: #18794a;
    --good-soft: rgba(24, 121, 74, 0.1);
    --info: #5d5a54;
    --info-soft: rgba(93, 90, 84, 0.1);
  }
}
