/* Article index and article pages.
   site.css gives every <section> a large band padding — right for the practice
   pages, too loose here, so these sections set their own rhythm. */

/* ── Index ─────────────────────────────── */
.blog-hero { padding-bottom: clamp(1.6rem, 3vh, 2.4rem); }
.blog-list { padding: 0 0 clamp(3.5rem, 7vh, 5.5rem); }

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid #e4e1dc;
}

.cat-chip {
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.5rem 0.85rem;
  border: 1px solid #d8d4cd;
  border-radius: 999px;
  background: transparent;
  color: #3a3a46;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cat-chip:hover { border-color: #9a9a9a; background: #f2efeb; }
.cat-chip.is-on { background: var(--navy, #191735); border-color: var(--navy, #191735); color: #fff; }
.cat-chip .n { opacity: .55; font-variant-numeric: tabular-nums; margin-left: .15rem; }
.cat-chip.sm { font-size: 0.78rem; padding: 0.28rem 0.6rem; }
.cat-chip:focus-visible { outline: 2px solid var(--navy, #191735); outline-offset: 2px; }

.post-grid { display: grid; gap: 2rem; }
.post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ebe8e3;
}
.post-card:last-child { border-bottom: 0; }
.post-card-img img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px;
}
.post-card h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.22; margin: .5rem 0 .55rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card .excerpt { font-size: .98rem; line-height: 1.65; margin: 0 0 .6rem; }
.post-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.post-meta { font-size: .84rem; color: #6b6b6b; margin: 0; }
.no-match { color: #6b6b6b; padding: 1.5rem 0; }
.blog-cta { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid #e4e1dc; font-size: .95rem; }

/* ── Article ───────────────────────────── */
.post-hero { padding-bottom: clamp(1.4rem, 2.5vh, 2rem); }
.post-hero .wrap, .post .wrap { width: min(760px, calc(100% - 3rem)); }
.post-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.post-hero .post-cats { margin-bottom: 1rem; }
.post-hero .lede { max-width: 62ch; }
.post-hero .post-meta { margin-top: 1rem; }

.post { padding: 0 0 clamp(3.5rem, 7vh, 5.5rem); }
.post p, .post li { font-size: 1.02rem; line-height: 1.75; }
.post p { margin: 0 0 1.15rem; }
.post h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  line-height: 1.25;
  margin: 2.25rem 0 .85rem;
  letter-spacing: -.01em;
}
.post a { text-decoration: underline; text-underline-offset: 2px; }
.post-figure { margin: 0 0 2rem; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: 3px; }
.fig-cap { font-size: .84rem; color: #6b6b6b; margin-top: .6rem; }

.post-cta {
  border-left: 3px solid var(--navy, #191735);
  background: #f6f4f1;
  padding: 1.2rem 1.4rem;
  margin: 2.25rem 0 1.5rem;
}
.post-cta p { margin: 0; }
.post-disclaimer { font-size: .86rem; color: #6b6b6b; line-height: 1.6; }
.post-next { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid #e4e1dc; }
.post-next h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.post-next ul { margin: 0; padding-left: 1.2rem; }
.post-next li { margin-bottom: .45rem; font-size: .96rem; }

@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; gap: 1rem; }
  .post-card-img img { aspect-ratio: 16 / 9; }
  .post-hero .wrap, .post .wrap { width: calc(100% - 2.5rem); }
  .post p, .post li { font-size: .99rem; }
}
