:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --border: #2a2d3a;
    --text: #e1e4ed;
    --text-dim: #8b8fa3;
    --accent: #6c9eff;
    --accent-dim: #4a7ae0;
}

* { 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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

header h1 a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.tagline {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 4px;
}

nav {
    margin-top: 16px;
    display: flex;
    gap: 20px;
}

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

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

main {
    flex: 1;
    padding: 40px 0;
}

.post-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    background: var(--surface);
    transition: border-color 0.2s;
}

.post-card:hover { border-color: var(--accent-dim); }

.post-card time {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.post-card h2 {
    margin: 8px 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

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

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

.post-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    background: var(--bg);
    color: var(--text-dim);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 12px;
    margin-right: 6px;
    border: 1px solid var(--border);
}

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: auto;
}

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
}

.article-content {
    padding: 40px 0;
}

.article-content h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-content .meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-content h2 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--text);
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-dim);
}

.article-content ul, .article-content ol {
    margin: 0 0 16px 24px;
    color: var(--text-dim);
}

.article-content li { margin-bottom: 6px; }

.article-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent);
}

.article-content pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-dim);
    font-style: italic;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    header { padding: 20px 0 16px; }
    .post-card { padding: 16px; }
    .article-content h1 { font-size: 1.4rem; }
}
