/* ============================================================
   Lustre — Base: reset, typography, utilities
   ============================================================ */

/* ── Lenis smooth-scroll ─────────────────────────────────── */
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; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--accent); }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ── Focus visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-strong);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--t-hero);  letter-spacing: -0.03em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5 { font-size: var(--t-lg);  font-weight: 600; font-family: 'Hanken Grotesk', sans-serif; letter-spacing: 0.02em; }

p {
  max-width: 68ch;
  text-wrap: pretty;
  color: var(--ink);
}

p + p { margin-top: 1em; }

strong { font-weight: 600; color: var(--ink-strong); }
em     { font-style: italic; }

small {
  font-size: var(--t-xs);
  color: var(--muted);
}

/* ── Utility classes ─────────────────────────────────────── */

/* text */
.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--muted); }
.text-ink      { color: var(--ink); }

/* display font */
.font-display  { font-family: 'Bodoni Moda', Georgia, serif; }

/* layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding-block: var(--sp-6);
}

.section--sm {
  padding-block: var(--sp-4);
}

.section--lg {
  padding-block: clamp(6rem, 5rem + 8vw, 12rem);
}

/* flex / grid helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }

/* visibility */
.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;
}

/* ── Dividers ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--sp-4);
}

/* ── Responsible play badge ──────────────────────────────── */
.rp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--t-xs);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* ── Scroll-reveal base state ────────────────────────────── */
/* Content is visible by default; JS enhances if motion is OK */
.reveal {
  opacity: 1;
  transform: none;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
}
