

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  
  scroll-padding-top: calc(var(--nav-h) + var(--sp-6));
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: var(--border-width) solid var(--border-default); margin: 0; }

.modal :focus {
  outline: var(--border-width-thick) solid var(--focus-ring);
  outline-offset: var(--border-width-thick);
}
.nav__drawer :focus {
  outline: var(--border-width-thick) solid var(--accent);
  outline-offset: var(--border-width-thick);
  background: var(--accent-subtle);
}

:focus-visible {
  outline: var(--border-width-thick) solid var(--focus-ring);
  outline-offset: var(--border-width-thick);
  border-radius: var(--r-xs);
}

.is-on-dark :focus-visible,
.tint--ink :focus-visible {
  outline-color: var(--text-inverse);
}

@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;
  }
}

.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-medium);
  text-wrap: balance;
}
.t-h2-lg {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}
.t-h3-lg {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}
.t-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}
.t-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-regular);
}
.t-body { font-size: var(--fs-body); line-height: var(--lh-normal); }

main p:not(.row):not(.max-none) { max-width: var(--measure); }

.t-center p:not(.row):not(.max-none),
.t-center .measure { margin-inline: auto; }

.hero > *,
.section-head--center { margin-inline: auto; }

.eyebrow:has(+ .section-head--center),
.eyebrow:has(+ h2 > .section-head--center) {
  text-align: center;
  margin-inline: auto;
}
.t-sm   { font-size: var(--fs-sm);   line-height: var(--lh-normal); }
.t-caption  { font-size: var(--fs-eyebrow); line-height: var(--lh-normal); }

.t-muted    { color: var(--text-soft); }
.t-medium   { font-weight: var(--fw-medium); }
.t-center   { text-align: center; }

.measure-center { max-width: var(--measure); margin-inline: auto; }

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

.measure-wide,
main p.measure-wide:not(.row) { max-width: var(--measure-wide); }

.gutter { padding-inline: var(--gutter); }
@media (min-width: 48rem) { .gutter { padding-inline: var(--gutter-tablet); } }
@media (min-width: 64rem) { .gutter { padding-inline: var(--gutter-desktop); } }

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

h1, h2, h3, .t-display, .t-h2, .t-h2-lg, .t-h3, .t-h3-lg, .section-head {
  text-wrap: balance;
}

h1, h2, .t-display, .t-h2, .t-h2-lg {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.section-head,
.section-head--center { -webkit-line-clamp: 3; }

@media (max-width: 480px) {
  h1, h2, .t-display, .t-h2, .t-h2-lg { -webkit-line-clamp: 3; }
}

p, li, dd, dt, td, th, figcaption, blockquote,
h1, h2, h3, h4, .t-display, .t-h2, .t-h2-lg, .t-h3, .t-h3-lg {
  overflow-wrap: anywhere;
}
.section--md    { padding-block: var(--section-y-tablet); }

main > .section--head { padding-block: var(--section-y) var(--section-y); }
.section--tail  { padding-block: 0 var(--section-y); }
.section--tail-md { padding-block: 0 var(--section-y-tablet); }
.section--flush { padding-block: 0; }

main > section:last-child { padding-bottom: var(--section-y-tablet); }

main > section:last-child:has(.carousel__arrows) {
  padding-bottom: var(--section-y-tablet);
}

main > section:last-child[class*="tint--"] {
  padding-bottom: var(--section-y-tablet);
}

:is(.section--head, .section--md):not([class*="tint--"])
  + .section--md:not([class*="tint--"]) { padding-top: 0; }

[class*="tint--"] + :is(.section, .section--md, .section--tail, .section--tail-md, .section--flush) {
  padding-top: var(--section-y-tablet);
}

.section--flush:has(+ [class*="tint--"]) { padding-bottom: var(--section-y-tablet); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-2  > * + * { margin-top: var(--sp-2); }
.stack-3  > * + * { margin-top: var(--sp-3); }
.stack-6  > * + * { margin-top: var(--sp-6); }
.stack-12 > * + * { margin-top: var(--sp-12); }

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.row--center  { justify-content: center; }
.row--wrap    { flex-wrap: wrap; }

.grid { display: grid; gap: var(--grid-gap); }

.grid > *, .bento > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 63.9375rem) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
}
@media (max-width: 47.9375rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

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

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: var(--z-modal);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  transform: translateY(-200%);
  transition: transform var(--dur-micro) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.hide-desktop { display: none; }
@media (max-width: 61.9375rem) {
  .hide-tablet  { display: none !important; }
  .hide-desktop { display: revert; }

  .media.hide-tablet,
  .media-band__inner.hide-tablet { display: revert !important; }
}
@media (max-width: 47.9375rem) {
  .hide-mobile { display: none !important; }
}

.mt-3  { margin-top: var(--sp-3); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }

.gap-10 { gap: var(--sp-8); }

.w-full      { width: 100%; }
.max-none    { max-width: none; }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--text-secondary);
}
