:root {
  --bg: #0F0F0F;
  --fg: #E8E8E8;
  --accent: #4A9EFF;
  --muted: #888;
  --card-bg: #1A1A1A;
  --border: #2A2A2A;
  --max-w: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem; }

header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
header h1 { font-size: 1.4rem; font-weight: 600; }
header h1 a { color: var(--fg); text-decoration: none; }
header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

article { margin-bottom: 3rem; }
article h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
article h2 a { color: var(--fg); text-decoration: none; }
article h2 a:hover { color: var(--accent); }
article .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
article p { margin-bottom: 1rem; }
article h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
article ul, article ol { margin: 0.5rem 0 1rem 1.5rem; }
article li { margin-bottom: 0.3rem; }
article code { background: var(--card-bg); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
article pre { background: var(--card-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; margin: 1rem 0; }
article pre code { background: none; padding: 0; }
article blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--muted); margin: 1rem 0; }
article strong { color: #fff; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.post-list a:hover { color: var(--accent); }
.post-list .date { color: var(--muted); font-size: 0.85rem; }

footer { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 3rem; color: var(--muted); font-size: 0.8rem; }
footer a { color: var(--accent); text-decoration: none; }

a { color: var(--accent); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 1.5rem 1rem; }
}
