/* ═══ Insights: the journal ═══════════════════════════════════════════
   Linked after sub.css on insights.html. The newest article is the hero's
   right column; the rest run as thumbnail rows behind a filter bar built
   from the feed's own tags; LinkedIn posts run as a two-column feed with
   avatars instead of boxed cards. Everything below the hero is painted by
   insights.js from data/feed.json. Written by tools/blueprint_design.py.
   ------------------------------------------------------------------ */

/* ── hero: copy left, the latest article right ── */
.ins-hero { padding: 9vh 0 8vh; background:
  radial-gradient(60% 80% at 100% 0%, rgba(239,243,233,.07), transparent 60%),
  linear-gradient(180deg, #0d0f0c 0%, var(--bg) 100%); }
.ins-hero::before { opacity: .3; }
.ins-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); gap: 6vw; align-items: center; }
.ins-hero h1 { max-width: 14ch; }
.ins-topics { margin-top: 26px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
              color: rgba(239,243,233,.6); line-height: 2; animation: heroIn .9s var(--ease) .3s both; }
.ins-topics i { font-style: normal; color: var(--lime); padding: 0 10px; }
.ins-more { display: inline-block; margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
            color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(179,210,48,.4); padding-bottom: 3px; animation: heroIn .9s var(--ease) .36s both; }
.ins-more:hover { border-color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ins-feature { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
               background: var(--panel); animation: heroIn 1s var(--ease) .3s both; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.ins-feature:hover { border-color: rgba(179,210,48,.45); transform: translateY(-3px); }
.ins-feature figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #10170F; }
.ins-feature img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.ins-feature-body { padding: 22px 26px 26px; }
.ins-feature h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.3; margin: 12px 0 10px; }
.ins-feature p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }
.ins-latest { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.ins-tag { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
           color: rgba(239,243,233,.66); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }
.ins-tag.study { color: var(--lime); border-color: rgba(179,210,48,.5); }
.ins-by { display: block; margin-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

/* ── section heads ── */
.eyebrow b { font-weight: 400; color: rgba(239,243,233,.48); margin-right: 4px; }
.ins-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px 6vw; align-items: end; margin-bottom: 34px; }
.ins-head h2 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 600; margin: 18px 0 0; max-width: 20ch; }
.ins-head.solo { grid-template-columns: 1fr; }

/* ── filter bar from the feed's tags ── */
.ins-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ins-filter button { font: inherit; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
                     color: rgba(239,243,233,.62); background: none; border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px;
                     transition: color .25s, border-color .25s, background-color .25s; }
.ins-filter button:hover { color: var(--text); border-color: rgba(179,210,48,.5); }
.ins-filter button.is-on { color: #0d1600; background: var(--lime); border-color: var(--lime); }
.ins-filter button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.ins-filter .ins-count { margin-left: auto; align-self: center; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }

/* ── article rows ── */
.ins-list { display: block; }
.ins-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 40px; gap: 0 3vw; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line);
           color: inherit; text-decoration: none; transition: color .25s; }
.ins-row[hidden] { display: none; }
.ins-thumb { margin: 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #10170F; }
.ins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: transform .5s var(--ease), opacity .3s; }
.ins-thumb.blank { display: grid; place-items: center; }
.ins-thumb.blank::before { content: "SYBNOC"; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .3em; color: rgba(239,243,233,.3); }
.ins-row h4, .ins-row h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; margin: 10px 0 8px; }
.ins-row p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; max-width: 70ch; }
.ins-row .ins-by { margin-top: 10px; }
.ins-arrow { font-size: 24px; color: var(--lime); opacity: .45; justify-self: end; transition: opacity .25s, transform .25s; }
.ins-row:hover h4, .ins-row:hover h3 { color: var(--lime); }
.ins-row:hover .ins-thumb img { transform: scale(1.04); opacity: 1; }
.ins-row:hover .ins-arrow { opacity: 1; transform: translateX(4px); }

/* ── LinkedIn feed ── */
.li-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6vw; border-top: 1px solid var(--line); }
.li-post { display: block; color: inherit; text-decoration: none; padding: 26px 0 28px; border-bottom: 1px solid var(--line); transition: color .25s; }
.li-post .li-head { margin-bottom: 14px; }
.li-post .li-head strong { transition: color .25s; }
.li-post:hover .li-head strong { color: var(--lime); }
.li-post > p { font-size: 14.5px; line-height: 1.7; color: rgba(239,243,233,.8); margin: 10px 0 0; }
.li-post .ins-tag { margin-top: 2px; }
.li-tags { display: block; margin-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .1em; color: var(--cyan); }

/* ── responsive ── */
@media (max-width: 1080px) { .ins-row { grid-template-columns: 180px minmax(0, 1fr) 32px; } }
@media (max-width: 900px) {
  .ins-hero-in { grid-template-columns: 1fr; gap: 34px; }
  .ins-head { grid-template-columns: 1fr; }
  .li-feed { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ins-row { grid-template-columns: 1fr; gap: 14px; }
  .ins-arrow { display: none; }
  .ins-filter .ins-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ins-topics, .ins-feature { animation: none; } }
