:root {
  --bg: #fbfaf7;
  --text: #1f1d1a;
  --muted: #6b665e;
  --line: #e7e3db;
  --accent: #b4441c;
  --chip: #f1ede5;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #ece8e1;
    --muted: #a39d93;
    --line: #2d2a27;
    --accent: #f08a5d;
    --chip: #24221f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 680px;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
.site-header, .site-footer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--sans); font-size: 15px;
}
.site-header { padding: 36px 0 12px; }
.site-header .site-name { color: var(--text); font-weight: 600; text-decoration: none; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-footer { margin-top: 80px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 40px; margin: 48px 0 16px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
h3 { font-size: 21px; }
.intro p { font-size: 21px; color: var(--muted); margin-top: 0; }
.notes h2 {
  font-family: var(--sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-top: 56px;
}
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 20px 0; color: var(--text); text-decoration: none; }
.post-list a:hover .post-title { color: var(--accent); }
.post-title { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; }
.post-summary { display: block; color: var(--muted); margin-top: 4px; }
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px;
}
.post > .meta { margin: 48px 0 0; }
.post h1 { margin-top: 12px; }
.topic { background: var(--chip); padding: 2px 9px; border-radius: 99px; }
.lede { font-size: 21px; color: var(--muted); margin-top: 0; }
.body img { max-width: 100%; height: auto; border-radius: 6px; }
.body blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.body code { font-size: 0.85em; background: var(--chip); padding: 2px 5px; border-radius: 4px; }
.body pre { background: var(--chip); padding: 16px; border-radius: 6px; overflow-x: auto; font-size: 15px; }
.body pre code { background: none; padding: 0; }
.body table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.body th, .body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.back { margin-top: 56px; font-family: var(--sans); font-size: 15px; }
@media (max-width: 520px) {
  body { font-size: 18px; }
  h1 { font-size: 32px; }
  .post-title { font-size: 20px; }
}
