/* ========== Journal masthead ========== */
.journal-masthead {
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.journal-masthead__issue {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--camel-deep);
  margin-bottom: 18px;
}

.journal-masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}

.journal-masthead__sub {
  margin-top: 20px;
  max-width: 420px;
  margin-inline: auto;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

/* ========== Magazine list ========== */
.content-main {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px);
  background: var(--bg);
}

.magazine-list {
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 0 auto;
}

.mag-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.35s var(--ease);
}

.mag-row:first-child {
  padding-top: 8px;
}

.mag-row:hover {
  opacity: 0.92;
}

.mag-row__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-sand);
  aspect-ratio: 5 / 6;
}

.mag-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.mag-row:hover .mag-row__media img {
  transform: scale(1.035);
}

.mag-row__index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--white);
  background: rgba(26, 26, 26, 0.42);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
}

.mag-row__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0 8px;
}

.mag-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--camel-deep);
}

.mag-row__meta time {
  color: var(--muted);
}

.mag-row__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 16em;
}

.mag-row__copy p {
  max-width: 34em;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.mag-row__more {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
}

.mag-row__more::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--camel-deep);
  transition: width 0.35s var(--ease);
}

.mag-row:hover .mag-row__more::after {
  width: 56px;
}

@media (min-width: 860px) {
  .mag-row {
    grid-template-columns: minmax(280px, 42%) 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: stretch;
    min-height: 360px;
  }

  .mag-row__media {
    aspect-ratio: auto;
    min-height: 360px;
    max-height: 480px;
  }

  .mag-row__copy {
    padding: 24px 8px 24px 0;
  }

  /* alternate: keep left image always as requested */
}

/* ========== Pagination ========== */
.pager {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), border-color 0.3s, color 0.3s;
}

.pager a:hover {
  border-color: var(--camel-deep);
  color: var(--ink);
}

.pager .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.pager .is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pager__label {
  margin: 0 8px;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: auto;
  height: auto;
}

/* ========== Article detail ========== */
.article-hero {
  position: relative;
  min-height: min(68vh, 640px);
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: var(--bg-sand);
}

.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 12, 0.58) 0%,
    rgba(20, 16, 12, 0.12) 55%,
    rgba(20, 16, 12, 0.2) 100%
  );
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--pad) * 2, 780px);
  margin: 0 auto;
  padding: 0 0 clamp(40px, 7vw, 72px);
  text-align: center;
  color: var(--white);
}

.article-hero__meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.article-body {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
  background: var(--bg);
}

.article-body__inner {
  width: min(100% - var(--pad) * 2, 680px);
  margin: 0 auto;
}

.article-lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-body__inner p {
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
}

.article-body__inner p.article-lede + p::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--camel-deep);
}

.article-pull {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.article-pull blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.article-figure {
  margin: 48px 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-sand);
}

.article-figure figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.article-nav {
  width: min(100% - var(--pad) * 2, 1080px);
  margin: 0 auto;
  padding: 40px 0 72px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .article-nav {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.article-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s;
}

.article-nav a:hover {
  color: var(--camel-deep);
}

.article-nav__prev {
  justify-self: start;
}

.article-nav__index {
  justify-self: center;
  text-align: center;
}

.article-nav__next {
  justify-self: end;
  text-align: right;
}

.article-nav__title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  max-width: 220px;
}

.article-nav__next .article-nav__title {
  margin-left: auto;
}

.article-geo {
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-geo h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  margin-bottom: 20px;
}

.article-geo ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.article-geo li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.article-geo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--camel-deep);
}

.article-geo--faq {
  border-bottom: 0;
}

.article-geo__faq + .article-geo__faq {
  margin-top: 20px;
}

.article-geo__faq h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.article-geo__faq p {
  margin: 0;
  color: var(--ink-soft);
}
