html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top right, #fbf2ff 0%, #ffffff 28%)
    no-repeat;
  line-height: 1.5;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-7) 0;
}

[id]:not(#top) {
  scroll-margin-top: 96px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  max-width: 30ch;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.section-lead {
  margin-top: var(--space-3);
  max-width: 70ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-primary);
  position: relative;
}

.text-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.07em;
  height: 0.18em;
  background: rgba(252, 185, 0, 0.45);
  z-index: -1;
}

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

sup {
  font-size: 0.52em;
  line-height: 0;
  vertical-align: super;
}

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