@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  /* Sparkleverse: soft lavender-white base, navy #24214b text, gold CTAs, pastel accents */
  --background: oklch(0.968 0.018 302);
  --foreground: oklch(0.27 0.075 283);
  --card: oklch(0.995 0.005 302);
  --card-foreground: oklch(0.27 0.075 283);
  --popover: oklch(0.995 0.005 302);
  --popover-foreground: oklch(0.27 0.075 283);
  --primary: oklch(0.78 0.15 68);
  --primary-foreground: oklch(0.24 0.07 283);
  --secondary: oklch(0.88 0.065 298);
  --secondary-foreground: oklch(0.27 0.075 283);
  --muted: oklch(0.945 0.022 302);
  --muted-foreground: oklch(0.49 0.05 290);
  --accent: oklch(0.94 0.03 302);
  --accent-foreground: oklch(0.27 0.075 283);
  --destructive: oklch(0.55 0.2 20);
  --destructive-foreground: oklch(0.985 0.01 85);
  --border: oklch(0.89 0.035 302);
  --input: oklch(0.87 0.04 302);
  --ring: oklch(0.78 0.15 68);
  --success: oklch(0.53 0.11 165);
  --warning: oklch(0.58 0.14 58);
  --chart-1: oklch(0.72 0.13 300);
  --chart-2: oklch(0.78 0.15 68);
  --chart-3: oklch(0.8 0.11 195);
  --chart-4: oklch(0.78 0.13 345);
  --chart-5: oklch(0.72 0.14 145);
  --sidebar: oklch(0.24 0.07 283);
  --sidebar-foreground: oklch(0.95 0.02 300);
  --sidebar-primary: oklch(0.8 0.15 72);
  --sidebar-primary-foreground: oklch(0.22 0.07 283);
  --sidebar-accent: oklch(0.32 0.08 288);
  --sidebar-accent-foreground: oklch(0.98 0.01 300);
  --sidebar-border: oklch(0.34 0.07 288);
  --sidebar-ring: oklch(0.8 0.15 72);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.945 0.03 302);
  --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.003 302);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.022 302);
  --border-muted: oklch(0.915 0.03 302);
  --border-strong: oklch(0.78 0.06 300);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.065 286);

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

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.78 0.15 68 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.2 25);
  --error-foreground: oklch(0.985 0.01 85);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.1;
  --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 oklch(0.25 0.08 315 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.25 0.08 315 / 0.12);
  --shadow-lg: 0 14px 36px oklch(0.25 0.08 315 / 0.18);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --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.045 300);
  --foreground: oklch(0.94 0.02 85);
  --card: oklch(0.215 0.05 302);
  --card-foreground: oklch(0.94 0.02 85);
  --popover: oklch(0.215 0.05 302);
  --popover-foreground: oklch(0.94 0.02 85);
  --primary: oklch(0.82 0.14 85);
  --primary-foreground: oklch(0.2 0.06 305);
  --secondary: oklch(0.28 0.06 305);
  --secondary-foreground: oklch(0.94 0.02 85);
  --muted: oklch(0.26 0.05 302);
  --muted-foreground: oklch(0.76 0.035 300);
  --accent: oklch(0.29 0.06 308);
  --accent-foreground: oklch(0.95 0.02 85);
  --destructive: oklch(0.7 0.18 25);
  --destructive-foreground: oklch(0.15 0.04 300);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.82 0.14 85);
  --success: oklch(0.76 0.12 175);
  --warning: oklch(0.82 0.14 78);
  --chart-1: oklch(0.72 0.12 310);
  --chart-2: oklch(0.82 0.14 85);
  --chart-3: oklch(0.74 0.11 185);
  --chart-4: oklch(0.8 0.08 300);
  --chart-5: oklch(0.75 0.14 350);
  --sidebar: oklch(0.14 0.04 300);
  --sidebar-foreground: oklch(0.93 0.025 85);
  --sidebar-primary: oklch(0.82 0.14 85);
  --sidebar-primary-foreground: oklch(0.2 0.06 305);
  --sidebar-accent: oklch(0.24 0.05 305);
  --sidebar-accent-foreground: oklch(0.96 0.02 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.82 0.14 85);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.2 0.045 300);
  --surface-elevated: oklch(0.27 0.05 302);

  /* ── 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.82 0.03 90);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.82 0.14 85 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.72 0.18 25);
  --error-foreground: oklch(0.15 0.04 300);
}
