/* ========================================================================
   Issue Magazine — brand-true palette
   Pulled from cover: forest backdrop, paper white, sage callout, warm ink
   ======================================================================== */
:root {
  --paper: #F7F4ED;
  --paper-2: #EFEBE0;
  --paper-3: #E6DFCF;
  --ink: #15110C;
  --ink-2: #2A241D;
  --forest: #2A3B32;
  --forest-deep: #1E2A23;
  --sage: #A9B39A;
  --warm: #C9B48C;
  --line: rgba(21,17,12,0.14);
  --line-soft: rgba(21,17,12,0.08);

  /* Issue uses a classical serif for the wordmark; Cormorant Garamond is the
     closest free match to its proportions (tall, high-contrast, elegant). */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);

  --pad-section: clamp(96px, 14vh, 180px);
  --pad-x: clamp(24px, 6vw, 96px);
}

[data-density="compact"] {
  --pad-section: clamp(64px, 10vh, 120px);
  --pad-x: clamp(20px, 4vw, 64px);
}

[data-theme="stone"] {
  --paper: #FAF7F0;
  --paper-2: #F1ECE2;
  --paper-3: #E4DDCE;
  --forest: #1C1915;
  --forest-deep: #0E0D0A;
}

[data-theme="cognac"] {
  --paper: #EFE7D4;
  --paper-2: #E5DBC4;
  --paper-3: #D9CCB0;
  --ink: #2A201A;
  --forest: #3A2A1F;
  --forest-deep: #2A1E16;
  --sage: #C4A985;
  --warm: #8A6A48;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--forest); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----- Brand wordmark ----- */
/* Issue wordmark: classical serif, very high contrast, widely-spaced caps */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.9;
}
.wordmark--micro { font-size: 17px; letter-spacing: 0.08em; font-weight: 500; }
.wordmark--nav { font-size: 22px; letter-spacing: 0.05em; font-weight: 500; }

/* Label */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow--ghost { color: rgba(247,244,237,0.7); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
  color: var(--paper);
  transition: background 400ms var(--ease), color 400ms var(--ease), padding 300ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid rgba(247,244,237,0);
}
.nav.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nav__logo { height: 38px; display: block; }
.nav__logo path { fill: currentColor; transition: fill 300ms var(--ease); }
.nav__links {
  display: flex;
  gap: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links a { opacity: 0.85; transition: opacity 300ms var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__meta { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 820px) {
  .nav__links, .nav__meta { display: none; }
}

/* ==========================================================================
   HERO — full-bleed video, massive ISSUE wordmark overlay
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  width: 100%;
  overflow: hidden;
  color: var(--paper);
  background: #0a0a08;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.05) saturate(0.88);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,8,0.35) 0%, rgba(10,10,8,0.15) 30%, rgba(10,10,8,0.6) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 96px var(--pad-x) 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.82;
  z-index: 2;
}

.hero__mark {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-52%);
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
}
/* the ISSUE logo, gigantic and centered */
.hero__mark svg {
  width: min(90vw, 1500px);
  height: auto;
}
.hero__mark svg path { fill: var(--paper); }

.hero__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: end;
  z-index: 2;
}
.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.4;
  max-width: 32ch;
  opacity: 0.94;
  font-weight: 400;
}
.hero__tagline {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.8;
  padding: 8px 18px;
  border: 1px solid rgba(247,244,237,0.3);
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid rgba(247,244,237,0.55);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
  justify-self: end;
}
.hero__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__cta svg { width: 16px; height: 10px; }

@media (max-width: 720px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .hero__tagline { justify-self: start; }
  .hero__cta { justify-self: start; }
  .hero__top { padding-top: 80px; }
}

/* Reveals */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 140ms; }
.reveal[data-delay="2"] { transition-delay: 280ms; }
.reveal[data-delay="3"] { transition-delay: 420ms; }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
  padding: var(--pad-section) var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.intro__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 96px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}
