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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.195 0.03 250);
  --foreground: oklch(0.985 0.005 250);
  --card: oklch(0.24 0.035 250);
  --card-foreground: oklch(0.985 0.005 250);
  --popover: oklch(0.26 0.038 250);
  --popover-foreground: oklch(0.985 0.005 250);
  --primary: oklch(0.63 0.14 245);
  --primary-foreground: oklch(0.16 0.03 250);
  --secondary: oklch(0.29 0.04 250);
  --secondary-foreground: oklch(0.985 0.005 250);
  --muted: oklch(0.27 0.035 250);
  --muted-foreground: oklch(0.76 0.03 245);
  --accent: oklch(0.31 0.045 250);
  --accent-foreground: oklch(0.985 0.005 250);
  --destructive: oklch(0.54 0.2 25);
  --destructive-foreground: oklch(0.985 0.005 250);
  --border: oklch(0.34 0.04 250);
  --input: oklch(0.4 0.045 250);
  --ring: oklch(0.63 0.14 245);
  --success: oklch(0.76 0.16 152);
  --warning: oklch(0.8 0.15 80);
  --chart-1: oklch(0.63 0.14 245);
  --chart-2: oklch(0.8 0.15 80);
  --chart-3: oklch(0.76 0.16 152);
  --chart-4: oklch(0.78 0.1 230);
  --chart-5: oklch(0.7 0.17 25);
  --sidebar: oklch(0.17 0.03 250);
  --sidebar-foreground: oklch(0.985 0.005 250);
  --sidebar-primary: oklch(0.63 0.14 245);
  --sidebar-primary-foreground: oklch(0.16 0.03 250);
  --sidebar-accent: oklch(0.27 0.04 250);
  --sidebar-accent-foreground: oklch(0.985 0.005 250);
  --sidebar-border: oklch(0.3 0.04 250);
  --sidebar-ring: oklch(0.63 0.14 245);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.22 0.032 250);
  --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.28 0.04 250);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.27 0.035 250);
  --border-muted: oklch(0.3 0.038 250);
  --border-strong: oklch(0.46 0.05 250);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.87 0.02 245);

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

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.8 0.15 80);
  --highlight-foreground: oklch(0.16 0.03 250);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.63 0.14 245 / 0.55);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.72 0.17 22);
  --error-foreground: oklch(0.16 0.03 250);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Oswald, "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.15;
  --tracking-display: 0.01em;
  --font-weight-body: 450;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(2, 8, 16, 0.4);
  --shadow-md: 0 6px 16px rgba(2, 8, 16, 0.5);
  --shadow-lg: 0 16px 40px rgba(2, 8, 16, 0.6);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --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.195 0.03 250);
  --foreground: oklch(0.985 0.005 250);
  --card: oklch(0.24 0.035 250);
  --card-foreground: oklch(0.985 0.005 250);
  --popover: oklch(0.26 0.038 250);
  --popover-foreground: oklch(0.985 0.005 250);
  --primary: oklch(0.63 0.14 245);
  --primary-foreground: oklch(0.16 0.03 250);
  --secondary: oklch(0.29 0.04 250);
  --secondary-foreground: oklch(0.985 0.005 250);
  --muted: oklch(0.27 0.035 250);
  --muted-foreground: oklch(0.76 0.03 245);
  --accent: oklch(0.31 0.045 250);
  --accent-foreground: oklch(0.985 0.005 250);
  --destructive: oklch(0.54 0.2 25);
  --destructive-foreground: oklch(0.985 0.005 250);
  --border: oklch(0.34 0.04 250);
  --input: oklch(0.4 0.045 250);
  --ring: oklch(0.63 0.14 245);
  --success: oklch(0.76 0.16 152);
  --warning: oklch(0.8 0.15 80);
  --chart-1: oklch(0.63 0.14 245);
  --chart-2: oklch(0.8 0.15 80);
  --chart-3: oklch(0.76 0.16 152);
  --chart-4: oklch(0.78 0.1 230);
  --chart-5: oklch(0.7 0.17 25);
  --sidebar: oklch(0.17 0.03 250);
  --sidebar-foreground: oklch(0.985 0.005 250);
  --sidebar-primary: oklch(0.63 0.14 245);
  --sidebar-primary-foreground: oklch(0.16 0.03 250);
  --sidebar-accent: oklch(0.27 0.04 250);
  --sidebar-accent-foreground: oklch(0.985 0.005 250);
  --sidebar-border: oklch(0.3 0.04 250);
  --sidebar-ring: oklch(0.63 0.14 245);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.22 0.032 250);
  --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.28 0.04 250);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.27 0.035 250);
  --border-muted: oklch(0.3 0.038 250);
  --border-strong: oklch(0.46 0.05 250);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.87 0.02 245);

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

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.8 0.15 80);
  --highlight-foreground: oklch(0.16 0.03 250);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.63 0.14 245 / 0.55);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.17 22);
  --error-foreground: oklch(0.16 0.03 250);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Oswald, "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.15;
  --tracking-display: 0.01em;
  --font-weight-body: 450;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(2, 8, 16, 0.4);
  --shadow-md: 0 6px 16px rgba(2, 8, 16, 0.5);
  --shadow-lg: 0 16px 40px rgba(2, 8, 16, 0.6);

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