/* Blog styles — extends style.css, kept separate so the homepage is untouched
==================================================*/

.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #f3f3f3;
}

body.blog-page {
    padding-top: 65px;
}

.blog-post,
.blog-index {
    padding: 60px 0 100px;
}

.post-meta {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-post article h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-frame {
    max-width: 760px;
    margin: 0 0 40px;
    padding: 8px;
    border: 5px solid #425BB5;
    background: #eef0f7;
}

.hero-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.post-body {
    max-width: 760px;
}

.figure {
    margin: 34px 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    background: #fff;
}

.figure figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #222;
    margin-top: 50px;
    margin-bottom: 15px;
}

.post-body h3 {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3a55a1;
    margin: 0 0 12px;
}

.post-body p {
    margin-bottom: 18px;
    color: #333;
}

.post-body ul,
.post-body ol {
    margin-bottom: 18px;
    padding-left: 22px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a {
    color: #425BB5;
    text-decoration: underline;
    word-break: break-word;
}

.post-body blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid #425BB5;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: #333;
}

.post-body blockquote p {
    margin-bottom: 8px;
}

.post-body blockquote p:last-child {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #888;
}

.post-body pre {
    background: #1e1e1e;
    color: #e8e8e8;
    padding: 16px 20px;
    overflow-x: auto;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.post-body code {
    font-family: Consolas, Monaco, monospace;
    background: #eee;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 13px;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body table {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
}

.post-body th,
.post-body td {
    border: 1px solid #ccc;
    padding: 8px 14px;
    text-align: center;
}

.post-body th {
    background: #eef0f7;
    color: #3a55a1;
    font-weight: 700;
}

.series-eyebrow {
    text-transform: none;
}

.series-nav {
    margin: 50px 0 10px;
    padding: 26px 30px;
    background: #eef0f7;
    border: 1px solid #c7cde8;
    max-width: 760px;
}

.series-nav h3 {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: #3a55a1;
    margin: 0 0 14px;
}

.series-nav ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: series;
}

.series-nav li {
    counter-increment: series;
    padding: 9px 0;
    border-bottom: 1px solid #dde1f2;
    font-size: 14px;
    color: #444;
}

.series-nav li:last-child {
    border-bottom: none;
}

.series-nav li::before {
    content: counter(series) ". ";
    font-weight: 700;
    color: #3a55a1;
}

.series-nav li.current {
    font-weight: 700;
    color: #222;
}

.series-nav a {
    color: #425BB5;
    text-decoration: none;
}

.series-nav a:hover {
    text-decoration: underline;
}

.post-nav {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.post-nav a {
    color: #425BB5;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.blog-footer {
    background: var(--surface-alt);
    padding: 30px 0;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.blog-footer a {
    color: #425BB5;
}

/* Blog index list
==================================================*/

.post-list {
    list-style: none;
    padding-left: 0;
    max-width: 760px;
}

.post-list li {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #ccc;
}

.post-list .post-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid #425BB5;
    overflow: hidden;
}

.post-list .post-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.post-list .post-copy {
    flex: 1;
    min-width: 0;
}

.post-list time {
    display: inline-block;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.series-badge {
    display: inline-block;
    margin: 0 0 8px 8px;
    padding: 2px 8px;
    background: #3a55a1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.post-list h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 8px;
}

.post-list h2 a {
    color: #222;
}

.post-list h2 a:hover {
    color: #425BB5;
}

.post-list p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 500px) {
    .blog-post article h1 {
        font-size: 32px;
    }
    .post-list li {
        gap: 16px;
    }
    .post-list .post-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
    .post-list h2 {
        font-size: 20px;
    }
}
