/* The Reverse Times Magazine — landing page, issue page and reader.
   Uses the site's tokens (--bg, --text, --gold, --dark2, --ff-display, --ff-label …). */

.mz { position: relative; z-index: 1; }
.mz-wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 700px) { .mz-wrap { padding: 0 1rem; } }

/* ── Shared bits ─────────────────────────────────────────────── */
.mz-eyebrow { font-family: var(--ff-label); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; color:var(--gold-ink); }
.mz-h2 { font-family: var(--ff-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.mz-lead { color: var(--text-muted); font-size: 1.12rem; line-height: 1.75; }
.mz-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.mz-badge { font-family: var(--ff-label); letter-spacing: 1.5px; text-transform: uppercase; font-size: .68rem; padding: .28rem .6rem; border: 1px solid var(--gold30); color:var(--gold-ink); background: rgba(0,0,0,.18); line-height: 1.2; }
.mz-badge.free { background: #2f7d3a; border-color: #2f7d3a; color: #fff; }
.mz-badge.digital { background: var(--gold); border-color: var(--gold); color: #fff; }
.mz-badge.print { background: #1d1712; border-color: #1d1712; color: #f5edd8; }
.mz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; font-family: var(--ff-label); letter-spacing: 2px; text-transform: uppercase; font-size: .9rem; text-decoration: none; border: 1px solid var(--gold); cursor: pointer; transition: transform .2s, background .2s, color .2s; min-height: 48px; }
.mz-btn-primary { background: var(--gold); color: #fff !important; }
.mz-btn-primary:hover { transform: translateY(-2px); background: #c93519; }
.mz-btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--gold30); }
.mz-btn-ghost:hover { border-color: var(--gold); color:var(--gold-ink) !important; }
.mz-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* 3D cover */
.mz-cover { position: relative; display: block; aspect-ratio: 595 / 842; perspective: 1600px; }
.mz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px 6px 6px 2px; transform: rotateY(-12deg) rotateX(2deg); transform-origin: left center; box-shadow: 1px 1px 0 rgba(255,255,255,.06), 18px 24px 40px rgba(0,0,0,.45), 40px 50px 90px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.mz-cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 40%, rgba(0,0,0,0)); transform: rotateY(-12deg) rotateX(2deg); transform-origin: left center; pointer-events: none; border-radius: 2px 0 0 2px; }
.mz-cover:hover img, .mz-cover:focus-visible img { transform: rotateY(-4deg) rotateX(0) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .mz-cover img, .mz-cover::after { transform: none; transition: none; } }

/* ── Magazine home: hero ─────────────────────────────────────── */
.mz-hero { position: relative; padding: 140px 0 4.5rem; overflow: hidden; isolation: isolate; }
.mz-hero::before { content: ''; position: absolute; inset: 0; background: url('../img/magazine/paper-bg.jpg') center/cover no-repeat; opacity: .16; z-index: -2; filter: sepia(.4); }
.mz-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, rgba(227,64,31,.16), transparent 55%), linear-gradient(180deg, transparent 60%, var(--bg)); z-index: -1; }
[data-theme="light"] .mz-hero::before { opacity: .55; }
.mz-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.mz-hero h1 { font-family: var(--ff-display); font-weight: 900; line-height: 1.08; font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin: .8rem 0 1.2rem; }
.mz-hero h1 .en { display: block; font-size: .42em; font-weight: 700; letter-spacing: .5px; color:var(--gold-ink); margin-bottom: .5rem; font-style: italic; }
.mz-latest { margin-top: 2rem; padding: 1.4rem 1.5rem; border-left: 4px solid var(--gold); background: rgba(0,0,0,.22); backdrop-filter: blur(4px); }
[data-theme="light"] .mz-latest { background: rgba(255,255,255,.55); }
.mz-latest h2 { font-family: var(--ff-display); font-size: 1.55rem; line-height: 1.25; margin: .35rem 0 .4rem; }
.mz-latest p { color: var(--text-muted); margin-bottom: 1rem; }
.mz-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.mz-hero-cover { max-width: 400px; justify-self: center; width: 100%; }
@media (max-width: 900px) {
  .mz-hero { padding: 118px 0 3rem; }
  .mz-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .mz-hero-cover { max-width: 260px; order: -1; }
}

