/* ============================================================
   STELLAR — landing page styles
   Palette + type per CLAUDE.md (brand constitution)
   ============================================================ */

:root {
  --paper: #F8F5EF;
  --paper-warm: #FBF8F2;
  --paper-deep: #F2EEE5;
  --coral-light: #F37157;
  --coral: #D8492A;
  --coral-deep: #A8331B;
  --ink-blue: #5F6573;
  --space: #1E2230;        /* sampled from podcast cover art */
  --space-deep: #161924;
  --space-raised: #272C3D;
  --cream-line: rgba(248, 245, 239, 0.16);
  --ink-line: rgba(30, 34, 48, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--font-body);
  background: var(--space);
  color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--coral); color: var(--paper-warm); }

/* ---------- shared bits ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sep { color: var(--coral); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.8em;
  border: 2px solid;
  border-radius: 3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translate(-3px, -3px); }
.btn:active { transform: translate(0, 0); box-shadow: none !important; }

.btn-coral {
  background: var(--coral);
  border-color: var(--coral-deep);
  color: var(--paper-warm);
}
.btn-coral:hover { box-shadow: 4px 4px 0 var(--coral-deep); background: var(--coral-light); border-color: var(--coral); color: #fff; }

.btn-ink {
  background: transparent;
  border-color: var(--space);
  color: var(--space);
}
.btn-ink:hover { box-shadow: 4px 4px 0 var(--space); }

.btn-paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--space);
}
.btn-paper:hover { box-shadow: 4px 4px 0 var(--coral); }

.btn-small { padding: 0.7em 1.3em; font-size: 0.7rem; }

.play-tri {
  width: 0; height: 0;
  border-top: 0.38em solid transparent;
  border-bottom: 0.38em solid transparent;
  border-left: 0.6em solid currentColor;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- starfield ---------- */

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--paper);
}

.starfield::before {
  box-shadow:
    8vw 12vh 0 0 rgba(248,245,239,0.9), 22vw 32vh 0 0 rgba(248,245,239,0.5),
    35vw 8vh 0 1px rgba(248,245,239,0.8), 48vw 28vh 0 0 rgba(248,245,239,0.4),
    61vw 14vh 0 0 rgba(248,245,239,0.7), 74vw 36vh 0 1px rgba(248,245,239,0.9),
    88vw 10vh 0 0 rgba(248,245,239,0.5), 14vw 52vh 0 0 rgba(248,245,239,0.6),
    29vw 64vh 0 0 rgba(248,245,239,0.4), 43vw 49vh 0 0 rgba(248,245,239,0.8),
    57vw 70vh 0 0 rgba(248,245,239,0.5), 70vw 58vh 0 0 rgba(248,245,239,0.7),
    83vw 66vh 0 1px rgba(248,245,239,0.4), 94vw 44vh 0 0 rgba(248,245,239,0.8),
    5vw 78vh 0 0 rgba(248,245,239,0.5), 38vw 84vh 0 0 rgba(248,245,239,0.6),
    66vw 88vh 0 0 rgba(248,245,239,0.4), 91vw 80vh 0 0 rgba(248,245,239,0.6);
  animation: twinkle 4.5s ease-in-out infinite;
}

.starfield::after {
  width: 3px; height: 3px;
  box-shadow:
    17vw 22vh 0 0 rgba(248,245,239,0.9), 52vw 16vh 0 0 rgba(243,113,87,0.8),
    79vw 24vh 0 0 rgba(248,245,239,0.7), 10vw 38vh 0 0 rgba(248,245,239,0.5),
    63vw 42vh 0 0 rgba(248,245,239,0.8), 87vw 52vh 0 0 rgba(243,113,87,0.7),
    25vw 74vh 0 0 rgba(248,245,239,0.7), 49vw 92vh 0 0 rgba(248,245,239,0.5),
    73vw 76vh 0 0 rgba(248,245,239,0.8);
  animation: twinkle 6s ease-in-out 1.2s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(22, 25, 36, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* header bar standing in for a full nav on standalone pages (submit-early.html) */
.standalone-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  text-align: center;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(22, 25, 36, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}
.standalone-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { color: var(--coral-light); border-color: var(--coral-light); }

/* ---------- hero ---------- */

.hero { position: relative; }

.hero-space {
  position: relative;
  background: var(--space);
  padding: clamp(2.5rem, 6vh, 5rem) 1.5rem clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.hero-kicker { color: var(--ink-blue); }
.hero-kicker .sep { color: var(--coral); }

.hero-mina {
  position: relative;
  margin: 1.5rem auto 0;
  width: min(680px, 88vw);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.8deg); }
}

/* ---------- dispatch strip (the horizon) ---------- */

.dispatch {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  background: var(--space-deep);
  color: var(--paper);
  text-decoration: none;
  padding: 0.75rem clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--cream-line);
  border-bottom: 2px solid var(--coral);
  transition: background 0.2s ease;
}

.dispatch:hover { background: var(--space-raised); }

.dispatch-label { color: var(--coral-light); }

.dispatch-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.9;
}

.dispatch-listen {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border: 1px solid var(--cream-line);
  border-radius: 2px;
  padding: 0.4em 0.9em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dispatch-listen-ico { display: inline-flex; }
.dispatch-listen-ico svg { width: 1.1em; height: 1.1em; fill: currentColor; display: block; }

.dispatch:hover .dispatch-listen { background: var(--coral); border-color: var(--coral); }

/* ---------- hero paper half ---------- */

.hero-paper {
  position: relative;
  background: var(--paper);
  color: var(--space);
  padding: clamp(1.5rem, 4vw, 3rem) 1.5rem clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.6rem, 17vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--space);
  user-select: none;
}

