@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-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);
  --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);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

:root {
  --radius: 0.5rem;

  /* Etihad-inspired: deep charcoal/black with warm gold */
  --background: oklch(0.14 0.005 60);       /* near-black warm */
  --foreground: oklch(0.96 0.015 85);
  --ink: oklch(0.10 0.005 60);
  --cream: oklch(0.95 0.03 85);

  --card: oklch(0.18 0.008 65);
  --card-foreground: oklch(0.96 0.015 85);
  --popover: oklch(0.18 0.008 65);
  --popover-foreground: oklch(0.96 0.015 85);

  --primary: oklch(0.78 0.13 82);           /* warm gold */
  --primary-foreground: oklch(0.12 0.005 60);
  --gold: oklch(0.82 0.14 85);              /* champagne gold accent */

  --secondary: oklch(0.22 0.01 70);
  --secondary-foreground: oklch(0.96 0.015 85);
  --muted: oklch(0.20 0.008 65);
  --muted-foreground: oklch(0.72 0.03 80);
  --accent: oklch(0.28 0.03 75);
  --accent-foreground: oklch(0.96 0.015 85);
  --destructive: oklch(0.6 0.24 27);
  --destructive-foreground: oklch(0.98 0.01 85);
  --border: oklch(0.78 0.13 82 / 22%);
  --input: oklch(0.28 0.02 70);
  --ring: oklch(0.78 0.13 82);
}


.dark { color-scheme: dark; }

@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-feature-settings: "ss01", "cv11";
  }
  h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
}

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

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

@utility hairline {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--color-primary);
  vertical-align: middle;
  margin-right: 0.75rem;
}

@utility grid-lines {
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 80px 80px;
}
