/* ===== Archive page — Bold design language, dashboard-style episode rows =====
   Reuses ../brand.css (tokens) and ../styles.css (topbar/marquee/footer/etc).
   This file only adds what's specific to the archive list: episode cards
   with a date+hero head, compact numbered story rows (rank + category +
   headline/dek, no source counts), and a two-link "Listen" affordance. */

.archive-lead {
  background: var(--paper);
  padding: 56px 0 40px;
}
.archive-lead .inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 24px;
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.archive-lead h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 90px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 0;
}
.archive-lead h1 em { color: var(--accent); font-style: italic; }
.archive-lead .right {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.archive-lead .right strong { color: var(--ink); display: block; font-size: 14px; margin-bottom: 4px; }

.archive-list {
  background: var(--paper);
  padding: 0 0 96px;
}
.archive-list .inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  gap: 28px;
}

.ep-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.ep-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
}
.ep-card-date {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.ep-card-hero {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-warm);
  flex: 1 1 360px;
  margin: 0;
}

.ep-story-list { display: grid; }
.ep-story {
  display: grid;
  grid-template-columns: 52px 128px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
}
.ep-story:last-child { border-bottom: 0; }
.ep-story .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.ep-story .tag {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.ep-story .body h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.ep-story .body p {
  font-family: var(--serif-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

.ep-card-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--paper);
}
.ep-card-foot .listen-label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.ep-card-foot a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 7px 14px;
  border-radius: 4px;
  transition: border-color .15s, color .15s, background .15s;
}
.ep-card-foot a:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }

@media (max-width: 700px) {
  .ep-story { grid-template-columns: 40px 1fr; }
  .ep-story .tag { grid-column: 2; margin-bottom: 2px; }
  .ep-story .n { font-size: 22px; }
}

@media (max-width: 560px) {
  .archive-lead { padding: 40px 0 28px; }
  .archive-lead .inner { padding: 0 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .archive-lead .right { text-align: left; }
  .archive-list .inner { padding: 0 18px; gap: 20px; }
  .ep-card-head { padding: 16px 18px; }
  .ep-story { padding: 12px 18px; }
  .ep-card-foot { padding: 12px 18px; }
}
