@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    font-synthesis: none; /* no faux bold or italic, ever */
  }

  body {
    -webkit-font-smoothing: antialiased;
    background: var(--color-ground);
    color: var(--color-ink);
    font: var(--text-body);
  }

  h1 {
    font: var(--text-h1);
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  h2 {
    font: var(--text-h2);
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  h3 {
    font: var(--text-h3);
    letter-spacing: -0.01em;
  }

  b,
  strong {
    font-weight: 600;
  }

  a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;

    &:hover {
      text-decoration-thickness: 2px;
    }
  }

  /* A link to an anchor scrolls it clear of the sticky header. */
  [id] {
    scroll-margin-block-start: 88px;
  }

  :focus-visible {
    outline: var(--focus-ring-size) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
  }
}
