/* Blog index and posts. Loaded after styles.css. */

.header-nav a[aria-current="page"] { color: var(--ink); }

.blog-index { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.blog-index .wrap { max-width: 760px; }
.blog-index h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); letter-spacing: -0.03em; }
.post-list { list-style: none; margin: 40px 0 0; padding: 0; }
.post-list li { padding: 28px 0; border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); max-width: none; margin-top: 6px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.post-list li > p:last-child { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }

.post-meta { color: var(--muted); font-size: .9375rem; }

.post { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.post .wrap { max-width: 720px; }
.post-back { display: inline-block; font-size: .9375rem; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.post-back::before { content: "‹ "; }
.post h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.post .post-meta { margin-top: 14px; }
.post-lede { margin-top: 32px; font-size: clamp(1.1875rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.post article > p, .post article > ul, .post article > ol, .post blockquote { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.post article > p { margin-top: 20px; }
.post article > h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); max-width: none; margin-top: 48px; }
.post article > ul, .post article > ol { margin: 20px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
.post li::marker { color: var(--muted); }
.post b { color: var(--ink); font-weight: 600; }
.post blockquote { margin: 24px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); }
.post blockquote p + p { margin-top: 12px; }

.post-cta { margin-top: 56px; padding: clamp(22px, 3vw, 32px); border-radius: 16px; background: var(--brand-wash); }
.post-cta h2 { font-size: 1.375rem; max-width: none; }
.post-cta p { margin-top: 8px; color: var(--ink-2); }
.post-cta .btn { margin-top: 18px; }

.post-crumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 20px; }
.post-crumbs a { font-weight: 600; text-decoration: none; }
.post-crumbs a:hover { text-decoration: underline; }
.post-hero, .post-fig { margin: 32px 0 0; }
.post-hero img, .post-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); }
.post-fig { margin-top: 32px; }
.post-faq { margin-top: 56px; }
.post-faq h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); max-width: none; margin-bottom: 12px; }
.post-faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 64ch; }
.post-author { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 1rem; }
.post-related { margin-top: 48px; }
.post-related h2 { font-size: 1.25rem; max-width: none; }
.post-related ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.post-related a { font-weight: 600; text-underline-offset: 3px; }

.post-list li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.post-list .thumb { grid-row: span 3; display: block; }
.post-list .thumb img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); }
@media (max-width: 640px) { .post-list li { grid-template-columns: minmax(0, 1fr); } .post-list .thumb { grid-row: auto; } }
.post-list h2 { margin-top: 0; }
.post .post-faq { padding: 0; }
