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

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.981 0.014 80);
  --foreground: oklch(0.18 0.006 350);
  --card: oklch(0.996 0.004 80);
  --card-foreground: oklch(0.18 0.006 350);
  --popover: oklch(0.996 0.004 80);
  --popover-foreground: oklch(0.18 0.006 350);
  --primary: oklch(0.65 0.247 356);
  --primary-foreground: oklch(0.14 0.01 350);
  --secondary: oklch(0.18 0.006 350);
  --secondary-foreground: oklch(0.981 0.014 80);
  --muted: oklch(0.955 0.016 80);
  --muted-foreground: oklch(0.44 0.02 60);
  --accent: oklch(0.945 0.02 80);
  --accent-foreground: oklch(0.18 0.006 350);
  --destructive: oklch(0.53 0.23 27);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.885 0.02 80);
  --input: oklch(0.84 0.022 80);
  --ring: oklch(0.65 0.247 356);
  --success: oklch(0.5 0.13 152);
  --warning: oklch(0.76 0.14 90);
  --chart-1: oklch(0.65 0.247 356);
  --chart-2: oklch(0.627 0.265 303);
  --chart-3: oklch(0.76 0.14 90);
  --chart-4: oklch(0.18 0.006 350);
  --chart-5: oklch(0.8 0.1 356);
  --sidebar: oklch(0.18 0.006 350);
  --sidebar-foreground: oklch(0.97 0.014 80);
  --sidebar-primary: oklch(0.65 0.247 356);
  --sidebar-primary-foreground: oklch(0.14 0.01 350);
  --sidebar-accent: oklch(0.28 0.012 350);
  --sidebar-accent-foreground: oklch(0.981 0.014 80);
  --sidebar-border: oklch(0.32 0.012 350);
  --sidebar-ring: oklch(0.65 0.247 356);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.962 0.018 80);
  --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.94 0.016 80);
  --border-muted: oklch(0.915 0.018 80);
  --border-strong: oklch(0.72 0.03 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.34 0.012 350);

  /* ── 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.66 0.24 303);
  --highlight-foreground: oklch(0.14 0.01 350);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.65 0.247 356 / 0.4);

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

  /* ── onyx: the fixed brand-black header/footer band (same in light and
     dark mode — it carries the crown wordmark, which is baked onto true
     black, so it never flips with the viewer's colour scheme) ────── */
  --onyx: oklch(0.145 0 0);
  --onyx-foreground: oklch(0.97 0.014 80);

  /* ── gold + ruby: metallic gold foil accent and the holiday red ─ */
  --gold: oklch(0.8 0.12 85);
  --gold-foreground: oklch(0.145 0 0);
  --ruby: oklch(0.4 0.16 25);
  --ruby-foreground: oklch(0.97 0.014 80);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Playfair Display", "Bodoni MT", Didot, Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.1;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.18 0.006 350 / 0.06);
  --shadow-md: 0 6px 16px oklch(0.18 0.006 350 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.18 0.006 350 / 0.16);

  /* ── 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.18 0.006 350);
  --foreground: oklch(0.97 0.014 80);
  --card: oklch(0.225 0.008 350);
  --card-foreground: oklch(0.97 0.014 80);
  --popover: oklch(0.225 0.008 350);
  --popover-foreground: oklch(0.97 0.014 80);
  --primary: oklch(0.68 0.235 356);
  --primary-foreground: oklch(0.14 0.01 350);
  --secondary: oklch(0.97 0.014 80);
  --secondary-foreground: oklch(0.18 0.006 350);
  --muted: oklch(0.27 0.01 350);
  --muted-foreground: oklch(0.76 0.02 80);
  --accent: oklch(0.29 0.012 350);
  --accent-foreground: oklch(0.97 0.014 80);
  --destructive: oklch(0.7 0.19 22);
  --destructive-foreground: oklch(0.14 0.01 350);
  --border: oklch(0.34 0.012 350);
  --input: oklch(0.4 0.014 350);
  --ring: oklch(0.68 0.235 356);
  --success: oklch(0.74 0.15 152);
  --warning: oklch(0.8 0.14 90);
  --chart-1: oklch(0.68 0.235 356);
  --chart-2: oklch(0.7 0.21 303);
  --chart-3: oklch(0.8 0.14 90);
  --chart-4: oklch(0.97 0.014 80);
  --chart-5: oklch(0.8 0.1 356);
  --sidebar: oklch(0.15 0.006 350);
  --sidebar-foreground: oklch(0.97 0.014 80);
  --sidebar-primary: oklch(0.68 0.235 356);
  --sidebar-primary-foreground: oklch(0.14 0.01 350);
  --sidebar-accent: oklch(0.27 0.012 350);
  --sidebar-accent-foreground: oklch(0.97 0.014 80);
  --sidebar-border: oklch(0.3 0.012 350);
  --sidebar-ring: oklch(0.68 0.235 356);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.205 0.007 350);
  --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.26 0.01 350);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.26 0.01 350);
  --border-muted: oklch(0.3 0.011 350);
  --border-strong: oklch(0.48 0.016 350);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.86 0.016 80);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, 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.7 0.21 303);
  --highlight-foreground: oklch(0.14 0.01 350);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.68 0.235 356 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.19 22);
  --error-foreground: oklch(0.14 0.01 350);

  /* ── onyx: fixed brand-black band, identical to :root ─────────── */
  --onyx: oklch(0.145 0 0);
  --onyx-foreground: oklch(0.97 0.014 80);

  /* ── gold + ruby: metallic gold foil accent and the holiday red ─ */
  --gold: oklch(0.8 0.12 85);
  --gold-foreground: oklch(0.145 0 0);
  --ruby: oklch(0.4 0.16 25);
  --ruby-foreground: oklch(0.97 0.014 80);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Playfair Display", "Bodoni MT", Didot, Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.1;
  --tracking-display: -0.02em;
  --font-weight-body: 450;
  --line-height-body: 1.62;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

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

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