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

header {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

header p {
    color: #666;
    margin-top: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Grid layout for posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.post-info {
    padding: 1rem;
}

.post-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-info time {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.category {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Single post page */
.post-single {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.post-single header {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.post-single h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.post-meta time {
    margin-right: 1rem;
}

.post-image {
    margin-bottom: 2rem;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

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

.post-navigation {
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

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

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

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-single {
        padding: 1rem;
    }
}
