/* ==========================================================================
   v3-issue.css — the "digital print magazine" reader (issue-001.html)
   A dark, cinematic reading room housing a StPageFlip book of the white paper.
   ========================================================================== */

.issue-body {
  background: #0b0b0c;
  color: #f2f0ec;
  min-height: 100svh;
  overflow: hidden;
}
/* faint reading-room vignette */
.issue-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(60, 58, 54, 0.28) 0%, rgba(11, 11, 12, 0) 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(0, 0, 0, 0.55) 0%, rgba(11, 11, 12, 0) 60%);
}

.issue {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* —— top bar —————————————————————————————————————————————— */
.issue__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 0.7rem + 1vw, 1.7rem) clamp(1.1rem, 0.6rem + 2vw, 2.6rem);
  font-family: var(--mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(242, 240, 236, 0.6);
  z-index: 5;
}
.issue__back { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em; transition: color 0.2s; }
.issue__back:hover { color: #fff; }
.issue__chev { font-size: 1.35em; line-height: 0; }
.issue__title { color: rgba(242, 240, 236, 0.9); letter-spacing: 0.12em; }
.issue__eyebrow { color: rgba(242, 240, 236, 0.42); margin-right: 0.6em; }
.issue__meta { display: inline-flex; align-items: center; gap: 1.1rem; }
.issue__count { font-variant-numeric: tabular-nums; }
.issue__fs {
  background: none; border: 0; color: inherit; font-size: 1.15em; line-height: 1;
  padding: 0.15em; cursor: pointer; transition: color 0.2s, transform 0.2s;
}
.issue__fs:hover { color: #fff; transform: scale(1.08); }

/* —— stage (the book) ————————————————————————————————————— */
.issue__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(0.4rem, 0.2rem + 1vw, 1.4rem) clamp(3rem, 1.6rem + 6vw, 7rem);
}
.issue__frame { width: 100%; max-width: min(96vw, 1180px); margin: 0 auto; }   /* wide → StPageFlip renders the 2-page spread */
.issue__book { width: 100%; }
/* StPageFlip renders into .stf__parent — give the whole book depth */
.issue__book .stf__parent { margin: 0 auto; filter: drop-shadow(0 34px 66px rgba(0, 0, 0, 0.6)); }
.issue__book .stf__item { background: #fff; }
/* lazy page images (HTML mode) — each fills its page box */
.issue__page { width: 100%; height: 100%; }
.issue__book img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* —— nav arrows ——————————————————————————————————————————— */
.issue__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: clamp(2.7rem, 2rem + 2vw, 3.7rem);
  height: clamp(2.7rem, 2rem + 2vw, 3.7rem);
  border-radius: 50%;
  border: 1px solid rgba(242, 240, 236, 0.22);
  background: rgba(20, 20, 22, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: #f2f0ec;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.35s, transform 0.15s;
}
.issue__nav:hover { background: rgba(44, 44, 48, 0.72); border-color: rgba(242, 240, 236, 0.5); }
.issue__nav:active { transform: translateY(-50%) scale(0.93); }
.issue__nav--prev { left: clamp(0.5rem, 0.1rem + 1.6vw, 1.8rem); }
.issue__nav--next { right: clamp(0.5rem, 0.1rem + 1.6vw, 1.8rem); }
.issue__nav[disabled] { opacity: 0.22; pointer-events: none; }

/* —— hint ————————————————————————————————————————————————— */
.issue__hint {
  text-align: center;
  padding: 0 1rem clamp(1rem, 0.5rem + 1.4vw, 2.1rem);
  font-family: var(--mono);
  font-size: calc(var(--t-cap) * 0.92);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(242, 240, 236, 0.34);
  transition: opacity 0.7s ease;
}
.issue__hint.is-hidden { opacity: 0; }

@media (max-width: 760px) {
  .issue__stage { padding-left: 0.7rem; padding-right: 0.7rem; }
  .issue__nav { display: none; }               /* rely on drag / tap on touch */
  .issue__eyebrow { display: none; }
  .issue__bar { letter-spacing: 0.05em; }
}
