* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  line-height: 1.64;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

h1 {
  font-size: clamp(2.85rem, 7vw, 5.75rem);
  max-width: 11.8em;
}

h2 {
  font-size: clamp(2.05rem, 3.7vw, 3.9rem);
  max-width: 12.5em;
}

h3 {
  font-size: clamp(1.12rem, 1vw + 0.95rem, 1.46rem);
  font-weight: var(--title-sans-weight);
  letter-spacing: -0.018em;
}

h4 {
  font-size: 1rem;
  font-weight: var(--title-sans-weight);
  letter-spacing: -0.01em;
}

::selection { background: rgba(201, 155, 63, 0.32); }

@media (min-width: 1180px) {
  html { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
