/* Blog: index, post cards and the article page. Uses the page's own variables. */
.brand svg { flex: none; }
.blog-head { padding: 4rem 0 2.5rem; }
.blog-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; margin-bottom: .75rem; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.post-card { display: grid; gap: .5rem; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card .date { font: 500 .78rem/1.3 var(--mono); color: var(--muted); }
.post-card h3 { font-size: 1.25rem; line-height: 1.2; }
.post-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.post-card .go { font-weight: 600; font-size: .95rem; margin-top: .4rem; text-decoration: underline; text-underline-offset: 3px; }
p.all { margin: 1.5rem 0 0; font-weight: 600; }

.post { max-width: 44rem; margin: 0 auto; padding: 3rem 0 1rem; }
.crumbs { display: flex; gap: .5rem; font: 500 .82rem/1.3 var(--mono); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; margin-bottom: 1rem; text-wrap: balance; }
.byline { color: var(--muted); font-size: .95rem; margin: 0 0 2rem; }
.byline time::before { content: ""; display: inline-block; width: .3rem; height: .3rem; border-radius: 50%; background: var(--muted); margin: 0 .6rem .2rem .35rem; }
.answer { background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px; padding: 1.2rem 1.4rem; }
.answer b { font: 500 .8rem/1.3 var(--mono); color: var(--muted); display: block; margin-bottom: .4rem; }
.answer p { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.takeaways { list-style: none; margin: 1.25rem 0 2.5rem; padding: 0; }
.takeaways li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-top: 1px solid var(--line); }
.takeaways li:first-child { border-top: 0; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; line-height: 1.2; margin: 2.5rem 0 .75rem; max-width: none; }
.prose h3 { font-size: 1.25rem; line-height: 1.25; margin: 2rem 0 .5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose a, .sources a, .md-link a, .blog-head a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose code { font: 400 .9em var(--mono); background: var(--wash); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font: 400 .9rem/1.6 var(--mono); }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 1.2rem; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose blockquote p { margin: 0; }
.table { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem .9rem; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; font-weight: 600; background: var(--wash); white-space: nowrap; }

.post-faq, .sources { margin-top: 3rem; }
.post-faq h2, .sources h2 { font-size: 1.6rem; max-width: none; }
.post-faq .faq { margin-top: .75rem; }
.sources ol { margin: .75rem 0 0; padding-left: 1.3rem; color: var(--muted); }
.sources li { margin: .4rem 0; overflow-wrap: anywhere; }
.md-link { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .blog-head { padding: 2.5rem 0 1.5rem; } .post { padding-top: 2rem; } .prose { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } }
