:root {
  --cosmic-black: #020611;
  --deep-space: #06101f;
  --milky-blue: #0b2240;
  --moon-blue: #163d68;
  --warm-ivory: #fff8eb;
  --soft-ivory: #ece2d2;
  --antique-gold: #dba646;
  --warm-amber: #f0b457;
  --line: rgba(219, 166, 70, 0.28);
  --panel: rgba(5, 12, 25, 0.48);
  --header-height: 76px;
  --light-x: 22%;
  --light-y: 38%;
  --light-opacity: 0.14;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cosmic-black);
}

body {
  position: relative;
  margin: 0;
  color: var(--warm-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

::selection {
  background: rgba(219, 166, 70, 0.3);
  color: #fff8ea;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--cosmic-black);
  background: var(--warm-amber);
}

.skip-link:focus {
  top: 1rem;
}

#starfield,
.cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cosmos {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(31, 103, 168, .62), transparent 31%),
    radial-gradient(circle at 82% 70%, rgba(17, 66, 119, .56), transparent 38%),
    radial-gradient(ellipse at 52% 42%, rgba(42, 88, 140, .22), transparent 46%),
    linear-gradient(145deg, #07182d 0%, #020712 48%, #08172c 100%);
}

#starfield {
  z-index: 2;
}

.cosmos__nebula {
  position: absolute;
  width: 72vw;
  height: 56vw;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .38;
  mix-blend-mode: screen;
  will-change: transform;
}

.cosmos__nebula--one {
  left: -18vw;
  top: 8vh;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(28, 97, 158, .68), transparent 28%),
    radial-gradient(ellipse at 58% 36%, rgba(74, 125, 170, .28), transparent 42%),
    radial-gradient(ellipse at 38% 62%, rgba(7, 49, 91, .65), transparent 55%);
  animation: nebula-drift-one 46s ease-in-out infinite alternate;
}

.cosmos__nebula--two {
  right: -22vw;
  bottom: -16vh;
  background:
    radial-gradient(ellipse at 46% 44%, rgba(31, 78, 132, .5), transparent 30%),
    radial-gradient(ellipse at 58% 52%, rgba(102, 65, 108, .12), transparent 48%);
  animation: nebula-drift-two 58s ease-in-out infinite alternate;
}

.cosmos__light {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y),
      rgba(240, 180, 87, var(--light-opacity)) 0,
      rgba(219, 137, 44, .055) 20%,
      rgba(72, 113, 159, .03) 36%,
      transparent 62%);
  transition:
    background-position 2.8s ease,
    opacity 2.8s ease;
  filter: blur(26px);
  mix-blend-mode: screen;
}

.cosmos__grain {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cosmos__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 28%, rgba(0, 3, 10, .22) 68%, rgba(0, 2, 8, .62) 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 5;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  border-bottom: 1px solid rgba(219, 166, 70, .14);
  background: linear-gradient(to bottom, rgba(2, 6, 17, .88), rgba(2, 6, 17, .56));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: .04em;
}

.brand__mark {
  color: var(--antique-gold);
  font-size: .9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.25rem);
}

.site-nav a {
  text-decoration: none;
  color: var(--soft-ivory);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--warm-amber);
}

.menu-button {
  display: none;
}

.scene {
  position: relative;
  overflow-x: clip;
  min-height: 92vh;
  padding: clamp(7rem, 11vw, 10rem) clamp(1.35rem, 7vw, 8rem);
  display: grid;
  align-content: center;
}

.scene--hero {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 3rem);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy {
  width: min(840px, 100%);
  justify-self: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--warm-amber);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.author-line,
.closing-line {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6.6vw, 7rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.025em;
}

h1 span {
  color: var(--warm-amber);
}

h1 small {
  font-size: .52em;
  letter-spacing: .04em;
}

.author-line {
  margin: 1.8rem 0 .2rem;
  color: var(--warm-ivory);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-style: italic;
}

.publication {
  margin: 2.35rem 0 1.4rem;
  color: var(--soft-ivory);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  gap: clamp(1rem, 3vw, 2.6rem);
  margin-bottom: 2.1rem;
}

.countdown div {
  min-width: 54px;
}

.countdown strong {
  display: block;
  color: var(--warm-amber);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.countdown span {
  display: block;
  color: var(--soft-ivory);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.35rem;
  border: 1px solid rgba(245, 237, 221, .36);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

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

.button--primary {
  border-color: var(--warm-amber);
  color: #1a1104;
  background: linear-gradient(135deg, #efc46e, #d99434);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #f5cf80;
}

.button--secondary {
  color: var(--warm-ivory);
  background: rgba(3, 9, 19, .3);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--warm-amber);
  background: rgba(219, 166, 70, .08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--soft-ivory);
  text-decoration: none;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--warm-amber), transparent);
}

.reading-column {
  width: min(780px, 100%);
  margin: 0 auto;
}

