@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

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

@theme inline {
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-logo: "Playfair Display", "Times New Roman", 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-ink: var(--ink);
  --color-ink-soft: var(--ink-soft);
  --color-paper: var(--paper);
  --color-navy: var(--navy);
  --color-navy-deep: var(--navy-deep);
  --color-navy-soft: var(--navy-soft);
  --color-crimson: var(--crimson);
  --color-crimson-deep: var(--crimson-deep);
  --color-gold: var(--gold);
  --color-gold-soft: var(--gold-soft);
}

:root {
  --radius: 0.25rem;
  --paper: oklch(0.995 0.002 260);
  --ink: oklch(0.17 0.03 260);
  --ink-soft: oklch(0.38 0.02 260);

  --navy: oklch(0.28 0.075 258);
  --navy-deep: oklch(0.19 0.06 258);
  --navy-soft: oklch(0.45 0.06 258);
  --crimson: oklch(0.54 0.21 27);
  --crimson-deep: oklch(0.44 0.19 27);
  --gold: oklch(0.82 0.13 82);
  --gold-soft: oklch(0.9 0.08 85);

  --background: var(--paper);
  --foreground: var(--ink);
  --card: oklch(1 0 0);
  --card-foreground: var(--ink);
  --popover: oklch(1 0 0);
  --popover-foreground: var(--ink);
  --primary: var(--navy);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.965 0.004 258);
  --secondary-foreground: var(--ink);
  --muted: oklch(0.96 0.004 258);
  --muted-foreground: oklch(0.5 0.015 258);
  --accent: var(--crimson);
  --accent-foreground: oklch(1 0 0);
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.905 0.006 258);
  --input: oklch(0.905 0.006 258);
  --ring: var(--navy);
}

.dark {
  --background: oklch(0.14 0.02 258);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.19 0.03 258);
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.19 0.03 258);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.75 0.09 258);
  --primary-foreground: oklch(0.15 0.03 258);
  --secondary: oklch(0.22 0.03 258);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.22 0.03 258);
  --muted-foreground: oklch(0.72 0.01 258);
  --accent: var(--crimson);
  --accent-foreground: oklch(1 0 0);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.75 0.09 258);
}

@layer base {
  * {
    border-color: var(--color-border);
  }
  html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "cv11";
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
  }
  p, li, a, span, button, input, textarea, label {
    letter-spacing: -0.005em;
  }
  ::selection {
    background: var(--crimson);
    color: white;
  }
}

@utility container-x {
  margin-inline: auto;
  max-width: 96rem;
  padding-inline: 1.25rem;
  @media (min-width: 768px) { padding-inline: 2.5rem; }
  @media (min-width: 1280px) { padding-inline: 4rem; }
}

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

@utility rule-accent {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--crimson);
}

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

@utility btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: white;
  padding: 0.9rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
  &:hover { background: var(--navy-deep); transform: translateY(-1px); }
}

@utility btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--crimson);
  color: white;
  padding: 0.9rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
  &:hover { background: var(--crimson-deep); transform: translateY(-1px); }
}

@utility btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  padding: 0.9rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
  &:hover { background: var(--ink); color: white; }
}

@utility btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  padding: 0.9rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgb(255 255 255 / 0.45);
  transition: all 0.25s ease;
  &:hover { background: white; color: var(--navy-deep); }
}

@utility reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@utility reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@utility card-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.55);
}

@utility quote-block {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 2.5rem 1.75rem 2.5rem 2.25rem;
  border-left: 4px solid var(--gold);
  @media (min-width: 768px) { padding: 3.5rem 3rem 3.5rem 3.5rem; }
}
