.blog-main { min-height: 60vh; padding-block: clamp(36px, calc(30 * var(--s)), 76px); }

.blog-heading { text-align: center; margin-bottom: clamp(28px, calc(24 * var(--s)), 60px); }
.blog-heading h1 { font-size: clamp(38px, calc(36 * var(--s)), 84px); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, calc(14 * var(--s)), 34px); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: #fffaf1; border: 1px solid #ad6a4133; border-radius: 6px; }
.blog-card-photo { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #e7dac8; }
.blog-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .45s ease; }
.blog-card:hover .blog-card-photo img { scale: 1.04; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .75em; padding: clamp(18px, calc(14 * var(--s)), 34px); }
.blog-card h2 { font-size: clamp(22px, calc(17 * var(--s)), 40px); letter-spacing: -.02em; line-height: 1.08; }
.blog-card h2 a:hover { color: var(--rust); }
.blog-excerpt { line-height: 1.4; }
.blog-more { margin-top: auto; padding-top: .5em; color: var(--rust); font: 700 clamp(11px, calc(8.4 * var(--s)), 19px)/1.2 var(--sans); text-transform: uppercase; letter-spacing: .15em; }
.blog-more:hover { text-decoration: underline; text-underline-offset: .3em; }
.blog-meta { color: #6b5546; font: 600 clamp(11px, calc(8.2 * var(--s)), 18px)/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; }

.blog-pagination { margin-top: 32px; font-family: var(--sans); }
.blog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; list-style: none; }
.blog-pagination .page-link { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid #a9573266; border-radius: 3px; }
.blog-pagination .active .page-link { background: #8b351c; color: #fff; }

.blog-post { width: min(calc(100% - 2 * var(--gutter)), clamp(660px, calc(430 * var(--s)), 980px)); }
.blog-post-heading { text-align: center; margin-bottom: clamp(24px, calc(20 * var(--s)), 48px); }
.blog-post-heading h1 { font-size: clamp(32px, calc(31 * var(--s)), 70px); line-height: 1.02; text-wrap: balance; }
.blog-post-heading .blog-meta { margin-top: 1.4em; }
.blog-post-body { font-size: clamp(17px, calc(11.5 * var(--s)), 25px); line-height: 1.6; overflow-wrap: break-word; }
.blog-post-body p { margin-top: 1em; }
.blog-post-body > p:first-of-type { margin-top: 0; font-size: 1.12em; }
.blog-post-body h2 { margin: 1.8em 0 .2em; font-size: 1.45em; letter-spacing: -.015em; line-height: 1.15; color: var(--wine); }
.blog-post-body h3 { margin: 1.5em 0 .2em; font-size: 1.2em; }
.blog-post-body ul, .blog-post-body ol { margin-top: 1em; padding-left: 1.3em; }
.blog-post-body li + li { margin-top: .5em; }
.blog-post-body li::marker { color: var(--rust); }
.blog-post-body a { color: var(--rust); text-decoration: underline; }
.blog-post-body figure { margin-block: 1.6em; }
.blog-post-body img { margin-inline: auto; border-radius: 4px; }
.blog-back { margin-top: 2.6em; text-align: center; }

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-post { width: min(calc(100% - 2 * var(--gutter)), 660px); }
}
