/* ————————————————————————————————————————————
   lil bit cycling v2 — the listings

   Ported from the first theme's blog.css (listings section): the posts
   page, archives and search results as a grid of cards. Three to a row on a
   desk, two on a tablet, one on a phone — the row count is fixed rather than
   left to auto-fill, because the parent's content column (1180px less its
   60px sides) is a touch too narrow for three auto-filled cards.

   Every class is lbc-prefixed and the tokens are scoped to the listing, so
   nothing here touches the parent's or the base's rules for other pages.
   ———————————————————————————————————————————— */

.lbc-listing {
  --paper:     #ffffff;
  --paper-2:   #faf9f7;
  --ink:       #212121;
  --ink-soft:  #6e6e6e;
  --ink-faint: rgba(0, 0, 0, .12);
  --rule:      rgba(0, 0, 0, .09);
  --coral:     #fc4c02;
  --sans:      "Quicksand", "helvetica neue", helvetica, arial, sans-serif;
  --radius:    14px;

  padding: 2.5rem 0 4rem;
  font-family: var(--sans);
  color: var(--ink);
}
.lbc-listing *, .lbc-listing *::before, .lbc-listing *::after { box-sizing: border-box; }

/* ——— the heading ——— */

.lbc-listing-head { text-align: center; margin: 0 0 3rem; }
.lbc-listing-kicker {
  margin: 0 0 .8rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
}
.lbc-listing-title {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-transform: none;
}
.lbc-listing-lede {
  max-width: 63rem;
  margin: 1.2rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.lbc-listing-lede > :last-child { margin-bottom: 0; }

/* ——— the grid ——— */

.lbc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
@media (max-width: 900px) {
  .lbc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lbc-card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ——— one card ——— */

.lbc-card { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.lbc-card-link { display: block; color: inherit; text-decoration: none; }
.lbc-card-link:hover, .lbc-card-link:focus { text-decoration: none; }

.lbc-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1rem;
  transition: opacity .2s ease;
}
.lbc-card-link:hover .lbc-card-img { opacity: .9; }

.lbc-card-kicker {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
/* the categories keep to the date's one line, whole names only: each is
   its own item in a wrapping row the height of one line, so a name that
   does not fit wraps onto a second line that is clipped away — "Colombia ·
   South America" shows as "Colombia" rather than "Colombia · South Am…".
   The dot belongs to the name after it, so a clipped name takes its dot
   along. */
.lbc-card-kicker .lbc-card-date { flex: none; }
.lbc-card-kicker .lbc-card-term {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  column-gap: .45em;
  row-gap: 0;
  max-height: 1.4em; /* one line at the kicker's line-height */
  overflow: hidden;
}
.lbc-card-kicker .lbc-card-term > span { white-space: nowrap; line-height: 1.4; }
.lbc-card-kicker .lbc-card-term > span + span::before { content: "·"; margin-right: .45em; }

.lbc-card-title {
  margin: 0 0 .5rem;
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  text-transform: none;
  text-wrap: balance;
}
.lbc-card-link:hover .lbc-card-title { color: var(--coral); }

.lbc-card-excerpt {
  margin: 0 0 .7rem;
  font-size: .96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lbc-card-cta {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--coral);
}

/* ——— the pager ——— */

.lbc-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3.5rem;
  font-family: var(--sans);
  font-size: .8rem;
}
.lbc-pager-link {
  min-width: 2.1rem;
  padding: .35rem .5rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.lbc-pager-link:hover { color: var(--ink); border-color: var(--ink-faint); }
.lbc-pager-link.on { color: #fff; background: var(--coral); border-color: var(--coral); }

.lbc-empty { text-align: center; color: var(--ink-soft); }
