:root {
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --bg: #fdfdfc;
  --rule: #e6e5e1;
  --link: #1a5fb4;
}
@media (prefers-color-scheme: dark) {
  :root { --fg:#e6e4e0; --muted:#9a9a9e; --bg:#17171a; --rule:#2c2c31; --link:#7cb2f0; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.5rem 1.25rem 4rem;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; color: var(--fg); }
header.site nav a { margin-left: 1rem; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--fg); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.lede { color: var(--muted); margin: 0 0 2.25rem; }

ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
ul.posts li:last-child { border-bottom: 0; }
ul.posts time { display: block; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 0.15rem; }
ul.posts a { font-size: 1.05rem; font-weight: 500; }
ul.posts p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.92rem; }

article h1 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 0.35rem; }
article .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
article h2 { font-size: 1.1rem; margin: 2rem 0 0.6rem; }
article p { margin: 0 0 1.05rem; }
article ul, article ol { padding-left: 1.2rem; }
article li { margin-bottom: 0.35rem; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--rule) 55%, transparent);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}
pre {
  background: color-mix(in srgb, var(--rule) 40%, transparent);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: inherit; }

blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}
footer p { margin: 0; }

.back { display: inline-block; margin-bottom: 1.75rem; font-size: 0.85rem; color: var(--muted); }
