/* ============================================================
   blog-archive.css — the blog index (editorial, airy)
   A large featured post, then a spacious index of the rest:
   category · serif title · one-line summary, generous white
   space, hairline dividers. No boxes — the typography carries it.
   ============================================================ */

.archive {
  background: var(--paper);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem);
}
.archive__inner { max-width: none; }

/* ---------- Featured post (big, no box) ---------- */
.archive__featured {
  display: block;
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 0;   /* filter sits snug between the two hairlines */
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.archive__tag {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.archive__featured-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: var(--space-3);
  text-wrap: balance;
  transition: color .2s ease;
}
.archive__featured:hover .archive__featured-title { color: var(--blue); }
.archive__featured-summary {
  margin-top: var(--space-3);
  max-width: 44rem;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.archive__more {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.archive__more svg { transition: transform .2s ease; }
.archive__featured:hover .archive__more svg { transform: translateX(3px); }

/* ---------- Filter + sort bar (between the featured post and the index) ---------- */
.archive__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: clamp(0.85rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line);
}
.archive__filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.35rem;
}
.archive__cat {
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color .2s ease;
}
.archive__cat:hover { color: var(--ink); }
.archive__cat.is-active { color: var(--blue); }
.archive__cat.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
}
.archive__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive__sort-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* ---------- The index ---------- */
.archive__index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive__entry { border-bottom: 1px solid var(--line); }
.archive__entry-link {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3.2vw, 2.4rem);
  color: var(--ink);
}
.archive__entry-cat {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0.35rem;
}
.archive__entry-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: color .2s ease;
}
.archive__entry-summary {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}
.archive__entry-arrow {
  align-self: center;
  flex: none;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.archive__entry-link:hover .archive__entry-title { color: var(--blue); }
.archive__entry-link:hover .archive__entry-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .archive__entry-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .archive__entry-cat { padding-top: 0; }
  .archive__entry-arrow { display: none; }
}
