* {
    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;
    background: #fff;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

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

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 60vh;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h2 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
}

h3 {
    color: #34495e;
    margin: 1rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Blog specific styles */
.posts {
    margin-top: 2rem;
}

.post-preview {
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

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

.post-preview h2 a {
    color: #2c3e50;
}

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

.blog-post {
    max-width: 100%;
}

.blog-post header {
    background: none;
    color: inherit;
    padding: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.post-content {
    margin-bottom: 3rem;
}

.post-content h2 {
    margin-top: 2rem;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

blockquote {
    border-left: 4px solid #3498db;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
    font-style: italic;
}

code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    nav ul {
        padding: 0 1rem;
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
}