/* trust strip */
.mz-trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gold30); border-bottom: 1px solid var(--gold30); }
.mz-trust div { padding: 1.3rem 1rem; text-align: center; border-right: 1px solid var(--gold10); }
.mz-trust div:last-child { border-right: 0; }
.mz-trust strong { display: block; font-family: var(--ff-display); font-size: 1.35rem; }
.mz-trust span { color: var(--text-muted); font-size: .92rem; }
@media (max-width: 700px) { .mz-trust { grid-template-columns: 1fr; } .mz-trust div { border-right: 0; border-bottom: 1px solid var(--gold10); } }

/* shelf */
.mz-section { padding: 4.5rem 0; }
.mz-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.mz-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.mz-filters button { background: none; border: 1px solid var(--gold30); color: var(--text-muted); padding: .55rem 1rem; font-family: var(--ff-label); letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; cursor: pointer; min-height: 40px; }
.mz-filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.mz-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.4rem 2rem; }
.mz-issue { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.mz-issue .mz-cover { margin-bottom: 1.2rem; }
.mz-issue .mz-cover img { transform: rotateY(-8deg); }
.mz-issue:hover .mz-cover img, .mz-issue:focus-visible .mz-cover img { transform: rotateY(0) translateY(-6px); }
.mz-issue-label { font-family: var(--ff-label); letter-spacing: 2px; font-size: .75rem; color:var(--gold-ink); text-transform: uppercase; }
.mz-issue h3 { font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.3; margin: .3rem 0 .6rem; }
.mz-issue .mz-prices { color: var(--text-muted); font-size: .92rem; margin-top: .6rem; }
.mz-empty { border: 1px dashed var(--gold30); padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); }

/* steps */
.mz-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.mz-step { border: 1px solid var(--gold30); padding: 1.6rem; position: relative; background: var(--dark2); }
.mz-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--ff-display); font-size: 2.6rem; font-weight: 900; color: var(--gold30); position: absolute; right: 1rem; top: .4rem; }
.mz-step h3 { font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: .5rem; padding-right: 3rem; }
.mz-step p { color: var(--text-muted); font-size: .98rem; }
@media (max-width: 800px) { .mz-steps { grid-template-columns: 1fr; } }

/* stories */
.mz-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.mz-story { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--dark2); border: 1px solid var(--gold10); transition: border-color .2s, transform .2s; }
.mz-story:hover { border-color: var(--gold30); transform: translateY(-3px); }
.mz-story img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.mz-story div { padding: 1.1rem 1.2rem 1.3rem; }
.mz-story h3 { font-family: var(--ff-display); font-size: 1.15rem; line-height: 1.35; margin: .3rem 0 .5rem; }
.mz-story p { color: var(--text-muted); font-size: .95rem; }