.hero-sub {
  max-width: 34em;
  margin: 1.2rem auto 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.55;
}

.hero-sub em { color: var(--coral); font-style: normal; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-meta { margin-top: 2.5rem; color: var(--ink-blue); }

/* ---------- halftone paper texture ---------- */

.hero-paper,
.band-paper,
.band-paper-deep {
  background-image: radial-gradient(rgba(30, 34, 48, 0.05) 1px, transparent 1px);
  background-size: 7px 7px;
}

.band-space {
  background-image: radial-gradient(rgba(248, 245, 239, 0.035) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* ---------- bands ---------- */

.band { position: relative; }

.band-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.4rem, 4vw, 3rem);
}

.band-narrow { max-width: 52rem; }

.band-space { background-color: var(--space); color: var(--paper); }

.band-paper {
  background-color: var(--paper);
  color: var(--space);
  border-top: 4px solid var(--coral);
}

.band-paper-deep {
  background-color: var(--paper-deep);
  color: var(--space);
  border-top: 1px solid var(--ink-line);
}

.log-label {
  display: inline-block;
  color: var(--ink-blue);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.45em 0.9em;
  margin-bottom: 2.2rem;
}

.band-space .log-label { color: var(--coral-light); }

.band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.band-title-center { text-align: center; margin-left: auto; margin-right: auto; }

.band-body {
  max-width: 36rem;
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.band-body strong { color: var(--coral); }
.band-space .band-body { color: rgba(248, 245, 239, 0.85); }
.band-space .band-body strong { color: var(--coral-light); }

.featured-label { color: var(--ink-blue); margin-bottom: 0.8rem; }
.band-space .featured-label { color: var(--coral-light); }

/* ---------- podcast band ---------- */

.podcast-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.podcast-art img {
  border: 1px solid var(--cream-line);
  border-radius: 6px;
  box-shadow: 10px 10px 0 var(--space-deep);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.podcast-art:hover img { transform: rotate(0deg); }

.art-caption { color: var(--ink-blue); margin-top: 1.6rem; text-align: center; }

.episode-card {
  background: var(--space-raised);
  border: 1px solid var(--cream-line);
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
}

.ep-meta { color: var(--coral-light); margin-bottom: 0.5rem; }

.ep-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.ep-player { display: flex; align-items: center; gap: 1.1rem; }

.play-btn {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--coral-light);
  background: var(--coral);
  color: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.play-btn:hover { transform: scale(1.08); background: var(--coral-light); }

.play-btn .pause-bars { display: flex; gap: 5px; margin-left: -4px; }
.play-btn .pause-bars span { width: 5px; height: 18px; background: currentColor; }

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  flex: 1;
}

.waveform span {
  flex: 1;
  max-width: 7px;
  height: calc(14% + var(--h, 30%));
  background: var(--coral-light);
  opacity: 0.55;
  border-radius: 2px;
  transform-origin: center;
}

.waveform.playing span {
  animation: wave 0.9s ease-in-out calc(var(--i) * -0.13s) infinite alternate;
  opacity: 0.9;
}

@keyframes wave {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1.25); }
}

/* episode swap — transitions only (no keyframe animations), so there is no
   end-of-animation cleanup moment that can snap or double-settle.
   Phase 1: .swap-out / .lift-out fade the old content away.
   Phase 2: .swap-enter / .drop-enter place the new content offset and
   invisible WITHOUT transition; removing them (after a forced reflow)
   lets the base transition carry everything smoothly into place. */

.episode-card .ep-meta,
.episode-card .ep-title,
.episode-card .ep-player {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.episode-card.swap-out .ep-meta,
.episode-card.swap-out .ep-title,
.episode-card.swap-out .ep-player {
  opacity: 0;
  transform: translateY(-12px);
}

.episode-card.swap-enter .ep-meta,
.episode-card.swap-enter .ep-title,
.episode-card.swap-enter .ep-player {
  opacity: 0;
  transform: translateY(18px);
  transition: none;
}

.ep-load { transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease; }

.ep-load.lift-out {
  opacity: 0;
  transform: translateY(-16px);
}

.ep-load.drop-enter {
  opacity: 0;
  transform: translateY(-12px);
  transition: none;
}

/* featured episode list — buttons that load into the player */

.episode-list {
  list-style: none;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--cream-line);
}

.ep-load {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--cream-line);
  color: var(--paper);
  font-family: inherit;
  padding: 0.8rem 0.6rem;
  cursor: pointer;
}

.ep-load:hover, .ep-load:focus-visible { background: var(--space-raised); }

.ep-load .mono-label { color: var(--coral-light); flex-shrink: 0; min-width: 4.6em; }

.ep-li-title { font-size: 1.02rem; flex: 1; font-family: var(--font-body); }

.platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
}

.platform-row .mono-label { color: var(--ink-blue); }

.platform-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.platform-link:hover { color: var(--coral-light); }

/* ---------- magazine band ---------- */

.magazine-info { max-width: 40rem; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--paper-warm);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 1.7rem 1.6rem;
  text-decoration: none;
  color: var(--space);
  box-shadow: 8px 8px 0 rgba(30, 34, 48, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover, .article-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 rgba(30, 34, 48, 0.14);
}

.article-kind { color: var(--coral); }

.article-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article-dek {
  font-size: 0.95rem;
  color: var(--ink-blue);
  flex: 1;
}

.article-read {
  color: var(--ink-blue);
  transition: color 0.2s ease;
}

.article-card:hover .article-read, .article-card:focus-visible .article-read { color: var(--coral); }

/* print edition progress */

