/* Dark hacker theme */
:root {
    --bg: #0a0a0a;
    --bg-alt: #141414;
    --text: #c8c8c8;
    --text-muted: #666;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --border: #222;
    --code-bg: #1a1a1a;
}

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

body {
    font-family: "IBM Plex Mono", "Fira Code", "SF Mono", monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

nav {
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.site-title {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-title:hover {
    text-decoration: underline;
}

h1 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

h2 a {
    color: var(--text);
    text-decoration: none;
}

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

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.post-summary {
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.post-summary time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-summary p {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--border);
    color: var(--accent-dim);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

article.post header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

article.post header time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-content h2 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.post-content h3 {
    color: var(--accent-dim);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

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

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

.post-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

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

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-content a {
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent);
    text-decoration: none;
}

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

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