/* faq */
.mz-faq details { border-bottom: 1px solid var(--gold30); padding: 1.1rem 0; }
.mz-faq summary { cursor: pointer; font-family: var(--ff-display); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.mz-faq summary::-webkit-details-marker { display: none; }
.mz-faq summary::after { content: '+'; color:var(--gold-ink); font-size: 1.5rem; line-height: 1; }
.mz-faq details[open] summary::after { content: '−'; }
.mz-faq details p { color: var(--text-muted); margin-top: .7rem; line-height: 1.8; }

/* ── Issue page ───────────────────────────────────────────── */
.mz-crumbs { padding-top: 130px; font-family: var(--ff-label); letter-spacing: 2px; font-size: .75rem; text-transform: uppercase; color: var(--text-faint); }
.mz-crumbs a { color: var(--text-muted); }
.mz-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.mz-crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--gold30); }
.mz-issue-hero { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 4rem; padding: 2rem 0 3.5rem; align-items: start; }
.mz-issue-hero h1 { font-family: var(--ff-display); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; margin: .5rem 0 .6rem; }
.mz-sub { font-family: var(--ff-italic); font-style: italic; font-size: 1.35rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.mz-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.mz-meta span { font-family: var(--ff-label); letter-spacing: 1.5px; font-size: .72rem; text-transform: uppercase; border: 1px solid var(--gold30); padding: .3rem .65rem; color: var(--text-muted); }
.mz-desc { font-size: 1.1rem; line-height: 1.85; margin-bottom: 1.6rem; }
.mz-editions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.mz-edition { border: 1px solid var(--gold30); padding: 1.3rem; background: var(--dark2); display: flex; flex-direction: column; gap: .5rem; }
.mz-edition.off { opacity: .55; }
.mz-edition h2 { font-family: var(--ff-label); letter-spacing: 2.5px; font-size: .85rem; text-transform: uppercase; color:var(--gold-ink); font-weight: 400; }
.mz-edition .price { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.mz-edition .price s { font-size: 1rem; color: var(--text-faint); font-weight: 400; }
.mz-edition p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.mz-edition .mz-btn { width: 100%; margin-top: .4rem; }
.mz-contents { margin-top: 1.8rem; }
.mz-contents h2 { font-family: var(--ff-label); letter-spacing: 2.5px; font-size: .85rem; text-transform: uppercase; color:var(--gold-ink); font-weight: 400; margin-bottom: .6rem; }
.mz-contents ol { list-style: none; counter-reset: toc; }
.mz-contents li { counter-increment: toc; display: flex; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--gold30); }
.mz-contents li::before { content: counter(toc, decimal-leading-zero); font-family: var(--ff-label); color:var(--gold-ink); min-width: 1.8rem; }
.mz-status { border-left: 4px solid var(--gold); padding: 1rem 1.2rem; background: var(--dark2); margin: 1rem 0; }
.mz-status.ok { border-left-color: #3fa046; }
.mz-status.bad { border-left-color: #c0392b; }
@media (max-width: 900px) {
  .mz-crumbs { padding-top: 112px; }
  .mz-issue-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.2rem; }
  .mz-issue-hero .mz-cover { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 520px) { .mz-editions { grid-template-columns: 1fr; } }

/* buy box */
.mz-buy { max-width: 760px; margin: 0 auto; border: 1px solid var(--gold30); background: var(--dark2); padding: 2rem; }
.mz-buy h2 { font-family: var(--ff-display); font-size: 1.6rem; margin-bottom: .8rem; }
.mz-number { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; letter-spacing: 1px; }
.mz-copy { background: none; border: 1px solid var(--gold30); color:var(--gold-ink); padding: .4rem .9rem; margin-left: .6rem; cursor: pointer; font-size: .85rem; min-height: 36px; vertical-align: middle; }
.mz-steps-list { padding-left: 1.2rem; color: var(--text-muted); line-height: 1.9; margin: .6rem 0 1.2rem; }
.mz-form { display: grid; gap: .9rem; }
.mz-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .mz-row { grid-template-columns: 1fr; } .mz-buy { padding: 1.4rem 1.1rem; } }
.mz-form label { display: block; font-family: var(--ff-label); letter-spacing: 2px; text-transform: uppercase; font-size: .72rem; color: var(--text-muted); margin-bottom: .3rem; }
.mz-form input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--gold30); padding: .8rem .9rem; font: inherit; font-size: 1rem; }
.mz-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.mz-error { color: #e57364; font-size: .88rem; margin-top: .25rem; }
.mz-wa { display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #fff !important; padding: .8rem 1.3rem; font-family: var(--ff-label); letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; text-decoration: none; margin-top: .7rem; }

/* ── Reader ("reading room") ──────────────────────────────── */
.mz-reader { background: #0c0906; color: #f5edd8; padding: 2.5rem 0 3rem; margin: 1rem 0 0; border-top: 1px solid rgba(227,64,31,.3); border-bottom: 1px solid rgba(227,64,31,.3); }
.mz-reader:fullscreen { padding: 1rem; overflow: auto; display: flex; flex-direction: column; }
.mz-reader-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.mz-reader-head h2 { font-family: var(--ff-display); font-size: 1.5rem; }
.mz-reader-head p { color: rgba(245,237,216,.7); font-size: .92rem; }
.mz-tools { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mz-tools button { background: rgba(255,255,255,.05); border: 1px solid rgba(245,237,216,.18); color: #f5edd8; min-width: 42px; height: 42px; padding: 0 .8rem; cursor: pointer; font-family: var(--ff-label); letter-spacing: 1.5px; font-size: .8rem; }
.mz-tools button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.mz-tools button:disabled { opacity: .35; cursor: default; }
.mz-progress { flex: 1; min-width: 140px; display: flex; align-items: center; gap: .7rem; font-family: var(--ff-label); letter-spacing: 1px; font-size: .85rem; color: rgba(245,237,216,.8); }
.mz-progress input { flex: 1; accent-color: var(--gold); }
.mz-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 60vh; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mz-stage.scroll { flex-direction: column; gap: 1.2rem; }
.mz-page { position: relative; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.6); max-width: 100%; }
.mz-page canvas { display: block; max-width: 100%; height: auto; }
.mz-spread .mz-page:first-child:not(:last-child) { box-shadow: -8px 18px 45px rgba(0,0,0,.6), inset -18px 0 24px -18px rgba(0,0,0,.35); }
.mz-spread .mz-page:last-child:not(:first-child) { box-shadow: 8px 18px 45px rgba(0,0,0,.6), inset 18px 0 24px -18px rgba(0,0,0,.35); }
.mz-pnum { position: absolute; bottom: -1.6rem; left: 0; right: 0; text-align: center; font-family: var(--ff-label); letter-spacing: 1.5px; font-size: .75rem; color: rgba(245,237,216,.55); }
.mz-mark { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.06); font: 700 clamp(14px, 2.2vw, 24px)/1.2 sans-serif; transform: rotate(-28deg); text-align: center; }
.mz-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; background: repeating-linear-gradient(135deg, #1a1410 0 14px, #1f1813 14px 28px); border: 1px solid rgba(227,64,31,.35); color: #f5edd8; padding: 2rem 1.4rem; }
.mz-lock svg { width: 44px; height: 44px; color:var(--gold-ink); }
.mz-lock strong { font-family: var(--ff-display); font-size: 1.3rem; }
.mz-lock span { color: rgba(245,237,216,.7); font-size: .95rem; }
.mz-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; background: rgba(0,0,0,.45); border: 1px solid rgba(245,237,216,.15); color: #f5edd8; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.mz-nav.prev { left: 0; } .mz-nav.next { right: 0; }
.mz-nav:disabled { opacity: .25; cursor: default; }
.mz-stage.scroll .mz-nav { display: none; }
.mz-loading { color: rgba(245,237,216,.7); font-family: var(--ff-label); letter-spacing: 2px; }
.mz-hint { text-align: center; color: rgba(245,237,216,.5); font-size: .82rem; margin-top: 2.2rem; }
@media (max-width: 700px) { .mz-nav { width: 38px; height: 58px; font-size: 1.3rem; } .mz-tools .wide-only { display: none; } }
@media print { .mz-reader { display: none !important; } }
.mz-issue[hidden]{display:none}

/* Flat magazine covers: no tilt, no shadow, no hover movement */
.mz-cover { perspective: none; }
.mz-cover img, .mz-cover:hover img, .mz-cover:focus-visible img,
.mz-issue .mz-cover img, .mz-issue:hover .mz-cover img, .mz-issue:focus-visible .mz-cover img {
  transform: none !important; box-shadow: none !important; transition: none !important; border-radius: 0 !important;
}
.mz-cover::after { display: none; }

/* Coupon box in the unlock section */
.mz-coupon { border: 1px dashed var(--gold30, rgba(201,168,76,.3)); padding: .9rem 1rem; margin: 0 0 1.2rem; }
.mz-coupon-form label { display: block; font-size: .9rem; margin-bottom: .35rem; }
.mz-coupon-form div { display: flex; gap: .5rem; }
.mz-coupon-form input { flex: 1; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--border, #ccc); background: transparent; color: inherit; font: inherit; text-transform: uppercase; }
.mz-coupon-ok { margin: 0; }
.mz-coupon-ok a, .mz-coupon-mine a, .mz-coupon-game a { color:var(--gold-ink); }
.mz-coupon-mine, .mz-coupon-game { margin: .55rem 0 0; font-size: .9rem; }
