/* ─── Journal Section ──────────────────────────────────── */
.journal {
  max-width: 1480px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 80px) 140px;
}

.journal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.journal-count {
  font-size: 11px;
  letter-spacing: .18em;
  white-space: nowrap;
}

/* ─── Category Tabs ─────────────────────────────────────── */
.journal-tabs {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  overflow-x: auto;
  white-space: nowrap;
  margin: -12px 0 40px;
}

.journal-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.journal-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.journal-tabs button:focus-visible, .journal-item:focus-visible { outline: 2px solid var(--forest); outline-offset: 5px; }

/* ─── List Layout ───────────────────────────────────────── */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Item (full-width editorial row) ───────────────────── */
.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 340px;
  color: var(--ink);
  border-bottom: none;
  text-decoration: none;
  overflow: hidden;
}

/* Alternate image side: odd items → image left, even → image right */
.journal-item:nth-child(even) .journal-cover { order: 2; }
.journal-item:nth-child(even) .journal-copy  { order: 1; }

/* ─── Cover ─────────────────────────────────────────────── */
.journal-cover {
  position: relative;
  overflow: hidden;
  background: #d7ddd4;
  min-height: 320px;
}

.journal-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94);
}

.journal-item:hover .journal-cover img {
  transform: scale(1.015);
}

/* ─── Copy Block ─────────────────────────────────────────── */
.journal-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 64px);
  background: transparent;
  transition: background .3s ease;
}

.journal-item:hover .journal-copy {
  background: transparent;
}

/* ─── Body Text ─────────────────────────────────────────── */
.journal-body {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "meta meta" "title title" "stats arrow";
  align-items: end;
}

.journal-meta {
  display: contents;
}

.journal-meta-left {
  grid-area: meta;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.journal-index {
  color: var(--line);
  font: 400 clamp(64px, 5vw, 72px)/1 Georgia, 'Noto Serif SC', serif;
  letter-spacing: -.03em;
  margin-bottom: auto;
  user-select: none;
}

.journal-num {
  display: none;
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  color: #8c9089;
  letter-spacing: .08em;
  margin-right: 6px;
}

.journal-num::after {
  content: '·';
  margin-left: 6px;
  font-weight: 400;
  opacity: .5;
}

.journal-region {
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  letter-spacing: .08em;
  color: #8c9089;
}

.journal-stats {
  grid-area: stats;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  letter-spacing: .08em;
  color: #8c9089;
  white-space: nowrap;
}

.journal-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.journal-stat-icon {
  display: block;
  width: 12px;
  height: 12px;
  opacity: .85;
  flex-shrink: 0;
}

.journal-dot { padding: 0 .2em; opacity: .5; }

.journal-title-row {
  grid-area: title;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.journal-footer {
  display: contents;
}

.journal-title {
  font: 400 clamp(28px, 3vw, 42px)/1.3 Georgia, 'Noto Serif SC', serif;
  margin: 0 0 12px;
  letter-spacing: -.01em;
  transform: translateX(-7px);
}

.journal-arrow-icon {
  grid-area: arrow;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.journal-arrow-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.journal-item:hover .journal-arrow-icon {
  transform: translateX(4px) translateY(-4px);
}

/* ─── CTA ───────────────────────────────────────────────── */
.journal-cta {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: clamp(20px, 2.5vw, 36px);
  border-top: 1px solid var(--line);
  margin-top: clamp(16px, 2vw, 28px);
  position: relative;
  overflow: hidden;
}

.journal-cta::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform .25s ease;
}

.journal-item:hover .journal-cta::after {
  transform: translateX(5px);
}

/* ─── Empty State ───────────────────────────────────────── */
.journal-empty {
  padding: 60px 0;
  color: var(--muted);
  font: normal 22px/1.5 Georgia, 'Noto Serif SC', serif;
}

/* ─── Mobile: compact editorial cards ─────────────────── */
@media (max-width: 899px) {

  /* ── Section wrapper ── */
  .journal {
    padding: 32px 16px 80px;
    max-width: 100%;
  }

  .journal-head {
    padding-bottom: 14px;
    margin-bottom: 24px;
  }

  .journal-tabs {
    margin: -6px 0 24px;
  }

  .journal-empty {
    padding: 40px 0;
    font-size: 18px;
  }

  /* ── List ── */
  .journal-list {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 64px);
  }

  /* ── Item: contained card ── */
  .journal-item {
    display: block;
    min-height: unset;
    border: none;
    margin-bottom: 0;
    text-decoration: none;
    color: var(--ink);
    overflow: hidden;
    box-shadow: none;
  }

  /* Reset desktop alternating order */
  .journal-item:nth-child(even) .journal-cover { order: 0; }
  .journal-item:nth-child(even) .journal-copy  { order: 0; }

  /* ── Cover: shorter, no overlay ── */
  .journal-cover {
    position: relative;
    min-height: unset;
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    background: #d7ddd4;
    border-radius: 0;
  }

  .journal-cover img {
    transition: transform .5s ease;
  }

  .journal-item:active .journal-cover img {
    transform: scale(1.02);
  }



  /* ── Copy block ── */
  .journal-copy {
    display: block;
    padding: 16px 0 0;
    background: transparent !important;
    transition: none;
    box-shadow: none;
  }

  .journal-index {
    display: none;
  }

  .journal-item:hover .journal-copy {
    background: transparent !important;
  }

  /* ── Body ── */
  .journal-body {
    padding: 0;
    flex: unset;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas: "meta stats" "title arrow";
    align-items: baseline;
    column-gap: 10px;
    row-gap: 8px;
  }

  /* ── Meta: inline index · region (left) and stats (right) ── */
  .journal-meta {
    display: contents;
  }

  .journal-meta-left {
    grid-area: meta;
    min-width: 0;
  }

  .journal-title-row {
    display: contents;
  }

  .journal-footer {
    display: contents;
  }

  .journal-title {
    grid-area: title;
    min-width: 0;
    font: 400 clamp(20px, 5.5vw, 26px)/1.25 Georgia, 'Noto Serif SC', serif;
    letter-spacing: -.01em;
    margin: 0;
    transform: none;
  }

  .journal-meta-left .journal-num {
    display: inline;
  }

  .journal-stats {
    grid-area: stats;
    justify-self: end;
    align-self: baseline;
  }

  .journal-arrow-icon {
    grid-area: arrow;
    justify-self: end;
    align-self: center;
  }

  .journal-num {
    font-size: 11px;
    color: #8c9089;
  }

  .journal-region {
    font-size: 11px;
    letter-spacing: .08em;
    color: #8c9089;
  }

  .journal-stats {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    letter-spacing: .08em;
    color: #8c9089;
  }

  .journal-stat-icon {
    width: 11px;
    height: 11px;
  }

  /* ── Title row with arrow ── */
  .journal-arrow-icon svg {
    display: block;
    width: clamp(20px, 5.5vw, 26px);
    height: clamp(20px, 5.5vw, 26px);
  }

  /* ── Pagination ── */
  .journal-pagination {
    margin-top: 32px;
    padding-top: 24px;
    gap: 8px;
  }
  .pagination-btn { padding: 7px 12px; font-size: 12px; }
  .pagination-num { min-width: 32px; height: 32px; font-size: 12px; }
}

/* ─── Pagination ────────────────────────────────────────── */
.journal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.pagination-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 18px;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s ease;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination-num {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.pagination-num:hover:not(.active) {
  color: var(--ink);
  border-color: var(--line);
}
.pagination-num.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}
