/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin: 1rem 0;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and navigation */
header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 a {
    color: #111;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.separator {
    color: #6b7280;
}

.lang-switch {
    font-size: 0.9rem;
}

.lang-switch a {
    margin: 0 0.25rem;
}

/* Articles */
.article-summary {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.article-summary:last-child {
    border-bottom: none;
}

.article-summary h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-summary h2 a {
    color: #111;
}

.article-summary time {
    color: #6b7280;
    font-size: 0.9rem;
}

.summary {
    margin-top: 0.5rem;
    color: #4b5563;
}

/* Article content */
.content {
    margin: 2rem 0;
}

.content h2, .content h3, .content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p, .content ul, .content ol {
    margin: 1rem 0;
}

.content ul, .content ol {
    padding-left: 2rem;
}

.content li {
    margin: 0.25rem 0;
}

.content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
}

.content code {
    background: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Language info */
.lang-info {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

/* Tags */
.tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.tag {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.pagination a {
    margin: 0 1rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
}