:root {
  --bg: #fdfcfa;
  --fg: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #c2410c;
  --border: #e7e4de;
  --code-bg: #f3f1ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #e8e6e1;
    --muted: #9a9790;
    --accent: #fb923c;
    --border: #2c2b29;
    --code-bg: #222120;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
a { color: var(--accent); }
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.site-title { font-weight: 700; font-size: 1.3rem; color: var(--fg); text-decoration: none; }
.site-header nav a { color: var(--muted); font-size: .9rem; }
h1, h2, h3 { line-height: 1.25; font-family: system-ui, -apple-system, sans-serif; }
time { display: block; color: var(--muted); font-size: .85rem; font-family: system-ui, sans-serif; }
.entry { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.entry h2 { margin: 0 0 .25rem; }
.entry h2 a { color: var(--fg); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.read-more { font-family: system-ui, sans-serif; font-size: .95rem; font-weight: 600; text-decoration: none; }
.post h1 { margin-bottom: .25rem; }
.post .content { margin-top: 1.5rem; }
img, video { max-width: 100%; height: auto; }
pre { background: var(--code-bg); padding: 1rem; overflow-x: auto; border-radius: 6px; font-size: .85rem; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 4px; font-size: .9em; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--border); color: var(--muted); }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: .4rem .6rem; }
.post-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-family: system-ui, sans-serif; font-size: .95rem;
}
.site-footer { margin: 3rem 0 2rem; color: var(--muted); font: .85rem system-ui, sans-serif; }
