/* ═══════════════════════════════════════════════════════════════════
   base.css — Minimal reset + body + typography utilities + container
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; /* Lenis handles smooth scroll */ }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--ui-bg);
  color: var(--ui-text);
  line-height: var(--leading-relaxed);
  font-weight: var(--font-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--mauve-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Layout primitives ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ─── Fluid typography utilities ─── */
.h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.96;
  letter-spacing: var(--tracking-tighter);
  font-weight: var(--font-black);
}
.h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-bold);
}
.h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-bold);
}
.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--mauve-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--mauve-400);
}
.section-sub {
  font-size: var(--text-lg);
  color: var(--ardoise-500);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

/* Visually hidden (a11y-friendly) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Honor reduced motion for CSS-only animations; JS side is handled in boot.js */
@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;
  }
}