.reading-column--wide {
  width: min(1050px, 100%);
  text-align: center;
}

.scene h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  font-weight: 500;
  line-height: 1.04;
}

.scene--statement h2 {
  font-style: italic;
}

.scene--reading p {
  margin: 0 0 1.55rem;
  color: var(--warm-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.65;
}

.scene--reading em {
  color: #fff7e8;
}

.closing-line {
  color: #fff7e8 !important;
  font-style: italic;
}

.scene-heading {
  width: min(850px, 100%);
  margin: 0 auto 4rem;
  text-align: center;
}

.section-intro {
  color: var(--soft-ivory);
}

.arc-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.arc-panel {
  position: relative;
  min-height: 310px;
  padding: clamp(1.6rem, 3vw, 2.7rem);
  border: 1px solid rgba(219, 166, 70, .22);
  background:
    linear-gradient(145deg, rgba(9, 20, 38, .68), rgba(2, 7, 16, .42));
  backdrop-filter: blur(9px);
  overflow: hidden;
}

.arc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
}

.arc-panel--affections::before {
  background: radial-gradient(circle at 10% 10%, rgba(239, 169, 69, .6), transparent 48%);
}

.arc-panel--bridge::before {
  background:
    radial-gradient(circle at 5% 15%, rgba(223, 154, 59, .36), transparent 44%),
    radial-gradient(circle at 95% 85%, rgba(35, 92, 151, .36), transparent 48%);
}

.arc-panel--afflictions::before {
  background: radial-gradient(circle at 90% 90%, rgba(36, 91, 151, .5), transparent 48%);
}

.arc-panel > * {
  position: relative;
  z-index: 1;
}

.arc-panel__number {
  color: var(--warm-amber);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.arc-panel h3 {
  margin: 1.2rem 0 .9rem;
  font-size: 2rem;
  font-weight: 500;
}

.arc-panel p,
.poem-entry p,
.signup-copy p {
  color: var(--warm-ivory);
}

.poem-list {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.poem-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .48fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 4.5vw, 3.8rem);
  border: 1px solid rgba(219, 166, 70, .2);
  background: linear-gradient(145deg, rgba(4, 11, 23, .84), rgba(2, 7, 16, .68));
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.poem-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .62;
}

.poem-entry--affections::before {
  background: radial-gradient(circle at 8% 18%, rgba(229, 145, 47, .19), transparent 42%);
}

.poem-entry--bridge::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(229, 145, 47, .12), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(44, 101, 164, .15), transparent 42%);
}

.poem-entry--afflictions::before {
  background: radial-gradient(circle at 92% 82%, rgba(44, 101, 164, .2), transparent 44%);
}

.poem-entry > * {
  position: relative;
  z-index: 1;
}

.poem-entry__header {
  padding-top: .2rem;
}

