@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,500&family=JetBrains+Mono:wght@400;500&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..600;1,6..96,400..600&family=Jost:wght@400..600&family=Pinyon+Script&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.946 0.019 80.1); /* Old Sport */
  --foreground: oklch(0.244 0 89.9); /* Tarmac */
  --card: oklch(0.985 0.009 83); /* lifted cream */
  --card-foreground: oklch(0.244 0 89.9);
  --popover: oklch(0.99 0.006 83);
  --popover-foreground: oklch(0.244 0 89.9);
  --primary: oklch(0.477 0.141 5.7); /* Full Throttle */
  --primary-foreground: oklch(0.97 0.015 85);
  --secondary: oklch(0.90 0.022 82);
  --secondary-foreground: oklch(0.278 0.041 174.6);
  --muted: oklch(0.905 0.02 82);
  --muted-foreground: oklch(0.44 0.03 110);
  --accent: oklch(0.823 0.056 326.1); /* After Party */
  --accent-foreground: oklch(0.30 0.09 326.1);
  --destructive: oklch(0.55 0.19 25);
  --destructive-foreground: oklch(0.97 0.015 85);
  --border: color-mix(in srgb, var(--foreground) 16%, var(--background));
  --input: color-mix(in srgb, var(--foreground) 20%, var(--background));
  --ring: oklch(0.52 0.15 5.7);
  --success: oklch(0.48 0.1 150);
  --warning: oklch(0.56 0.13 75); /* Daisy, deepened for legibility on cream */
  --chart-1: oklch(0.477 0.141 5.7);
  --chart-2: oklch(0.56 0.13 75);
  --chart-3: oklch(0.56 0.09 326.1);
  --chart-4: oklch(0.52 0.06 164.5);
  --chart-5: oklch(0.381 0.067 174.2);
  --sidebar: oklch(0.22 0.038 174.6); /* Pit Lane shell stays dark */
  --sidebar-foreground: oklch(0.90 0.02 82);
  --sidebar-primary: oklch(0.477 0.141 5.7);
  --sidebar-primary-foreground: oklch(0.97 0.015 85);
  --sidebar-accent: oklch(0.34 0.058 174.3);
  --sidebar-accent-foreground: oklch(0.946 0.019 80.1);
  --sidebar-border: color-mix(in srgb, var(--sidebar-foreground) 16%, var(--sidebar));
  --sidebar-ring: oklch(0.6 0.14 5.7);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.915 0.021 82);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.99 0.006 83);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: color-mix(in srgb, var(--foreground) 8%, var(--background));
  --border-muted: color-mix(in srgb, var(--foreground) 14%, var(--background));
  --border-strong: color-mix(in srgb, var(--foreground) 30%, var(--background));

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.40 0.035 110);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 15%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.52 0.15 5.7 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.19 25);
  --error-foreground: oklch(0.97 0.015 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-sans: "Montserrat", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.05;
  --tracking-display: 0.01em;
  --font-weight-body: 500;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.05 0.02 174 / 0.25);
  --shadow-md: 0 4px 12px oklch(0.05 0.02 174 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0.05 0.02 174 / 0.45);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.21 0.035 174.6);
  --foreground: oklch(0.955 0.018 80.1);
  --card: oklch(0.29 0.052 174.3);
  --card-foreground: oklch(0.955 0.018 80.1);
  --popover: oklch(0.32 0.054 174.2);
  --popover-foreground: oklch(0.955 0.018 80.1);
  --primary: oklch(0.54 0.15 5.7);
  --primary-foreground: oklch(0.97 0.015 85);
  --secondary: oklch(0.33 0.045 174.3);
  --secondary-foreground: oklch(0.955 0.018 80.1);
  --muted: oklch(0.25 0.035 174.5);
  --muted-foreground: oklch(0.70 0.022 165);
  --accent: oklch(0.74 0.055 326.1);
  --accent-foreground: oklch(0.30 0.1 5.7);
  --destructive: oklch(0.62 0.19 25);
  --destructive-foreground: oklch(0.14 0.02 174);
  --border: color-mix(in srgb, var(--foreground) 20%, var(--background));
  --input: color-mix(in srgb, var(--foreground) 24%, var(--background));
  --ring: oklch(0.6 0.15 5.7);
  --success: oklch(0.66 0.13 150);
  --warning: oklch(0.82 0.12 95);
  --chart-1: oklch(0.58 0.16 5.7);
  --chart-2: oklch(0.82 0.12 95);
  --chart-3: oklch(0.74 0.055 326.1);
  --chart-4: oklch(0.7 0.02 164.5);
  --chart-5: oklch(0.6 0.075 174.2);
  --sidebar: oklch(0.16 0.03 174.6);
  --sidebar-foreground: oklch(0.90 0.02 82);
  --sidebar-primary: oklch(0.54 0.15 5.7);
  --sidebar-primary-foreground: oklch(0.97 0.015 85);
  --sidebar-accent: oklch(0.27 0.045 174.3);
  --sidebar-accent-foreground: oklch(0.955 0.018 80.1);
  --sidebar-border: color-mix(in srgb, var(--sidebar-foreground) 14%, var(--sidebar));
  --sidebar-ring: oklch(0.6 0.15 5.7);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.24 0.038 174.5);
  --surface-elevated: oklch(0.34 0.055 174.1);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: color-mix(in srgb, var(--foreground) 9%, var(--background));
  --border-muted: color-mix(in srgb, var(--foreground) 15%, var(--background));
  --border-strong: color-mix(in srgb, var(--foreground) 32%, var(--background));

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.022 85);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.6 0.15 5.7 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.64 0.19 25);
  --error-foreground: oklch(0.14 0.02 174);
}
