:root {
  --bg: #ffffff;
  --fg: #1b1d21;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --link: #14532d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e6e8eb;
    --muted: #9aa3ad;
    --rule: #2a2e35;
    --link: #8fd6a6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--fg);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}

nav a:hover { color: var(--fg); }

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 40px 0 12px;
  letter-spacing: -.01em;
}

h2 {
  font-size: 19px;
  margin: 44px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.lead { color: var(--muted); margin: 0 0 8px; }

a { color: var(--link); }

.notes { list-style: none; padding: 0; margin: 0; }

.notes li { padding: 16px 0; border-bottom: 1px solid var(--rule); }

.notes li:last-child { border-bottom: 0; }

.notes .date {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.notes a { text-decoration: none; font-weight: 550; }

.notes a:hover { text-decoration: underline; }

.notes p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

footer {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  padding-top: 28px;
  padding-bottom: 48px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}

footer a { color: var(--muted); }

.dots { color: var(--rule); }
