:root {
    --bg: #0a0a0a;
    --bg-subtle: #111111;
    --text: #e5e5e5;
    --text-muted: #737373;
    --accent: #d4a574;
    --accent-hover: #e5b885;
    --border: #262626;
    --code-bg: #1a1a1a;
}

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

html {
    font-size: 17px;
}

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

/* Navigation */
.nav {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.nav-home {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Main content */
main {
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Index page */
.index-header {
    margin-bottom: 3rem;
}

.index-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.index-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Article list */
.article-list {
    list-style: none;
}

.article-list-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.article-list-item:first-child {
    border-top: 1px solid var(--border);
}

.article-list-link {
    text-decoration: none;
    display: block;
}

.article-list-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.article-list-link:hover .article-list-title {
    color: var(--accent);
}

.article-list-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Article page */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Article content */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

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

.article-content strong {
    font-weight: 600;
    color: var(--text);
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-content code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--accent);
}

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

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

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* Article footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-cta {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cta-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-link:hover {
    color: var(--accent-hover);
}

.back-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }
    
    .nav {
        padding: 1rem 1.25rem;
    }
    
    main {
        padding: 2rem 1.25rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .index-title {
        font-size: 1.25rem;
    }
}