.print-note {
  border: 1px solid var(--ink-line);
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  background: var(--paper-warm);
  padding: 1.4rem 1.6rem;
}

.print-note-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-bottom: 0.9rem;
}

.print-note-label { color: var(--ink-blue); }

.print-note-count { color: var(--space); font-weight: 700; }

.patron-bar {
  border: 1px solid var(--space);
  border-radius: 2px;
  background: var(--paper);
  padding: 3px;
  margin-bottom: 1rem;
}

.patron-bar-fill {
  height: 12px;
  width: 0%;
  background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 12px);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.print-note-body { font-size: 1rem; }

.print-note-body a { color: var(--coral); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.print-note-body a:hover { color: var(--coral-deep); }

.magazine-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cover {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  box-shadow: 14px 14px 0 rgba(30, 34, 48, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cover:nth-child(odd) { transform: rotate(-1.5deg); }
.cover:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }

.cover:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 18px 22px 0 rgba(30, 34, 48, 0.16);
}

/* ---------- support / mission band ---------- */

.mission-copy {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.12rem;
}

.mission-copy p + p { margin-top: 1.4rem; }

.mission-copy strong { color: var(--coral); }

.benefit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem 2.5rem;
  max-width: 38rem;
  margin: 2.4rem auto 0;
}

.benefit-list li {
  position: relative;
  padding-left: 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.benefit-list li::before {
  content: "✶";
  position: absolute;
  left: 0;
  color: var(--coral);
}

.mission-cta {
  text-align: center;
  margin-top: 2.8rem;
}

.mission-cta .btn { margin-bottom: 1.6rem; }

.mission-meta { color: var(--ink-blue); }

/* ---------- submissions band ---------- */

.band-submissions { border-top: 4px solid var(--coral); }

.submissions-grid {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.submissions-mina { animation: float 8s ease-in-out infinite; }

/* ---------- masthead / community band ---------- */

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 2.5rem auto 0;
}

.crew-card { text-align: center; }

.crew-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--space);
  overflow: hidden;
  background: var(--space);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crew-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.08);
}

/* Per-person framing — each headshot has a different aspect/composition.
   Abu: tall portrait, face high → bias the crop upward.
   Leo: square photo, face in upper third → zoom toward the face.
   Mina: wide art, helmet right-of-centre → push X right to centre it. */
.crew-avatar-abu img  { object-position: 50% 12%; transform: scale(1.0); }
.crew-avatar-leo img  { object-position: 50% 50%; transform: scale(1.55); transform-origin: 50% 26%; }
.crew-avatar-mina img { object-position: 60% 22%; transform: scale(1.85); transform-origin: 50% 24%; }

.crew-avatar-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.crew-avatar-coral { background: var(--coral); border-color: var(--coral-deep); }

.crew-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}

.crew-role { color: var(--coral); margin: 0.3rem 0 0.8rem; }

.crew-bio {
  font-size: 0.98rem;
  color: var(--ink-blue);
  max-width: 18rem;
  margin: 0 auto;
}

.community-cta {
  text-align: center;
  margin-top: 3.5rem;
}

.community-line {
  max-width: 36rem;
  margin: 0 auto 1.8rem;
  font-size: 1.08rem;
}

/* ---------- faq band ---------- */

.faq-list { border-top: 1px solid var(--ink-line); }

