:root {
  --serif: "Iowan Old Style BT", "Iowan Old Style", Georgia, serif;
  --paper: #fafaf8;
  --ink: #292a27;
  --heading: #1c1d1a;
  --muted: #60625c;
  --accent: #486b8a;
  --line: #dedfd9;
  --item-line: #e8e9e3;
  --text-small: 0.875rem;
  --text-lead: 1.125rem;
  --title-size: 1.875rem;
  --section-size: 1.4375rem;
  --item-size: 1.125rem;
  --intro-space: clamp(2rem, 4.5vw, 3.5rem);
  --section-space: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
}

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

html {
  scroll-padding-top: 1.75rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--serif);
  overflow-wrap: anywhere;
}

.container {
  width: min(41.25rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, h3, p {
  margin: 0;
}

p {
  text-wrap: pretty;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.35;
}

h1 {
  font-size: var(--title-size);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.875rem;
  font-size: var(--section-size);
  font-weight: 400;
}

h3 {
  font-size: var(--item-size);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration-color: #8ba2b7;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #2e4a63;
  text-decoration-color: currentColor;
}

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

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