:root {
  --text: #1f2328;
  --muted: #656d76;
  --link: #0b5fca;
  --bg: #ffffff;
  --rule: #d8dee4;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --link: #6cb0ff;
    --bg: #0d1117;
    --rule: #30363d;
  }
}

* { box-sizing: border-box; }

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.5rem; margin-top: 3rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.15rem; margin: 2rem 0 0.1rem; }
h4 { font-size: 1rem; font-weight: normal; font-style: italic; color: var(--muted); margin: 0 0 0.5rem; }
li { margin: 0.2rem 0; }

.site-header, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
}
.site-header { justify-content: space-between; margin-bottom: 3rem; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-title { font-weight: 700; color: var(--text); text-decoration: none; }

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

.subtitle { margin: 0; color: var(--muted); font-size: 1.1rem; }
.meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.post-header { margin-bottom: 2rem; }

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.5rem; }
.post-list a { font-size: 1.25rem; font-weight: 600; }
