/* ============================================
   Base — reset, typography, primitives
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --- Typography roles --- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%; /* Archivo Expanded — campaign-poster width */
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

p {
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.muted {
  color: var(--ink-muted);
}

/* --- Layout primitives --- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* Headings wipe up from behind an invisible edge */
.section-head h2 {
  clip-path: inset(0 0 110% 0);
  transform: translateY(0.35em);
  transition:
    clip-path 0.9s var(--ease-out) 0.1s,
    transform 0.9s var(--ease-out) 0.1s;
}

.section-head.is-visible h2 {
  clip-path: inset(-10% 0 -10% 0);
  transform: none;
}

/* --- Focus & motion --- */

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

/* Scroll-reveal default state (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--amber);
  color: var(--ground);
}
