/* ═══════════════════════════════════════════════════════════
   listing.css — /blog/ and the 12 category archives.

   Between the two designs that already exist: it borrows the
   article's paper header and reading restraint, and the long-form
   system's rounded photography and pill controls. The two listings
   are deliberately different objects — the blog index is a
   poster wall you browse, a category archive is an index you
   scan — so one is tiles and the other is rows.
   Extends site.css; tokens come from there unchanged.
   ═══════════════════════════════════════════════════════════ */

/* ─── Document header ─────────────────────────────────────
   .dochead in site.css carries it; this sheet was the reference
   for that component, so only the measure is left here. */
.lst-head h1{max-width:18ch}

/* The archive's "Category:" prefix. It is the live heading's own wording, so it stays
   inside the h1 — the span only sets it smaller, on its own line, above the term. */
.lst-kicker{
  display:block;
  font-size:clamp(1.1rem,1.6vw,1.35rem);font-weight:650;letter-spacing:-.015em;line-height:1.2;
  color:var(--navy);
  margin-bottom:10px;
}
.lst-body{background:#fff;padding-block:clamp(44px,5.5vw,68px) clamp(56px,7vw,88px)}

/* ─── Category archive: the index rows ──────────────────── */
.lst-rows{display:grid}
.lst-row{
  position:relative;
  display:grid;grid-template-columns:220px minmax(0,1fr);
  gap:clamp(20px,3vw,36px);align-items:start;
  padding-block:clamp(26px,3vw,34px);
  border-top:1px solid var(--line);
}
.lst-row:first-child{border-top:0;padding-top:0}

.lst-row__frame{
  display:block;overflow:hidden;border-radius:var(--r-md);
  background:var(--paper);aspect-ratio:4/3;
}
.lst-row__frame img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.lst-row:hover .lst-row__frame img{transform:scale(1.035)}
/* The two posts with no featured image: live shows nothing, so the row gives the text
   the full measure rather than holding an empty column open. */
.lst-row:has(.lst-row__frame--none){grid-template-columns:minmax(0,1fr)}
.lst-row__frame--none{display:none}

.lst-row h2{
  font-size:clamp(1.2rem,1.9vw,1.5rem);
  line-height:1.16;letter-spacing:-.025em;color:var(--ink);
}
.lst-row h2 a{text-decoration:none}
.lst-row h2 a::after{content:"";position:absolute;inset:0}
.lst-row:hover h2 a{color:var(--navy)}
.lst-row__ex{margin-top:12px;max-width:64ch;color:var(--slate);font-size:.9688rem}
/* WordPress's truncation marker. It is chrome, not authored copy, so it is tinted rather
   than set in body colour — but it stays in the body face, since the mono ellipsis is a
   full-width glyph and renders as "[ …]". */
.lst-trim{color:var(--brass-lo);white-space:nowrap}

/* ─── Pager — prev/next, in the live archive's own labels ── */
.lst-pager{
  display:flex;gap:20px;margin-top:clamp(38px,4.5vw,54px);
  padding-top:26px;border-top:1px solid var(--line);
}
.lst-pager a{
  display:inline-flex;align-items:center;gap:10px;min-height:48px;
  font-size:.9375rem;font-weight:600;
  text-decoration:none;color:var(--ink);
  box-shadow:inset 0 0 0 1.5px var(--ink);border-radius:var(--pill);padding:0 22px;
  transition:background-color .18s ease,color .18s ease;
}
.lst-pager a:hover{background:var(--ink);color:#fff}
.lst-pager__next{margin-left:auto}
.lst-pager__ar{color:inherit}

/* ─── Blog index: the filter row ────────────────────────── */
.lst-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(30px,3.5vw,44px)}
.lst-chip{
  font-size:.9375rem;font-weight:550;
  padding:10px 18px;border-radius:var(--pill);cursor:pointer;
  background:var(--paper);color:var(--ink);border:0;
  transition:color .16s ease,background .16s ease;
}
.lst-chip:hover{background:var(--line)}
.lst-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}

/* ─── Blog index: the poster tiles ──────────────────────── */
.lst-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,26px)}
.lst-tile a{
  position:relative;display:block;height:100%;
  overflow:hidden;border-radius:var(--r-md);background:var(--ink);
  text-decoration:none;color:#fff;
}
.lst-tile__img{display:block;aspect-ratio:16/10}
.lst-tile__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.lst-tile a:hover .lst-tile__img img{transform:scale(1.05)}
/* Posts with no featured image keep the tile's ink ground — the title carries it. */
.lst-tile__img--none{background:var(--ink-2)}

/* The scrim that makes the title legible over any photograph. */
.lst-tile a::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,30,45,0) 34%,rgba(11,30,45,.5) 62%,rgba(11,30,45,.93) 100%);
}
.lst-tile h3{
  position:absolute;left:0;right:0;bottom:0;
  padding:20px 22px 22px;
  font-size:1.125rem;line-height:1.24;letter-spacing:-.02em;color:#fff;
}


/* Filtering and Load More are applied by listing.js, so a page without JS shows the whole
   archive rather than eleven cards and a button that does nothing. */
.lst-tile[hidden]{display:none}
.lst-more{display:flex;justify-content:center;margin-top:clamp(32px,4vw,46px)}
.lst-more[hidden]{display:none}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width:900px){
  .lst-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lst-row{grid-template-columns:170px minmax(0,1fr)}
}
@media (max-width:620px){
  .lst-head h1{max-width:none}
  .lst-tiles{grid-template-columns:minmax(0,1fr)}
  .lst-row{grid-template-columns:minmax(0,1fr);gap:16px}
  .lst-row__frame{aspect-ratio:16/9}
  .lst-pager{flex-direction:column}
  .lst-pager__next{margin-left:0}
  .lst-pager a{justify-content:center}
}
