/* ═══════════════════════════════════════════════════════════
   SEW Archive + Card Grid — MOBILE FIRST
   Base: 390px → min-width: 480 → 768 → 992 → 1366
   ═══════════════════════════════════════════════════════════ */

/* ─── Archive Header ─────────────────────────────────────── */
.sew-archive__header {
  background: var(--sew-dark-600);
  padding: 1rem 1rem 0.75rem;
}

.sew-archive__header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sew-archive__title {
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.sew-archive__desc {
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* ─── Archive Body ───────────────────────────────────────── */
.sew-archive__body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ─── Card Grid — 1 column mobile ────────────────────────── */
.sew-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ─── Card ───────────────────────────────────────────────── */
.sew-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.sew-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Card Image */
.sew-card__img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.sew-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sew-card:hover .sew-card__img {
  transform: scale(1.04);
}

.sew-card__img-link--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecf0;
}

.sew-card__placeholder {
  color: #b0bec5;
}

/* Card Body */
.sew-card__body {
  padding: 1rem;
}

/* Meta */
.sew-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sew-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #78909c;
  letter-spacing: 0.01em;
}

.sew-card__cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sew-primary-500);
  text-decoration: none;
  background: rgba(50,162,193,0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
}

.sew-card__cat:hover {
  color: #fff;
  background: var(--sew-primary-500);
}

/* Title */
.sew-card__title {
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 0.375rem;
}

.sew-card__title a {
  color: var(--sew-dark-600);
  text-decoration: none;
  transition: color 0.15s;
}

.sew-card__title a:hover {
  color: var(--sew-primary-500);
}

/* Excerpt */
.sew-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #546e7a;
  margin: 0 0 0.75rem;
}

/* Footer */
.sew-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.sew-card__author {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #37474f;
}

.sew-card__readtime {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: #90a4ae;
}

/* ─── Pagination ─────────────────────────────────────────── */
.sew-archive__pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.sew-archive__pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.sew-archive__pagination .page-numbers li {
  display: inline;
}

.sew-archive__pagination .page-numbers a,
.sew-archive__pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #37474f;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sew-archive__pagination .page-numbers a:hover {
  border-color: var(--sew-primary-500);
  color: var(--sew-primary-500);
  background: rgba(50,162,193,0.04);
}

.sew-archive__pagination .page-numbers .current {
  background: var(--sew-dark-600);
  color: #fff;
  border-color: var(--sew-dark-600);
}

.sew-archive__pagination .page-numbers .dots {
  border: none;
  background: transparent;
  min-width: 24px;
  color: #90a4ae;
}

/* ─── Empty State ────────────────────────────────────────── */
.sew-archive__empty {
  text-align: center;
  padding: 3rem 1rem;
}

.sew-archive__empty h2 {
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: 1.5rem;
  color: var(--sew-dark-600);
  margin: 0 0 0.5rem;
}

.sew-archive__empty p {
  font-family: 'Inter', sans-serif;
  color: #78909c;
}

.sew-archive__empty a {
  color: var(--sew-primary-500);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINTS — Progressive Enhancement
   ═══════════════════════════════════════════════════════════ */

/* ─── Phablet (min-width: 480px) ─────────────────────────── */
@media (min-width: 480px) {
  .sew-archive__header {
    padding: 3rem 1rem 2.25rem;
  }

  .sew-card__body {
    padding: 1.125rem 1.25rem;
  }

  .sew-card__title {
    font-size: 1.125rem;
  }
}

/* ─── Tablet (min-width: 768px) ──────────────────────────── */
@media (min-width: 768px) {
  .sew-archive__header {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .sew-archive__title {
    font-size: 2.25rem;
  }

  .sew-archive__body {
    padding: 2rem 1.5rem 4rem;
  }

  .sew-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* ─── Desktop (min-width: 992px) ─────────────────────────── */
@media (min-width: 992px) {
  .sew-archive__header {
    padding: 4rem 1.5rem 3rem;
  }

  .sew-archive__title {
    font-size: 2.5rem;
  }

  .sew-archive__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .sew-card__title {
    font-size: 1.1875rem;
  }
}

/* ─── Wide (min-width: 1366px) ───────────────────────────── */
@media (min-width: 1366px) {
  .sew-archive__header-inner,
  .sew-archive__body {
    max-width: 1340px;
  }
}
