:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #dddddd;
  --accent: #db2777;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --fg: #f5f5f5;
    --muted: #999999;
    --line: #333333;
    --accent: #f472b6;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, sans-serif;
}
main {
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}
a { color: var(--accent); }
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
p, li { line-height: 1.6; }
p { margin: 0 0 16px; }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; }
.back:hover { text-decoration: underline; }
.muted, time { color: var(--muted); font-size: 0.95rem; }

/* Post list on /blog/ */
ul.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
ul.posts li { border-bottom: 1px solid var(--line); padding: 20px 0; }
ul.posts a { color: var(--fg); text-decoration: none; font-size: 1.25rem; font-weight: 600; }
ul.posts a:hover { text-decoration: underline; }
ul.posts time { display: block; margin: 4px 0 6px; }
ul.posts p { margin: 0; color: var(--muted); }

/* A single post */
.post-meta { margin: 0 0 32px; }
.post-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--line);
}
