*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-reg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: var(--fw-semi);
  color: var(--c-ink);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-tight); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-tight); }

img, picture, svg, video {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-0);
}

a {
  color: var(--c-brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--c-action); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-0);
}
.on-dark :focus-visible,
.footer :focus-visible { outline-color: var(--c-focus-invert); }

.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-link {
  position: absolute;
  top: -100px; left: var(--sp-4);
  z-index: var(--z-skiplink);
  background: var(--c-brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-0);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

[id] { scroll-margin-top: var(--sticky-top); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
