/* ============================================================
   BASE — reset + the two type voices
   ============================================================ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The two layouts aren't the same height, so switching can add or
     remove the scrollbar. Reserving its space always keeps the
     viewport width — and so the centred .wrap — from jumping. */
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

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

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* One typeface, two voices. `.label` is the quiet voice — section
   headings, dates, captions — separated from content by case and
   letter-spacing rather than by a different family. */
.label {
  font-size: var(--fs-x-small);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg-faint);
}

.pretty {
  text-wrap: pretty;
}

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