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

html {
  font-size: var(--font-size-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 649px) {
  html { font-size: var(--font-size-body-narrow); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}
.nowrap { white-space: nowrap; }
a { hyphens: manual; -webkit-hyphens: manual; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img, svg { max-width: 100%; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-variant-numeric: lining-nums;
  font-size: 0.85em;
}

abbr, .small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.page {
  max-width: calc(var(--measure) + 2 * var(--page-padding));
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0 var(--space-2);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.site-header nav a { color: var(--text-muted); }
.site-header nav .nowrap { white-space: nowrap; }
a { hyphens: manual; -webkit-hyphens: manual; }
a:hover { color: var(--link-hover); }
.breadcrumb-separator { margin: 0 0.35em; color: var(--text-faint); }

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-3) 0 var(--space-5);
  border-top: var(--rule-width) solid var(--rule);
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.5;
}
.site-footer a { color: var(--text-muted); }
.site-footer p { margin: 0.2em 0; }
.footer-adage {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--text-faint);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
