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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.05rem);
  line-height: 1.65;
  color: var(--cocoa);
  background: var(--cream);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(168, 240, 209, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 18%, rgba(217, 108, 143, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 88%, rgba(55, 198, 182, 0.3) 0 2px, transparent 3px);
  background-size: 120px 120px, 160px 160px, 140px 140px;
}

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

a {
  color: var(--plum);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--plum);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.75rem);
}

h2 {
  font-size: clamp(1.65rem, 2.5vw + 0.8rem, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.35rem);
}

p + p {
  margin-block-start: var(--space-sm);
}

.container {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

.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;
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.45rem, 5vw + 0.9rem, 2rem);
  }

  h2 {
    font-size: clamp(1.15rem, 3vw + 0.75rem, 1.65rem);
  }

  h3 {
    font-size: clamp(1rem, 1vw + 0.85rem, 1.15rem);
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 3.5rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }

  h1 {
    font-size: 1.42rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.12rem;
  }

  .section__title {
    font-size: 1.12rem;
    max-width: none;
  }

  .section__lead {
    font-size: 0.84rem;
    margin-block-end: var(--space-md);
  }

  .section__label {
    font-size: 0.55rem;
    margin-block-end: 0.25rem;
  }
}

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

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