/* ============================================================
   Base reset + typography + accessibility
   ============================================================ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--fg-default);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
  padding: 0;
}

p {
  line-height: var(--lh-relaxed);
}

::selection {
  background: var(--c-magenta-500);
  color: #fff;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-navy-800);
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, var(--fs-72));
}
h2 {
  font-size: clamp(2rem, 4vw, var(--fs-48));
}
h3 {
  font-size: clamp(1.4rem, 2.4vw, var(--fs-28));
}
h4 {
  font-size: var(--fs-20);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-x-wide);
  text-transform: uppercase;
  color: var(--c-magenta-500);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-magenta-500);
}

.lead {
  font-size: clamp(var(--fs-18), 1.8vw, var(--fs-24));
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
  max-width: 60ch;
  font-weight: 300;
}

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

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}