:root {
  --bg: #fbfaf8;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e2dd;
  --accent: #2f5d50;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --fg: #e8e6e3;
    --muted: #9a9aa2;
    --line: #2a2c33;
    --accent: #7fb8a6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
header.site, footer.site, main {
  max-width: 44rem;
  margin: 0 auto;
}
header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.95rem;
}
nav a:hover, a:hover { color: var(--accent); }
main { padding: 2.25rem 0 3rem; }
h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: 1.05rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
ul.posts { list-style: none; padding: 0; margin: 2rem 0 0; }
ul.posts li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
ul.posts li a { font-size: 1.1rem; font-weight: 550; text-decoration: none; }
ul.posts li p { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.95rem; }
.meta {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
article p, article li { font-size: 1rem; }
article h2 { margin-top: 2rem; }
blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }
footer.site {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  .meta { display: block; margin: 0.25rem 0 0; }
}
