/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e1e4e8;
    --bg-color: #ffffff;
    --link-color: #0366d6;
    --link-hover: #0056b3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

header nav a {
    color: var(--link-color);
    text-decoration: none;
    margin-left: 1.5rem;
}

header nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    min-height: calc(100vh - 250px);
    padding-bottom: 3rem;
}

/* Post Preview */
.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 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

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

.post-preview time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
}

.post-preview p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Post Content */
.post-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.post-content ol,
.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content code {
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--link-color);
    text-decoration: none;
}

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

/* About Page */
.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

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

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 1rem;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 1rem;
    }

    header nav a {
        margin-left: 0;
        margin-right: 1.5rem;
    }

    .post-preview h2 {
        font-size: 1.5rem;
    }

    .post-content h1 {
        font-size: 1.75rem;
    }
}
