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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #F5F1E8;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
}

/* Back Navigation */
.back-nav {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.6;
}

/* Blog Post */
.blog-post {
    flex: 1;
}

.post-header-image {
    margin: 0 -30px 30px -30px;
    background-color: #EBE6DC;
    border-radius: 8px;
    overflow: hidden;
}

.post-header-image .cover-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}


.header-pattern {
    padding: 40px;
    text-align: center;
}

.header-pattern pre {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    opacity: 0.4;
    margin: 0;
}

.post-byline {
    margin-bottom: 40px;
}

.post-byline p {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.post-byline p:last-child {
    margin-bottom: 0;
}

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

.post-byline a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.byline-date {
    font-size: 14px;
    color: #888;
}

.blog-post h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2a2a2a;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.post-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    margin-top: 36px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.post-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.post-content a:hover {
    opacity: 0.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #DDD6C8;
    margin-top: 60px;
}

footer p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #888;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px 50px;
    }

    header {
        margin-bottom: 40px;
    }

    .icon-logo {
        width: 50px;
    }

    .blog-post h1 {
        font-size: 28px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
        margin-top: 36px;
    }

    .post-content h3 {
        font-size: 19px;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px 40px;
    }

    .icon-logo {
        width: 45px;
    }

    .blog-post h1 {
        font-size: 24px;
    }

    .post-content {
        font-size: 15px;
    }
}
