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

   Between the two designs that already exist: it borrows the
   article's ink header and reading restraint, and the long-form
   system's mono eyebrows and brass hairlines. 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 ───────────────────────────────────── */
.lst-head{
  background:var(--ink);
  color:#fff;
  padding-block:clamp(30px,4vw,44px) clamp(38px,5vw,58px);
}
.lst-head h1{margin-top:22px;max-width:18ch}
.lst-head .lede{margin-top:20px;max-width:60ch}

/* The archive's "Category:" prefix. It is the live heading's own wording, so it stays
   inside the h1 — the span only lifts it off the term as a mono eyebrow. */
.lst-kicker{
  display:block;
  font-family:var(--mono);font-size:.6875rem;font-weight:500;
  letter-spacing:.15em;text-transform:uppercase;
  color:var(--brass);
  margin-bottom:12px;
}
/* The brass hairline that closes the header, as on the article. */
.lst-head .wrap::after{
  content:"";display:block;width:74px;height:2px;
  background:var(--brass);margin-top:clamp(26px,3vw,34px);
}

.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}
/* The brass tick that marks each entry, echoing the long-form section index. It sits on
   the hairline, so the first row — which has none — does without. */
.lst-row:not(:first-child)::before{
  content:"";position:absolute;top:-1px;left:0;
  width:38px;height:2px;background:var(--brass);
  opacity:0;transition:opacity .18s ease;
}
.lst-row:hover::before{opacity:1}

.lst-row__frame{
  display:block;overflow:hidden;border-radius:3px;
  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;
  font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;
  text-decoration:none;color:var(--ink);
  border:1px solid var(--line);border-radius:3px;padding:12px 20px;
  transition:border-color .18s ease,color .18s ease;
}
.lst-pager a:hover{border-color:var(--brass);color:var(--brass-lo)}
.lst-pager__next{margin-left:auto}
.lst-pager__ar{color:var(--brass-lo)}

/* ─── Blog index: the filter row ────────────────────────── */
.lst-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(30px,3.5vw,44px)}
.lst-chip{
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;
  padding:9px 15px;border-radius:3px;cursor:pointer;
  background:transparent;color:var(--slate);border:1px solid var(--line);
  transition:border-color .16s ease,color .16s ease,background .16s ease;
}
.lst-chip:hover{border-color:var(--brass);color:var(--ink)}
.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:3px;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, and the brass rule that
   marks the card as part of the system. */
.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.0625rem;line-height:1.24;letter-spacing:-.02em;
}
.lst-tile h3::before{
  content:"";display:block;width:30px;height:2px;background:var(--brass);
  margin-bottom:12px;transition:width .28s cubic-bezier(.22,.61,.36,1);
}
.lst-tile a:hover h3::before{width:58px}

/* 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}
}
