:root {
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2vw, 1.875rem);
  --text-3xl: clamp(2rem, 4vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 5vw, 4rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
body button,
body input,
body select,
body textarea,
body .gb-text,
body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle,
body .main-navigation .menu-bar-items,
body .site-description,
body .widget-title,
body .button,
body .wp-block-button__link,
body a.button {
  font-family: var(--font-sans);
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--contrast);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.heading-display,
.heading-section,
.heading-card {
  color: var(--contrast);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

body .main-title,
body .main-title a,
body .entry-title,
body .entry-title a,
body .site-title,
body .site-title a {
  font-family: var(--font-heading);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .gb-text.heading-display,
body .gb-text.heading-section,
body .gb-text.heading-card,
body .image-text__title,
body .timeline__heading,
body .timeline__title,
body .card__title {
  font-family: var(--font-heading) !important;
}

body,
body p,
body li,
body .gb-text:not(.heading-display):not(.heading-section):not(.heading-card),
body .text-lead,
body .card__text,
body .timeline__text,
body .timeline__date,
body .highlights__label {
  font-family: var(--font-sans) !important;
}

h1,
.heading-display {
  font-size: var(--text-4xl);
}

h2,
.heading-section {
  font-size: var(--text-3xl);
}

h3,
.heading-card {
  font-size: var(--text-2xl);
}

h4,
h5,
h6 {
  font-size: var(--text-xl);
}

p,
li {
  color: var(--contrast-2);
}

.text-lead {
  color: var(--contrast-2);
  font-size: var(--text-lg);
  line-height: 1.75;
  max-width: 62ch;
}

.text-sm {
  font-size: var(--text-sm);
}

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

.eyebrow {
  color: var(--accent);
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose blockquote {
  border-left: 3px solid var(--color-border-strong);
  color: var(--contrast);
  padding-left: var(--space-4);
}

a:not([class]) {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color var(--transition-fast);
}

a:not([class]):hover,
a:not([class]):focus-visible {
  color: var(--accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
