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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-primary);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { line-height: var(--leading-tight); text-wrap: balance; letter-spacing: var(--tracking-display); }
h1, h2 { font-family: var(--font-display); font-weight: var(--weight-regular); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: var(--weight-medium); line-height: var(--leading-snug); }
h4 { font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
p, li, dd { max-width: var(--measure); text-wrap: pretty; }

a { color: var(--text-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--color-primary-hover); }
a:active { color: var(--color-primary-active); }

:where(ul[class], ol[class]) { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--focus-ring-inverse); }

.on-dark { background: var(--surface-inverse); color: var(--text-inverse); }
.on-dark p, .on-dark dd { color: var(--text-inverse-secondary); }
.on-dark a:not(.btn) { color: var(--brass-300); }
.on-dark a:not(.btn):hover { color: var(--brass-200); }

.skip-link {
  position: absolute; inset-inline-start: var(--space-4); top: var(--space-2); z-index: 100;
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--space-4);
  background: var(--surface-inverse); color: var(--text-inverse);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--text-inverse); }

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

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-8); }
.section--tint { background: var(--surface-tint); }
.section--raised { background: var(--surface-raised); }
.section--ruled { border-top: var(--rule) solid var(--border-hairline); }
.stack > * + * { margin-top: var(--space-4); }

.split { display: grid; gap: var(--space-7); }
@media (min-width: 64rem) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  .split > .col-4 { grid-column: span 4; }
  .split > .col-5 { grid-column: span 5; }
  .split > .col-6 { grid-column: span 6; }
  .split > .col-7 { grid-column: span 7; }
  .split > .col-8 { grid-column: span 8; }
  /* Offsets run to the last line, so they replace the span rather than collapsing it */
  .split > .start-7 { grid-column: 7 / -1; }
  .split > .start-8 { grid-column: 8 / -1; }
  .sticky { position: sticky; top: calc(var(--header-height) + var(--space-6)); align-self: start; }
}

.label {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-accent);
}
.on-dark .label, .on-dark p.label { color: var(--brass-300); }
.lede { font-size: var(--text-lg); color: var(--text-secondary); line-height: var(--leading-body); }
.muted { color: var(--text-muted); font-size: var(--text-sm); }
.on-dark .muted { color: var(--text-inverse-muted); }

.section-head { margin-bottom: var(--space-7); }
.section-head > * + * { margin-top: var(--space-4); }
.section-head--row { display: grid; gap: var(--space-4); }
.section-head--row > * + * { margin-top: 0; }
@media (min-width: 64rem) {
  .section-head--row { grid-template-columns: 7fr 5fr; column-gap: var(--space-7); align-items: end; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
