:root {
  --bg: #fbfaf7;
  --fg: #23211c;
  --muted: #6d685d;
  --accent: #2f6f5e;
  --rule: #e4e0d6;
  --code-bg: #f1eee6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --fg: #e3e1db;
    --muted: #9a968c;
    --accent: #7cc2ad;
    --rule: #2c2e31;
    --code-bg: #212326;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  line-height: 1.6;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0 1rem;
  margin-bottom: 2rem;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .92rem; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--accent); }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.meta { color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }
.intro { color: var(--muted); margin-bottom: 2.2rem; }
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
ul.posts li:last-child { border-bottom: 0; }
ul.posts time { display: block; color: var(--muted); font-size: .82rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
ul.posts a { font-size: 1.08rem; text-decoration: none; }
ul.posts a:hover { text-decoration: underline; }
ul.posts p { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .84rem; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: .9rem 1rem; overflow-x: auto; border-radius: 4px; line-height: 1.45; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 1rem 0; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--rule); }
.tags a { font-size: .8rem; color: var(--muted); margin-right: .5rem; }
footer.site { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.2rem 0 2.5rem; color: var(--muted); font-size: .82rem; }
