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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    min-height: calc(100vh - 200px);
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

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

header ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header ul a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

header ul a:hover {
    opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2c3e50;
    transition: color 0.3s;
}

a:hover {
    color: #34495e;
}

/* Post List */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-list h3 {
    margin: 0.5rem 0;
}

.post-list h3 a {
    text-decoration: none;
    color: #2c3e50;
}

.post-list h3 a:hover {
    color: #34495e;
}

/* Categories */
.category {
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.categories {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Article */
article.single header {
    background: none;
    color: #333;
    padding: 0;
    box-shadow: none;
    margin-bottom: 2rem;
}

article.single h1 {
    color: #2c3e50;
}

article.single time {
    color: #6c757d;
}

article.single .content {
    line-height: 1.8;
}

article.single .content img {
    max-width: 100%;
    height: auto;
}

article.single .content pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

article.single .content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

article.single .content pre code {
    background: none;
    padding: 0;
}

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

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    header ul {
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}