.faq-list details { border-bottom: 1px solid var(--ink-line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.1rem 0.4rem;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:hover { color: var(--coral); }

.faq-mark {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-list details[open] .faq-mark { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 2.5rem 1.3rem 0.4rem;
  font-size: 1rem;
  color: #3a3f4e;
}

.faq-list details a { color: var(--coral); font-weight: 600; }

/* ---------- footer ---------- */

.footer {
  background: var(--space-deep);
  border-top: 4px solid var(--coral);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.4rem, 4vw, 3rem) 2.5rem;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.2rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--coral-light); }

.footer-colophon { color: var(--ink-blue); }

/* ---------- entrance sequence ----------
   State machine on <html>, set by the head script + js/main.js:
   .intro-active            fullscreen Mina, page held back, scroll locked
   .intro-active.intro-ready    loading resolved, ENTER button offered
   .intro-active.intro-entering  choreography running (hero collapse via JS FLIP)
   .intro-done              normal page (default for repeat/reduced-motion/#hash visits)
   All rules are gated on html.intro-* so the regular page is untouched. */

.intro-dots,
.intro-enter,
.intro-gate { display: none; }

html.intro-active .intro-gate {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-items: center;
  margin-top: clamp(3rem, 8vh, 5.5rem);
  max-height: 240px;
  transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.35s ease;
}
.intro-gate > * { grid-row: 1; grid-column: 1; }

/* the gate is intro-only: it collapses away during the entrance and the
   normal hero is just Mina */
html.intro-entering .intro-gate {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

html.intro-active { overflow: hidden; }

/* The hidden nav still occupies its layout slot, which would push the
   centered content down — pull the hero up over it (--nav-h set by JS)
   and animate the offset away during the collapse. */
html.intro-active .hero-space {
  height: 100vh;
  height: 100svh;
  margin-top: calc(-1 * var(--nav-h, 0px));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bigger Mina while fullscreen. The SCALE lives on the wrapper (specified
   transform, so it transitions smoothly on enter); the FLOAT animation
   stays on the img, uninterrupted across every state — that separation is
   what prevents the scale-down snap. Scale (not width) keeps the layout
   height exactly what the FLIP collapse will measure. pointer-events off:
   the image box is mostly transparent pixels and its scaled hit-area would
   otherwise swallow the ENTER button's hover. */
html.intro-active .mina-wrap {
  pointer-events: none;
  transform: scale(1.22);
}

/* typewriter caret while a kicker segment is typing */
.typing::after {
  content: "▍";
  color: var(--coral-light);
  animation: caret-blink 0.7s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* the three dots are typed like characters by the JS sequence */
html.intro-active .intro-dots { display: inline; }

/* kicker ⇄ ENTER crossfade (they share a grid cell). visibility flips
   after the fade so the invisible kicker can't intercept the button's
   hover — opacity:0 alone keeps it hit-testable AND stacked above the
   fully-faded-in button (opacity:0 forms a stacking context). */
html.intro-active .hero-kicker {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
html.intro-ready .hero-kicker { opacity: 0; visibility: hidden; }

html.intro-active .intro-enter {
  display: inline-flex;
  position: relative;
  z-index: 3;
  align-items: center;
  gap: 0.6em;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 2px;
  padding: 1em 3.2em;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.22em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.2s ease, border-color 0.2s ease;
}
html.intro-ready .intro-enter { opacity: 1; transform: none; pointer-events: auto; }
html.intro-ready .intro-enter:hover { background: var(--coral); border-color: var(--coral); }
html.intro-entering .intro-enter { opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }

/* ---- entrance choreography: the paper curtain ----
   Timeline (seconds after ENTER):
     0.0–0.7   nav drops in
     0.1–1.1   the paper rides UP from below the fold, over Mina, flush to the
               navbar; it spans the full viewport (min-height), so nothing
               shows beneath it (JS sets the translate distance per viewport)
     1.2       UNDER COVER, instantly: hero collapses to natural height, Mina
               scales to 1, the dispatch takes its layout slot invisibly
               (html.intro-covered) — the paper's offset is compensated so it
               stays flush
     1.3–2.0   Stellar wordmark RESOLVES on the raised paper — blur and
               letter-spacing settle into focus, like a signal locking on
     1.9–2.4   "A science fiction magazine…" subtitle (lighter blur resolve)
     2.4–3.1   linger — let it be read
     3.1–4.1   paper (carrying wordmark + subtitle) lowers into final
               position, revealing Mina already in place
     4.1–4.6   dispatch fades in above the settled paper (html.intro-reveal)
     4.4–5.5   CTA buttons, then the EST. 2027 meta line (html.intro-settle)
   JS cleanup fires at 5.6s — keep these in sync with js/main.js.
   Any input after ENTER (scroll / click / key) skips straight to the
   finished page — see skip() in js/main.js. */

html.intro-active .nav {
  transform: translateY(-110%);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.2s;
}
html.intro-entering .nav { transform: translateY(0); }

/* full-viewport curtain; the rise is a JS inline transform */
html.intro-active .hero-paper {
  min-height: calc(100vh - var(--nav-h, 0px));
  min-height: calc(100svh - var(--nav-h, 0px));
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}

/* the instant scene change while the curtain covers everything */
html.intro-covered .hero-space {
  height: auto;
  margin-top: 0;
  padding: clamp(2.5rem, 6vh, 5rem) 1.5rem clamp(2rem, 5vw, 4rem);
}

html.intro-covered .mina-wrap { transform: scale(1); }

/* the wordmark arrives like a transmission resolving: blur sharpens and the
   tracking settles tight as it fades up */
html.intro-active .hero-wordmark {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  letter-spacing: 0.02em;
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.1s, transform 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.1s, filter 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.1s, letter-spacing 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.1s;
}
html.intro-covered .hero-wordmark {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  letter-spacing: -0.035em;
}

html.intro-active .hero-sub,
html.intro-active .hero-ctas,
html.intro-active .hero-meta {
  opacity: 0;
  transform: translateY(24px);
}

html.intro-active .hero-sub {
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.7s, transform 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.7s, filter 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.7s;
}
html.intro-covered .hero-sub { opacity: 1; transform: none; filter: blur(0); }

/* dispatch: zero-height while the curtain rises; takes its layout slot
   invisibly under cover; finally fades in ABOVE the settled paper */
html.intro-active .dispatch {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  overflow: hidden;
}
html.intro-covered .dispatch {
  max-height: 200px;
  opacity: 0;
  transform: translateY(-14px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top-width: 1px;
  border-bottom-width: 2px;
}
html.intro-reveal .dispatch {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1), transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* the last beat, once the paper has settled */
html.intro-settle .hero-ctas {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

html.intro-settle .hero-meta {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.45s, transform 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.45s;
}

/* ---------- modal component (listen + magazine) ----------
   Native <dialog class="modal">; JS toggles .is-open one frame after
   showModal() so the enter transition runs (a <dialog> goes display:none →
   block on open, which would otherwise skip it). Same trick on close, then
   close(). The only per-modal piece is the cover (.listen-cover full-bleed
   square vs .magazine-cover contained portrait). */
/* Scroll lock while a modal is open. We pin <body> (position:fixed) rather than
   just setting overflow:hidden on <html> — the latter resets the page scroll to
   the top. JS sets body's inline `top: -scrollY` so the page looks unchanged. */
html.modal-open { overflow: hidden; }
html.modal-open body {
  position: fixed;
  inset-inline: 0;
  width: 100%;
}

.modal {
  position: relative;
  width: clamp(300px, 90vw, 420px);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  /* the global `* { margin: 0 }` reset wipes the UA's margin:auto that centers
     a modal dialog — restore it so the panel sits centered in the viewport. */
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-left: 4px solid var(--coral);
  border-radius: 3px;
  background: var(--paper-warm);
  color: var(--space);
  box-shadow: 10px 10px 0 rgba(30, 34, 48, 0.12);
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.33, 1, 0.68, 1), transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.modal.is-open { opacity: 1; transform: none; }

.modal::backdrop {
  background: rgba(22, 25, 36, 0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.is-open::backdrop { opacity: 1; }

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(22, 25, 36, 0.55);
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--coral); }

.modal-label {
  color: var(--ink-blue);
  padding: 1.1rem 1.25rem 0;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem 1.25rem;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  text-decoration: none;
  color: var(--space);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.modal-option:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--coral);
  color: var(--coral);
  border-color: var(--coral);
}
.modal-option:active { transform: none; box-shadow: none; }

.modal-option-ico { display: inline-flex; flex-shrink: 0; }
.modal-option-ico svg { width: 22px; height: 22px; fill: currentColor; display: block; }

.modal-option-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.modal-option-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}
.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-blue);
  margin-left: 0.45em;
}
.modal-option-desc {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-blue);
}

/* trailing arrow cue: ↗ for external (new tab), → for internal */
.modal-option-arrow {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-blue);
  transition: transform 0.18s ease, color 0.18s ease;
}
.modal-option:hover .modal-option-arrow {
  color: var(--coral);
  transform: translate(2px, -2px);
}

/* per-modal covers */
.listen-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--ink-line);
}

