@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400..700&family=Poppins:wght@400;500;600&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.17 0.012 240);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.17 0.012 240);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.17 0.012 240);
  --primary: oklch(0.52 0.125 232);
  --primary-foreground: oklch(0.99 0.005 225);
  --secondary: oklch(0.84 0.004 200);
  --secondary-foreground: oklch(0.17 0.012 240);
  --muted: oklch(0.955 0.003 220);
  --muted-foreground: oklch(0.46 0.012 235);
  --accent: oklch(0.945 0.012 225);
  --accent-foreground: oklch(0.2 0.015 240);
  --destructive: oklch(0.53 0.21 27);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.86 0.004 220);
  --input: oklch(0.8 0.005 220);
  --ring: oklch(0.65 0.13 225);
  --success: oklch(0.56 0.14 150);
  --warning: oklch(0.76 0.15 72);
  --chart-1: oklch(0.65 0.13 225);
  --chart-2: oklch(0.52 0.125 232);
  --chart-3: oklch(0.72 0.01 220);
  --chart-4: oklch(0.4 0.09 238);
  --chart-5: oklch(0.3 0.012 240);
  --sidebar: oklch(0.965 0.003 220);
  --sidebar-foreground: oklch(0.17 0.012 240);
  --sidebar-primary: oklch(0.52 0.125 232);
  --sidebar-primary-foreground: oklch(0.99 0.005 225);
  --sidebar-accent: oklch(0.9 0.006 220);
  --sidebar-accent-foreground: oklch(0.17 0.012 240);
  --sidebar-border: oklch(0.86 0.004 220);
  --sidebar-ring: oklch(0.65 0.13 225);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.97 0.003 220);
  --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(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.003 220);
  --border-muted: oklch(0.9 0.004 220);
  --border-strong: oklch(0.62 0.008 225);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.36 0.012 238);

  /* ── 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) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.65 0.13 225);
  --highlight-foreground: oklch(0.17 0.012 240);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.65 0.13 225 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.53 0.21 27);
  --error-foreground: oklch(0.985 0 0);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.5rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Oswald, "Bebas Neue", "Arial Narrow", Impact, ui-sans-serif, sans-serif;
  --font-sans: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: 0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.17 0.012 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.17 0.012 240 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.17 0.012 240 / 0.14);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --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.16 0.01 240);
  --foreground: oklch(0.97 0.003 220);
  --card: oklch(0.205 0.012 240);
  --card-foreground: oklch(0.97 0.003 220);
  --popover: oklch(0.205 0.012 240);
  --popover-foreground: oklch(0.97 0.003 220);
  --primary: oklch(0.74 0.12 225);
  --primary-foreground: oklch(0.16 0.02 240);
  --secondary: oklch(0.33 0.008 230);
  --secondary-foreground: oklch(0.97 0.003 220);
  --muted: oklch(0.26 0.01 238);
  --muted-foreground: oklch(0.76 0.01 228);
  --accent: oklch(0.28 0.02 232);
  --accent-foreground: oklch(0.97 0.003 220);
  --destructive: oklch(0.7 0.19 22);
  --destructive-foreground: oklch(0.16 0.01 240);
  --border: oklch(1 0 0 / 14%);
  --input: oklch(1 0 0 / 20%);
  --ring: oklch(0.74 0.12 225);
  --success: oklch(0.74 0.15 150);
  --warning: oklch(0.83 0.15 75);
  --chart-1: oklch(0.74 0.12 225);
  --chart-2: oklch(0.62 0.13 230);
  --chart-3: oklch(0.8 0.008 220);
  --chart-4: oklch(0.5 0.1 236);
  --chart-5: oklch(0.6 0.01 225);
  --sidebar: oklch(0.19 0.011 240);
  --sidebar-foreground: oklch(0.97 0.003 220);
  --sidebar-primary: oklch(0.74 0.12 225);
  --sidebar-primary-foreground: oklch(0.16 0.02 240);
  --sidebar-accent: oklch(0.28 0.012 236);
  --sidebar-accent-foreground: oklch(0.97 0.003 220);
  --sidebar-border: oklch(1 0 0 / 14%);
  --sidebar-ring: oklch(0.74 0.12 225);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.185 0.011 240);
  --surface-hover:   color-mix(in srgb, var(--foreground) 8%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 13%, var(--background));
  --surface-elevated: oklch(0.25 0.012 240);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 7%);
  --border-muted: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 28%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.85 0.006 225);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 24%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 14%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.7 0.13 225);
  --highlight-foreground: oklch(0.16 0.02 240);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.74 0.12 225 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.18 22);
  --error-foreground: oklch(0.16 0.01 240);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.5rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: 0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.65;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --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;
}
