/* Blog pages (loaded after site.css; uses its variables). */
.blog-index { padding-top: 48px; padding-bottom: 72px; }
.blog-index h1 { font-size: clamp(30px, 5vw, 42px); max-width: 18em; }
.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-top: 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--sage); color: var(--text); }
.blog-card img, .blog-card-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sage-soft); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.blog-card-body strong { font: 400 21px/1.25 var(--serif); }
.blog-card-body .muted { font-size: 15px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.blog-tag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tan-soft); color: var(--tan-text); }
.blog-post { padding-top: 40px; padding-bottom: 72px; }
.blog-post h1 { font-size: clamp(30px, 5.5vw, 44px); margin-bottom: 14px; }
.blog-back { font-size: 15px; text-decoration: none; }
.blog-cover { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin: 24px 0 8px; border: 1px solid var(--border); }
.blog-body { margin-top: 24px; font-size: 18px; line-height: 1.7; }
.blog-body h1, .blog-body h2 { font-size: 28px; margin-top: 1.8em; }
.blog-body h3 { font-size: 22px; margin-top: 1.6em; }
.blog-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.blog-body ul, .blog-body ol { padding-left: 24px; }
.blog-body li { margin-bottom: 6px; }
.blog-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--muted); }
.blog-body blockquote p { margin: .5em 0; }
.blog-body code { font: .88em ui-monospace, Menlo, monospace; background: var(--tan-soft); padding: 2px 6px; border-radius: 6px; }
.blog-body pre { background: var(--code-bg); color: #fff; padding: 16px 18px; border-radius: var(--r-sm); overflow-x: auto; }
.blog-body pre code { background: none; padding: 0; color: inherit; }
.blog-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
