:root {
  --font-family: "Ubuntu", Arial, sans-serif;
  --font-regular: 400;
  --font-bold: 700;
  --font-h1: 50px;
  --font-h2: 42px;
  --font-h3: 30px;
  --font-h4: clamp(1.25rem, 1.5vw, 1.375rem);
  --font-lead: clamp(1.1875rem, 1.5vw, 1.5rem);
  --font-body: 18px;
  --font-small: clamp(.875rem, .25vw + .82rem, .9375rem);
  --font-nav: 17px;
  --font-button: 18px;
  --line-h1: 1.1;
  --line-h2: 1.2;
  --line-h3: 1.25;
  --line-h4: 1.3;
  --line-lead: 1.45;
  --line-body: 1.6;
  --text-measure: 68ch;
}

html { font-family: var(--font-family); }

body,
button,
input,
select,
textarea,
dialog {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: var(--font-body);
  line-height: var(--line-body);
}

h1,
h2,
h3,
h4,
.brand,
.faq summary,
figcaption b,
.hero-proof b {
  font-family: var(--font-family) !important;
  font-weight: var(--font-bold) !important;
  text-transform: none;
}

h1,
.hero h1 {
  font-size: var(--font-h1);
  line-height: var(--line-h1);
  letter-spacing: -.025em;
}

h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero h1 em { font-style: normal; }

h2,
.institution h2,
.contact h2,
.faq h2 {
  font-size: var(--font-h2);
  line-height: var(--line-h2);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

h3,
.product-card h3,
.benefits h3,
.steps h3,
.reference-grid h3 {
  font-size: var(--font-h3);
  line-height: var(--line-h3);
  letter-spacing: -.01em;
}

h4 {
  font-size: var(--font-h4);
  line-height: var(--line-h4);
}

p,
li,
dd,
dt {
  font-weight: var(--font-regular);
}

.section p,
dialog p {
  max-width: var(--text-measure);
}

p { margin-bottom: 1.15em; }

.lead,
.institution .lead {
  font-size: var(--font-lead);
  line-height: var(--line-lead);
  font-weight: var(--font-regular);
}

.hero-copy > p:not(.eyebrow) {
  font-size: var(--font-lead);
  line-height: var(--line-lead);
  max-width: 75ch;
}

strong,
b,
.brand,
.btn,
button,
.text-link,
.eyebrow,
.product-card span,
.benefits b,
.steps b,
.reference-grid b {
  font-weight: var(--font-bold) !important;
}

.site-header nav,
.site-header nav a {
  font-size: var(--font-nav);
  font-weight: var(--font-regular);
  line-height: 1.35;
  white-space: nowrap;
}

.site-header nav .nav-cta { font-weight: var(--font-bold); }

.btn,
button,
.submit {
  font-size: var(--font-button);
  line-height: 1.3;
}

form label,
.consent,
input,
select,
textarea,
.alert {
  font-family: var(--font-family);
  font-size: max(var(--font-small), 1rem);
  line-height: 1.5;
}

form label { font-weight: var(--font-bold); }
.consent { font-weight: var(--font-regular); }

.eyebrow,
.product-card span,
.steps b,
.reference-grid span,
.direct span,
figcaption span,
footer,
footer > div,
footer small,
.footer-brand > span,
.places span,
.vertical-brand small {
  font-size: var(--font-small);
  line-height: 1.45;
}

.brand {
  font-size: clamp(1.5rem, 1.8vw, 1.85rem) !important;
  letter-spacing: -.01em !important;
}

.vertical-brand small { max-width: 7.5rem; }

.faq summary {
  font-size: var(--font-h4);
  line-height: var(--line-h4);
}

@media (max-width: 600px) {
  :root {
    --font-h1: 36px;
    --font-h2: 30px;
    --font-h3: 23px;
    --font-h4: clamp(1.1875rem, 4.8vw, 1.3125rem);
    --font-lead: clamp(1.1875rem, 4.8vw, 1.3125rem);
    --font-body: 17px;
    --font-nav: 16px;
    --font-button: 16px;
  }

  .hero h1 { letter-spacing: -.02em; }
}
