@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";
@import "@fontsource/playfair-display/400.css";
@import "@fontsource/playfair-display/600.css";
@import "@fontsource/playfair-display/700.css";
@import "@fontsource/inter/300.css";
@import "@fontsource/inter/400.css";
@import "@fontsource/inter/500.css";
@import "@fontsource/inter/600.css";
@import "@fontsource/inter/700.css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);

  /* Brand */
  --color-brand: var(--brand);
  --color-brand-foreground: var(--brand-foreground);
  --color-gold: var(--gold);
  --color-gold-soft: var(--gold-soft);
  --color-cta: var(--cta);
  --color-cta-foreground: var(--cta-foreground);
  --color-ink: var(--ink);
  --color-surface: var(--surface);

  --font-display: "Playfair Display", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-luxe: 0 30px 60px -30px color-mix(in oklab, var(--brand) 35%, transparent);
  --shadow-soft: 0 10px 30px -15px color-mix(in oklab, var(--brand) 18%, transparent);
}

:root {
  --radius: 0.75rem;

  /* Brand tokens (mapped from spec hex) */
  --brand: oklch(0.28 0.04 220);            /* #0B2D3A deep teal */
  --brand-foreground: oklch(0.985 0.005 100);
  --gold: oklch(0.78 0.12 85);              /* #D6B36A */
  --gold-soft: oklch(0.92 0.05 85);
  --cta: oklch(0.58 0.22 27);               /* #D62828 */
  --cta-foreground: oklch(0.99 0 0);
  --ink: oklch(0.24 0.01 250);              /* #2B2B2B */
  --surface: oklch(0.985 0.003 100);        /* #F8F9FA */

  --background: oklch(1 0 0);
  --foreground: var(--ink);
  --card: oklch(1 0 0);
  --card-foreground: var(--ink);
  --popover: oklch(1 0 0);
  --popover-foreground: var(--ink);
  --primary: var(--brand);
  --primary-foreground: var(--brand-foreground);
  --secondary: var(--surface);
  --secondary-foreground: var(--brand);
  --muted: oklch(0.96 0.005 240);
  --muted-foreground: oklch(0.5 0.02 240);
  --accent: var(--gold-soft);
  --accent-foreground: var(--brand);
  --destructive: var(--cta);
  --destructive-foreground: var(--cta-foreground);
  --border: oklch(0.92 0.008 240);
  --input: oklch(0.92 0.008 240);
  --ring: var(--gold);
}

.dark {
  --background: oklch(0.16 0.02 220);
  --foreground: oklch(0.985 0.003 100);
  --card: oklch(0.22 0.03 220);
  --card-foreground: oklch(0.985 0.003 100);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 14%);
  --muted: oklch(0.28 0.03 220);
  --muted-foreground: oklch(0.75 0.02 240);
}

@layer base {
  * { border-color: var(--color-border); }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum";
  }
  h1, h2, h3, h4, .font-display {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
}

@utility container-luxe {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
  @media (min-width: 768px) { padding-inline: 2rem; }
}

@utility text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, color-mix(in oklab, var(--gold) 60%, white) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@utility glass-card {
  background: color-mix(in oklab, white 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in oklab, white 60%, transparent);
}

@utility glass-dark {
  background: color-mix(in oklab, var(--brand) 55%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--gold) 25%, transparent);
}
