/* Allprint: blog index, archives and single post. */

/* Hero */
.blog-hero { background: var(--stone); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 36px); }
.blog-hero .kicker a:hover { color: var(--ink); }
.blog-hero__title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.02em; max-width: 20ch; }
.blog-hero__lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 58ch; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.blog-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s, color .2s; }
.blog-chip span { font-size: 12px; color: var(--muted); }
.blog-chip:hover { border-color: var(--ink); }
.blog-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-chip.is-active span { color: rgba(255, 255, 255, .6); }

/* List */
.blog-list { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.blog .post-grid, .post-related .post-grid { gap: 36px 24px; }
.blog-empty { color: var(--muted); }

/* Card */
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; overflow: hidden; border-radius: 12px; background: var(--stone); aspect-ratio: 2 / 1; }
.post-card__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; transition: transform .6s var(--ease, ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.post-card__body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.post-card__cat { font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-card__cat:hover { color: var(--ink); }
.post-card__title { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; margin: 10px 0 10px; letter-spacing: -.01em; }
.post-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.post-card:hover .post-card__title a { background-size: 100% 1px; }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.post-card__more { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Featured card */
.post-card--feature { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .post-card--feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.post-card--feature .post-card__media { aspect-ratio: 2 / 1; }
.post-card--feature .post-card__body { padding: 0; }
.post-card--feature .post-card__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; margin: 14px 0 16px; }
.post-card--feature .post-card__excerpt { font-size: 16.5px; }

/* Pagination */
.blog .pagination { margin-top: clamp(40px, 5vw, 64px); }
.blog .pagination .prev .icon { transform: rotate(180deg); }

/* Single: head */
.post-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.post-head__inner { max-width: 920px; text-align: center; }
.post-head__crumbs { display: flex; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.post-head__crumbs span { color: var(--line); }
.post-head__crumbs a:hover { color: var(--ink); }
.post-head__title { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.02em; line-height: 1.08; }
.post-head__meta { display: flex; justify-content: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.post-hero { margin: 0 auto; max-width: calc(1180px + 2 * var(--gutter)); }
.post-hero img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px; display: block; background: var(--stone); }

/* Single: body */
.post-layout { display: grid; gap: 28px; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px); max-width: calc(1000px + 2 * var(--gutter)); }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 80px minmax(0, 1fr); gap: 48px; } }
.post-share { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1000px) { .post-share { flex-direction: column; position: sticky; top: 110px; align-self: start; } }
.post-share__label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
@media (min-width: 1000px) { .post-share__label { margin: 0 0 4px; } }
.post-share a, .post-share__copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 50px; background: #fff; font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.post-share a:hover, .post-share__copy:hover { border-color: var(--ink); }
.post-share__copy.is-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-share__ico { display: inline-flex; }
.post-share__ico--done { display: none; }
.post-share__copy.is-done .post-share__ico--link { display: none; }
.post-share__copy.is-done .post-share__ico--done { display: inline-flex; }
.post-share__txt { font-size: 12.5px; font-weight: 700; }
@media (min-width: 1000px) { .post-share__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.post-body { min-width: 0; max-width: 720px; }
.post-prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.post-prose > * + * { margin-top: 1.15em; }
.post-prose p, .post-prose li { color: #2a2a2a; }
.post-prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.8em; }
.post-prose h3 { font-size: 21px; margin-top: 1.5em; }
.post-prose li + li { margin-top: .5em; }
.post-prose img { border-radius: 12px; margin-block: .5em; width: 100%; height: auto; }
.post-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-prose a:hover { color: var(--ink); }
.post-prose strong { font-weight: 700; color: var(--ink); }
.post-prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 20px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags a { padding: 7px 14px; border-radius: 999px; background: var(--stone); font-size: 13.5px; font-weight: 600; }
.post-tags a:hover { background: var(--ink); color: #fff; }

.post-cta { display: grid; gap: 20px; margin-top: 40px; padding: clamp(24px, 3vw, 36px); border-radius: 12px; background: var(--ink); color: #fff; }
@media (min-width: 700px) { .post-cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.post-cta__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.post-cta p:not(.post-cta__title) { color: rgba(255, 255, 255, .72); font-size: 15px; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta .btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-related { background: var(--stone); }
@media (max-width: 700px) { .post-prose { font-size: 16.5px; line-height: 1.7; } }

/* Pagination (nav.blog-pagination) */
.blog-pagination { margin-top: clamp(40px, 5vw, 64px); }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 14px; color: var(--ink-2); vertical-align: middle; }
.blog-pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.blog-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-pagination .page-numbers.dots { border: 0; }
.blog-pagination .page-numbers .icon { display: block; }
.blog-pagination .prev .icon { transform: rotate(180deg); }
