/* The blog list (/blog) and the blog post pages, matching the live site.
   Post text styles are in prose.css. Breakpoints: phone < 810px, tablet 810–1439px, desktop >= 1440px. */

/* ── shared pieces ── */

/* boxed topic label on cards and posts */
.tag {
  display: inline-flex; align-items: center;
  padding: 9px 8px 8px;
  border: 1px solid var(--muted);
  font-family: var(--mono); font-size: 12px; line-height: 12px; letter-spacing: .6px;
  color: var(--muted);
  white-space: nowrap;
}

/* "Read more ↗": an 18px arrow icon in a 24px box, turned 45° */
.read-more {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 0;
  font-size: 14px; font-weight: 500; line-height: 23.8px; color: var(--teal);
}
.read-more .arr-box { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; transform: rotate(-45deg); }
.read-more .arr-box .arr { flex: none; }
.read-more .arr { width: 18px; height: 18px; fill: var(--teal); transition: fill .2s ease; }

/* ── /blog ── */
.bl { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

.bl-hero { padding: 100px 40px 84px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.bl-h1 { font-family: var(--serif); font-weight: 300; font-size: 88px; line-height: .9; letter-spacing: -.04em; color: var(--teal); }
.bl-sub { max-width: 595px; font-size: 16px; line-height: 22.4px; color: var(--teal-mid); }

.bl-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-filter {
  padding: 9px 8px 8px;
  box-shadow: inset 0 0 0 1px var(--muted);
  font-family: var(--mono); font-size: 12px; line-height: 12px; letter-spacing: .6px;
  color: var(--muted);
  transition: background-color .2s ease;
}
.bl-filter:hover { background: rgba(188, 204, 200, .3); }
.bl-filter[aria-pressed="true"] { background: rgba(188, 204, 200, .7); box-shadow: inset 0 0 0 1px var(--teal-mid); color: var(--teal); }

.bl-list { display: flex; flex-direction: column; gap: 32px; padding-top: 40px; }
.bl-list > [hidden] { display: none; }

.bc-link {
  display: flex; align-items: flex-start; gap: 32px;
  padding: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--stone);
}
.bc-art { position: relative; flex: none; width: 227px; height: 227px; }
.bc-art img { width: 100%; height: 100%; object-fit: cover; }
.bc-art::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--stone); pointer-events: none; }
.bc-art.is-empty { background: var(--cream); }
.is-feature .bc-art { width: 350px; height: 350px; }

.bc-text { flex: 2 0 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; padding-right: 4px; min-width: 0; }
.bc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
/* the live cards keep an empty summary line under the title */
.bc-head::after { content: ""; }
.bc-date {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; line-height: 10px; letter-spacing: .9px; text-transform: uppercase;
  color: var(--muted);
}
.bc-date::before { content: ""; flex: none; width: 2px; height: 14px; background: var(--red); }
.bc-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -.02em; color: var(--teal); }
.is-feature .bc-title { font-size: 45.28px; letter-spacing: -.04em; -webkit-line-clamp: 3; line-clamp: 3; }
.bc-tags { flex: 1 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 8px; min-width: 0; }
.bc-link:hover .arr { fill: var(--red); }

.bl-more-wrap { display: flex; justify-content: center; padding: 32px 0 80px; }
.bl-more {
  height: 40px; padding: 8px 14px;
  background: var(--teal); color: var(--white);
  box-shadow: 0 1px 2px rgba(18, 18, 23, .05);
  font-size: 14px; font-weight: 500; line-height: 23.8px;
  transition: background-color .2s ease;
}
.bl-more:hover { background: var(--teal-2); }
.bl-more[hidden] { display: none; }
.bl-more-wrap:has(.bl-more[hidden]) { padding-top: 0; }
.bl-empty { padding: 0 0 80px; text-align: center; color: var(--teal-mid); }

@media (max-width: 1439px) {
  .bl-h1 { font-size: 60.8px; }
  .bl-sub { font-size: 15px; line-height: 21px; }
  .bc-title { font-size: 28.8px; }
  .is-feature .bc-title { font-size: 40px; }
}

@media (max-width: 809px) {
  .bl { padding: 0 16px; }
  .bl-hero { padding: 48px 40px 60px; }
  .bl-h1 { font-size: 46.4px; }
  .bl-filters { margin-top: 10px; }
  .bl-list { gap: 16px; padding-top: 26px; }
  .bc-link { flex-direction: column; align-items: stretch; padding: 16px 16px 12px; }
  .bc-art, .is-feature .bc-art { width: 100%; height: auto; aspect-ratio: 1; }
  .bc-text { justify-content: flex-start; padding-right: 0; }
  .bc-head { gap: 16px; }
  .bc-title, .is-feature .bc-title { font-size: 23.68px; letter-spacing: -.02em; -webkit-line-clamp: unset; line-clamp: none; }
  .bc-tags { display: none; }
  .bl-more-wrap { padding-top: 6px; }
}

