/* Reset, typography, layout primitives */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading);
  background: var(--kai);
  color: var(--kapa);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; display: block; min-height: 100vh; } /* keeps the footer from jumping while a view loads */
main:focus { outline: none; }
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd { margin: 0; }
dialog { padding: 0; border: 0; }
[hidden] { display: none !important; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h1:focus { outline: none; }
p { text-wrap: pretty; }
i, em, .sci { font-style: italic; }
kbd {
  font: inherit;
  font-size: 0.85em;
  border: var(--edge) solid currentColor;
  padding: 0 0.35em;
  border-radius: 2px;
}

a { color: var(--link, inherit); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus, var(--olena));
  outline-offset: 3px;
}

/* layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 52rem; }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.prose > * + * { margin-top: var(--s-4); }
.prose p, .prose li, .measure { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.view-head { padding-block: var(--s-7) var(--s-6); }
.view-head h1 { max-width: 16ch; }
.view-head .lede { margin-top: var(--s-5); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 100;
  background: var(--olena); color: var(--kukui);
  padding: var(--s-2) var(--s-4); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

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