@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.972 0.02 88);
  --foreground: oklch(0.21 0.018 250);
  --card: oklch(0.988 0.012 90);
  --card-foreground: oklch(0.21 0.018 250);
  --popover: oklch(0.988 0.012 90);
  --popover-foreground: oklch(0.21 0.018 250);
  --primary: oklch(0.21 0.018 250);
  --primary-foreground: oklch(0.972 0.02 88);
  --secondary: oklch(0.885 0.058 230);
  --secondary-foreground: oklch(0.21 0.018 250);
  --muted: oklch(0.945 0.018 88);
  --muted-foreground: oklch(0.44 0.02 250);
  --accent: oklch(0.935 0.03 230);
  --accent-foreground: oklch(0.21 0.018 250);
  --destructive: oklch(0.42 0.1 252);
  --destructive-foreground: oklch(0.972 0.02 88);
  --border: oklch(0.88 0.02 88);
  --input: oklch(0.86 0.02 88);
  --ring: oklch(0.62 0.1 232);
  --success: oklch(0.47 0.1 155);
  --warning: oklch(0.52 0.14 65);
  --chart-1: oklch(0.66 0.11 232);
  --chart-2: oklch(0.21 0.018 250);
  --chart-3: oklch(0.8 0.07 230);
  --chart-4: oklch(0.72 0.1 70);
  --chart-5: oklch(0.75 0.03 88);
  --sidebar: oklch(0.955 0.02 88);
  --sidebar-foreground: oklch(0.21 0.018 250);
  --sidebar-primary: oklch(0.21 0.018 250);
  --sidebar-primary-foreground: oklch(0.972 0.02 88);
  --sidebar-accent: oklch(0.92 0.035 230);
  --sidebar-accent-foreground: oklch(0.21 0.018 250);
  --sidebar-border: oklch(0.88 0.02 88);
  --sidebar-ring: oklch(0.62 0.1 232);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.952 0.022 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.016 88);
  --border-muted: oklch(0.91 0.018 88);
  --border-strong: oklch(0.76 0.025 88);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.36 0.02 250);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: oklch(0.32 0.022 250);
  --primary-muted: oklch(0.9 0.05 230);
  --primary-soft: oklch(0.935 0.035 230);
  --primary-tint: oklch(0.958 0.022 228);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.62 0.1 232 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.42 0.1 252);
  --error-foreground: oklch(0.972 0.02 88);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Syne, Manrope, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Manrope, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.08;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(20, 28, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 28, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 28, 40, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 340ms;
  --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.17 0.012 250);
  --foreground: oklch(0.95 0.02 88);
  --card: oklch(0.215 0.014 250);
  --card-foreground: oklch(0.95 0.02 88);
  --popover: oklch(0.215 0.014 250);
  --popover-foreground: oklch(0.95 0.02 88);
  --primary: oklch(0.83 0.08 230);
  --primary-foreground: oklch(0.17 0.012 250);
  --secondary: oklch(0.32 0.05 232);
  --secondary-foreground: oklch(0.95 0.02 88);
  --muted: oklch(0.26 0.014 250);
  --muted-foreground: oklch(0.74 0.015 88);
  --accent: oklch(0.28 0.03 232);
  --accent-foreground: oklch(0.95 0.02 88);
  --destructive: oklch(0.76 0.09 240);
  --destructive-foreground: oklch(0.17 0.012 250);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.83 0.08 230);
  --success: oklch(0.72 0.1 150);
  --warning: oklch(0.78 0.13 70);
  --chart-1: oklch(0.83 0.08 230);
  --chart-2: oklch(0.95 0.02 88);
  --chart-3: oklch(0.6 0.08 232);
  --chart-4: oklch(0.8 0.1 70);
  --chart-5: oklch(0.6 0.03 85);
  --sidebar: oklch(0.15 0.012 250);
  --sidebar-foreground: oklch(0.95 0.02 88);
  --sidebar-primary: oklch(0.83 0.08 230);
  --sidebar-primary-foreground: oklch(0.17 0.012 250);
  --sidebar-accent: oklch(0.25 0.025 232);
  --sidebar-accent-foreground: oklch(0.95 0.02 88);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.83 0.08 230);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.2 0.013 250);
  --surface-elevated: oklch(0.26 0.014 250);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.84 0.015 88);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: oklch(0.88 0.07 230);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft: color-mix(in srgb, var(--primary) 11%, var(--background));
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.83 0.08 230 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.76 0.09 240);
  --error-foreground: oklch(0.17 0.012 250);
}
