:root {
  --bg: #fdfdfc;
  --fg: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #b04a2b;
  --rule: #e6e3de;
  --max: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --fg: #e8e6e3;
    --muted: #9a9792;
    --accent: #e08a63;
    --rule: #2b2c2f;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--fg); }
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}
.intro h1 {
  font-size: 1.65rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}
.intro p { color: var(--muted); margin-top: 0; }
.posts { margin-top: 3rem; }
.posts article {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.posts article:last-child { border-bottom: 1px solid var(--rule); }
.posts h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.posts h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease;
}
.posts h2 a:hover { color: var(--accent); }
.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  font-variant-numeric: tabular-nums;
}
.posts p:last-child { margin-bottom: 0; color: var(--muted); }
article.page h1 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
}
article.page h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}
article.page p, article.page li { color: var(--fg); }
article.page a { color: var(--accent); }
article.page pre {
  background: rgba(0,0,0,0.05);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  article.page pre { background: rgba(255,255,255,0.06); }
}
article.page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.05em 0.25em;
  border-radius: 3px;
  background: rgba(0,0,0,0.04);
}
@media (prefers-color-scheme: dark) {
  article.page code { background: rgba(255,255,255,0.05); }
}
article.page pre code { background: none; padding: 0; }
article.page blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
}
.site-footer p { margin: 0; }
@media (max-width: 540px) {
  nav a { margin-left: 1rem; }
  nav a:first-child { margin-left: 0; }
  .intro h1 { font-size: 1.4rem; }
}
