
:root {
  --bg: #080410;
  --bg2: #14091d;
  --ink: #fff8ff;
  --muted: #bba9c4;
  --pink: #ff4fbd;
  --pink2: #fc319f;
  --purple: #80349a;
  --border: #512050;
  --glow: 0 0 35px #e83cb228;
  --font: Arial, Helvetica, sans-serif;
  --display: Impact, 'Arial Black', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-width: 280px;
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#d05eda08 1px, transparent 1px),
    linear-gradient(90deg, #d05eda08 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: linear-gradient(to bottom, #0008, transparent 82%);
}

.screen-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% -5%, #4c1a4d66, transparent 54%),
    radial-gradient(ellipse at 15% 85%, #40144b38, transparent 43%);
}

a {
  color: inherit;
}

/* HEADER */

.topbar {
  max-width: 1240px;
  padding: 18px 32px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: auto;
}

.logotype {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.06;
}

.logotype b {
  color: var(--pink);
  text-shadow: 0 0 16px #ff31c6a3;
  letter-spacing: .19em;
  font-size: 17px;
  font-weight: 900;
}

.logotype small {
  font-size: 9px;
  letter-spacing: .08em;
  margin-top: 4px;
  color: white;
}

.back-home {
  font-size: 10px;
  letter-spacing: .12em;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid #6d3c68;
  border-radius: 18px;
  padding: 10px 16px;
}

.back-home:hover,
.back-home:focus-visible {
  border-color: var(--pink);
  color: var(--pink);
}

.ticker {
  background: var(--pink);
  color: #1a0018;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
  font-size: 10px;
  line-height: 31px;
  white-space: nowrap;
  overflow: hidden;
}

.ticker div {
  min-width: 850px;
}

/* INTRODUCTION */

.layout {
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
}

.hero {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 48px 15px 36px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.mini-label {
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .21em;
}

.status-dot,
.live-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  vertical-align: middle;
  margin-right: 8px;
}

.hero h1 {
  font: normal clamp(42px, 7vw, 90px)/.98 var(--display);
  letter-spacing: .035em;
  margin: 18px 0 17px;
  color: #fff;
  text-shadow: 3px 3px #9d2c85aa;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--pink);
  text-shadow: 3px 3px #481746;
}

.heart {
  color: var(--pink);
  font-family: Arial, sans-serif;
  font-size: .4em;
  vertical-align: top;
  margin-left: 10px;
}

.hero p {
  max-width: 680px;
  color: #d3c3db;
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

.hero p strong {
  color: #fff;
}

.hero-badge {
  border: 2px solid var(--pink);
  background: #231028;
  transform: rotate(7deg);
  box-shadow: 0 0 0 5px #200d235e, 0 0 34px #ee3d9d33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 155px;
  width: 155px;
  height: 155px;
  border-radius: 50%;
  text-align: center;
}

.hero-badge span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .23em;
}

.hero-badge strong {
  font: normal 50px/.75 var(--display);
  padding: 9px 0;
  color: var(--pink);
}

.hero-badge small {
  font-size: 9px;
  letter-spacing: .1em;
  font-weight: 900;
}

/* MAGAZINE READER */

.reader-card {
  border: 1px solid #70336e;
  border-radius: 20px;
  background: linear-gradient(165deg, #1c0b23 0%, #0d0613 50%, #110818 100%);
  box-shadow: var(--glow), 0 25px 80px #000b;
  overflow: hidden;
  position: relative;
}

.reader-heading {
  padding: 19px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #1a0a21;
  border-bottom: 1px solid #672661;
}

.reader-label,
.reader-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.reader-label strong {
  color: var(--pink);
}

.reader-meta {
  color: #d6b6d2;
}

.slash {
  color: var(--pink);
  padding: 0 9px;
}

.book-stage {
  min-height: clamp(370px, 65vw, 880px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 28px;
  isolation: isolate;
}

.book-backdrop {
  position: absolute;
  pointer-events: none;
  inset: 15px 3%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #8d267a2c, transparent 55%);
}

#flipbook {
  margin: 0 auto;
  max-width: 100%;
}

#flipbook canvas {
  max-width: 100%;
}

/* LOADING ANIMATION */

.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--pink);
  z-index: 1;
  pointer-events: none;
}

.loading-icon {
  font-size: 50px;
  animation: spin 3.5s linear infinite;
}

.loading strong {
  font-size: 13px;
  letter-spacing: .16em;
}

.loading small {
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* PAGE CONTROLS */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 650px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

.control {
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
  font-family: var(--font);
  border-radius: 9px;
  min-height: 45px;
  padding: 12px 22px;
  border: 1px solid var(--pink);
  color: #170013;
  background: var(--pink);
  transition: filter .2s, transform .2s;
}

.control:hover:not(:disabled) {
  filter: brightness(1.16);
  transform: translateY(-1px);
}

.control:disabled {
  cursor: default;
  opacity: .4;
}

.page-indicator {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.page-indicator small {
  font-size: 9px;
  color: #c3a0c0;
  letter-spacing: .16em;
}

.page-indicator strong {
  font-size: 13px;
  letter-spacing: .13em;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px 19px;
}

.quiet-action {
  padding: 12px 18px;
  border-radius: 7px;
  background: #220e2b;
  border: 1px solid #7c3373;
  color: #fceaf8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  cursor: pointer;
}

.quiet-action:hover,
.quiet-action:focus-visible {
  background: #3a1642;
  border-color: var(--pink);
}

.reader-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #51204d;
  padding: 12px 24px;
  font-size: 9px;
  color: #ae91b6;
  letter-spacing: .13em;
  font-weight: 700;
}

/* PAGE THUMBNAILS */

.filmstrip {
  padding: 15px 22px 24px;
  border-top: 1px solid #5a2558;
  background: #120718;
  max-height: 390px;
  overflow: auto;
}

.filmstrip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 14px;
}

