/* ==========================================================================
   tokens.css
   Design tokens: the single source of truth for color, type, space,
   radius, elevation, and motion. Every other stylesheet consumes these.
   Layer order is declared here once so specificity stays predictable.

   Direction: black and cherry (Holliday Media). Near-black page so the
   photographs are the brightest thing on screen; cherry for actions and
   small accents; one modern sans; square corners.
   ========================================================================== */

@layer reset, base, layout, components, pages, utilities;

:root {
  /* Dark is the brand, not a mode: the site is dark for every visitor. */
  color-scheme: dark;

  /* ---------- Color ---------- */
  --color-bg: #0b0b0b;
  --color-surface: #0b0b0b;
  --color-surface-2: #151515;
  --color-surface-3: #1e1e1e;     /* also the photo placeholder tone */
  --color-text: #ededea;
  --color-text-muted: #8c8a86;
  --color-border: #232323;
  --color-border-strong: #3a3a3a;

  /* Cherry: the brand color. Solid cherry for actions (white text on it),
     a lighter cherry for small accents on black so they stay readable. */
  --color-accent: #c8173f;
  --color-accent-hover: #df2a52;
  --color-on-accent: #ffffff;
  --color-accent-text: #f0627f;

  /* Deep cherry-black band (home "next openings") */
  --color-band: #1c080d;
  --color-on-band: #f3e9eb;
  --color-on-band-muted: #a98f95;

  --color-success: #8fc79c;
  --color-success-soft: #14211a;
  --color-danger: #f2928c;
  --color-danger-soft: #2a1514;
  --color-focus: #f0627f;
  --color-overlay: rgb(0 0 0 / 0.94);
  --color-skeleton: #161616;
  --color-skeleton-shine: #1f1f1f;

  /* ---------- Typography ---------- */
  /* One family: Archivo (variable weight + width, self-hosted, SIL OFL).
     Light weights for big headings, condensed bold for the studio band.
     --font-serif is kept as an alias so existing rules stay valid. */
  --font-serif: var(--font-sans);
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --stretch-condensed: 72%;       /* Archivo width axis for studio capitals */

  /* Type scale: ratio 1.25. Steps 3 to 5 are fluid. */
  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.625rem, 1.35rem + 1.1vw, 2rem);
  --step-4: clamp(2rem, 1.6rem + 1.6vw, 2.625rem);
  --step-5: clamp(2.375rem, 1.7rem + 2.8vw, 3.5rem);

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 800;

  --leading-tight: 1.1;
  --leading-body: 1.65;

  --tracking-caps: 0.16em;        /* serif name + small-caps labels */
  --tracking-tight: -0.02em;
  --measure: 60ch;

  /* ---------- Space (4px base) ---------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;
  --space-section-tight: clamp(var(--space-xl), 5vw, var(--space-2xl));
  --space-section: clamp(var(--space-2xl), 8vw, var(--space-3xl));
  --space-section-loose: clamp(var(--space-3xl), 11vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --flow-space: 1em;

  /* ---------- Layout ---------- */
  --container-max: 80rem;
  --container-text: 44rem;
  --header-height: 4.5rem;

  /* ---------- Radius: square, like the references ---------- */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-pill: 0;

  /* ---------- Elevation (dialogs and toast only) ---------- */
  --shadow-soft: none;
  --shadow-lg: 0 20px 60px rgb(0 0 0 / 0.7);

  /* ---------- Icons ---------- */
  --icon-s: 1em;
  --icon-m: 1.25em;
  --icon-l: 1.5em;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 700ms;
  --stagger-step: 50ms;
  --lift: 0px;

  /* ---------- Z-index ---------- */
  --z-header: 100;
  --z-nav: 110;
  --z-toast: 200;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 1ms;
    --duration-base: 1ms;
    --duration-slow: 1ms;
    --stagger-step: 0ms;
  }
}
