:root {
  color-scheme: light dark;
  --text: #1f2328;
  --muted: #59636e;
  --bg: #ffffff;
  --line: #d8dee4;
  --accent: #0b5cad;
  --code: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --bg: #0d1117;
    --line: #30363d;
    --accent: #79b8ff;
    --code: #161b22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
nav a { margin-left: 1.1rem; }
main { padding: 2rem 0 3rem; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
p, ul, ol { margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.lead { font-size: 1.1rem; }
.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.post-list li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.post-list a { color: var(--text); font-weight: 600; }
.post-list .meta { margin: 0.15rem 0 0; }
code {
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--code);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: 0.88rem; }
.note { border-left: 3px solid var(--line); padding-left: 1rem; color: var(--muted); }
.back { margin-top: 2.5rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { padding: 1rem 1.25rem 2rem; }
