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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

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

/* ---------- Typo ---------- */
.label {
  font: var(--label);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 96;
}
.display em,
.script {
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--ace-red);
  letter-spacing: -.02em;
  line-height: .86;
}
.display em.hero__line { display: block; margin-top: -.16em; padding-bottom: .06em; }

.lede {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-soft);
  max-width: 34ch;
}

.chapter-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 34px);
  color: var(--ink);
  line-height: 1;
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  padding: clamp(96px, 14vh, 180px) var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px);
}
.section__chapter {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vh, 48px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1.05em 1.8em;
  border-radius: 999px;
  font: var(--label);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  background: var(--ace-red);
  color: var(--paper);
  transition: background .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn:hover { background: var(--ace-red-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.link-arrow {
  font: var(--label);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

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