:root {
  --bg: #ffffff; --fg: #1a1a1a; --muted: #666; --accent: #0a58ca; --border: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181c; --fg: #e6e6e6; --muted: #9aa0a6; --accent: #6ea8fe; --border: #2a2d33; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.container { max-width: 46rem; margin: 0 auto; padding: 0 1.2rem; }
a { color: var(--accent); }

.site-header { border-bottom: 1px solid var(--border); padding: 1.4rem 0; margin-bottom: 2rem; }
.site-title { font-size: 1.3rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.site-tagline { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }

main.container { padding-bottom: 3rem; }
.page-intro { color: var(--muted); margin-bottom: 1.5rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: flex; gap: 1rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.post-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; white-space: nowrap; min-width: 5.5rem; }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }

.post-header h1 { margin: 0 0 .3rem; line-height: 1.25; }
.post-header time { color: var(--muted); font-size: .9rem; }
.post-content { margin-top: 1.5rem; }
.post-content h2 { margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.post-content h3 { margin-top: 1.5rem; }
.post-back { margin-top: 2.5rem; font-size: .9rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .6rem 0 0; }
.tags li { font-size: .75rem; color: var(--muted); background: var(--border); padding: .1rem .5rem; border-radius: .4rem; }

.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; }