/* waitlist modal has no cover image, so the title sits at the top — give it
   room to clear the absolute-positioned close button. */
#waitlistModal .modal-label { padding-top: 1.4rem; padding-right: 2.8rem; }

/* two portrait covers, fanned out like a stack of magazines on a table */
.magazine-covers {
  position: relative;
  /* height drives the cover size; min() keeps it safe on narrow phones (vw)
     and short laptops (svh) while letting it grow big on roomy screens. */
  height: clamp(210px, min(58vw, 42svh), 320px);
  margin: 1.9rem auto 1rem;
}
.magazine-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: auto;
  border: 1px solid var(--ink-line);
  box-shadow: 0 10px 22px rgba(30, 34, 48, 0.22);
  transform-origin: center;
}
.magazine-cover.is-back { transform: translate(calc(-50% - 26px), -50%) rotate(-9deg); z-index: 1; }
.magazine-cover.is-front { transform: translate(calc(-50% + 12px), -50%) rotate(5deg); z-index: 2; }

/* coral inline link (e.g. "Join the waitlist") */
.link-coral {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.link-coral:hover { color: var(--coral-deep); }

/* ---------- waitlist form (inside the waitlist modal) ---------- */
.waitlist-form { display: flex; flex-direction: column; gap: 1rem; padding: 0.95rem 1.25rem 1.4rem; }
/* `display:flex` above overrides the UA `[hidden]{display:none}`, so the JS
   `form.hidden = true` on success wouldn't hide the form. This attr+class rule
   outranks it, so the form (fields + button) actually disappears. */
.waitlist-form[hidden] { display: none; }

.waitlist-intro { font-size: 0.96rem; color: var(--ink-blue); line-height: 1.55; }

.waitlist-field { display: flex; flex-direction: column; gap: 0.4rem; }

.waitlist-label { color: var(--ink-blue); }
.waitlist-req { color: var(--coral); }
.waitlist-opt { color: var(--ink-blue); opacity: 0.75; text-transform: none; letter-spacing: 0; }

.waitlist-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--space);
  background: var(--paper-deep);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.waitlist-field input::placeholder { color: var(--ink-blue); opacity: 0.6; }
.waitlist-field input:focus-visible {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(216, 73, 42, 0.18);
}

.waitlist-submit { justify-content: center; margin-top: 0.3rem; position: relative; overflow: hidden; }

.waitlist-submit.is-loading { opacity: 0.9; cursor: wait; }

.waitlist-submit.is-loading::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.waitlist-submit.is-loading::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 40%;
  height: 3px;
  background: var(--paper-warm);
  animation: loading-sweep 1.1s ease-in-out infinite;
}

@keyframes loading-sweep {
  0%   { left: -40%; }
  100% { left: 100%; }
}

.waitlist-success { padding: 1.4rem 1.5rem 2.2rem; text-align: center; }
.waitlist-success-mark { color: var(--coral); font-size: 2rem; line-height: 1; margin-bottom: 0.6rem; }
.waitlist-success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--space);
  margin-bottom: 0.4rem;
}
.waitlist-success-body { font-size: 0.98rem; color: var(--ink-blue); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .podcast-grid,
  .submissions-grid { grid-template-columns: 1fr; }

  .podcast-art { max-width: 340px; margin: 0 auto; }

  /* order: 2 puts the illustration after the text when the grid stacks —
     a phone visitor's first screen should lead with the headline */
  .submissions-mina { max-width: 320px; margin: 0 auto; order: 2; }

  /* submit-early.html wants the opposite: Mina leads before the text */
  .submit-early .submissions-mina { order: 0; }

  .nav-links { display: none; }

  .dispatch { flex-direction: column; text-align: center; gap: 0.6rem; }
}

@media (max-width: 640px) {
  .magazine-showcase { flex-direction: column; align-items: center; }
  .cover { flex: none; width: min(85%, 420px); }
}

@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mina,
  .submissions-mina,
  .starfield::before,
  .starfield::after,
  .waveform.playing span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .episode-card .ep-meta,
  .episode-card .ep-title,
  .episode-card .ep-player,
  .ep-load,
  .patron-bar-fill,
  .modal,
  .modal::backdrop,
  .modal-option,
  .modal-option-arrow,
  .cs-fields { transition: none; }
  /* the form fields still gate on the button click, just without the slide. */
  .waitlist-submit.is-loading::before { animation: none; left: 0; width: 100%; }
}

