/* =====================================================
   tokens.css
   Design tokens, reset, base typography, body defaults.
   ===================================================== */

:root {
  /* Palette */
  --c-1: #000000;
  --c-2: #333333;
  --c-3: #666666;
  --c-4: #111111;
  --c-5: #e8e8e8;
  --c-6: #f5f5f5;
  --c-7: #ffffff;
  --c-8: #eeeeee;

  --bg: var(--c-7);
  --bg-dark: var(--c-4);
  --fg: var(--c-1);
  --fg-muted: var(--c-3);

  --rule: rgba(0, 0, 0, 0.12);
  --rule-light: rgba(255, 255, 255, 0.18);

  /* Accent (warm muted gold) */
  --accent: #b8945f;
  --accent-strong: #d4a463;
  --accent-soft: rgba(184, 148, 95, 0.18);

  /* Type families */
  --ff-display: "Zodiak", "Times New Roman", serif;
  --ff-body: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Fluid scale */
  --fs-base: 16px;
  --lh-base: 1.55;
  --fs-hero: clamp(2.5rem, 7vw + 1rem, 7.5rem);
  --fs-h2: clamp(2rem, 3.5vw + 1rem, 4.25rem);
  --fs-h3: clamp(1.5rem, 1.2vw + 1rem, 2.25rem);
  --fs-lede: clamp(1.25rem, 0.6vw + 1rem, 1.875rem);

  --fs-eyebrow: 0.75rem;
  --ls-eyebrow: 0.18em;

  /* Layout */
  --container: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 9vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

/* Base body */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: var(--lh-base);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--accent); color: var(--c-1); }
.section--dark ::selection { background: var(--accent); color: var(--c-1); }

/* Focus-visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* FOUC guard */
body[data-prehidden="1"] [data-reveal],
body[data-prehidden="1"] [data-split] { visibility: hidden; }
body.is-ready [data-reveal],
body.is-ready [data-split] { visibility: visible; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

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