/* ═══════════════════════════════════════════════════════
   ARCHIVE CSS — Blog listing page
   Headspace-exact: warm, floating cards, generous space
   ═══════════════════════════════════════════════════════ */

/* ── Archive hero ── */
.archive-hero {
  background: var(--surface);
  padding: 88px 36px 72px; text-align: center;
  position: relative; overflow: hidden;
}
.archive-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,125,91,.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.archive-hero-inner { max-width: 660px; margin: 0 auto; position: relative; z-index: 1; }
.archive-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.12; color: var(--gray-900);
  margin-bottom: 16px;
}
.archive-hero p {
  font-size: 17px; color: var(--text-2);
  line-height: 1.75; max-width: 500px;
  margin: 0 auto 36px;
}

/* ── Filter bar ── */
.filter-bar {
  background: var(--bg);
  padding: 14px 36px;
}
.filter-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; gap: 4px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--warm-100);
  border-radius: var(--r-full);
  padding: 5px;
  width: fit-content;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 12px 22px; background: none; border: none;
  border-radius: var(--r-full);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--text-3); cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.filter-btn:hover { color: var(--text-2); }
.filter-btn.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* ── Posts grid ── */
.archive-body { max-width: 1120px; margin: 0 auto; padding: 64px 36px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── Post card (floating, borderless) ── */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease);
}
.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.post-card-bar { height: 4px; flex-shrink: 0; }
.post-card-bar.blue { background: var(--blue); }
.post-card-bar.green { background: var(--green); }
.post-card-bar.amber { background: var(--yellow); }
.post-card-body {
  padding: 30px; flex: 1;
  display: flex; flex-direction: column;
}
.post-card-body h2 {
  font-size: 18px; font-weight: 700;
  color: var(--text); letter-spacing: -.3px;
  line-height: 1.45; margin-bottom: 12px;
}
.post-card-body p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.75; flex: 1; margin-bottom: 20px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3); margin-top: auto;
}
.dot-sep { color: var(--gray-300); }

/* ── Featured card ── */
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.post-card.featured .feat-accent {
  background: var(--navy);
  padding: 52px 48px;
  display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 280px;
  position: relative; overflow: hidden;
}
.post-card.featured .feat-accent::before {
  content: '';
  position: absolute; top: 20px; right: 20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(244,125,91,.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.post-card.featured .feat-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 14px;
}
.post-card.featured .feat-accent h2 {
  font-size: 28px; font-weight: 800;
  color: #fff; letter-spacing: -.6px;
  line-height: 1.3; margin-bottom: 0;
}
.post-card.featured .post-card-body { padding: 44px; justify-content: center; }
.post-card.featured .post-card-body h2 { font-size: 21px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 96px 36px; color: var(--text-3); }
.empty-state h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: var(--text-2); }

/* ── Archive responsive ── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .feat-accent { min-height: 200px; padding: 36px; }
  .post-card.featured .feat-accent h2 { font-size: 24px; }
  .post-card.featured .post-card-body { padding: 32px; }
}

@media (max-width: 600px) {
  .archive-hero { padding: 56px 20px 48px; }
  .filter-bar { padding: 12px 20px; }
  .archive-body { padding: 40px 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: auto; display: flex; flex-direction: column; }
}
