/* Shared design tokens — Ileana & James, Nov 13 2027.
   Palette from the beach mood board (Pantone TCX swatches), plus the film tones
   from the photobooth scans. Explorations may add local tokens; don't edit this
   file from an exploration session (ask the orchestrator instead). */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500&display=swap");
/* Mexico moodboard type (docs/moodboard.md). Browsers only download the families a page actually uses. */
@import url("https://fonts.googleapis.com/css2?family=Ultra&family=Alfa+Slab+One&family=Big+Shoulders+Display:wght@600;800;900&family=Yellowtail&family=Mr+Dafoe&family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,400..900,0..100,0..1;1,9..144,400..900,0..100,0..1&family=Homemade+Apple&family=Oswald:wght@500;600&family=Shrikhand&family=Rye&family=Abril+Fatface&display=swap");

:root {
  /* Beach palette (mood board) */
  --sea-pearl: #e6dace;      /* 12-0705 Sea Pearl — warm sand/greige */
  --iced-aqua: #b8d5db;      /* 13-5410 Iced Aqua — shallow water */
  --cannoli-cream: #f1f0e2;  /* 11-4302 Cannoli Cream — paper/background */
  --baltic-amber: #8b665a;   /* 18-1421 Baltic Amber — warm accent */
  --blue-heaven: #5b7e98;    /* 17-4023 Blue Heaven — muted blue */
  --moonlit-ocean: #2a3b4e;  /* 19-4122 Moonlit Ocean — deep ink */

  /* Film tones (sampled from the scans) — use for the photos' world, not the whole site */
  --film-ink: #1d1813;
  --film-sepia: #8a7a66;
  --film-paper: #efe7da;

  /* Semantic roles */
  --bg: var(--cannoli-cream);
  --surface: var(--sea-pearl);
  --ink: var(--moonlit-ocean);
  --ink-soft: color-mix(in oklab, var(--moonlit-ocean) 70%, var(--cannoli-cream));
  --accent: var(--baltic-amber);
  --muted: var(--blue-heaven);
  --water: var(--iced-aqua);

  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
  /* The script lettering from the engagement film is in /media/type/*.svg
     (fill = currentColor, so CSS `color` tints it). Use it for the names. */
  --tracking-label: 0.18em;  /* small caps / labels */

  /* Mexico moodboard families (docs/moodboard.md) — available everywhere */
  --font-rotulo: "Ultra", "Alfa Slab One", Georgia, serif;          /* fat sign-painter caps */
  --font-slab: "Alfa Slab One", "Ultra", Georgia, serif;            /* lotería-ish slab */
  --font-condensed: "Big Shoulders Display", "Oswald", Impact, sans-serif; /* labels, lotería titles */
  --font-sign: "Yellowtail", "Mr Dafoe", cursive;                   /* sign-painter script */
  --font-editorial: "Fraunces", Georgia, serif;                     /* soft, wonky editorial serif */
  --font-hand: "Homemade Apple", cursive;                           /* handwritten notes */
  --font-fat-italic: "Shrikhand", "Alfa Slab One", serif;           /* fat italic sign caps (#15, #37) */
  --font-tuscan: "Rye", "Alfa Slab One", serif;                     /* tuscan accent word, sparingly (#14, #23) */
  --font-didone: "Abril Fatface", Georgia, serif;                   /* high-contrast fat serif (#24, #39) */
  /* Role tokens. Defaults = original look; html[data-type] presets below swap them. */
  --font-script: var(--font-sign);
  --font-label: var(--font-text);

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Motion — calm, unhurried, never bouncy */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* expo-ish out: arrivals */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* moves between states */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);     /* gentle settle */
  --dur-xs: 160ms;
  --dur-sm: 320ms;
  --dur-md: 640ms;
  --dur-lg: 1200ms;
  --dur-xl: 2400ms;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 2px;  /* prints have near-square corners */
  --glass: color-mix(in oklab, var(--cannoli-cream) 62%, transparent);
  --glass-blur: 18px;
}

/* Type presets — set <html data-type="…"> (shared/theme.js does it from ?type= or the hub switch).
   rotulo     : Ultra caps + Yellowtail script + Big Shoulders labels  (moodboard #16, #13, #40)
   loteria    : Alfa Slab caps + Mr Dafoe script + Oswald labels      (lotería cards, #8, #31)
   letterpress: Fraunces soft serif + Homemade Apple notes + Inter    (#24, #50, #55–57)          */
html[data-type="rotulo"] {
  --font-display: var(--font-rotulo);
  --font-script: "Yellowtail", cursive;
  --font-label: var(--font-condensed);
  --tracking-label: 0.12em;
}
html[data-type="loteria"] {
  --font-display: var(--font-slab);
  --font-script: "Mr Dafoe", cursive;
  --font-label: "Oswald", var(--font-condensed);
  --tracking-label: 0.1em;
}
html[data-type="letterpress"] {
  --font-display: var(--font-editorial);
  --font-script: var(--font-hand);
  --font-label: var(--font-text);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-xs: 1ms; --dur-sm: 1ms; --dur-md: 1ms; --dur-lg: 1ms; --dur-xl: 1ms;
  }
}
