:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #151515;
  --muted: #555555;
  --rule: #d8d8d8;
  --link: #0645ad;
  --visited: #5a3696;
  --measure: 76ch;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", "Courier Prime", "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.62;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

main {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 56px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}

nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

header {
  margin-bottom: 44px;
}

section {
  margin-top: 34px;
}

footer {
  margin-top: 52px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

h1,
h2,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

p,
li {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.45rem;
  margin-bottom: 1rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--visited);
}

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

.kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.lede {
  max-width: 62ch;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, var(--measure));
    padding: 28px 0 40px;
  }

  nav {
    margin-bottom: 38px;
  }

  header {
    margin-bottom: 34px;
  }

  section {
    margin-top: 28px;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }
}
