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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--navy-2); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }

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

table { border-collapse: collapse; width: 100%; }

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

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: var(--s3) var(--s4);
}
.skip:focus { top: var(--s4); color: var(--on-navy); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 50ch; }
.measure { max-width: 68ch; }
.muted { color: var(--ink-2); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

/* navy regions */
.field-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.field-navy h1, .field-navy h2, .field-navy h3 { color: var(--on-navy); }
.field-navy .muted, .field-navy .lead { color: var(--on-navy-2); }
.field-navy a:not(.btn) { color: var(--on-navy); }
.field-navy .mono { font-weight: 500; }  /* light-on-dark renders thinner */
.field-navy :focus-visible { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--on-navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
