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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .lightbox {
  right: var(--scrollbar-gap, 0px);
}

body.is-locked .scroll-top {
  right: calc(clamp(1rem, 2vw, 2rem) + var(--scrollbar-gap, 0px));
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.hero,
.topbar,
.nav-bar,
.site-footer,
.section--inverse,
.cta,
.drawer,
.hero-panel {
  --focus-ring: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-y);
}

.section--sm {
  padding-block: var(--section-y-sm);
}

.section--muted {
  background: var(--bg-muted);
}

.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.section--seam {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.section--inverse h1,
.section--inverse h2,
.section--inverse h3,
.section--inverse h4 {
  color: var(--text-inverse);
}

.stack > * + * {
  margin-top: var(--flow, var(--space-4));
}

.measure {
  max-width: var(--measure);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.section-head--center .eyebrow::after,
.statement .eyebrow::after,
.quote-callout .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.section--inverse .eyebrow {
  color: var(--amber-400);
}

.section-head__title {
  font-size: var(--step-4);
  max-width: 22ch;
}

.section-head--center .section-head__title {
  max-width: 26ch;
}

.section-head__lead {
  font-size: var(--step-1);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 60ch;
}

.section-head--wide .section-head__title {
  max-width: 34ch;
}

.section-head--wide .section-head__lead {
  max-width: 78ch;
}

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

.ratio {
  position: relative;
  overflow: hidden;
  background: var(--grey-200);
}

.ratio > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--4x3  { aspect-ratio: 4 / 3; }
.ratio--3x2  { aspect-ratio: 3 / 2; }
.ratio--1x1  { aspect-ratio: 1 / 1; }

@media print {
  .site-header,
  .site-footer,
  .scroll-top {
    display: none !important;
  }

  body {
    color: #000;
  }
}

textarea {
  resize: none;
}
