:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #0b63c4;
  --border: #e5e5e5;
  --code-bg: #f6f6f6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e8e8e8;
    --muted: #9a9a9a;
    --accent: #6db3f2;
    --border: #2a2a2a;
    --code-bg: #1e1e1e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}
header.site .name { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); }
header.site .name span { color: var(--muted); font-weight: 400; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: 0.95rem; }
header.site nav a:hover { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 0.4rem; }
h2 { font-size: 1.25rem; margin-top: 2.2rem; }
h3 { font-size: 1.05rem; margin-top: 1.8rem; }
a { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
ul.post-list { list-style: none; padding: 0; }
ul.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}
ul.post-list a { text-decoration: none; }
ul.post-list a:hover { text-decoration: underline; }
ul.post-list time { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
code {
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: 0.85rem; }
blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: 0.45rem 0.65rem; text-align: left; }
th { background: var(--code-bg); }
img { max-width: 100%; border-radius: 8px; }
footer.site {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site a { color: var(--muted); }
