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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.967 0.008 85);
  --foreground: oklch(0.24 0.03 163);
  --card: oklch(0.988 0.005 85);
  --card-foreground: oklch(0.24 0.03 163);
  --popover: oklch(0.988 0.005 85);
  --popover-foreground: oklch(0.24 0.03 163);
  --primary: oklch(0.355 0.05 163);
  --primary-foreground: oklch(0.975 0.008 85);
  --secondary: oklch(0.92 0.012 80);
  --secondary-foreground: oklch(0.3 0.045 163);
  --muted: oklch(0.935 0.01 82);
  --muted-foreground: oklch(0.44 0.02 150);
  --accent: oklch(0.925 0.014 80);
  --accent-foreground: oklch(0.3 0.045 163);
  --destructive: oklch(0.5 0.17 28);
  --destructive-foreground: oklch(0.985 0.005 85);
  --border: oklch(0.84 0.012 80);
  --input: oklch(0.8 0.014 80);
  --ring: oklch(0.355 0.05 163);
  --success: oklch(0.45 0.1 155);
  --warning: oklch(0.5 0.11 70);
  --chart-1: oklch(0.355 0.05 163);
  --chart-2: oklch(0.63 0.13 45);
  --chart-3: oklch(0.55 0.06 163);
  --chart-4: oklch(0.74 0.09 60);
  --chart-5: oklch(0.7 0.02 80);
  --sidebar: oklch(0.95 0.009 84);
  --sidebar-foreground: oklch(0.24 0.03 163);
  --sidebar-primary: oklch(0.355 0.05 163);
  --sidebar-primary-foreground: oklch(0.975 0.008 85);
  --sidebar-accent: oklch(0.92 0.012 80);
  --sidebar-accent-foreground: oklch(0.3 0.045 163);
  --sidebar-border: oklch(0.84 0.012 80);
  --sidebar-ring: oklch(0.355 0.05 163);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.945 0.01 83);
  --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.995 0.003 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.925 0.01 82);
  --border-muted: oklch(0.885 0.011 81);
  --border-strong: oklch(0.72 0.016 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.36 0.03 160);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 90%, 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) 6%,  var(--background));

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.63 0.13 45);
  --highlight-foreground: oklch(0.17 0.02 160);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.355 0.05 163 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.17 28);
  --error-foreground: oklch(0.985 0.005 85);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Outfit, 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.02em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 80 / 0.06);
  --shadow-md: 0 6px 16px oklch(0.3 0.03 80 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.3 0.03 80 / 0.12);

  /* ── 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.02 163);
  --foreground: oklch(0.95 0.01 85);
  --card: oklch(0.235 0.024 163);
  --card-foreground: oklch(0.95 0.01 85);
  --popover: oklch(0.235 0.024 163);
  --popover-foreground: oklch(0.95 0.01 85);
  --primary: oklch(0.8 0.07 163);
  --primary-foreground: oklch(0.19 0.03 163);
  --secondary: oklch(0.285 0.026 163);
  --secondary-foreground: oklch(0.95 0.01 85);
  --muted: oklch(0.27 0.022 163);
  --muted-foreground: oklch(0.77 0.015 85);
  --accent: oklch(0.285 0.026 163);
  --accent-foreground: oklch(0.95 0.01 85);
  --destructive: oklch(0.7 0.16 28);
  --destructive-foreground: oklch(0.17 0.02 28);
  --border: oklch(0.36 0.02 163);
  --input: oklch(0.42 0.02 163);
  --ring: oklch(0.8 0.07 163);
  --success: oklch(0.8 0.11 155);
  --warning: oklch(0.83 0.11 75);
  --chart-1: oklch(0.8 0.07 163);
  --chart-2: oklch(0.7 0.13 45);
  --chart-3: oklch(0.62 0.06 163);
  --chart-4: oklch(0.8 0.09 60);
  --chart-5: oklch(0.7 0.02 80);
  --sidebar: oklch(0.215 0.022 163);
  --sidebar-foreground: oklch(0.95 0.01 85);
  --sidebar-primary: oklch(0.8 0.07 163);
  --sidebar-primary-foreground: oklch(0.19 0.03 163);
  --sidebar-accent: oklch(0.285 0.026 163);
  --sidebar-accent-foreground: oklch(0.95 0.01 85);
  --sidebar-border: oklch(0.36 0.02 163);
  --sidebar-ring: oklch(0.8 0.07 163);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.022 163);
  --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.27 0.025 163);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.28 0.02 163);
  --border-muted: oklch(0.32 0.02 163);
  --border-strong: oklch(0.48 0.02 163);

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

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

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.68 0.13 45);
  --highlight-foreground: oklch(0.17 0.02 160);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.8 0.07 163 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.76 0.14 28);
  --error-foreground: oklch(0.17 0.02 28);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.15;
  --tracking-display: -0.02em;
  --font-weight-body: 450;
  --line-height-body: 1.68;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.36);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);

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