@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Syne:wght@600;700&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.957 0.007 90);
  --foreground: oklch(0.285 0.004 90);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.285 0.004 90);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.285 0.004 90);
  --primary: oklch(0.44 0.075 195);
  --primary-foreground: oklch(0.985 0.005 190);
  --secondary: oklch(0.925 0.01 88);
  --secondary-foreground: oklch(0.285 0.004 90);
  --muted: oklch(0.935 0.008 88);
  --muted-foreground: oklch(0.46 0.01 85);
  --accent: oklch(0.94 0.018 185);
  --accent-foreground: oklch(0.3 0.05 195);
  --destructive: oklch(0.53 0.19 27);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.885 0.013 85);
  --input: oklch(0.85 0.014 85);
  --ring: oklch(0.44 0.075 195);
  --success: oklch(0.5 0.12 155);
  --warning: oklch(0.84 0.16 90);
  --chart-1: oklch(0.44 0.075 195);
  --chart-2: oklch(0.84 0.16 90);
  --chart-3: oklch(0.68 0.18 23);
  --chart-4: oklch(0.285 0.004 90);
  --chart-5: oklch(0.5 0.12 155);
  --sidebar: oklch(0.285 0.004 90);
  --sidebar-foreground: oklch(0.957 0.007 90);
  --sidebar-primary: oklch(0.84 0.16 90);
  --sidebar-primary-foreground: oklch(0.25 0.004 90);
  --sidebar-accent: oklch(0.36 0.005 90);
  --sidebar-accent-foreground: oklch(0.985 0.004 90);
  --sidebar-border: oklch(0.4 0.005 90);
  --sidebar-ring: oklch(0.84 0.16 90);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.935 0.009 88);
  --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.935 0.009 85);
  --border-muted: oklch(0.91 0.011 85);
  --border-strong: oklch(0.78 0.016 85);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.38 0.006 90);

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

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.84 0.16 90);
  --highlight-foreground: oklch(0.25 0.004 90);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.44 0.075 195 / 0.4);

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

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Syne, "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 0 oklch(0.285 0.004 90 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.285 0.004 90 / 0.1);
  --shadow-lg: 0 14px 36px oklch(0.285 0.004 90 / 0.16);

  /* ── 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.2 0.004 90);
  --foreground: oklch(0.95 0.007 90);
  --card: oklch(0.25 0.004 90);
  --card-foreground: oklch(0.95 0.007 90);
  --popover: oklch(0.25 0.004 90);
  --popover-foreground: oklch(0.95 0.007 90);
  --primary: oklch(0.76 0.1 190);
  --primary-foreground: oklch(0.2 0.03 195);
  --secondary: oklch(0.31 0.005 90);
  --secondary-foreground: oklch(0.95 0.007 90);
  --muted: oklch(0.29 0.005 90);
  --muted-foreground: oklch(0.76 0.01 88);
  --accent: oklch(0.32 0.03 190);
  --accent-foreground: oklch(0.95 0.015 185);
  --destructive: oklch(0.6 0.19 26);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 18%);
  --ring: oklch(0.76 0.1 190);
  --success: oklch(0.76 0.14 155);
  --warning: oklch(0.86 0.16 90);
  --chart-1: oklch(0.76 0.1 190);
  --chart-2: oklch(0.86 0.16 90);
  --chart-3: oklch(0.72 0.17 23);
  --chart-4: oklch(0.85 0.007 90);
  --chart-5: oklch(0.76 0.14 155);
  --sidebar: oklch(0.16 0.004 90);
  --sidebar-foreground: oklch(0.95 0.007 90);
  --sidebar-primary: oklch(0.86 0.16 90);
  --sidebar-primary-foreground: oklch(0.22 0.004 90);
  --sidebar-accent: oklch(0.28 0.005 90);
  --sidebar-accent-foreground: oklch(0.97 0.005 90);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.86 0.16 90);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.225 0.004 90);
  --surface-elevated: oklch(0.29 0.005 90);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.84 0.008 90);

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

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.86 0.16 90);
  --highlight-foreground: oklch(0.22 0.004 90);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.76 0.1 190 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.74 0.16 24);
  --error-foreground: oklch(0.2 0.004 90);

  /* ── typography (dark compensation) ───────────────────────────── */
  --line-height-body: 1.6;
  --tracking-body: 0.01em;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 0 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);
}
