/* =========================================================================
   INSIGHTS: homepage strip, /insights/ index and article pages
   Colours reuse the tested tokens in styles.css.
   ========================================================================= */

/* homepage strip */
.insights-section { background: var(--field-2); }
.insights-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.insights-head > div { max-width: 900px; }
.insights-head h2 { margin-bottom: 0; }

/* cards */
.insight-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.insight-card a { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--body); text-decoration: none; border: 1px solid var(--rule-light); transition: border-color 160ms var(--ease); }
.insight-card a:hover { border-color: var(--signal-ink); }
.insight-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--field-2); }
.ic-text { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.ic-date { color: var(--mute); font-size: 14px; }
.insight-card h2, .insight-card h3 { margin: 0; max-width: none; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -.02em; }
.insight-card p { margin: 0; font-size: 16px; line-height: 1.55; }
.ic-more { margin-top: auto; padding-top: 6px; color: var(--signal-ink); font-size: 15px; font-weight: 600; }
.insight-card a:hover .ic-more { text-decoration: underline; text-underline-offset: 4px; }

/* page and article headers */
.page-hero { padding: clamp(56px, 7vw, 104px) 0 clamp(52px, 6vw, 88px); }
.page-hero h1 { max-width: 20ch; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
.post-hero h1 { max-width: 24ch; font-size: clamp(30px, 3.8vw, 52px); }
.on-deep .post-meta { margin: 0; color: var(--on-dark-mute); font-size: 16px; }
.insights-list { padding-top: clamp(48px, 6vw, 84px); }

/* article body */
.post-body { width: min(760px, 100% - (var(--gut) * 2)); margin-inline: auto; padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 8vw, 112px); }
.post-body > p, .post-body > ul li, .post-body > ol li { font-size: 18px; line-height: 1.7; }
.post-body > p:first-child { color: var(--ink); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.post-body h2 { max-width: none; margin: 1.7em 0 .6em; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-body li { margin-bottom: .55em; padding-left: .2em; }
.post-body li::marker { color: var(--signal-ink); font-weight: 600; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--signal-ink); text-underline-offset: 3px; }

/* article photos (open in the shared photo viewer) */
.post-photos { list-style: none; margin: 40px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.post-photos.is-single { grid-template-columns: minmax(0, 440px); }
.post-photos li { min-width: 0; }
.post-photos figure { margin: 0; }
.post-photos.is-single .gallery-link img { aspect-ratio: auto; }
.post-photos figcaption { padding-top: 10px; color: var(--mute); font-size: 15px; line-height: 1.45; }

/* sign-off and next reads */
.post-author { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-light); font-size: 16px; }
.post-nav { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.post-nav a { min-height: 44px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule-light); background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.post-nav a:hover { border-color: var(--signal-ink); }
.post-nav span { color: var(--signal-ink); font-size: 14px; font-weight: 600; }

@media (max-width: 1080px) {
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .insight-grid, .post-photos { grid-template-columns: 1fr; }
  .post-body > p, .post-body > ul li, .post-body > ol li { font-size: 17px; }
  .insights-head .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .insight-card a { transition: none; } }
