@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-5));
    -webkit-text-size-adjust: 100%;
  }

  body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: var(--text-500);
    line-height: var(--leading-normal);

    overflow-x: clip;
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
  }

  h3 {
    font-weight: 700;
    letter-spacing: var(--tracking-snug);
  }

  p {
    text-wrap: pretty;
  }

  a:hover {
    color: var(--accent);
  }

  :focus-visible {
    outline: var(--rule-strong) solid var(--focus-ring);
    outline-offset: 3px;
  }

  :focus:not(:focus-visible) {
    outline: none;
  }

  ::selection {
    background-color: rgb(212 165 55 / 0.35);
  }

  [data-numeric] {
    font-variant-numeric: tabular-nums;
  }
}
