

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

@theme inline {
  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --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);
  --color-gold: var(--gold);
  --color-ink: var(--ink);
  --color-cream: var(--cream);
  --color-brand: var(--brand);
}

:root {
  --radius: 0.875rem;
  --brand: #3A61C7;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --cream: #f7f8fb;
  --ink: #0a0a0a;
  --gold: #3A61C7;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #3A61C7;
  --primary-foreground: #ffffff;
  --secondary: #f4f5f9;
  --secondary-foreground: #0a0a0a;
  --muted: #f4f5f9;
  --muted-foreground: #5b6472;
  --accent: #3A61C7;
  --accent-foreground: #ffffff;
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: #ffffff;
  --border: #e6e8ee;
  --input: #e6e8ee;
  --ring: #3A61C7;
}

.dark {
  --background: #0b0d12;
  --foreground: #f5f6f8;
  --cream: #12151c;
  --ink: #f5f6f8;
  --gold: #6e8ee0;
  --card: #12151c;
  --card-foreground: #f5f6f8;
  --popover: #12151c;
  --popover-foreground: #f5f6f8;
  --primary: #6e8ee0;
  --primary-foreground: #0b0d12;
  --secondary: #171b24;
  --secondary-foreground: #f5f6f8;
  --muted: #171b24;
  --muted-foreground: #9aa3b2;
  --accent: #6e8ee0;
  --accent-foreground: #0b0d12;
  --destructive: oklch(0.65 0.22 27);
  --destructive-foreground: #ffffff;
  --border: rgba(255,255,255,0.08);
  --input: rgba(255,255,255,0.12);
  --ring: #6e8ee0;
}

@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);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
  }
}

@utility container-editorial {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@utility eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

@utility rule {
  height: 1px;
  background: var(--border);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@utility reveal {
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
