/* CH Group: blog.css. Insights index (/blog/) and article pages (/blogs/<slug>/).
   Cards: photo, meta line, serif title. Articles: one reading measure, ruled headings. */

/* ------------------------------------------------------------------- index -- */
.bl-index { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.bl-index__head { max-width: 44rem; }
.bl-index__head .h1 { margin-top: var(--sc-3); }
.bl-index__head .lede { margin-top: var(--sc-4); color: var(--sc-ink-soft); }

.bl-list { list-style: none; margin: clamp(2rem, 4vw, 3.25rem) 0 0; padding: 0; display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(16px, 2.4vw, 32px); }
@media (min-width: 700px) { .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-list--two { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 1100px) { .bl-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bl-card__link { display: grid; gap: 16px; align-content: start; height: 100%; color: inherit; text-decoration: none; }
.bl-card__media { display: block; overflow: hidden; border-radius: var(--sc-r-md); aspect-ratio: 3 / 2; background: var(--line); }
.bl-card__img, .bl-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.bl-card__text { display: grid; gap: 8px; align-content: start; }
.bl-card__meta { font: 600 0.75rem/1.3 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-text); }
.bl-card__title { font: 500 clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem)/1.18 var(--sc-font-display); letter-spacing: -0.01em; color: var(--sc-ink); text-wrap: balance; }
.bl-card__dek { color: var(--sc-ink-soft); text-wrap: pretty; }
.bl-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; font-size: 0.9375rem; color: var(--green-900); }
.bl-card__more .ico { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.bl-card__link:focus-visible { outline: 2px solid var(--brass-edge); outline-offset: 6px; border-radius: var(--sc-r-md); }
@media (hover: hover) and (pointer: fine) {
  .bl-card__link:hover .bl-card__img, .bl-card__link:hover .bl-card__media img { transform: scale(1.03); }
  .bl-card__link:hover .bl-card__more .ico { transform: translateX(3px); }
  .bl-card__link:hover .bl-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
}

/* The newest article spans the row: photo left, text right. */
@media (min-width: 700px) {
  .bl-card--lead { grid-column: 1 / -1; }
  .bl-card--lead .bl-card__link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
  .bl-card--lead .bl-card__media { aspect-ratio: 16 / 10; }
  .bl-card--lead .bl-card__title { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); }
}

/* ----------------------------------------------------------------- article -- */
.bl-post { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.bl-post__back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--green-900); text-decoration: none; }
.bl-post__back .ico { width: 16px; height: 16px; }
.bl-post__back a:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.bl-post__head { max-width: 50rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.bl-post__title { margin-top: var(--sc-3); font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.9rem); text-wrap: balance; }
.bl-post__dek { margin-top: var(--sc-4); color: var(--sc-ink-soft); }
.bl-post__by { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); font-size: 0.9375rem; }
.bl-post__face { width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 50%; background: var(--line); }
.bl-post__face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bl-post__who { display: grid; line-height: 1.3; }
.bl-post__who span { color: var(--sc-ink-soft); }
.bl-post__when { color: var(--sc-ink-soft); padding-left: 14px; border-left: 1px solid var(--line-strong); }
.bl-post__photo { margin: clamp(1.75rem, 4vw, 3rem) 0 0; overflow: hidden; border-radius: var(--sc-r-md); aspect-ratio: 21 / 9; background: var(--line); }
.bl-post__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .bl-post__photo { aspect-ratio: 4 / 3; } }

/* The article text: one measure, generous rhythm, headings set in the display face. */
.bl-prose { max-width: 42rem; margin: clamp(2rem, 4vw, 3.25rem) auto 0; font-size: 1.0625rem; line-height: 1.7; color: var(--sc-ink); text-wrap: pretty; }
.bl-prose > * + * { margin-top: 1.1em; }
.bl-prose h2 { margin-top: 2.2em; font: 500 clamp(1.55rem, 1.3rem + 0.8vw, 2rem)/1.15 var(--sc-font-display); letter-spacing: -0.012em; }
.bl-prose h3 { margin-top: 1.9em; font: 500 clamp(1.25rem, 1.15rem + 0.35vw, 1.45rem)/1.25 var(--sc-font-display); letter-spacing: -0.008em; }
.bl-prose h4 { margin-top: 1.6em; font-weight: 600; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose h2 + *, .bl-prose h3 + *, .bl-prose h4 + * { margin-top: 0.6em; }
.bl-prose strong { font-weight: 600; }
.bl-prose a { color: var(--green-900); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 0.2em; }
.bl-prose a:hover { text-decoration-color: currentColor; }
.bl-prose ul, .bl-prose ol { padding-left: 1.25em; display: grid; gap: 0.5em; }
.bl-prose li::marker { color: var(--brass-text); }
.bl-prose blockquote { margin-left: 0; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid var(--brass, #e0a63a); font: 400 clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem)/1.35 var(--sc-font-display); }

.bl-more .h2 { max-width: 30rem; }