/* ============================================================
   SUB-PAGES — submissions.html + article.html
   Standalone pages; they reuse nav/footer/bands and add the
   components below. No entrance sequence on these pages.
   ============================================================ */

/* ---------- submissions page ---------- */
.subs-lead { max-width: 40rem; }

/* quick-facts cards ("the basics") */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}
.spec-card {
  background: var(--paper-warm);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
}
.band-space .spec-card { background: var(--space-raised); border-color: var(--cream-line); }
.spec-card-label { color: var(--coral); margin-bottom: 0.5rem; }
.band-space .spec-card-label { color: var(--coral-light); }
.spec-card-val { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.spec-card-val a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.spec-card-val a:hover { color: var(--coral); }
.band-space .spec-card-val a:hover { color: var(--coral-light); }

/* spec sheet — aligned two-column readout (submissions "the basics").
   A ruled table scans far better than a grid of ragged boxes. Base is
   paper-safe; the .band-space overrides light it for the starfield. */
.spec-sheet { margin-top: 1rem; border-top: 1px solid var(--ink-line); }
.spec-sheet > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--ink-line);
}
.spec-sheet dt { color: var(--coral); align-self: center; }
.spec-sheet dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.spec-sheet dd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.spec-sheet dd a:hover { color: var(--coral); }

.band-space .spec-sheet { border-top-color: var(--cream-line); }
.band-space .spec-sheet > div { border-bottom-color: var(--cream-line); }
.band-space .spec-sheet dt { color: var(--coral-light); }
.band-space .spec-sheet dd { color: var(--paper); }
.band-space .spec-sheet dd a:hover { color: var(--coral-light); }

/* narrow screens: stack label over value so short measures don't cramp */
@media (max-width: 420px) {
  .spec-sheet > div { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* spacing for a second label / follow-up note inside one band */
.log-label-followup { margin-top: 3.2rem; }
.band-note { margin-top: 2.2rem; }
.band-note + .band-note { margin-top: 1rem; }

/* want / not-a-fit lists */
.mark-list { list-style: none; max-width: 40rem; display: grid; gap: 0.75rem; margin-top: 0.4rem; }
.mark-list li { position: relative; padding-left: 1.9rem; font-size: 1.05rem; }
.mark-list li::before {
  position: absolute; left: 0; top: 0.15rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
}
.want-list li::before { content: "✦"; color: var(--coral); }
.nope-list li::before { content: "✕"; color: var(--ink-blue); }
.band-space .want-list li::before { color: var(--coral-light); }

/* rights summary */
.rights-list { display: grid; gap: 1.2rem; max-width: 42rem; margin-top: 0.5rem; }
.rights-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 0.15rem; }
.rights-list dd { color: var(--ink-blue); font-size: 0.99rem; }
.band-space .rights-list dd { color: rgba(248, 245, 239, 0.82); }

/* one-hard-rule callout */
.rule-box {
  border: 1px solid var(--coral);
  border-left: 4px solid var(--coral);
  border-radius: 3px;
  background: var(--paper-warm);
  padding: 1.6rem 1.8rem;
  max-width: 44rem;
}
.band-space .rule-box { background: var(--space-raised); }
.rule-box p + p { margin-top: 0.9rem; }

/* submit gate — checkbox unlocks the button */
.submit-gate { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; margin-top: 1.2rem; }
.gate-check {
  display: flex; gap: 0.7rem; align-items: flex-start;
  cursor: pointer; font-size: 1.02rem; max-width: 36rem; line-height: 1.5;
}
.gate-check input {
  width: 1.2rem; height: 1.2rem; margin-top: 0.28rem;
  accent-color: var(--coral); flex-shrink: 0; cursor: pointer;
}
.btn.is-disabled { opacity: 0.4; pointer-events: none; cursor: not-allowed; box-shadow: none; transform: none; }

/* community CTA below the submit gate */
.subs-community {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--ink-line);
}
.subs-community .band-body { margin-bottom: 1.4rem; }

/* ---------- article page ---------- */
.article-head { max-width: 50rem; }
.article-kicker { display: inline-block; color: var(--coral-light); margin-bottom: 1.4rem; }
.article-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.article-dek {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: rgba(248, 245, 239, 0.85);
  max-width: 38rem;
  line-height: 1.5;
  margin-bottom: 1.9rem;
}
.article-byline { color: var(--ink-blue); display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.article-byline .sep { color: var(--coral-light); }

.article-body { max-width: 40rem; margin: 0 auto; }
.article-body > p { font-size: 1.13rem; line-height: 1.85; margin-bottom: 1.5rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.8rem 0 1.1rem;
}
.article-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.article-body em { font-style: italic; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.32;
  color: var(--space);
  border-left: 4px solid var(--coral);
  padding-left: 1.4rem;
  margin: 2.6rem 0;
}

/* optional in-body image slots (template — swap or delete) */
.article-figure { margin: 2.4rem 0; }
.article-figure img {
  width: 100%;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(30, 34, 48, 0.1);
}
.article-figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-blue);
}
/* a portrait image (e.g. a cover) shouldn't fill the whole measure — centre it */
.article-figure.is-portrait img { width: auto; max-width: min(100%, 360px); margin: 0 auto; }

.article-foot { text-align: center; }
.article-foot .band-title { margin-left: auto; margin-right: auto; }

/* ---------- print page ---------- */
/* Launch gate: print.html ships in the waitlist state. On launch day add
   class="print-live" to its <body> (see the comment atop print.html) and the
   .only-waitlist blocks swap out for the .only-live ones. Defaulting to
   waitlist means a forgotten class can never show a dead buy button; the
   !important outranks component display rules like .waitlist-form's flex. */
