:root {
  --ink: #17171a;
  --bg: #fdfcfa;
  --link: #2c5aa0;
  --measure: 33rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Links: a faint underline that firms up and settles closer on hover. */
a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  transition: color 0.25s ease, text-decoration-color 0.25s ease, text-underline-offset 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

section {
  margin-top: 2.25rem;
}

ul {
  list-style: none;
}

li {
  margin-bottom: 0.5rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.inline-list li {
  margin-bottom: 0;
}

/* Mouse ripple. Sits behind the text and never catches clicks. */
#ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
    padding: 2.5rem 1.25rem 3.5rem;
  }
}
