/* Elements — reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 42%, #fff8fb 100%);
  background-attachment: fixed;
  padding-top: var(--age-h);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-magenta);
  text-decoration: none;
  background-image: linear-gradient(var(--color-magenta), var(--color-magenta));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 2px;
}

a.btn,
a.nav__link,
a.logo,
a.safety-card,
a.masthead__skip {
  background-image: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.75rem, 9vw, 6.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

button,
input,
textarea,
select {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