.intro__side {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 2.2;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.intro__side-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--forest);
  margin-bottom: 24px;
  display: block;
}
.intro__lede {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.14;
  max-width: 22ch;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 56px;
}
.intro__lede em { font-style: italic; color: var(--forest); }
.intro__body {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.intro__body p + p { margin-top: 20px; }

.intro__stats {
  margin-top: 80px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.intro__stat {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--line-soft);
}
.intro__stat:last-child { border-right: none; }
.intro__stat-num {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.intro__stat-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .intro__stats { grid-template-columns: repeat(2, 1fr); }
  .intro__stat { border-bottom: 1px solid var(--line-soft); }
  .intro__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .intro__stat:nth-child(2n) { border-right: none; }
  .intro__stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ==========================================================================
   VIEWER (FLIPBOOK)
   ========================================================================== */
.viewer {
  position: relative;
  padding: var(--pad-section) var(--pad-x);
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}

/*
 * Window-light leak — centre van alle gradiënten buiten het zichtbare vlak
 * geplaatst, zodat de rand van de ellips nooit in beeld komt. Beams zijn
 * teruggebracht met zeer brede, zachte overgangen (geen zichtbare lijnen).
 */
.viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* Warme lichtbron — centre buiten beeld linksboven, vloeit de hoek in */
    radial-gradient(
      ellipse 130% 110% at -8% -5%,
      rgba(255, 244, 195, 0.14) 0%,
      rgba(255, 244, 195, 0.05) 45%,
      transparent 68%
    ),
    /* Beam 1 — brede zachte strook, lage opacity */
    linear-gradient(
      118deg,
      rgba(255, 248, 208, 0.05)  0%,
      rgba(255, 248, 208, 0.05) 22%,
      rgba(255, 248, 208, 0.00) 42%,
      transparent               100%
    ),
    /* Beam 2 — iets smaller, wat later */
    linear-gradient(
      118deg,
      transparent                0%,
      rgba(255, 250, 218, 0.00) 28%,
      rgba(255, 250, 218, 0.04) 38%,
      rgba(255, 250, 218, 0.00) 52%,
      transparent               100%
    ),
    /* Koele franje — centre buiten beeld rechtsonder */
    radial-gradient(
      ellipse 120% 100% at 108% 108%,
      rgba(10, 22, 15, 0.10) 0%,
      rgba(10, 22, 15, 0.03) 45%,
      transparent 65%
    );
}
.viewer__grain {
  position: absolute; inset: 0;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.viewer__head {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
}
.viewer__head-left {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
}
.viewer__head h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 14ch;
  margin: 0 auto;
}
.viewer__head h2 em { font-style: italic; color: var(--warm); }
.viewer__head-right {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: right;
  line-height: 2;
}

@media (max-width: 860px) {
  .viewer__head { grid-template-columns: 1fr; text-align: left; }
  .viewer__head-right { text-align: left; }
}

/* Desk/stage where the book sits */
.stage {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 470 / 330; /* spread ratio + shadow margin */
  perspective: 2400px;
  perspective-origin: 50% -10%;
  z-index: 2;
}

/* Close-range light — centrum buiten stage zodat rand niet zichtbaar is */
.stage::before {
  content: "";
  position: absolute;
  inset: -20% -14%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 110% 90% at -5% -8%,
    rgba(255, 248, 210, 0.13) 0%,
    rgba(255, 248, 210, 0.04) 50%,
    transparent 70%
  );
}
/*
 * ── Realistic magazine shadow ────────────────────────────────────────────────
 *
 * Five-layer box-shadow mimics a physical magazine on a table:
 *   1. Razor contact line (0 blur)
 *   2. Close directional shadow (x+2, y+4 — light from upper-left)
 *   3. Medium halo
 *   4. Wide ambient
 *   5. Distant very-faint fringe
 *
 * The div sits behind .book in DOM order (z-index 0) and matches the
 * exact book footprint — so the shadow "hugs" all four edges, like a
 * physical object resting on the surface.
 */
.book__shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(82%, 1050px);
  aspect-ratio: 470 / 320;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0    0    1px  1px  rgba(0,0,0,0.90),   /* razor contact */
    2px  4px  10px 0px  rgba(0,0,0,0.65),   /* close, directional */
    4px  12px 32px 0px  rgba(0,0,0,0.42),   /* medium halo */
    7px  24px 62px 0px  rgba(0,0,0,0.24),   /* wide spread */
    12px 40px 100px 0px rgba(0,0,0,0.12);   /* distant ambient */
}

/* Cover-only: shadow only under the single (right) page */
.book__shadow--cover {
  width: min(41%, 525px);
  transform: translate(0%, -50%);  /* spine-aligned: left edge at stage centre */
}

/*
 * ── Sheen overlay: paper texture + directional light ─────────────────────────
 *
 * Sits at stage level (sibling to .book, NOT inside it) so mix-blend-mode
 * works correctly — transform-style: preserve-3d on .book would otherwise
 * block blending. Positioned to exactly match the book footprint.
 *
 * z-index: 3 → above .book (auto) and its pages, but the flipper's own
 * shadow/sheen handles flipping pages.
 *
 * Two backgrounds:
 *   1. Warm gradient  — window light from upper-left → faint cool shadow lower-right
 *   2. SVG fractalNoise — paper grain (soft-light blend makes it feel like fibre)
 */
