@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  img, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }
  table { border-collapse: collapse; }
}

@layer base {
  html { background: var(--page-bg); }

  body {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.75rem); }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }

  p { text-wrap: pretty; }

  a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }

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

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

  .skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--messing);
    color: var(--inkt);
    font-weight: 700;
    text-decoration: none;
  }

  .skip-link:focus { top: 8px; }

  .muted { color: var(--text-muted); }
}
