:root {
  color-scheme: dark;
  --ink: #f8f5f0;
  --muted: #bcb7c3;
  --night: #08070d;
  --night-soft: #12101a;
  --line: rgba(255, 255, 255, 0.18);
  --pink: #ff4fd8;
  --cyan: #43d9ff;
  --solar: #ff8a28;
  --gold: #f4ca72;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.cosmic-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 87, 31, 0.18), transparent 24rem),
    linear-gradient(180deg, #0c0810 0%, #07070d 62%, #0b0a12 100%);
}

.cosmic-field::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(67, 217, 255, 0.65) 0 1px, transparent 1.2px);
  background-position: 0 0, 37px 61px;
  background-size: 89px 89px, 131px 131px;
  animation: star-drift 40s linear infinite;
}

.sun {
  position: absolute;
  top: -13rem;
  left: 50%;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ffbc48;
  box-shadow: 0 0 2rem #ff8229, 0 0 8rem rgba(255, 59, 20, 0.75);
  animation: solar-pulse 7s ease-in-out infinite;
}

.beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 78vh;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 24px var(--pink), 0 0 60px var(--pink);
  opacity: 0.8;
}

.signal {
  position: absolute;
  left: 50%;
  top: 30vh;
  width: 14rem;
  aspect-ratio: 1;
  border: 1px solid rgba(67, 217, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: signal 7s linear infinite;
}

.signal-two {
  animation-delay: 2.3s;
}

.signal-three {
  animation-delay: 4.6s;
}

.campaign-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.wordmark {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  text-transform: none;
}

.hero {
  min-height: calc(100svh - 68px);
  padding: clamp(2.5rem, 7vh, 5rem) 20px 1.5rem;
  display: grid;
  align-content: center;
}

.hero-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
  grid-template-areas: "cover copy";
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

body[data-variant="b"] .hero-shell {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  grid-template-areas: "copy cover";
}

.cover-stage {
  grid-area: cover;
  position: relative;
  margin: 0;
}

.cover-stage::before {
  content: "";
  position: absolute;
  inset: 3% -4% -3% 5%;
  z-index: -1;
  border: 1px solid rgba(255, 79, 216, 0.45);
  transform: rotate(2deg);
}

.cover-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.cover-stage figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-copy {
  grid-area: copy;
  max-width: 700px;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.96;
  text-wrap: balance;
}

body[data-variant="b"] h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.premise {
  max-width: 620px;
  margin: 1.6rem 0 0;
  color: #e5e0e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.format-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.format-line span + span::before {
  content: "•";
  margin-right: 1rem;
  color: var(--pink);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-width: 190px;
  min-height: 62px;
  padding: 0.75rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.continue:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.button span {
  font-weight: 800;
}

.button small {
  margin-top: 0.18rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.buy {
  background: var(--ink);
  color: #0b0910;
}

.listen {
  border-color: rgba(67, 217, 255, 0.55);
  background: rgba(9, 8, 15, 0.72);
  color: var(--ink);
}

.store-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.continue {
  width: fit-content;
  margin: 2.5rem auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
}

.premise-band,
.reader-band,
.closing {
  padding: clamp(5rem, 10vw, 9rem) max(20px, calc((100vw - var(--max)) / 2));
}

.premise-band {
  background: rgba(10, 9, 16, 0.92);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 900px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

.sequence {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
}

.sequence li {
  min-height: 280px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.sequence li:last-child {
  border-right: 0;
}

.sequence li > span {
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.sequence h3 {
  margin: 3rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.sequence p,
.reader-band li,
.closing p {
  color: var(--muted);
  line-height: 1.65;
}

.quote-band {
  min-height: 75vh;
  padding: 7rem 20px;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(8, 7, 13, 0.64), rgba(8, 7, 13, 0.85)),
    url("cover.jpeg") center 43% / cover;
  background-attachment: fixed;
}

.quote-band blockquote {
  max-width: 1050px;
  margin: 0 auto;
}

.quote-band blockquote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 5.8rem);
  line-height: 1.05;
  text-wrap: balance;
}

.quote-band > div {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  color: #eee9f0;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.reader-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  background: #f2eee9;
  color: #15121a;
}

.reader-band .kicker {
  color: #9b176f;
}

.reader-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(21, 18, 26, 0.22);
}

.reader-band li {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(21, 18, 26, 0.22);
  color: #403a45;
}

.closing {
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(150px, 270px) minmax(0, 680px);
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  background: rgba(8, 7, 13, 0.92);
}

.closing > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.closing p {
  max-width: 600px;
  font-size: 1.08rem;
}

.closing .purchase-actions {
  margin-top: 2rem;
}

footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes star-drift {
  to { transform: translateY(89px); }
}

@keyframes solar-pulse {
  50% { transform: translateX(-50%) scale(1.04); filter: brightness(1.2); }
}

@keyframes signal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  15% { opacity: 0.65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5); }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-shell,
  body[data-variant="b"] .hero-shell {
    grid-template-columns: minmax(120px, 34vw) minmax(0, 1fr);
    grid-template-areas: "cover copy";
    gap: 1.5rem;
    align-items: start;
  }

  h1,
  body[data-variant="b"] h1 {
    font-size: clamp(2.25rem, 9vw, 4.2rem);
  }

  .premise {
    font-size: 1rem;
  }

  .purchase-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .sequence {
    grid-template-columns: 1fr;
  }

  .sequence li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reader-band {
    grid-template-columns: 1fr;
  }

  .quote-band {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .campaign-header span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell,
  body[data-variant="b"] .hero-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "cover";
  }

  .cover-stage {
    width: min(72vw, 320px);
    margin: 1.5rem auto 0;
  }

  .format-line span + span::before {
    display: none;
  }

  .format-line {
    flex-direction: column;
  }

  .closing {
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
  }

  .closing .purchase-actions {
    grid-column: 1 / -1;
  }

  footer {
    padding-block: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cosmic-field::before,
  .sun,
  .signal {
    animation: none;
  }

  .signal {
    display: none;
  }
}