.poem-entry__arc {
  color: var(--warm-amber);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.poem-entry h3 {
  margin: .8rem 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}

.poem-entry__label {
  margin: 0;
  color: var(--soft-ivory) !important;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.poem-excerpt {
  margin: 0;
  padding: 0 0 0 clamp(1.3rem, 2.6vw, 2.2rem);
  border-left: 1px solid rgba(219, 166, 70, .28);
  color: var(--warm-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-style: normal;
  line-height: 1.72;
}

.poem-stanza {
  margin: 0 0 1.55rem;
  color: inherit !important;
}

.poem-stanza:last-child {
  margin-bottom: 0;
}

.scene--note {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.scene-heading--note {
  width: min(820px, 100%);
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.scene--note .eyebrow {
  color: var(--warm-amber);
}

.note-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  color: var(--warm-ivory);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.9;
  text-align: left;
}

.note-copy p {
  margin: 0 0 1.35rem;
}

.note-copy em {
  color: #fff7e8;
}

.note-closing {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0 !important;
  color: #fff7e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.scene--signup {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr minmax(320px, .8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.signup-form {
  display: grid;
  gap: .75rem;
}

.signup-form label {
  margin-top: .65rem;
  color: var(--warm-ivory);
  font-size: .78rem;
}

.signup-form input {
  width: 100%;
  padding: .9rem .1rem;
  border: 0;
  border-bottom: 1px solid rgba(245, 237, 221, .45);
  border-radius: 0;
  color: var(--warm-ivory);
  background: transparent;
  outline: none;
}

.signup-form input:focus {
  border-bottom-color: var(--warm-amber);
}

.signup-form .button {
  width: max-content;
  margin-top: 1.1rem;
}

.form-message {
  min-height: 1.5em;
  color: var(--warm-ivory);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1.35rem, 7vw, 8rem);
  border-top: 1px solid rgba(219, 166, 70, .2);
  background: #030915;
  color: var(--soft-ivory);
  font-size: .78rem;
}

.site-footer div {
  display: grid;
  gap: .3rem;
}

.site-footer strong {
  color: var(--warm-ivory);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}

@keyframes nebula-drift-one {
  to { transform: translate3d(7vw, 3vh, 0) scale(1.08); }
}

@keyframes nebula-drift-two {
  to { transform: translate3d(-5vw, -4vh, 0) scale(1.12); }
}

@media (max-width: 900px) {
  .poem-entry {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .poem-excerpt {
    padding-left: 1.25rem;
  }
  :root {
    --header-height: 68px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    border: 0;
    color: var(--warm-ivory);
    background: transparent;
    cursor: pointer;
    min-height: 44px;
    padding: .5rem 0 .5rem .5rem;
  }

  .menu-button__label {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .menu-button__lines {
    position: relative;
    width: 24px;
    height: 1px;
    background: currentColor;
  }

  .menu-button__lines::before,
  .menu-button__lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    background: currentColor;
  }

  .menu-button__lines::before { top: -7px; }
  .menu-button__lines::after { top: 7px; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100svh - var(--header-height));
    overflow-y: auto;
    padding: 1.5rem 1rem;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: .5rem;
    background: rgba(2, 6, 17, .96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    font-size: 1rem;
    width: 100%;
    min-height: 44px;
    padding: .6rem 1rem;
    text-align: center;
  }

  .scene--hero,
  .scene--signup {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    justify-self: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .countdown {
    justify-content: center;
  }

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

  .arc-panel {
    min-height: 0;
  }

  .scene--note,
  .scene--signup {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 1rem;
    gap: .75rem;
  }

  .brand span:last-child {
    display: inline;
    font-size: 1rem;
  }

  .scene {
    min-height: auto;
    padding: 7rem 1.15rem;
  }

  .scene--hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.6rem);
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .countdown {
    gap: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Visible cosmic atmosphere across every scene */
.scene::before {
  content: "";
  position: absolute;
  inset: 8% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 45%, rgba(38, 111, 178, .11), transparent 36%),
    radial-gradient(ellipse at 78% 58%, rgba(105, 63, 130, .07), transparent 38%);
  filter: blur(34px);
}

.scene[data-light-side="left"]::after,
.scene[data-light-side="right"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.scene[data-light-side="left"]::after {
  background:
    linear-gradient(90deg, rgba(212, 132, 40, .025), transparent 42%),
    radial-gradient(circle at 16% 46%, rgba(244, 179, 79, .045), transparent 24%);
}

.scene[data-light-side="right"]::after {
  background:
    linear-gradient(270deg, rgba(212, 132, 40, .025), transparent 42%),
    radial-gradient(circle at 84% 48%, rgba(244, 179, 79, .045), transparent 24%);
}

.scene,
.site-footer {
  background: transparent;
}


/* Version 3 refinements */
h1, h2, h3, .author-line, .closing-line, .scene--reading p {
  text-shadow: 0 1px 0 rgba(255,255,255,.025), 0 0 16px rgba(255,248,235,.018);
}
.scene--reading p, .arc-panel p, .poem-entry p, .signup-copy p {
  letter-spacing: .006em;
}
.scene--reading p { line-height: 1.74; }

.scene--note, .scene--signup {
  padding-block: clamp(6rem, 9vw, 8rem);
}
.scene--signup::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border: 1px solid rgba(219,166,70,.18);
  background: linear-gradient(145deg, rgba(5,12,25,.80), rgba(4,10,20,.60));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 56px rgba(255,255,255,.012);
}
.signup-form {
  padding: 1.8rem;
  border: 1px solid rgba(219,166,70,.16);
  background: rgba(5,12,25,.58);
  backdrop-filter: blur(10px);
}
.site-footer {
  background: #030915 !important;
  border-top: 1px solid rgba(219,166,70,.18);
  box-shadow: 0 -18px 40px rgba(0,0,0,.24);
}
@media (max-width: 900px) {
  .scene--signup::before { inset: 8% 1rem; }
}

/* Launch-list controls inherit the existing celestial palette and typography. */
.signup-form .signup-consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1rem;
  font-size: .78rem;
  line-height: 1.65;
}
.signup-form .signup-consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: .2rem 0 0;
  padding: 0;
  accent-color: var(--warm-amber);
}
.signup-privacy { font-size: .76rem; line-height: 1.65; color: var(--soft-ivory); }
.signup-privacy a { color: var(--warm-amber); text-decoration: underline; }
.signup-trap { display: none; }
.signup-form button:disabled { opacity: .65; cursor: wait; }
.form-message { overflow-wrap: anywhere; }
.subscription-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.subscription-card { width: min(100%, 44rem); padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); background: var(--deep-space); }
.subscription-card h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.subscription-card p { line-height: 1.8; }
.subscription-card a { color: var(--warm-amber); }

/* The title leads the page while cover artwork is held back. */
.scene--hero .hero-actions,
.scene--hero .countdown { justify-content: center; }