.book__sheen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(82%, 1050px);
  aspect-ratio: 470 / 320;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: soft-light;
  opacity: 0.7;
  background:
    linear-gradient(
      138deg,
      rgba(255, 252, 225, 0.55) 0%,
      rgba(255, 252, 225, 0.18) 28%,
      transparent               55%
    ),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 100% 100%, 200px 200px;
}

/* Cover-only: restrict sheen to right (cover) page */
.book__sheen--cover {
  width: min(41%, 525px);
  transform: translate(0%, -50%);
}


.book {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(82%, 1050px);
  aspect-ratio: 470 / 320; /* 2× portrait page: 235×320mm */
  transform-style: preserve-3d;
}

.book__spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 12px;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  mix-blend-mode: multiply;
}

.page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #FAF7F0;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: inset 0 0 30px rgba(21,17,12,0.07);
}
.page--left { left: 0; transform-origin: right center; }
.page--right { left: 50%; transform-origin: left center; }

.page__edges {
  position: absolute;
  top: 4px; bottom: 4px;
  width: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(21,17,12,0.05) 0 1px, transparent 1px 3px);
}
.page__edges--left { right: 100%; box-shadow: -3px 2px 10px rgba(0,0,0,0.32); }
.page__edges--right { left: 100%; box-shadow: 3px 2px 10px rgba(0,0,0,0.32); }

.page__inner {
  position: absolute; inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background: #FAF7F0;
}
.page__inner::before {
  /* paper fiber texture */
  content: "";
  position: absolute; inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.86 0 0 0 0 0.78 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  z-index: 5;
}
.page__inner::after {
  /* inner-spine shadow (gutter) */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 6;
}
.page--left .page__inner::after {
  right: 0;
  background: linear-gradient(90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
}
.page--right .page__inner::after {
  left: 0;
  background: linear-gradient(-90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
}

/* The flipping element — two-sided via front/back inner faces */
.flipper {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 40;
  transition: transform 950ms cubic-bezier(.62,.02,.38,1);
}
.flipper--right { left: 50%; transform-origin: left center; transform: rotateY(0deg); }
.flipper--right.is-flipping { transform: rotateY(-178deg); }
.flipper--left { left: 0; transform-origin: right center; transform: rotateY(0deg); }
.flipper--left.is-flipping { transform: rotateY(178deg); }

.flipper .page__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  background: #FAF7F0;
  box-shadow: inset 0 0 30px rgba(21,17,12,0.07);
}
.flipper .page__face--back { transform: rotateY(180deg); }

/* Shadow sweep during flip */
.flipper .page__shadow {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 950ms cubic-bezier(.62,.02,.38,1);
  z-index: 7;
}
.flipper.is-flipping .page__shadow { opacity: 1; }
.flipper--right .page__face--front .page__shadow {
  background: linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}
.flipper--right .page__face--back .page__shadow {
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}
.flipper--left .page__face--front .page__shadow {
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}
.flipper--left .page__face--back .page__shadow {
  background: linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}

/* Same paper fibre on all faces */
.page__face::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.86 0 0 0 0 0.78 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  z-index: 5;
}
/* gutter shadow on flipper faces too */
.flipper--right .page__face--front::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36px;
  background: linear-gradient(-90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
  z-index: 6; pointer-events: none;
}
.flipper--right .page__face--back::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 36px;
  background: linear-gradient(90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
  z-index: 6; pointer-events: none;
}
.flipper--left .page__face--front::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 36px;
  background: linear-gradient(90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
  z-index: 6; pointer-events: none;
}
.flipper--left .page__face--back::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36px;
  background: linear-gradient(-90deg, rgba(21,17,12,0) 0%, rgba(21,17,12,0.25) 100%);
  z-index: 6; pointer-events: none;
}

/* ==========================================================================
   SPREAD LAYOUTS — match Issue's real editorial style
   (from the foto-styleguide: big photo, small elegant caption below)
   ========================================================================== */
