:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --muted: #888;
    --accent: #c084fc;
    --accent-hover: #a855f7;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --code-bg: #1a1a2e;
}

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

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
header h1 a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
header nav { display: flex; gap: 1.5rem; align-items: center; }
header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}
header nav a:hover { color: var(--text); }

/* Article */
article {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

article h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

article .meta {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

article h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

article h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

article p {
    margin-bottom: 1rem;
    color: #ccc;
}

article ul, article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

article strong { color: var(--text); }

article code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--accent);
}

article pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
article pre code {
    background: none;
    padding: 0;
    color: #ccc;
}

article blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--surface);
    border-radius: 0 6px 6px 0;
    color: #bbb;
    font-style: italic;
}

/* CTA box */
.cta-box {
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}
.cta-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    margin-top: 0;
}
.cta-box p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.cta-box a.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s;
}
.cta-box a.btn:hover { background: var(--accent-hover); }

/* Blog index */
.blog-index {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.blog-index h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-index .subtitle { color: var(--muted); margin-bottom: 2.5rem; }

.section-heading {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.blog-index h1 + .subtitle + .section-heading { margin-top: 0; }
.section-desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-list { list-style: none; padding: 0; }
.post-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}
.post-list a:hover { color: var(--accent); }
.post-list .preview {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Related posts */
.related {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.related h3 {
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 0;
}
.related ul { list-style: none; padding: 0; }
.related ul li { margin-bottom: 0.5rem; }
.related ul a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}
.related ul a:hover { text-decoration: underline; }
