:root {
  --bg: #fdfdfc;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --link: #1f5fbf;
  --rule: #e4e4e2;
  --code-bg: #f3f3f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --fg: #e6e6e3;
    --muted: #9a9a9f;
    --link: #7fb0ff;
    --rule: #2c2c30;
    --code-bg: #222226;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); }

header.site, main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
header.site .home { color: var(--fg); font-weight: 600; text-decoration: none; }
header.site nav a { color: var(--muted); font-size: 0.9rem; }

main { padding-bottom: 4rem; }
time { color: var(--muted); font-size: 0.9rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 1.75rem; }
.post-list li > a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.post-list li > a:hover { text-decoration: underline; }
.post-list time { display: block; }
.post-list p { margin: 0.25rem 0 0; }

article h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.25rem; }
article .body { margin-top: 1.5rem; overflow-wrap: break-word; }
article img { max-width: 100%; height: auto; }

code, pre { font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 4px; }
pre code { background: none; padding: 0; }

blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
table { border-collapse: collapse; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--rule); padding: 0.4rem 0.7rem; text-align: left; }
hr { border: 0; border-top: 1px solid var(--rule); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.pager .older { margin-left: auto; text-align: right; }
