/* Blog: long-form reading column on top of style.css tokens. */

.post,
.blog-index {
    width: min(720px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 72px 0 24px;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 180ms ease;
}

.post-back:hover {
    color: var(--accent-strong);
}

.post-header {
    display: grid;
    gap: 18px;
    margin: 22px 0 36px;
}

.post-header h1,
.blog-index h1 {
    margin: 0;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5.4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.post-body {
    color: #2a4436;
    font-size: 1.06rem;
    line-height: 1.8;
}

.post-body p {
    margin: 0 0 18px;
}

.post-body h2 {
    margin: 52px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.post-body a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: rgba(46, 95, 70, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 180ms ease;
}

.post-body a:hover {
    text-decoration-color: var(--accent);
}

/* One-line "A → B" statements, in the spirit of the reference format */
.post-body .eq {
    margin: 22px 0;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.005em;
}

.post-body figure {
    margin: 34px 0;
}

.post-body figure a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(69, 100, 82, 0.2);
    border-radius: 14px;
    background: #efece7;
    box-shadow: 0 16px 40px rgba(35, 53, 44, 0.08);
}

.post-body figure.figure-narrow {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.post-body figure img {
    width: 100%;
    height: auto;
}

.post-body figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.post-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

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

.post-closing {
    margin-top: 28px !important;
    color: var(--text);
    font-weight: 700;
}

.sources-title {
    margin: 48px 0 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sources {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sources li {
    margin-bottom: 8px;
}

.sources a {
    color: var(--muted);
}

.post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 44px 0 0;
    padding: 20px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-cta a {
    flex: 0 0 auto;
    color: var(--accent-strong);
    font-weight: 700;
    white-space: nowrap;
}

.post-cta a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-footer-nav {
    margin: 28px 0 72px;
}

/* Index */

.blog-index-lede {
    margin: 16px 0 40px;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.post-list {
    display: grid;
    margin: 0 0 80px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.post-card {
    border-bottom: 1px solid var(--line-soft);
}

.post-card a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
}

.post-card a:hover h2 {
    color: var(--accent-strong);
}

.post-card__text {
    display: grid;
    gap: 10px;
}

.post-card .case-tag {
    font-size: 0.66rem;
}

.post-card h2 {
    margin: 0;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    transition: color 180ms ease;
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-card__meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.post-card img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(69, 100, 82, 0.18);
    border-radius: 12px;
}

@media (max-width: 640px) {
    .post,
    .blog-index {
        padding-top: 40px;
    }

    .post-body {
        font-size: 1.02rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 4px;
    }

    .post-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-card a {
        grid-template-columns: 1fr;
    }

    .post-card img {
        order: -1;
    }
}
