:root {
  --bg: #ffffff; --fg: #1f2328; --muted: #656d76; --accent: #2a5a9a; --rule: #e5e7eb; --brand: #1f3a5f;
  --panel: #f6f6f3; --panel-rule: #e4e4de; --tint: #e6eef8; --brand-ink: #1f3a5f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --fg: #e6e6e6; --muted: #9aa1aa; --accent: #9db8e0; --rule: #2a2e35; --brand: #c9d8ec;
    --panel: #16191e; --panel-rule: #262b32; --tint: #17243a; --brand-ink: #a9c6ea; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.site-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--brand); }
.site-title:hover { text-decoration: none; }
.site-title picture { display: flex; }
.site-title img { width: 28px; height: 28px; }
nav a { margin-left: 18px; color: var(--muted); }
nav a:first-child { margin-left: 0; }
main.wrap { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 20px; }
h2 { font-size: 1.3rem; margin-top: 40px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
li { margin-bottom: 8px; }
.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 18px; }
.post-list .date, .meta, .empty { color: var(--muted); font-size: 0.9rem; }
.post-list .date { display: block; }
.post-list p { margin: 4px 0 0; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
pre { overflow-x: auto; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; }
img { max-width: 100%; }
.site-footer { border-top: 1px solid var(--rule); padding: 18px 0; color: var(--muted); font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
th { border-bottom-width: 2px; }
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
/* comparison table, styled like the figures */
.compare { border-collapse: separate; border-spacing: 0; background: var(--panel); border-radius: 14px; padding: 8px 14px; margin: 28px 0; font-size: 0.9rem; }
.compare th, .compare td { border-bottom: 1px solid var(--panel-rule); padding: 11px 12px; line-height: 1.45; }
.compare th { white-space: nowrap; }
.compare tr:last-child td { border-bottom: none; }
.compare th { border-bottom: 1px solid var(--panel-rule); font: 600 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare td:first-child { color: var(--fg); font-weight: 600; width: 24%; }
.compare td:nth-child(2) { color: var(--muted); width: 33%; }
.compare th:nth-child(3) { color: var(--brand-ink); }
.compare td:nth-child(3) { color: var(--fg); background: var(--tint); }
.compare tr:first-child th:nth-child(3) { background: var(--tint); border-radius: 10px 10px 0 0; }
.compare tr:last-child td:nth-child(3) { border-radius: 0 0 10px 10px; }
