*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(42, 102, 97, 0.04), transparent 42%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--dock-h);
}

img {
  max-width: 100%;
  display: block;
}

/* Let WebP <picture> wrappers inherit layout from the inner <img>. */
picture {
  display: contents;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--cta-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-family: var(--font-body);
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

a,
.btn,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
  max-width: 100%;
}

.section {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section--soft {
  background: var(--bg-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.35;
}

.section-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  line-height: 1.9;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .section-lead {
    font-size: 0.98rem;
  }

  .form-field,
  .form-textarea,
  .form-select,
  .articles-search__input,
  .faq-search__input {
    font-size: 1rem;
  }
}

@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;
  }
}
