/* GTA Glitches V2 — Design tokens (neumorphism + light/dark) */

@font-face {
  font-family: "Pricedown Bl";
  src:
    url("/fonts/pricedown-bl.woff2") format("woff2"),
    url("/fonts/pricedown-bl.woff") format("woff"),
    url("/fonts/pricedown-bl.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Typography */
  --font-display: "Pricedown Bl", "Pricedown", "Arial Black", Impact, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: clamp(2.25rem, 6vw, 3.75rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.55;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii — soft, not pill-everything */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --nav-height: 64px;
  --content-max: 1120px;
  --content-narrow: 720px;
  --header-z: 100;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 140ms;
  --duration: 220ms;

  /* Status accents (shared across themes) */
  --status-working: #1f9d63;
  --status-risky: #c9891a;
  --status-patched: #c94a4a;
  --status-info: #3a7ca5;

  /* Brand accents — restrained */
  --accent: #2f6fed;
  --accent-soft: rgba(47, 111, 237, 0.14);
  --accent-discord: #5865f2;
  --accent-reddit: #ff4500;
}

/* Dark mode — default */
html,
html[data-theme="dark"] {
  color-scheme: dark;
  --neu-base: #2a2d33;
  --neu-base-2: #24272c;
  --neu-raised: #30343b;
  --neu-inset: #22252a;
  --neu-light: #3a3f48;
  --neu-dark: #1a1c20;
  --neu-shadow-dark: rgba(0, 0, 0, 0.55);
  --neu-shadow-light: rgba(70, 76, 88, 0.35);

  --text-primary: #eef0f4;
  --text-secondary: #b4b9c3;
  --text-muted: #858b97;
  --text-inverse: #1a1c20;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --focus-ring: #6b9cff;
  --overlay: rgba(0, 0, 0, 0.55);

  --accent: #6b9cff;
  --accent-soft: rgba(107, 156, 255, 0.16);
  --status-working: #3ecf8e;
  --status-risky: #e0a93a;
  --status-patched: #e06a6a;
}

/* Light mode */
html[data-theme="light"] {
  color-scheme: light;
  --neu-base: #e8e6e1;
  --neu-base-2: #dedbd4;
  --neu-raised: #eceae5;
  --neu-inset: #e2e0da;
  --neu-light: #ffffff;
  --neu-dark: #c5c2ba;
  --neu-shadow-dark: rgba(163, 158, 148, 0.55);
  --neu-shadow-light: rgba(255, 255, 255, 0.9);

  --text-primary: #1c1b19;
  --text-secondary: #4a4740;
  --text-muted: #7a756c;
  --text-inverse: #f7f5f0;

  --border-subtle: rgba(28, 27, 25, 0.08);
  --focus-ring: #2f6fed;
  --overlay: rgba(28, 27, 25, 0.4);

  --accent: #2a5fd4;
  --accent-soft: rgba(42, 95, 212, 0.12);
  --status-working: #1a8a56;
  --status-risky: #b57a12;
  --status-patched: #b83d3d;
}