.thumb-btn {
  background: #27122c;
  border: 1px solid #78456e;
  color: white;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  font: 900 9px var(--font);
  letter-spacing: .1em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumb-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 1200/1854;
  object-fit: cover;
}

.thumb-btn:hover,
.thumb-btn:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

/* BACKUP IMAGE VIEW */

.fallback {
  width: 100%;
  padding: 20px;
  color: #fbd7e8;
  text-align: center;
}

.fallback-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.fallback-pages img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 25px #0008;
}

/* BOTTOM OF PAGE */

.bottom-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 56px 10px 50px;
}

.bottom-info h2 {
  font: normal clamp(28px, 4vw, 48px)/1.04 var(--display);
  letter-spacing: .04em;
  margin: 12px 0;
}

.bottom-info p {
  color: #b9a4c1;
  line-height: 1.7;
  max-width: 460px;
  font-size: 13px;
}

.bottom-links {
  padding: 24px;
  border: 1px solid #592755;
  border-radius: 16px;
  background: #1a0b20;
}

.bottom-links a {
  display: block;
  width: fit-content;
  background: var(--pink);
  color: #1d0017;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  border-radius: 7px;
  padding: 14px 19px;
  margin: 18px 0;
}

.bottom-links p {
  font-size: 12px;
}

.footer {
  border-top: 1px solid #411a40;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #ac95b2;
  font-size: 10px;
  letter-spacing: .06em;
}

/* ZOOM VIEW */

.zoom-modal {
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: 0;
  background: #0c0612;
  color: #fff;
  width: min(96vw, 1350px);
  max-width: 1350px;
  height: min(94dvh, 1100px);
  max-height: 94dvh;
  overflow: hidden;
  box-shadow: 0 0 70px #d02cba33;
}

.zoom-modal::backdrop {
  background: #07020ce6;
  backdrop-filter: blur(7px);
}

.zoom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid #60305b;
  background: #1c0c23;
  font-size: 12px;
  letter-spacing: .12em;
}

.zoom-top div {
  display: flex;
  gap: 7px;
}

.zoom-top button {
  width: 39px;
  height: 35px;
  background: #35163e;
  color: #fff;
  border: 1px solid #90528a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.zoom-top button:hover {
  background: var(--pink);
  color: #180018;
}

.zoom-scroll {
  height: calc(100% - 56px);
  overflow: auto;
  text-align: center;
  padding: 18px;
  scroll-behavior: smooth;
}

.zoom-scroll img {
  display: block;
  width: 800px;
  max-width: none;
  margin: auto;
  box-shadow: 0 14px 50px #000b;
}

.no-script {
  margin: 20px auto;
  max-width: 900px;
  padding: 20px;
  background: #3d1238;
}

.no-script a {
  color: #ff65cf;
}

/* TABLET */

@media (max-width: 900px) {
  .hero { padding: 37px 0 26px; }
  .hero-badge {
    width: 115px;
    height: 115px;
    flex-basis: 115px;
  }
  .hero-badge strong { font-size: 37px; }
  .reader-meta { display: none; }
  .book-stage { min-height: 660px; }
}

/* MOBILE */

@media (max-width: 650px) {
  .topbar { padding: 12px 15px; }
  .back-home { font-size: 9px; padding: 9px 10px; }
  .logotype b { font-size: 14px; }
  .layout { padding: 0 10px; }
  .hero { padding: 30px 12px 25px; }
  .hero-badge { display: none; }
  .hero h1 { font-size: clamp(35px, 8.2vw, 56px); }
  .hero p { font-size: 13px; }
  .ticker { font-size: 9px; }
  .reader-card { border-radius: 13px; }
  .reader-heading { padding: 13px; }
  .reader-label { font-size: 9px; letter-spacing: .1em; }
  .book-stage { padding: 20px 3px; min-height: 460px; }
  .toolbar { padding: 0 8px 14px; gap: 6px; }
  .control { min-height: 42px; padding: 11px 12px; }
  .page-indicator { min-width: 115px; }
  .page-indicator strong { font-size: 11px; }
  .reader-actions { gap: 5px; padding: 0 7px 14px; }
  .quiet-action { padding: 11px 10px; font-size: 9px; }
  .reader-caption { padding: 12px; font-size: 8px; }
  .reader-caption span:last-child { display: none; }
  .bottom-info {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 8px;
  }
  .footer { font-size: 9px; }
  .fallback-pages { grid-template-columns: 1fr; }
  .zoom-scroll { padding: 8px; }
}

@media (max-width: 390px) {
  .control span { display: none; }
  .reader-label { font-size: 8px; }
  .page-indicator { min-width: 126px; }
  .quiet-action { font-size: 8px; }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

[hidden] {
  display: none !important;
}

/* FULLSCREEN */

.reader-card:fullscreen {
  overflow: auto;
  border-radius: 0;
  padding: 10px;
  background: #0a0410;
}

.reader-card:fullscreen .book-stage {
  min-height: calc(100dvh - 190px);
}

.pdf-action {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* READER-ONLY MESSAGE */

.supporter-note {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .13em;
  color: #eeb0dc;
  text-align: center;
  padding: 0 20px 23px;
  margin: 0;
  font-weight: 800;
}

@media (max-width: 580px) {
  .supporter-note {
    font-size: 9px;
    letter-spacing: .075em;
  }
}
