/* =========================================================
   Blog index and article
   From design_files/blog.html and article.html.
   ========================================================= */

.b-hero { background: var(--char); color: #fff; padding: 56px 0 44px; }
.b-hero .eyebrow { color: var(--hivis); margin-bottom: 16px; }
.b-hero h1 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(40px, 6.5vw, 76px); margin: 0 0 16px; letter-spacing: .01em; line-height: .9; }
.b-hero h1 .hl { color: var(--hivis); }
.b-hero p { font-size: 17px; color: #BFC1C8; max-width: 54ch; margin: 0; line-height: 1.6; }

.cat-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; }
.cat-bar .inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; }
.cat-bar .inner::-webkit-scrollbar { display: none; }
.cat { font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 99px; color: var(--muted); white-space: nowrap; border: 1.5px solid var(--line-2); background: #fff; text-decoration: none; }
.cat:hover { border-color: var(--char); color: var(--char); }
.cat.active { background: var(--char); color: #fff; border-color: var(--char); }

.feat-post { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 40px; }
.feat-post .fp-img { min-height: 320px; display: block; background: var(--concrete); }
.feat-post .fp-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feat-post h2 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(26px, 3.6vw, 40px); margin: 14px 0; letter-spacing: .01em; line-height: 1.02; }
.feat-post h2 a { color: inherit; text-decoration: none; }
.feat-post h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.feat-post p { font-size: 15.5px; color: #43454c; line-height: 1.62; margin: 0 0 22px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pcard__media { display: block; background: var(--concrete); aspect-ratio: 16 / 9; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.pcard__title { font-family: var(--anton); text-transform: uppercase; font-size: 19px; letter-spacing: .01em; line-height: 1.1; margin: 0; }
.pcard__title a { color: var(--char); text-decoration: none; }
.pcard__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__excerpt { font-size: 14.5px; line-height: 1.6; color: #43454c; margin: 0; }
.pcard__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; display: flex; align-items: center; gap: 9px; }
.pcard__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ---------- Article ---------- */

.a-hero { background: var(--char); color: #fff; padding: 30px 0 40px; }
.a-hero .post-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--hivis); font-weight: 700; margin: 0; }
.a-hero h1 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(34px, 5.4vw, 62px); margin: 14px 0 20px; letter-spacing: .01em; line-height: .96; max-width: 20ch; }

.a-meta { display: flex; align-items: center; gap: 13px; font-size: 13.5px; color: #BFC1C8; font-weight: 600; flex-wrap: wrap; }
.a-meta .av { width: 38px; height: 38px; border-radius: 50%; background: var(--hivis); color: var(--char); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.a-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #3a3c43; }

.a-cover { height: clamp(240px, 40vw, 460px); }

.a-wrap .prose { max-width: 680px; margin-inline: auto; }
.a-wrap .prose p, .a-wrap .prose li { font-size: 17px; line-height: 1.75; color: #2c2e34; }
.a-wrap .prose h2 { font-family: var(--anton); text-transform: uppercase; font-size: clamp(24px, 3.2vw, 32px); margin: 40px 0 12px; letter-spacing: .01em; }
.a-wrap .prose h3 { font-size: 20px; font-weight: 800; margin: 30px 0 10px; }
.a-wrap .prose img { max-width: 100%; height: auto; border-radius: var(--r); }

.author-box { max-width: 680px; margin: 30px auto 0; display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.author-box .ab-av { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--hivis); color: var(--char); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.author-box .ab-n { font-family: var(--anton); text-transform: uppercase; font-size: 20px; letter-spacing: .01em; margin: 0; }
.author-box .ab-b { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 4px 0 0; }

/* The reading-progress bar. Purely decorative, so it is hidden from assistive
   technology and from anyone who has asked for less motion. */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--hivis); width: 0; z-index: 60; transition: width .1s linear; }

@media (prefers-reduced-motion: reduce) {
	.progress { transition: none; }
}

@media (max-width: 899px) {
	.feat-post { grid-template-columns: 1fr; }
	.feat-post .fp-img { min-height: 200px; }
	.feat-post .fp-body { padding: 26px; }
	.cat-bar { top: 0; }
}
