@font-face {
  font-family: "Archetype Bayer";
  src: url("../fonts/archetype-bayer.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms";
  src: url("../fonts/tt-norms-medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #3a5a40;
  --teal: #84bdb6;
  --light: #eceeee;
  --ink: #000000;
  --mint: #b3e8c3;
  --page-padding: clamp(1.25rem, 4vw, 4.75rem);
  --section-space: clamp(4.5rem, 8vw, 8rem);
  --border: 1px solid rgba(0, 0, 0, 0.18);
  --radius-small: 1rem;
  --radius-medium: 2rem;
  --radius-large: clamp(2rem, 4vw, 4rem);
  --radius-pill: 999px;
  --font-display: "Archetype Bayer", Futura, "Century Gothic", sans-serif;
  --font-body: "TT Norms", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 1.6;
  overflow-wrap: break-word;
}

body,
p,
a,
button,
input,
textarea,
select,
nav,
label,
.eyebrow,
.audit-note,
.process-steps,
.quote blockquote,
.quote figcaption,
.availability-copy,
.final-cta-copy,
.site-footer {
  font-family: var(--font-body);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.section-blue :focus-visible,
.section-lavender :focus-visible,
.testimonials :focus-visible {
  outline-color: var(--green);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-heading,
.section-heading {
  font-family: var(--font-display);
  text-transform: lowercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(2.1rem, 8vw, 4rem);
  letter-spacing: -0.03em;
}

h1 > span {
  display: block;
  white-space: normal;
}

h2 {
  max-width: 17ch;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

p {
  max-width: 40rem;
  margin-bottom: 1.4em;
}

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

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