:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --border-color: #27272a;
    --border-hover: #52525b;
    --text-primary: #a1a1aa;
    --text-secondary: #71717a;
    --text-accent: #a8a29e;
    --text-muted: #52525b;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.site-header h1 a {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
}

.site-header h1 a:hover {
    color: var(--text-primary);
}

.site-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.site-header nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-header nav a:hover {
    color: var(--text-accent);
}

/* Main content */
.content {
    flex: 1;
}

/* Post previews */
.post-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.post-preview h2 a {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.post-preview h2 a:hover {
    color: var(--text-primary);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.post-excerpt {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Individual post */
.post-header h1 {
    color: var(--text-accent);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-content {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 2rem 0;
}

.post-content h2 {
    color: var(--text-accent);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-content h3 {
    color: var(--text-accent);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

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

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

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

.post-content ul, .post-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

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

.post-content blockquote {
    border-left: 3px solid var(--border-hover);
    margin: 2rem 0;
    padding: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-secondary);
}

.post-content code {
    background: var(--bg-tertiary);
    color: var(--text-accent);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

.post-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

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

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    max-width: 45%;
}

.post-nav a:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

.post-nav .next {
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Page layout */
.page-header h1 {
    color: var(--text-accent);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.page-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.page-content h2 {
    color: var(--text-accent);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.page-content h3 {
    color: var(--text-accent);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content a {
    color: var(--text-accent);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--text-primary);
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Syntax highlighting */
.highlight {
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.highlight .c { color: #6b7280; font-style: italic; }
.highlight .k { color: #8b5cf6; font-weight: bold; }
.highlight .kd { color: #8b5cf6; font-weight: bold; }
.highlight .s { color: #10b981; }
.highlight .s2 { color: #10b981; }
.highlight .nf { color: #3b82f6; }
.highlight .nc { color: #f59e0b; }
.highlight .nb { color: #ec4899; }
.highlight .mi { color: #f59e0b; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .site-header nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-nav .next {
        text-align: left;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}