.spread {
  position: absolute; inset: 0;
  color: var(--ink);
}
/* COVER — mimics the real Issue cover: giant ISSUE, barcode, forest block */
.spread--cover { background: #FAF7F0; }
.spread--cover .cover__top {
  position: absolute;
  top: 5%; left: 5%; right: 5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.spread--cover .cover__logo {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.85;
  color: var(--ink);
}
.spread--cover .cover__barcode {
  width: 74px;
  height: 26px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 1px, transparent 1px 2px,
    var(--ink) 2px 4px, transparent 4px 6px,
    var(--ink) 6px 7px, transparent 7px 10px);
}
.spread--cover .cover__meta {
  position: absolute;
  top: 18%; left: 5%; right: 5%;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.5;
  max-width: 80%;
}
.spread--cover .cover__meta strong { color: var(--forest); font-weight: 600; }
.spread--cover .cover__meta .yellow { background: var(--warm); padding: 1px 3px; color: var(--ink); }
.spread--cover .cover__photo {
  position: absolute;
  top: 28%; bottom: 12%; left: 22%; right: 5%;
  background-size: cover;
  background-position: center;
}
.spread--cover .cover__block {
  position: absolute;
  top: 28%; bottom: 4%; left: 5%;
  width: 28%;
  background: var(--forest);
}
.spread--cover .cover__footer {
  position: absolute;
  bottom: 3%; left: 5%; right: 5%;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

/* EDITORIAL — clean white, big photo top, small caption, body below (styleguide pattern) */
.spread--article { background: #FAF7F0; padding: 6% 7%; }
.spread__kicker {
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}
.spread__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.03;
  color: var(--ink);
}
.spread__title em { font-style: italic; color: var(--forest); }
.spread__photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.spread__caption {
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(21,17,12,0.55);
  margin-top: 4px;
  line-height: 1.4;
}
.spread__body {
  font-family: var(--serif);
  font-size: 7.5px;
  line-height: 1.55;
  color: var(--ink-2);
  column-gap: 8px;
  text-align: justify;
  hyphens: auto;
}
.spread__pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--forest);
}
.spread__folio {
  position: absolute;
  bottom: 2.5%;
  font-size: 6px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(21,17,12,0.5);
}
.folio--left { left: 5%; }
.folio--right { right: 5%; }

/* ==========================================================================
   VIEWER CONTROLS + TOOLBAR
   ========================================================================== */
.viewer__controls {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  color: var(--paper);
}
.viewer__nav { display: flex; align-items: center; gap: 16px; }
.viewer__btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(247,244,237,0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.viewer__btn:hover { background: var(--paper); color: var(--forest); transform: scale(1.04); }
.viewer__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.viewer__btn:disabled:hover { background: none; color: var(--paper); transform: none; }
.viewer__btn svg { width: 14px; height: 14px; }

.viewer__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.9;
  cursor: text;
  user-select: none;
}
.viewer__counter:hover { opacity: 1; text-decoration: underline dotted rgba(247,244,237,0.5); }

/* Inline page-jump input */
.viewer__page-input {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(247,244,237,0.6);
  color: var(--paper);
  text-align: center;
  width: 3.5ch;
  outline: none;
  padding: 0 2px;
}

.viewer__progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
}
.viewer__progress {
  width: min(320px, 40vw);
  height: 1px;
  background: rgba(247,244,237,0.25);
  position: relative;
}
.viewer__progress-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--paper);
  transition: width 800ms var(--ease);
}

.viewer__actions {
  display: flex;
  gap: 8px;
  justify-self: end;
  align-items: center;
}
.viewer__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(247,244,237,0.4);
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.viewer__action:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.viewer__action svg { width: 12px; height: 12px; }
.viewer__action input { display: none; }

/* Share toast */
.toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   FULLSCREEN OVERLAY
   ========================================================================== */
