:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #4fc3f7;
  --border: #2a2d37;
  --code-bg: #141620;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

header nav a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

header nav a:hover { color: var(--accent); text-decoration: none; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding: 2.5rem 0; }

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1.2rem; margin: 1.2rem 0 0.4rem; }

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.post-list { list-style: none; }

.post-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child { border-bottom: none; }

.post-list .title { font-size: 1.15rem; font-weight: 600; }

.post-list .date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.post-list .summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.tags { margin-top: 0.4rem; }

.tags a {
  display: inline-block;
  background: var(--surface);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
}

article img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1rem 0;
}

article p { margin-bottom: 1rem; }

article ul, article ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
}

code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9em;
}

p code {
  background: var(--code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
