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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.site-title:hover {
    color: #007bff;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.page-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.page-link:hover {
    color: #007bff;
}

/* Main content */
.page-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts */
.posts h2 {
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post-item:last-child {
    border-bottom: none;
}

.post-preview .post-title {
    margin-bottom: 0.5rem;
}

.post-preview .post-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
}

.post-preview .post-title a:hover {
    color: #007bff;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.post-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.more-posts {
    text-align: center;
    margin-top: 2rem;
}

.more-posts a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.more-posts a:hover {
    text-decoration: underline;
}

/* About preview */
.about-preview {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.about-preview h2 {
    margin-bottom: 1rem;
    color: #333;
}

.about-preview p {
    margin-bottom: 1rem;
    color: #555;
}

.about-preview a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.about-preview a:hover {
    text-decoration: underline;
}

/* Post layout */
.post {
    max-width: 700px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.3rem; }

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

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

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

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

/* Post navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* About page */
.about h1 {
    margin-bottom: 2rem;
    color: #333;
}

.about h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    text-align: center;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-header .wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
