/*
 * Tailwind v4 entry: config lives here, with no tailwind.config.js or PostCSS plugin.
 * - Keep every @import in this top block, above @theme and the rest of the file. Install an
 *   npm package before @importing its CSS. Never @import a remote URL (web fonts, CDN CSS): the
 *   build resolves @import from the filesystem. Load those with a <link> in the head() of
 *   src/routes/__root.tsx and name the family in a --font-* token in @theme inline below.
 */
@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

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

/*
 * Design system definition.
 *
 * The design lives in this file: oklch color tokens on the shadcn variables
 * (--background, --foreground, --primary, --secondary, --muted, --accent, ...) plus
 * new tokens as needed, font tokens, and custom styles and animations.
 *
 * The @theme inline block maps CSS custom properties to Tailwind utility
 * classes (e.g. --color-primary -> bg-primary, text-primary).
 *
 * The :root and .dark blocks define the actual color values using oklch.
 * All colors MUST use oklch format.
 *
 * To add a new semantic color:
 * 1. Add the variable to :root (light value) and .dark (dark value)
 * 2. Register it in @theme inline as --color-<name>: var(--<name>)
 */

@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);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --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-sand: var(--sand);
  --color-gold: var(--gold);
  --font-serif: "Crimson Pro", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-script: "Oooh Baby", cursive;
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-ring-offset-background: var(--background);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

:root {
  --radius: 1rem;
  --background: oklch(0.99 0.004 220);
  --foreground: oklch(0.3 0.06 235);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.3 0.06 235);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.3 0.06 235);
  --primary: oklch(0.33 0.075 235);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.52 0.08 220);
  --secondary-foreground: oklch(0.99 0 0);
  --muted: oklch(0.94 0.018 215);
  --muted-foreground: oklch(0.5 0.03 230);
  --accent: oklch(0.56 0.09 210);
  --accent-foreground: oklch(0.99 0 0);
  --sand: oklch(0.95 0.012 75);
  --gold: oklch(0.75 0.12 75);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.9 0.015 220);
  --input: oklch(0.88 0.015 220);
  --ring: oklch(0.56 0.09 210);
}
@layer base {
  * {
    border-color: var(--color-border);
  }

  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
  }
}

@layer base {
  body { font-family: var(--font-sans); }
  h1, h2, h3 { font-family: var(--font-serif); }
}
@utility eyebrow { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; font-weight: 500; color: var(--muted-foreground); }
@utility label-caps { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.ocean-wash-image {
  mask-image: linear-gradient(to top, var(--foreground), transparent 65%);
}

.menu-gliding-underline {
  width: var(--menu-line-width, 0px);
  transform: translate3d(var(--menu-line-x, 0px), var(--menu-line-y, 0px), 0);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), width 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.menu-gliding-underline[data-ready="true"] { opacity: 1; }

.parallax-photo-image {
  top: -12%;
  height: 124%;
  transform: translate3d(0, var(--photo-offset, 0px), 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .menu-gliding-underline { transition: none; }
  .parallax-photo-image {
    top: 0;
    height: 100%;
    transform: none;
    will-change: auto;
  }
}
