/* Blog pages. Builds on landing.css (header, footer, buttons) and the marketing palette. */
.blog-hero { padding: 48px 0 28px; max-width: 760px; }
.blog-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; color: #17201b; }
.blog-hero-intro { margin-top: 18px; font-size: 1.125rem; line-height: 1.7; color: #455149; }
.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.blog-categories a { padding: 7px 14px; border: 1px solid #dcded3; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #455149; text-decoration: none; background: #fffdf7; }
.blog-categories a:hover { border-color: #17201b; color: #17201b; }
.blog-categories a[aria-current="page"] { background: #17201b; border-color: #17201b; color: #fffdf7; }

.blog-list { padding: 12px 0 72px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.blog-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fffdf7; border: 1px solid #e6e4dc; border-radius: 17px; overflow: hidden; transition: box-shadow 180ms ease, transform 180ms ease; }
.blog-card a:hover { box-shadow: 0 8px 24px rgba(35, 44, 38, .08); transform: translateY(-2px); }
.blog-card img, .blog-card-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card-placeholder { background: linear-gradient(135deg, #ece8db, #edf8dc); }
.blog-card-meta { margin: 18px 22px 0; font-size: .75rem; color: #646d67; }
.blog-card h2, .blog-card h3 { margin: 8px 22px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: #17201b; }
.blog-card p { margin: 10px 22px 24px; font-size: .9375rem; line-height: 1.6; color: #455149; }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 44px; font-size: .875rem; color: #646d67; }
.blog-pagination a { font-weight: 650; color: #17201b; }
.blog-empty { color: #646d67; }
.blog-related { border-top: 1px solid #e6e4dc; padding-top: 48px; }
.blog-related > h2 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }

.blog-post { max-width: 720px; padding: 48px 0 64px; }
.blog-post-header h1 { margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: #17201b; }
.blog-post-intro { margin-top: 18px; font-size: 1.25rem; line-height: 1.6; color: #455149; }
.blog-post-meta { margin-top: 18px; font-size: .8125rem; color: #646d67; }
.blog-post-meta a { color: #b63619; font-weight: 650; text-decoration: none; }
.blog-post-body { margin-top: 36px; font-size: 1.0625rem; line-height: 1.8; color: #17201b; }
.blog-post-body > * + * { margin-top: 1.4em; }
.blog-post-body h2 { margin-top: 2em; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.blog-post-body h3 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 650; }
.blog-post-body p + p { margin-top: 1.1em; }
.blog-post-body a { color: #b63619; text-decoration: underline; text-underline-offset: 3px; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4em; }
.blog-post-body ul { list-style: disc; }
.blog-post-body ol { list-style: decimal; }
.blog-post-body li + li { margin-top: .4em; }
.blog-post-body blockquote { padding-left: 20px; border-left: 3px solid #ff5c35; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; color: #455149; }
.blog-post-body code { padding: 2px 5px; border-radius: 5px; background: #ece8db; font-size: .9em; }
.blog-code { margin-inline: 0; border-radius: 11px; overflow: hidden; background: #15231b; }
.blog-code figcaption { padding: 8px 18px 0; font-size: .75rem; letter-spacing: .04em; color: #c9f269; }
.blog-code pre { margin: 0; padding: 14px 18px 18px; overflow-x: auto; font-size: .875rem; line-height: 1.6; color: #f7f5ee; }
/* Wrap rather than scroll: Skill files are mostly prose with long description lines. */
.blog-code pre code { padding: 0; border-radius: 0; background: none; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.blog-figure { margin-inline: 0; }
.blog-figure img { width: 100%; height: auto; border-radius: 11px; }
.blog-figure figcaption { margin-top: 8px; font-size: .8125rem; color: #646d67; text-align: center; }
.blog-post-body .responsive-object { position: relative; }
.blog-post-body .responsive-object iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 720px) {
  .blog-hero, .blog-post { padding-top: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
}
