/* ================================================================
   Blog-specific styles — extends style.css, no duplication
   ================================================================ */

/* Remove portrait padding on blog pages */
/*#page > header h1,
#page > header p.subtitle { padding-left: 0; }*/

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.back-link a:hover {
    color: #2c2c2c;
}

.blog-post {
    max-width: 660px;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.post-title {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
}
.post-title a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.15s;
}
.post-title a:hover {
    color: #555;
}
.post-meta {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    font-weight: normal;
    margin: 1.8rem 0 0.6rem;
    letter-spacing: 0.01em;
}
.post-body h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}
.post-body h3 {
    font-size: 1.05rem;
}
.post-body p {
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0.8rem 0;
}
.post-body a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.post-body a:hover {
    color: #000;
}
.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}
.post-body li {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}
.post-body blockquote {
    border-left: 3px solid #ccc;
    margin: 1.2rem 0;
    padding: 0.5rem 1.2rem;
    color: #555;
    font-style: italic;
}
.post-body blockquote p {
    margin: 0;
}
.post-body code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    background: #f0ede8;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}
.post-body pre {
    background: #f0ede8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 0;
}
.post-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}
main > .blog-post {
    padding-top: 0.5rem;
}

.post-index {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-index-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.post-index-item:last-child {
    border-bottom: none;
}
.post-index-meta {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.2rem;
}
.post-index-title {
    font-size: 1rem;
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    margin-bottom: 0.3rem;
}
.post-index-title:hover {
    color: #888;
}
.post-index-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

nav.side-menu a.nav-current {
    color: #888;
    font-style: italic;
}
.loading-msg,
.error-msg {
    color: #888;
    font-style: italic;
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.2rem;
    }
    .post-body p,
    .post-body li {
        font-size: 1rem;
    }
}
