:root {
  --bg: #fbfaf8;
  --fg: #1f1d1a;
  --muted: #6b665e;
  --accent: #8a4b20;
  --code-bg: #f0ece6;
  --border: #e3ddd3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --fg: #e8e3dc;
    --muted: #a39b90;
    --accent: #d9915a;
    --code-bg: #24211e;
    --border: #34302b;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
header.site {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem;
  border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 2rem;
}
.mono, header.site a.title, code, pre {
  font-family: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", monospace;
}
header.site a.title { font-weight: 700; color: var(--fg); text-decoration: none; }
nav a { color: var(--muted); margin-left: 1rem; text-decoration: none; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--accent); }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 .3rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
code { font-size: .88em; background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: .8rem 1rem; border-radius: 6px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; font-size: .85em; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { margin: 0 0 1.5rem; }
ul.posts time { color: var(--muted); font-size: .85rem; display: block; }
ul.posts a { font-weight: 600; font-size: 1.05rem; }
ul.posts p { margin: .2rem 0 0; color: var(--muted); }
footer.site {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1rem;
  color: var(--muted); font-size: .85rem;
}
