:root {
  --fg: #222;
  --bg: #fafafa;
  --accent: #06c;
}

@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e6e6; --bg: #1a1a1a; --accent: #6cf; }
}

html { font-size: 18px; }
body {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

header a { color: inherit; text-decoration: none; }
a { color: var(--accent); }

ul.posts { list-style: none; padding: 0; }
ul.posts li { display: flex; gap: 1rem; margin: 0.4rem 0; }
ul.posts time { color: #888; font-variant-numeric: tabular-nums; }

pre { overflow-x: auto; padding: 0.75rem; border-radius: 4px; font-size: 0.9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

article time { color: #888; display: block; margin-bottom: 1rem; }

figure.tikz { margin: 1.5rem auto; text-align: center; }
figure.tikz svg { width: 100%; max-width: 16rem; height: auto; }
@media (prefers-color-scheme: dark) { figure.tikz svg { filter: invert(1) hue-rotate(180deg); } }
figure.tikz figcaption { color: #888; font-size: 0.9rem; margin-top: 0.5rem; }
