/* Blog pages (generated by scripts/build-blog.mjs); builds on legal.css. */
.nav-blog { display: inline-block; padding: 10px 4px; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--muted); }
.nav-blog:hover { color: var(--ink); }
.crumbs { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.post-body h2 { font-size: 1.45rem; margin-top: 44px; }
.post-body h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 28px 0 8px; }
.post-body ol { padding-left: 22px; margin: 0 0 14px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body blockquote { margin: 20px 0; padding: 14px 20px; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 0.88em; }
.post-body pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.post-body pre code { background: none; border: 0; padding: 0; }
.post-body table { display: block; overflow-x: auto; }
.cta { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; background: var(--soft); }
.cta-title { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.btn { display: inline-block; margin-top: 4px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: #000; }
.related { margin-top: 48px; }
.related-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.related a:hover { border-color: var(--accent); transform: translateY(-1px); }
.related b { display: block; margin-bottom: 2px; }
.related span { display: block; font-size: 0.92rem; color: var(--muted); }
/* Overview: newest post as a wide card, the rest in a grid of cards */
.blog-index, body:has(.blog-index) nav .in { max-width: 1080px; }
.blog-index h1 { margin-bottom: 12px; }
.blog-index .intro { max-width: 640px; color: var(--muted); font-size: 1.05rem; margin: 0 0 40px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.post-list li { margin: 0; }
.post-list a { height: 100%; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.post-list a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(23, 20, 15, .25); }
.post-list h2 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.3; }
.post-list p { margin: 0 0 18px; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.post-list .meta { margin-top: auto; font-size: 0.85rem; color: var(--muted); }
.post-list .featured { grid-column: 1 / -1; }
.post-list .featured a { padding: 36px; background: var(--soft); border-top: 3px solid var(--accent); }
.post-list .featured h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 760px; }
.post-list .featured p { font-size: 1.05rem; max-width: 720px; }
.tag { align-self: flex-start; margin-bottom: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .post-list a, .post-list .featured a { padding: 20px; } }
