:root {
  --bg: #fbfaf7;
  --fg: #222;
  --muted: #6b6b6b;
  --line: #e4e1da;
  --accent: #8a4b2a;
  --code-bg: #f1eee8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #e6e2da;
    --muted: #9a958c;
    --line: #34322d;
    --accent: #d39a74;
    --code-bg: #26241f;
  }
}
html { background: var(--bg); }
body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.5rem 1rem 3rem;
  color: var(--fg);
  background: var(--bg);
  font: 1.075rem/1.65 Georgia, "Times New Roman", serif;
}
.site, .meta, time, nav, table, figcaption {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
  margin-bottom: 2.5rem;
}
header.site .name { font: 1.35rem Georgia, serif; color: var(--fg); text-decoration: none; }
nav a { margin-left: 1rem; font-size: .9rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
a { color: var(--accent); }
h1 { font-weight: normal; font-size: 1.9rem; line-height: 1.25; margin: 0 0 .3rem; }
h2 { font-weight: normal; font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.meta, time { font-size: .85rem; color: var(--muted); }
.intro { color: var(--muted); margin-bottom: 2.5rem; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { margin: 0 0 1.8rem; }
ul.posts a { font-size: 1.25rem; text-decoration: none; }
ul.posts p { margin: .2rem 0 0; color: var(--muted); }
pre {
  background: var(--code-bg);
  padding: .9rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font: .82rem/1.5 ui-monospace, Menlo, Consolas, monospace;
}
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; }
p code, li code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 1.2rem 0; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
figure { margin: 1.8rem 0; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.back { margin-top: 3rem; }
footer.site {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