body:not(.print-live) .only-live { display: none !important; }
body.print-live .only-waitlist { display: none !important; }

/* print-vs-Patreon comparison — two cards that stack on narrow screens */
.print-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}
.print-compare .mark-list { max-width: none; margin-top: 1.1rem; }
.print-compare .mark-list li { font-size: 1rem; }
.print-compare .nope-list { margin-top: 0.85rem; }
.print-compare-cta { margin-top: 1.1rem; }
/* the ✕ marker's ink-blue reads as invisible on the space band */
.band-space .nope-list li::before { color: rgba(248, 245, 239, 0.55); }

/* CTA box — the waitlist form / buy button live inside a rule-box on paper */
.print-cta { margin-top: 1.2rem; max-width: 34rem; }
.print-cta .waitlist-form { padding: 0.9rem 0 0; }
.print-cta .waitlist-success { padding: 0.9rem 0 0.3rem; text-align: left; }
.print-cta-status { color: var(--ink-blue); }
.print-cta-btn { margin-top: 1.2rem; }
.print-cta-meta { margin-top: 1rem; color: var(--ink-blue); }
.print-manage { margin-top: 1.3rem; font-size: 0.95rem; color: var(--ink-blue); }

/* ============================================================
   COMING SOON — standalone pre-launch teaser (coming-soon.html)
   A space scene that flows: title + subtitle, then two labelled
   product showcases (podcast art, then the magazine covers in a
   flat row), then the progressive waitlist form. Reuses the home
   hero's pieces (.starfield, .hero-wordmark, .waitlist-form) and
   adds the light-on-dark colour overrides the paper-tuned classes
   need on .band-space.
   ============================================================ */

.coming-soon {
  min-height: 100vh;
  min-height: 100dvh;          /* dvh dodges the mobile URL-bar jump */
  display: flex;
  flex-direction: column;
  justify-content: safe center; /* centre when short; top-align + scroll when
                                   the content is taller than the viewport
                                   (plain `center` would clip the unreachable top) */
  text-align: center;
  padding: clamp(2.5rem, 7vh, 5rem) 1.5rem;
  overflow-x: clip;
}

.coming-soon-inner {
  position: relative;          /* sits above the .starfield pseudo-elements */
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

/* ---------- image triptych (alien cover · podcast art · utopia cover) ---------- */
/* Flat row, no overlap; centre-aligned so the shorter covers balance around the
   taller, slightly larger podcast art. A small icon sits above each image. */
.cs-trio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  max-width: 40rem;
  margin: 0 auto;
}
.cs-trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0;                   /* it's a <figure> */
}
.cs-trio-cover,
.cs-trio-art {
  border: 1px solid var(--ink-line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.cs-trio-art   { width: clamp(120px, 32vw, 240px); border-radius: 6px; }  /* focal */
.cs-trio-cover { width: clamp(88px, 21vw, 155px);  border-radius: 3px; }  /* flanking */

/* ---------- wordmark / subtitle / status ---------- */
/* "Coming soon" title — coloured light for the dark band (the home wordmark is
   --space). Sized to sit on one line on desktop and wrap cleanly on phones. */
.cs-wordmark { color: var(--paper); margin-top: clamp(2.8rem, 7vh, 4.5rem); font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: 1.0; }
.cs-sub { color: var(--paper); opacity: 0.92; }
.cs-status { color: var(--coral-light); margin-top: 1.3rem; }

/* ---------- progressive form ---------- */
.cs-form { max-width: 24rem; margin: 1.6rem auto 0; padding: 0; gap: 0; }

/* The two fields stay collapsed until the button is first clicked. A
   max-height clip is used (rather than the grid 0fr trick, whose track won't
   fully collapse here) — the two short fields never approach the open cap. */
.cs-fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.cs-fields.is-open { max-height: 260px; opacity: 1; }
.cs-fields-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.1rem;      /* space before the button when open */
}

/* The fields keep their own light backgrounds, so they read fine on the dark
   band; only the labels (ink-blue) need lifting for contrast. */
.coming-soon .waitlist-label { color: var(--paper); opacity: 0.7; }

.cs-success { color: var(--paper); }
.coming-soon .waitlist-success-title { color: var(--paper); }
.coming-soon .waitlist-success-body { color: var(--paper); opacity: 0.8; }

/* ---------- secondary CTA (submit-early.html) ---------- */
.cs-secondary { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--cream-line); }
.cs-secondary-label { color: var(--paper); opacity: 0.7; margin-bottom: 1rem; }
.coming-soon .btn-ink { border-color: var(--paper); color: var(--paper); }
.coming-soon .btn-ink:hover { box-shadow: 4px 4px 0 var(--paper); }

/* ============================================================
   PRICING — pricing.html (standalone build, not yet linked from
   the rest of the site). One space scene: 2-sentence hero, the
   "unlock board" (tier track + always-visible benefit rows that
   unlock with a staggered sweep + print switch + all-in total),
   and a mono fine-print strip. Prices and copy are rendered by
   the page's inline JS from PRICES/HEADLINES — don't hard-code
   numbers here. All state changes are transitions (conventions).
   ============================================================ */

/* the console — one raised card holding the whole interactive */
.board {
  position: relative;
  background: var(--space-raised);
  border: 1px solid var(--cream-line);
  border-radius: 6px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 58rem;
  margin-top: 1rem;
}

