:root {
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --link: #0f62fe;
  --border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --bg-subtle: #1e2128;
    --text: #e6e6e6;
    --muted: #9a9a9a;
    --link: #6ea8ff;
    --border: #2c2f36;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 42rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  color: var(--muted);
  margin-left: 1rem;
}
.site-nav a:hover { color: var(--link); text-decoration: none; }
.site-nav a.active { color: var(--text); font-weight: 600; }

.post-back { margin-top: 3rem; }

.site-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}

h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }

.muted { color: var(--muted); }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.post-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg-subtle);
  border-left: 4px solid var(--link);
  border-radius: 0 6px 6px 0;
}
blockquote p { margin: 0; }
blockquote p + p { margin-top: 0.75rem; }

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

img { max-width: 100%; }
