:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #141414;
  --quiet: #595959;
  --rule: #d6d6d3;
  --measure: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }

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

.site,
main {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.site { padding: 28px 0 0; }

.wordmark {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

main { padding: clamp(56px, 10vw, 112px) 0 96px; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 34em;
  margin: 20px 0 0;
  font-size: 1.15rem;
  color: var(--quiet);
}

.set {
  margin-top: clamp(64px, 9vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

h2 a:hover,
h2 a:focus-visible { background-size: 100% 1px; }

.set p { margin: 8px 0 0; color: var(--quiet); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
