:root {
  --bg: #fbfaf7;
  --text: #22242a;
  --muted: #6b6f78;
  --line: #e2dfd8;
  --accent: #1f5f8b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191d;
    --text: #e4e3df;
    --muted: #9a9ca3;
    --line: #2e3138;
    --accent: #7fb8de;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.6;
}
a { color: var(--accent); }
h1, h2, h3, .site-header, .site-footer, time, .pager {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 .4rem; text-wrap: balance; }
h2 { font-size: 1.3rem; margin-top: 2rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: 1.5rem 0 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.site-title { font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav a { margin-left: 1rem; text-decoration: none; }
.site-header nav a:first-child { margin-left: 0; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 1.6rem; }
.post-list a { font-size: 1.2rem; font-weight: 600; text-decoration: none; display: block; }
.post-list p { margin: .2rem 0 0; color: var(--muted); }
time { color: var(--muted); font-size: .8rem; }
.post-date { display: block; margin-bottom: 1.5rem; }

article img { max-width: 100%; height: auto; }
pre { overflow-x: auto; padding: .8rem; border: 1px solid var(--line); border-radius: 4px; font-size: .8rem; }
code { font-size: .85em; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; font-size: .85rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