/* tier track — 4 segments over hidden radios, coral thumb slides on --i */
.tier-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--cream-line);
  border-radius: 4px;
  background: var(--space-deep);
  padding: 0.35rem;
  min-inline-size: 0;
}
.tier-thumb {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc((100% - 0.7rem) / 4);
  background: var(--coral);
  border-radius: 3px;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tier-seg {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  padding: 0.8rem 0.4rem 0.7rem;
  border-radius: 3px;
  cursor: pointer;
}
.tier-seg-name { font-weight: 700; color: rgba(248, 245, 239, 0.75); transition: color 0.25s ease; }
.tier-seg-price { font-size: 0.62rem; color: rgba(248, 245, 239, 0.45); transition: color 0.25s ease; }
.tier-seg:hover .tier-seg-name { color: var(--paper); }
/* Checked/on states are duplicated: JS toggles .is-active/.is-on (primary),
   and the :has() twins cover the no-JS default state in real browsers.
   KEEP THE TWINS AS SEPARATE RULES, never comma-paired — an engine that
   rejects :has() drops the ENTIRE selector list, taking the class rule with
   it (this bit us in the preview iframe, which never applies :has() rules). */
.tier-seg.is-active .tier-seg-name { color: var(--paper-warm); }
.tier-seg:has(input:checked) .tier-seg-name { color: var(--paper-warm); }
.tier-seg.is-active .tier-seg-price { color: rgba(251, 248, 242, 0.85); }
.tier-seg:has(input:checked) .tier-seg-price { color: rgba(251, 248, 242, 0.85); }
.tier-seg:has(input:focus-visible) { outline: 2px solid var(--coral-light); outline-offset: 2px; }

/* narrative readout — headline rewrites per tier with a fade/rise swap */
.board-read { margin: 1.9rem 0 1.6rem; transition: opacity 0.16s ease, transform 0.16s ease; }
.board-read.is-swapping { opacity: 0; transform: translateY(7px); }
.board-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  min-height: 2.36em;   /* two lines, so one-line headlines don't jump the board */
}
.board-price { color: var(--coral-light); margin-top: 0.6rem; }

/* the benefit board — every row always visible; lower tiers see what's locked */
.board-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-line);
}
.board-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-left: 1.7rem;
  font-size: 1rem;
  color: rgba(248, 245, 239, 0.35);
  transition: color 0.4s ease;
  transition-delay: 0ms;  /* JS sets per-row delays for the unlock sweep */
}
.board-row-text { flex: 1; min-width: 0; }
.board-marks {
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.05rem;
  height: 1.2em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}
.board-marks span { position: absolute; inset: 0; transition: opacity 0.4s ease; transition-delay: inherit; }
.mark-on  { color: var(--coral-light); opacity: 0; }
.mark-off { color: rgba(248, 245, 239, 0.3); opacity: 1; }
.board-tag {
  font-size: 0.6rem;
  color: rgba(248, 245, 239, 0.4);
  white-space: nowrap;
  transition: opacity 0.4s ease;
  transition-delay: inherit;
}
.board-row.is-unlocked { color: var(--paper); }
.board-row.is-unlocked .mark-on  { opacity: 1; }
.board-row.is-unlocked .mark-off { opacity: 0; }
.board-row.is-unlocked .board-tag { opacity: 0; }

/* print switch — structurally NOT a tier; its own control below the board */
.print-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-line);
  cursor: pointer;
}
.switch-ui {
  position: relative;
  flex-shrink: 0;
  width: 2.9rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--space-deep);
  border: 1px solid var(--cream-line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.55rem - 6px);
  height: calc(1.55rem - 6px);
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.25s ease;
}
.print-switch.is-on .switch-ui { background: var(--coral); border-color: var(--coral-deep); }
.print-switch:has(input:checked) .switch-ui { background: var(--coral); border-color: var(--coral-deep); }
.print-switch.is-on .switch-ui::after { transform: translateX(1.34rem); }
.print-switch:has(input:checked) .switch-ui::after { transform: translateX(1.34rem); }
.print-switch:has(input:focus-visible) .switch-ui { outline: 2px solid var(--coral-light); outline-offset: 2px; }
.print-switch-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--paper); }
.print-switch-meta { display: block; margin-top: 0.15rem; color: rgba(248, 245, 239, 0.5); }

/* total + CTA row */
.board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-line);
}
.board-total-label { color: var(--coral-light); }
.board-total-amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.1;
  margin-top: 0.25rem;
}
.board-total-sub { display: block; font-size: 0.92rem; color: rgba(248, 245, 239, 0.6); max-width: 24rem; }
.board-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
/* .btn's display:inline-flex outranks the UA [hidden] rule (same trap as
   .waitlist-form[hidden]) — this keeps the swapped-out CTA actually gone */
.board-ctas [hidden] { display: none !important; }
.board-print-link { color: rgba(248, 245, 239, 0.7); }
.board-print-link a { color: var(--coral-light); text-decoration: underline; text-underline-offset: 2px; }

/* fine-print strip — the entire small print, one mono block */
.fine-strip {
  margin-top: 2.4rem;
  max-width: 58rem;
  color: rgba(248, 245, 239, 0.45);
  line-height: 2.1;
}
.fine-strip a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fine-strip a:hover { color: var(--coral-light); }

@media (max-width: 860px) {
  .board-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tier-track { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .tier-thumb { display: none; }
  .tier-seg { background: var(--space-raised); transition: background 0.25s ease; }
  .tier-seg.is-active { background: var(--coral); }
  .tier-seg:has(input:checked) { background: var(--coral); }
  .board-foot { flex-direction: column; align-items: stretch; }
  .board-ctas .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tier-thumb,
  .tier-seg,
  .tier-seg-name,
  .tier-seg-price,
  .board-read,
  .board-row,
  .board-marks span,
  .board-tag,
  .switch-ui,
  .switch-ui::after { transition: none; }
}

