:root {
  --ink: #1f2933;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --accent: #4f46e5;
  --bg: #fdfdfb;
  --bg-soft: #f7f6f1;
  --max: 720px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  margin-bottom: 32px;
}

header.site .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site .wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

header.site nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

header.site nav a {
  color: var(--muted);
}

header.site nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

main.shell {
  padding-top: 8px;
  padding-bottom: 64px;
}

main h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

main h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
}

main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

main p,
main li {
  font-size: 17px;
  color: var(--ink);
}

main p {
  margin: 0 0 16px;
}

main ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

main li {
  margin: 6px 0;
}

main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

main .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

main .lead {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 24px;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer.site .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

footer.site nav {
  display: flex;
  gap: 16px;
}

footer.site nav a {
  color: var(--muted);
}

footer.site nav a:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  header.site .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  main h1 {
    font-size: 28px;
  }

  main h2 {
    font-size: 20px;
  }
}
