:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --border: #1e1e2e;
  --text: #e0e0ef;
  --text-muted: #6b6b80;
  --accent: #667eea;
  --accent-bright: #8b9cf7;
  --green: #3fb950;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* Nav */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}
.hero h1 { font-size: 32px; font-weight: 700; }
.hero .tagline { color: var(--text-muted); font-size: 16px; margin-top: 8px; }
.hero .socials { margin-top: 16px; display: flex; gap: 12px; justify-content: center; }
.hero .socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.hero .socials a:hover { border-color: var(--accent); color: var(--text); }

/* Posts list */
.posts { padding: 32px 0; }
.posts h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.post-item {
  display: block;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color 0.2s;
  color: inherit;
  text-decoration: none;
}
.post-item:hover { border-color: var(--accent); }
.post-title { font-weight: 600; font-size: 16px; color: var(--text); }
.post-meta { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.post-summary { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Single post */
.post-content {
  padding: 40px 0;
}
.post-content h1 { font-size: 28px; margin-bottom: 8px; }
.post-content .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.post-content h2 { font-size: 22px; margin: 32px 0 12px; color: var(--text); }
.post-content h3 { font-size: 18px; margin: 24px 0 8px; }
.post-content p { margin-bottom: 16px; color: #c0c0d0; }
.post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 24px; color: #c0c0d0; }
.post-content li { margin-bottom: 6px; }
.post-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-bright);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-muted);
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .nav-links { gap: 16px; }
}
