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

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --border: #30363d;
    --tag-bg: #1f6feb22;
    --tag-text: #58a6ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95em;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Hero */
.hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Posts */
.section-title {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

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

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9em;
}

.post-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
}

.post-title {
    font-size: 1.3em;
    margin-bottom: 8px;
}

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

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

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.7;
}

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

.read-more:hover {
    color: var(--accent-hover);
}

/* Article Page */
.article {
    padding: 48px 0;
}

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

.article-header h1 {
    font-size: 2em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-content {
    font-size: 1.05em;
    line-height: 1.85;
}

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

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

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

.article-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--accent);
}

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

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

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

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

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

/* Footer */
.footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 640px) {
    .hero h2 {
        font-size: 1.4em;
    }

    .post-card {
        padding: 18px;
    }

    .post-title {
        font-size: 1.15em;
    }

    .article-header h1 {
        font-size: 1.5em;
    }
}
