/* =============================================================================
   feed.css — the floating-card feed (UI-003 / UI-007 / KD-4).
   A continuous newest-first stream of cards on a localized scrim band that
   slides up over the pinned hero. CLS-safe; one focus stop per card.
   ========================================================================== */

.feed-section {
  position: relative;
  z-index: var(--z-content);
  /* Localized scrim band — guarantees AA where the cards/heading sit, while the
     hero above and page margins stay brilliant (§3, not a global overlay). */
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--surface-feed) 7rem,
    var(--surface-feed) 100%
  );
  padding-bottom: var(--space-2xl);
}
.feed-section__inner {
  width: min(72rem, 100% - 2 * var(--space-m));
  margin-inline: auto;
  padding-top: var(--space-2xl);
}
.feed-section__heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--text-dim);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--hairline);
}
.feed-empty {
  color: var(--text-dim);
  font-style: italic;
}

/* --- Grid: 1 / 2 / 3 columns, no pagination ------------------------------ */
.feed {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

/* --- Card ---------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  background: var(--surface-card-hover);
  border-color: var(--hairline-strong);
  box-shadow: 0 18px 50px -28px rgb(var(--c-shadow) / 0.9), var(--glow-gold);
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-charcoal);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out), filter var(--dur-2) var(--ease);
  filter: saturate(0.96);
}
.card:hover .card__img,
.card:focus-within .card__img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
}
.card__title {
  font-size: var(--step-2);
  letter-spacing: -0.015em;
}
.card__link {
  color: var(--text);
  text-decoration: none;
}
.card__link:hover {
  color: var(--accent-gold);
}
/* Stretch the title link over the whole card → entire card clickable with a
   single accessible name + one focus stop (KD-4). */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__date {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-neon);
}
.card__excerpt {
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: var(--leading-snug);
}
