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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.975 0.005 230);
  --foreground: oklch(0.24 0.025 225);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.025 225);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.025 225);
  --primary: oklch(0.63 0.14 245);
  --primary-foreground: oklch(0.2 0.025 225);
  --secondary: oklch(0.94 0.012 230);
  --secondary-foreground: oklch(0.24 0.025 225);
  --muted: oklch(0.95 0.008 230);
  --muted-foreground: oklch(0.47 0.025 228);
  --accent: oklch(0.94 0.02 240);
  --accent-foreground: oklch(0.24 0.025 225);
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.89 0.012 230);
  --input: oklch(0.85 0.015 230);
  --ring: oklch(0.63 0.14 245);
  --success: oklch(0.58 0.14 155);
  --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.24 0.025 225);
  --chart-4: oklch(0.76 0.1 240);
  --chart-5: oklch(0.6 0.12 60);
  --sidebar: oklch(0.24 0.025 225);
  --sidebar-foreground: oklch(0.97 0.005 230);
  --sidebar-primary: oklch(0.8 0.15 80);
  --sidebar-primary-foreground: oklch(0.2 0.025 225);
  --sidebar-accent: oklch(0.32 0.03 228);
  --sidebar-accent-foreground: oklch(0.97 0.005 230);
  --sidebar-border: oklch(0.34 0.03 228);
  --sidebar-ring: oklch(0.8 0.15 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.008 230);
  --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.95 0.008 230);
  --border-muted: oklch(0.92 0.01 230);
  --border-strong: oklch(0.74 0.02 230);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.37 0.025 226);

  /* ── 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.8 0.15 80);
  --highlight-foreground: oklch(0.2 0.025 225);

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

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.22 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, "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: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.24 0.025 225 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.24 0.025 225 / 0.12);
  --shadow-lg: 0 14px 36px oklch(0.24 0.025 225 / 0.18);

  /* ── 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.19 0.022 225);
  --foreground: oklch(0.97 0.005 230);
  --card: oklch(0.24 0.025 225);
  --card-foreground: oklch(0.97 0.005 230);
  --popover: oklch(0.24 0.025 225);
  --popover-foreground: oklch(0.97 0.005 230);
  --primary: oklch(0.7 0.13 245);
  --primary-foreground: oklch(0.18 0.022 225);
  --secondary: oklch(0.3 0.028 226);
  --secondary-foreground: oklch(0.97 0.005 230);
  --muted: oklch(0.28 0.025 226);
  --muted-foreground: oklch(0.76 0.02 230);
  --accent: oklch(0.31 0.035 235);
  --accent-foreground: oklch(0.97 0.005 230);
  --destructive: oklch(0.7 0.19 22);
  --destructive-foreground: oklch(0.18 0.022 225);
  --border: oklch(0.34 0.028 226);
  --input: oklch(0.4 0.03 226);
  --ring: oklch(0.7 0.13 245);
  --success: oklch(0.72 0.15 155);
  --warning: oklch(0.83 0.15 82);
  --chart-1: oklch(0.7 0.13 245);
  --chart-2: oklch(0.83 0.15 82);
  --chart-3: oklch(0.9 0.01 230);
  --chart-4: oklch(0.8 0.09 240);
  --chart-5: oklch(0.68 0.12 60);
  --sidebar: oklch(0.16 0.02 225);
  --sidebar-foreground: oklch(0.97 0.005 230);
  --sidebar-primary: oklch(0.83 0.15 82);
  --sidebar-primary-foreground: oklch(0.18 0.022 225);
  --sidebar-accent: oklch(0.27 0.028 226);
  --sidebar-accent-foreground: oklch(0.97 0.005 230);
  --sidebar-border: oklch(0.3 0.028 226);
  --sidebar-ring: oklch(0.83 0.15 82);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.024 225);
  --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.28 0.027 226);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.27 0.025 226);
  --border-muted: oklch(0.3 0.027 226);
  --border-strong: oklch(0.48 0.03 226);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.86 0.012 230);

  /* ── 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.83 0.15 82);
  --highlight-foreground: oklch(0.18 0.022 225);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.7 0.13 245 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.18 22);
  --error-foreground: oklch(0.18 0.022 225);

  /* ── 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, 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 oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 14px 36px oklch(0 0 0 / 0.5);

  /* ── 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;
}
