/* ==========================================================================
   Perspectives Archive + Perspective Type Archive
   Editorial horizontal layout, built on the BI Journal design tokens.
   ========================================================================== */

.perspectives-archive {
  padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 9vw, 120px);
}

/* Header ------------------------------------------------------------------ */
.perspectives-archive__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(26px, 3vw, 40px);
  margin-bottom: clamp(30px, 4vw, 54px);
}

.perspectives-archive__header h1 {
  color: var(--maroon);
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
}

.perspectives-archive__lede,
.perspectives-archive__header .archive-description {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 18px 0 0;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* List ------------------------------------------------------------------- */
.perspectives-archive__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.perspective-entry {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 48px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}

/* Media ------------------------------------------------------------------ */
.perspective-entry__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #ece5dc;
  aspect-ratio: 16 / 10;
}

.perspective-entry__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.perspective-entry__media--empty {
  background: linear-gradient(125deg, #f2ece4, #e4dbd0);
}

/* Body ------------------------------------------------------------------- */
.perspective-entry__body {
  min-width: 0;
}

.perspective-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.perspective-entry__type {
  color: var(--maroon);
  font:
    700 0.7rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.perspective-entry__type:hover,
.perspective-entry__type:focus {
  color: var(--green);
}

.perspective-entry__date {
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font:
    400 0.78rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.perspective-entry__meta-divider {
  width: 18px;
  height: 1px;
  background: var(--line);
}

.perspective-entry__title {
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}

.perspective-entry__title a {
  color: var(--ink);
  transition: color 0.25s ease;
}

.perspective-entry__excerpt {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.perspective-entry__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--maroon);
  font:
    700 0.72rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.perspective-entry__more span {
  transition: transform 0.25s ease;
}

/* Hover ------------------------------------------------------------------ */
.perspective-entry:hover .perspective-entry__media img {
  transform: scale(1.035);
}

.perspective-entry:hover .perspective-entry__title a {
  color: var(--maroon);
}

.perspective-entry:hover .perspective-entry__more {
  border-color: var(--maroon);
}

.perspective-entry:hover .perspective-entry__more span {
  transform: translateX(4px);
}

.perspective-entry a:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

/* Empty state + pagination ---------------------------------------------- */
.perspectives-archive__empty {
  font-size: 1.05rem;
  margin: 0;
}

.perspectives-archive .posts-navigation {
  margin-top: clamp(32px, 4vw, 54px);
}

.perspectives-archive .posts-navigation a {
  color: var(--maroon);
  font:
    700 0.74rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .perspective-entry {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 24px;
    padding: 26px 0;
  }

  .perspective-entry__excerpt {
    font-size: 0.98rem;
  }
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 720px) {
  .perspective-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .perspective-entry__media {
    aspect-ratio: 3 / 2;
  }

  .perspective-entry__title {
    font-size: 1.45rem;
  }

  .perspective-entry__more {
    margin-top: 14px;
  }
}
