:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1c1a;
  --muted: #6b6862;
  --rule: #e2ded6;
  --accent: #2f5d50;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #e6e3dd;
    --muted: #9a968e;
    --rule: #2b2d31;
    --accent: #8fc7b6;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 ui-serif, Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}

.site {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

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

nav a:hover,
nav a:focus {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

article {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.meta {
  margin: -0.25rem 0 0.75rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
}

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

footer.site {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site p {
  margin: 0;
}
