/* The blog (ignithor.com/blog, docs/BLOG.md): on top of site.css, the landing page's look. */
.nav .links a[aria-current="page"] { color: var(--stone); }
/* the footer stays at the bottom of the window, however short the page */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.blog { flex: 1 0 auto; width: 100%; padding-top: 48px; padding-bottom: 72px; }
.blog-head { max-width: 720px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.blog-head h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0; }
.blog-head .lead { font-size: 18px; color: var(--muted); margin: 0; }
.blog-head .rss { font-size: 13px; color: var(--muted); }
.blog .empty { color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h2 { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 0; }
.card h2 a { color: var(--obsidian); text-decoration: none; }
.card h2 a:hover { color: var(--red); }
.card p { margin: 0; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); margin: 0; }

.post { max-width: 720px; margin: 0 auto; }
.post .back { margin: 0 0 18px; font-size: 14px; }
.post h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin: 0 0 12px; }
.post .cover { display: block; width: 100%; border-radius: 14px; margin: 26px 0 8px; }
.post .body { font-size: 18px; line-height: 1.75; }
.post .body h2 { font-family: var(--display); font-size: 28px; line-height: 1.25; margin: 42px 0 10px; }
.post .body h3 { font-size: 20px; margin: 30px 0 8px; }
.post .body img { border-radius: 10px; margin: 10px 0; }
.post .body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--muted); }
.post .body code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.post .body pre { background: var(--surface-2); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.post .body pre code { background: none; padding: 0; }
.post .body table { border-collapse: collapse; width: 100%; }
.post .body th, .post .body td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }

.more-posts { max-width: 720px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--border); }
.more-posts h2 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; }
.more-posts ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 640px) {
  main.blog { padding-top: 28px; }
  .post .body { font-size: 17px; }
}
