:root {
  --bg: #fdfdfb;
  --fg: #222;
  --muted: #6b6b6b;
  --accent: #b5421f;
  --line: #e6e4df;
  --card: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --fg: #e4e2dd;
    --muted: #9a978f;
    --accent: #f08a5d;
    --line: #2c2d30;
    --card: #1e1f22;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--line); padding: 28px 0 12px; margin-bottom: 28px; }
.site-title { font-size: 1.6rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.site-desc { margin: 4px 0 12px; color: var(--muted); }
.site-header nav a { margin-right: 18px; text-decoration: none; font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 16px; color: var(--muted); font-size: .9rem; }
.card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.card h2 { margin: 0 0 4px; font-size: 1.3rem; line-height: 1.3; }
.card h2 a { color: var(--fg); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 8px 0 0; }
.meta { color: var(--muted); font-size: .9rem; }
.post h1 { line-height: 1.25; margin-bottom: 6px; }
.content { margin-top: 20px; overflow-wrap: anywhere; }
.content img, .content iframe, .content video { max-width: 100%; height: auto; }
.content .separator a { margin-left: 0 !important; margin-right: 0 !important; }
.content pre, .content code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.content pre { background: var(--card); border: 1px solid var(--line); padding: 12px; overflow-x: auto; }
.content table { max-width: 100%; display: block; overflow-x: auto; }
.pager { display: flex; justify-content: space-between; padding: 24px 0; color: var(--muted); }
.comments { margin-top: 40px; border-top: 1px solid var(--line); }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 12px 0; overflow-wrap: anywhere; }
.reply { margin-left: 32px; }
.tags { columns: 2; padding-left: 18px; }
.archive { list-style: none; padding: 0; }
.archive span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tags { columns: 1; }
  .reply { margin-left: 14px; }
  .content [style*="float"] { float: none !important; }
}
