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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.966 0.008 85);
  --foreground: oklch(0.26 0.035 160);
  --card: oklch(0.995 0.004 85);
  --card-foreground: oklch(0.26 0.035 160);
  --popover: oklch(0.995 0.004 85);
  --popover-foreground: oklch(0.26 0.035 160);
  --primary: oklch(0.36 0.055 160);
  --primary-foreground: oklch(0.985 0.006 85);
  --secondary: oklch(0.55 0.14 40);
  --secondary-foreground: oklch(0.99 0.005 85);
  --muted: oklch(0.93 0.01 85);
  --muted-foreground: oklch(0.47 0.03 160);
  --accent: oklch(0.91 0.02 160);
  --accent-foreground: oklch(0.3 0.05 160);
  --destructive: oklch(0.55 0.19 27);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.84 0.012 80);
  --input: oklch(0.84 0.012 80);
  --ring: oklch(0.55 0.14 40);
  --success: oklch(0.52 0.12 150);
  --warning: oklch(0.72 0.15 70);
  --chart-1: oklch(0.36 0.055 160);
  --chart-2: oklch(0.62 0.14 40);
  --chart-3: oklch(0.58 0.08 160);
  --chart-4: oklch(0.78 0.09 60);
  --chart-5: oklch(0.7 0.03 80);
  --sidebar: oklch(0.945 0.01 85);
  --sidebar-foreground: oklch(0.26 0.035 160);
  --sidebar-primary: oklch(0.36 0.055 160);
  --sidebar-primary-foreground: oklch(0.985 0.006 85);
  --sidebar-accent: oklch(0.9 0.02 160);
  --sidebar-accent-foreground: oklch(0.3 0.05 160);
  --sidebar-border: oklch(0.84 0.012 80);
  --sidebar-ring: oklch(0.55 0.14 40);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.94 0.012 85);
  --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.92 0.01 85);
  --border-muted: oklch(0.89 0.012 82);
  --border-strong: oklch(0.72 0.02 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.38 0.035 160);

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

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

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

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

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(37, 67, 54, 0.06);
  --shadow-md: 0 4px 14px rgba(37, 67, 54, 0.1);
  --shadow-lg: 0 14px 36px rgba(37, 67, 54, 0.14);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --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.2 0.03 160);
  --foreground: oklch(0.955 0.01 85);
  --card: oklch(0.25 0.035 160);
  --card-foreground: oklch(0.955 0.01 85);
  --popover: oklch(0.25 0.035 160);
  --popover-foreground: oklch(0.955 0.01 85);
  --primary: oklch(0.88 0.03 85);
  --primary-foreground: oklch(0.24 0.04 160);
  --secondary: oklch(0.68 0.14 40);
  --secondary-foreground: oklch(0.16 0.03 40);
  --muted: oklch(0.3 0.03 160);
  --muted-foreground: oklch(0.78 0.02 85);
  --accent: oklch(0.32 0.04 160);
  --accent-foreground: oklch(0.955 0.01 85);
  --destructive: oklch(0.7 0.19 22);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 14%);
  --input: oklch(1 0 0 / 18%);
  --ring: oklch(0.68 0.14 40);
  --success: oklch(0.72 0.13 150);
  --warning: oklch(0.82 0.15 75);
  --chart-1: oklch(0.88 0.03 85);
  --chart-2: oklch(0.68 0.14 40);
  --chart-3: oklch(0.7 0.08 160);
  --chart-4: oklch(0.8 0.09 60);
  --chart-5: oklch(0.6 0.03 80);
  --sidebar: oklch(0.17 0.03 160);
  --sidebar-foreground: oklch(0.955 0.01 85);
  --sidebar-primary: oklch(0.88 0.03 85);
  --sidebar-primary-foreground: oklch(0.24 0.04 160);
  --sidebar-accent: oklch(0.3 0.04 160);
  --sidebar-accent-foreground: oklch(0.955 0.01 85);
  --sidebar-border: oklch(1 0 0 / 14%);
  --sidebar-ring: oklch(0.68 0.14 40);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.23 0.03 160);
  --surface-elevated: oklch(0.3 0.035 160);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.85 0.015 85);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.68 0.14 40 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.19 22);
  --error-foreground: oklch(0.985 0 0);
}
