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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #c9c9c9;
  --muted: #666;
  --accent: #00ff99;
  --font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

nav .logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  flex: 1;
}

nav a { color: var(--muted); font-size: 0.9rem; }
nav a:hover { color: var(--text); text-decoration: none; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Index page */
.post-list { list-style: none; }

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

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

.post-item .title { font-size: 1rem; }
.post-item .title a { color: var(--text); }
.post-item .title a:hover { color: var(--accent); text-decoration: none; }

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.post-summary {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: #888;
}

.pagination {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.88rem;
}

.pagination .current {
  color: var(--accent);
}

/* Article page */
.article-header { margin-bottom: 2rem; }

.article-header h1 {
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.article-header .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.article-body h2 {
  font-size: 1rem;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1rem; }

.article-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
}

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.article-body li { margin-bottom: 0.3rem; }

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-link:hover { color: var(--accent); text-decoration: none; }

/* About page */
.about-section { margin-bottom: 2rem; }
.about-section h2 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
