:root {
    --text: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --background: #ffffff;
    --background-alt: #f9f9f9;
    --border: #eaeaea;
    --accent: #2c5aa0;
    --accent-light: #e8eef7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    padding: 0;
    font-size: 17px;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.site-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--text);
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text);
}

nav a.active {
    color: var(--text);
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text);
}

/* Blog posts */
.post {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--accent);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tag {
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--background-alt);
    border: 1px solid var(--border);
}

.post-excerpt {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--background-alt);
    border-color: var(--text-light);
}

.pagination a.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.page-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--background-alt);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 2.5rem 0 2rem;
    }

    .site-title {
        font-size: 2rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .post {
        padding-bottom: 2rem;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 404 Error Page Styles */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-family: 'Libre Baskerville', serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-lighter);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.error-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.error-message {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #254d8c;
    border-color: #254d8c;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--background-alt);
    border-color: var(--text-light);
}

.error-suggestion {
    color: var(--text-lighter);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive adjustments for error page */
@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .error-page {
        padding: 2rem 0;
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 3rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
}
