@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-s));
  }

  body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    color: var(--ink);
  }

  h1 { font-size: var(--text-h1); line-height: 1.06; }
  h2 { font-size: var(--text-h2); }
  h3 { font-size: var(--text-h3); font-weight: 500; }

  em { font-style: italic; }

  address { font-style: normal; }

  a { color: var(--accent); text-underline-offset: 0.2em; }
  a:hover { color: var(--accent-strong); }

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

  ::selection { background: var(--accent); color: #fff; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
}
