:root { color-scheme: light dark; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Source Sans Pro", "Noto Sans SC", sans-serif;
  background: #faf8f8; color: #1a1a1a; line-height: 1.7;
}
.container { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
header { padding: 3rem 0 2rem; border-bottom: 1px solid #e0ddd8; }
header h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.03em; }
header h1 a { color: #1a1a1a; text-decoration: none; }
header p.desc { color: #6b6b6b; margin-top: 0.5rem; font-size: 0.9rem; }
main { padding: 2rem 0; }
article.list-item { padding: 1.2rem 0; border-bottom: 1px solid #eeeae5; }
article.list-item:last-child { border-bottom: none; }
article.list-item h2 { font-size: 1.15rem; font-weight: 500; }
article.list-item h2 a { color: #1a1a1a; text-decoration: none; }
article.list-item h2 a:hover { color: #555; }
article.list-item p.summary { color: #6b6b6b; font-size: 0.85rem; margin-top: 0.3rem; }
article.list-item time { color: #999; font-size: 0.78rem; }
.post { padding: 1rem 0; }
.post h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.post .meta { color: #999; font-size: 0.8rem; margin-bottom: 1.5rem; }
.post p { margin-bottom: 1rem; }
.post h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.post code {
  font-family: "SF Mono", "Fira Code", monospace; font-size: 0.85em;
  background: #f0ede8; padding: 0.1em 0.3em; border-radius: 3px;
}
.post pre {
  background: #f5f3ef; padding: 1rem; border-radius: 6px; overflow-x: auto;
  margin: 1rem 0; font-size: 0.82rem; line-height: 1.5;
}
.post pre code { background: none; padding: 0; }
.post ul { margin: 0.5rem 0 1rem 1.5rem; }
.post li { margin-bottom: 0.3rem; }
a.back { display: inline-block; margin-top: 2rem; color: #6b6b6b; font-size: 0.85rem; text-decoration: none; }
a.back:hover { color: #333; }
footer.icp {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e0ddd8;
  font-size: 0.75rem; color: #999; text-align: center;
}
footer.icp a { color: #999; text-decoration: none; }
footer.icp a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  body { background: #161616; color: #d4d4d4; }
  header { border-color: #2a2a2a; }
  header h1 a { color: #d4d4d4; }
  header p.desc { color: #888; }
  article.list-item { border-color: #222; }
  article.list-item h2 a { color: #d4d4d4; }
  article.list-item h2 a:hover { color: #aaa; }
  .post code { background: #222; }
  .post pre { background: #1e1e1e; }
  footer.icp { border-color: #2a2a2a; }
}
