/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #e0e0e0;
  --text-light: #8a8a9a;
  --bg: #0f0f13;
  --surface: #1a1a24;
  --accent: #34D399;
  --border: #2a2a3a;
  --link: #34D399;
}

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

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

/* Nav */
header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-item {
  padding: 0.5rem 0;
}

.post-item time {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin-bottom: 0.15rem;
}

.post-item h2 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

.post-item h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.post-item h2 a:hover {
  color: var(--accent);
}

/* Single post */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #f0f0f0;
}

.post-header time {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #f0f0f0;
}

.post-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #f0f0f0;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.3);
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration-color: var(--link);
}

.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

.post-content strong {
  font-weight: 600;
  color: #f0f0f0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 1.5rem 1rem; }
  .post-header h1 { font-size: 1.5rem; }
}
