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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

/* CRITICAL: never overflow-x:hidden/clip on html or body. It breaks
   position:fixed on Chrome Android and iOS Safari (fixed elements collapse
   to 0x0). Scope it to main only. See CLAUDE.md "Mobiele websites". */
main {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: var(--z-skip-link);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
