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

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e1e4e8;
    padding: 1rem 0;
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

nav a.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

nav a:hover {
    color: #0366d6;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Intro Section */
.intro {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.intro-text p {
    font-size: 1.2rem;
    color: #586069;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.post-preview {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e1e4e8;
}

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

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

.post-preview h2 a {
    text-decoration: none;
    color: #1a1a1a;
}

.post-preview h2 a:hover {
    color: #0366d6;
}

.post-preview p {
    color: #586069;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.post-meta time {
    color: #586069;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f1f8ff;
    color: #0366d6;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Post Page */
.post {
    max-width: 750px;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e4e8;
}

.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

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

.post-content h2 {
    font-size: 1.6rem;
}

.post-content h3 {
    font-size: 1.3rem;
}

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

.post-content a {
    color: #0366d6;
    text-decoration: none;
}

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

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #586069;
    font-style: italic;
}

/* Code Blocks */
.post-content code {
    background: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
}

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

.post-content pre code {
    background: none;
    padding: 0;
    color: #e1e4e8;
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid #e1e4e8;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #586069;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .intro {
        flex-direction: column;
        text-align: center;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

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

    .post-content {
        font-size: 1rem;
    }
}
