/* blog.css — minimal overrides for the longread-blog layout.
 *
 * Inherits from _shared/css/base.css. Only the bits that need to be
 * different from a corporate landing page.
 */

/* --- Post header & body -------------------------------------------- */

.post-header {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.post-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-muted, #666);
    font-size: 0.9rem;
    margin: 0;
}

.container--narrow {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: var(--container-padding, 1.25rem);
}

.post-body {
    padding-block: 2rem 3rem;
}

.post-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-body blockquote {
    border-left: 3px solid var(--accent, #c8007f);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted, #555);
    font-style: italic;
}

.post-body blockquote p {
    margin: 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border, #eee);
    margin: 2.5rem 0;
}

.post-body code {
    font-family: var(--mono-font, monospace);
    background: var(--code-bg, #f4f4f4);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.92em;
}

/* --- Post list on index page -------------------------------------- */

.post-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-list li {
    border-left: 2px solid var(--accent, #c8007f);
    padding-left: 1rem;
}

.post-list li a {
    font-weight: 600;
    text-decoration: none;
}

.post-list .post-meta {
    margin-left: 0.5rem;
    font-weight: normal;
}

/* --- Series navigation on post pages ----------------------------- */

.post-related {
    border-top: 1px solid var(--border, #eee);
    margin-top: 3rem;
    padding-block: 2rem 4rem;
}

.post-related h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.post-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