.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--forest-deep);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease);
}
.fullscreen.is-open {
  opacity: 1;
  pointer-events: auto;
}
.fullscreen__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(247,244,237,0.12);
}
.fullscreen__close {
  width: 40px; height: 40px;
  border: 1px solid rgba(247,244,237,0.3);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.fullscreen__close:hover { background: var(--paper); color: var(--forest); }
.fullscreen__close svg { width: 14px; height: 14px; }
.fullscreen__body {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
}
.fullscreen__stage {
  flex: 1;
  perspective: 2800px;
  perspective-origin: 50% 0%;
  position: relative;
  min-height: 0;
}
.fullscreen__stage .book {
  width: min(94%, 1500px);
  max-height: 96%;
  aspect-ratio: 1880 / 1200;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.fullscreen__controls {
  padding-top: 24px;
  color: var(--paper);
}

/* ==========================================================================
   THEMES
   ========================================================================== */
.themes {
  padding: var(--pad-section) var(--pad-x);
  background: var(--paper);
}
.themes__head {
  max-width: 1400px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 96px;
  align-items: start;
}
.themes__head-side {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.themes__head-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 20ch;
}
.themes__head-title em { font-style: italic; color: var(--forest); }

.themes__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.theme {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: default;
}
.theme__frame {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  filter: grayscale(0.15) brightness(0.98);
  transition: filter 700ms var(--ease), transform 900ms var(--ease);
}
.theme:hover .theme__frame { filter: grayscale(0) brightness(1); transform: scale(1.005); }
.theme__num {
  position: absolute; top: 12px; left: 12px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.theme__season {
  position: absolute; bottom: 12px; right: 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  mix-blend-mode: difference;
}
.theme__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.theme__title em { font-style: italic; color: var(--forest); }
.theme__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.theme__tags {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .themes__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .themes__head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .themes__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SIGNUP
   ========================================================================== */
.signup {
  padding: var(--pad-section) var(--pad-x);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}
.signup__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}
.signup__intro .eyebrow { margin-bottom: 28px; }
.signup__intro h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.signup__intro h2 em { font-style: italic; color: var(--forest); }
.signup__intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 40ch;
}
.signup__intro-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 2.2;
}

.form { display: flex; flex-direction: column; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.field {
  position: relative;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  transition: color 300ms var(--ease);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  padding: 0;
  font-weight: 400;
  resize: none;
  letter-spacing: -0.005em;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(21,17,12,0.3);
  font-style: italic;
}
.form__row > .field { padding-right: 32px; border-right: 1px solid var(--line-soft); }
.form__row > .field:last-child { padding-right: 0; padding-left: 32px; border-right: none; }

.field.has-error { border-bottom-color: #8a3b2c; }
.field.has-error label { color: #8a3b2c; }
.field__error {
  font-size: 10px;
  color: #8a3b2c;
  margin-top: 6px;
  font-style: italic;
  font-family: var(--serif);
}

.form__submit {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.form__disclaimer {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 36ch;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--forest);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 300ms var(--ease), letter-spacing 400ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--forest-deep); letter-spacing: 0.28em; }
.btn svg { width: 16px; height: 10px; }

.form__success {
  padding: 64px 48px;
  border: 1px solid var(--line);
  text-align: center;
  background: var(--paper);
  animation: rise 700ms var(--ease);
}
.form__success-mark {
  width: 48px; height: 48px;
  margin: 0 auto 28px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.form__success h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.form__success h3 em { font-style: italic; color: var(--forest); }
.form__success p {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 auto;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .signup__inner { grid-template-columns: 1fr; gap: 48px; }
  .form__row { grid-template-columns: 1fr; }
  .form__row > .field { border-right: none; padding-right: 0; padding-left: 0; }
  .form__submit { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 80px var(--pad-x) 40px;
  background: var(--forest);
  color: var(--paper);
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(247,244,237,0.15);
  padding-bottom: 56px;
}
.footer__logo {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 20px;
}
.footer__brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.8;
  max-width: 32ch;
  line-height: 1.5;
}
.footer__col h4 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col li { font-size: 13px; opacity: 0.85; transition: opacity 300ms var(--ease); }
.footer__col li a:hover { opacity: 1; }
.footer__bottom {
  max-width: 1400px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   TWEAKS
   ========================================================================== */
.tweaks-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 400;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 16px 48px rgba(21,17,12,0.2);
  animation: rise 300ms var(--ease);
}
.tweaks-panel h5 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tweaks-panel .tweak-row { margin-bottom: 16px; }
.tweaks-panel .tweak-row:last-child { margin-bottom: 0; }
.tweaks-panel .tweak-row > label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.tweaks-panel .swatches { display: flex; gap: 8px; }
.tweaks-panel .swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
}
.tweaks-panel .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--forest); }
.tweaks-panel .seg { display: flex; gap: 4px; border: 1px solid var(--line); padding: 2px; }
.tweaks-panel .seg button {
  flex: 1;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tweaks-panel .seg button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }

/* Ghost page — cover shows alone (no blank left half) */
.page--ghost {
  opacity: 0;
  pointer-events: none;
}
/* Hide spine when cover is showing alone */
.book:has(.page--ghost) .book__spine { opacity: 0; }

/* PDF page loading spinner */
@keyframes page-spin {
  to { transform: rotate(360deg); }
}
.page__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page__loading::after {
  content: "";
  width: 28px; height: 28px;
  border: 1.5px solid rgba(21,17,12,0.12);
  border-top-color: rgba(21,17,12,0.5);
  border-radius: 50%;
  animation: page-spin 0.75s linear infinite;
}

/* mobile book */
@media (max-width: 860px) {
  .stage { aspect-ratio: 235 / 340; perspective: 1600px; }
  .book { width: 90%; aspect-ratio: 235 / 320; }
  .stage[data-mobile="true"] .page--right,
  .stage[data-mobile="true"] .flipper--right { display: none; }
  .stage[data-mobile="true"] .page--left { width: 100%; }
  .stage[data-mobile="true"] .book__spine { display: none; }
}