/* ── post page ── */
.po-hero { padding: 80px 20px 52px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
/* a post without a summary keeps the summary's empty slot, as on the live site */
.po-hero.no-desc::after { content: ""; }
.po-top { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1170px; }
.po-back, .po-top-end { flex: 1 0 0; }
.po-back { display: flex; align-items: flex-end; gap: 6px; color: var(--muted); }
.po-back-arr { font-size: 12px; line-height: 15.6px; }
.po-back-label { padding-top: 3px; font-family: var(--mono); font-size: 12px; line-height: 14.4px; letter-spacing: .6px; }
.po-back:hover { color: var(--teal); }
.po-date { display: flex; align-items: center; gap: 8px; }
.po-date time { padding-top: 3px; font-family: var(--mono); font-size: 12px; line-height: 14.4px; letter-spacing: .6px; color: var(--muted); }
.po-brk { font-family: var(--serif); font-weight: 300; font-size: 20.8px; line-height: 22.88px; letter-spacing: -.01em; color: var(--red); }
.po-title { max-width: 840px; font-family: var(--serif); font-weight: 300; font-size: 88px; line-height: .9; letter-spacing: -.04em; color: var(--teal); }
.po-desc { max-width: 600px; font-size: 16px; line-height: 22.4px; color: var(--teal-mid); }

.po-cover { max-width: 960px; margin: 0 auto; padding-bottom: 32px; }
.po-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; outline: 1px solid var(--stone); outline-offset: -1px; }

.po-cols { display: flex; justify-content: center; align-items: flex-start; max-width: 1440px; margin: 0 auto; }
.po-side { position: sticky; top: 60px; flex: 1 0 0; max-width: 300px; padding: 32px; }
.po-side .toc { padding: 12px; }
.po-main { flex: 1 0 0; max-width: 700px; min-width: 0; padding: 32px 20px; display: flex; flex-direction: column; gap: 48px; }
.po-end { flex: 1 0 0; max-width: 300px; }

.po-share {
  position: relative;
  display: flex; align-items: flex-start; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 72, 78, .2);
}
.po-share-links { display: flex; align-items: center; gap: 10px; }
.po-share-label { font-family: var(--mono); font-size: 12px; line-height: 14.4px; letter-spacing: .6px; color: var(--muted); }
.po-share-btn { display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 100px; }
.po-share-btn svg { fill: var(--teal); }
.po-share-btn:hover svg { fill: var(--teal-mid); }
.po-share-tags { flex: 1 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.po-share-tags .tag { padding: 9px 8px 8px; }

.po-see { width: 100%; max-width: 800px; margin: 0 auto; padding: 32px 0 16px; }
.po-see-title { padding: 4px 4px 0; font-family: var(--serif); font-weight: 300; font-size: 20.8px; line-height: 22.88px; letter-spacing: -.01em; color: var(--teal); }
.po-see-list { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px 4px; }
.po-see-list a {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 6px 0 12px;
  border-bottom: 1px solid rgba(17, 72, 78, .2);
}
.po-see-name { flex: 4 0 0; font-family: var(--serif); font-weight: 300; font-size: 16px; line-height: 19.2px; letter-spacing: -.01em; color: var(--teal); }
.po-see-list time { flex: none; font-family: var(--mono); font-size: 12px; line-height: 14.4px; letter-spacing: .6px; color: var(--muted); text-align: center; }
.po-see-list a:hover .po-see-name { color: var(--teal-mid); }

@media (max-width: 1439px) {
  .po-hero { padding: 48px 20px 52px; }
  .po-title { font-size: 60.8px; }
  .po-desc { font-size: 15px; line-height: 21px; }
  .po-cover { width: calc(100% - 64px); margin-top: 10px; }
  .po-side { max-width: 240px; padding: 32px 16px; }
  .po-end { display: none; }
}

@media (max-width: 809px) {
  .po-hero { padding: 24px 16px 36px; }
  .po-back, .po-top-end { flex: none; }
  .po-back { width: 87px; }
  .po-title { font-size: 32px; line-height: 1; }
  .po-cover { width: 100%; padding-bottom: 16px; }
  .po-side { display: none; }
  .po-main { padding: 32px 16px; }
  .po-share { flex-direction: column; }
  .po-share-tags { justify-content: flex-start; }
  .po-share-tags .tag { padding: 5px 4px 4px; font-size: 10px; line-height: 10px; }
}

/* titles and summaries break into lines of even length, as on the live site */
.bl-h1, .bl-sub, .bc-title, .po-title, .po-desc, .po-see-name { text-wrap: balance; }
