@layer moonshot-pages {
  #characters, .observatory { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: 1.5rem clamp(24px, 5vw, 74px); }
  #characters .planet-view { grid-area: 1 / 1; }
  .observatory .planet-view { grid-area: 3 / 1 / 4 / 3; }
  #characters .planet-view > .color-in-planet { margin-left: 5%; }
  #characters .planet-view { align-self: center; }
  /* Each heading sits beside its picture on wide screens, so neither half of a section is left empty (Adam, November 29, 2026). */
  #characters .planet-copy { grid-area: 1 / 1; align-self: end; }
  #characters .planet-view { grid-area: 2 / 1; align-self: start; }
  .observatory .planet-copy { grid-area: 1 / 1; align-self: end; }
  .dragon-portrait, .finished-page { position: relative; grid-area: 1 / 2 / 3 / 3; align-self: center; margin: 0; }
  .dragon-portrait { grid-area: 1 / 2 / 3 / 3; width: min(100%, 28rem); }
  .dragon-portrait svg, .finished-page img { display: block; width: 100%; height: auto; }
  #characters .dragon-idea {
    position: relative; max-width: 26ch; margin: 1rem 0 0;
    font: 400 clamp(1.35rem, 2.5vw, 2rem)/1.3 var(--title);
    letter-spacing: -.014em;
    /* The idea is in the kid's own words, so it is quoted, with the opening mark hung outside the text edge (Adam, November 29, 2026). */
    text-indent: -.42em;
  }
  .reserve-sentence { opacity: 0; }
  .typed-idea { position: absolute; inset: 0; }
  .typed-idea::after { content: ''; border-right: 2px solid currentColor; margin-left: .08em; }
  .adventure-spread {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center; gap: 1.5rem clamp(12px, 4vw, 64px);
  }
  .adventure-spread h2 { grid-area: 1 / 1; align-self: end; text-wrap: balance; }
  .adventure-spread > .color-in-planet { grid-area: 1 / 2 / 3 / 3; width: min(100%, 440px); justify-self: center; }
  /* Idea A: a hand of posters. The featured adventure stands in front with its title; the others fan out behind it,
     so "lots to choose from" is shown, not said. */
  .adventure-examples {
    grid-area: 2 / 1; align-self: start; justify-self: center; position: relative; z-index: 2;
    --w: clamp(130px, 17vw, 220px);
    width: calc(var(--w) * 2.3); height: calc(var(--w) * 1.62); margin: 0; padding: 0; list-style: none;
  }
  .fan-poster {
    position: absolute; left: 50%; top: 0; width: var(--w); margin-left: calc(var(--w) / -2);
    transform-origin: 50% 135%;
    rotate: calc(var(--slot) * 9deg);
    translate: calc(var(--slot) * var(--w) * .1) calc(var(--depth) * var(--w) * .03);
  }
  /* Each poster is its own card: a cream paper edge, and a shadow cast sideways onto the poster behind it, so the
     separate adventures read at a glance (Adam, November 30, 2026: "its kind of hard to see that htey are difeernt adventures"). */
  .fan-poster .poster {
    position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--book-sand);
    border: calc(var(--w) * .028) solid #fbf7f0;
    box-shadow: 0 0 0 1px rgba(43,50,64,.16), calc(var(--side) * 6px) 4px 10px rgba(43,50,64,.4);
  }
  .fan-poster.front .poster { box-shadow: 0 0 0 1px rgba(43,50,64,.16), -6px 4px 10px rgba(43,50,64,.4), 6px 4px 10px rgba(43,50,64,.4); }
  .fan-poster .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .fan-poster .poster-title {
    position: absolute; inset: 0 0 auto; padding: 15% 14% 0; text-align: center;
    font: 700 calc(var(--w) * .105)/1.05 var(--title); letter-spacing: -.02em; color: var(--book-ink); text-wrap: balance;
    text-shadow: 0 0 10px rgba(251,247,240,.95), 0 0 2px rgba(251,247,240,.9);
  }
  #example-choice { display: inline-block; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (max-width: 600px) {
    .adventure-spread { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.5rem .5rem; }
    .adventure-spread h2 { grid-column: 1 / -1; }
    /* The fan takes the width; the daisy moon tucks in under its right edge, whole, so the rocket still lands on it. */
    .adventure-spread > .color-in-planet { grid-row: 3; margin-top: -1rem; }
    .adventure-examples { --w: min(33vw, 146px); grid-column: 1 / -1; justify-self: center; margin-left: 0; }
  }
  .start-book { position: relative; z-index: 3; grid-area: 2 / 1; align-self: start; justify-self: left; margin-top: 1.25rem; text-align: center; }
  .finished-page { grid-area: 1 / 2 / 3 / 3; z-index: 1; transform: rotate(-1deg); }
  /* The page sits on the rest of the book: a second sheet peeks out behind it (Adam, November 29, 2026: "no excitment"), drawn by the shared .ui-paper-stack. */
  .finished-page { --ui-stack-back-turn: 6deg; --ui-stack-back-x: 5%; --ui-stack-back-y: 4%; }
  .observatory .step-note { max-width: 22ch; margin: 1rem 0 0; text-wrap: balance; font: 400 clamp(1.35rem, 2.5vw, 2rem)/1.3 var(--title); letter-spacing: -.014em; } /* Below the flying rocket, so it passes in front of the page (Adam, November 28, 2026). */
  .sheet-drawing { position: relative; display: block; }
  .sheet-drawing canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  @media print { .sheet-drawing canvas { display: none; } }
  @media (max-width: 700px) {
    #characters, .observatory { display: block; }
    .observatory .planet-view { margin-top: 2.5rem; }
    .start-book { margin-top: 1.8rem; }
    .dragon-portrait, .finished-page { max-width: 28rem; margin: 1.25rem auto 0; }
    /* On a phone each heading out-weighs its picture, and the planet keeps clear of the heading under it
       (Adam, November 30, 2026: "the sketch is massive compare to the heading text", "no breathing room"). */
    #characters .planet-view { margin-bottom: 1.75rem; }
    .dragon-portrait { width: 62%; margin-top: .5rem; }
    .dragon-portrait svg { clip-path: inset(0 1px 0 0); }
    .finished-page { width: 72%; margin: 1.5rem auto 0; }
    .adventure-spread { row-gap: 2.25rem; }
    .planet-copy h2, .flight .front-section h2 { font-size: clamp(28px, 8vw, 34px); }
    #characters .dragon-idea, .observatory .step-note { font-size: 19px; }
    .start-book { justify-self: center; text-align: center; }
  }
}
/* Outside the page layer so it outranks the shared button size: the last call to action is the page's biggest button,
   sized to sit with its heading (adam-taste T08). */
.observatory .start-book .ui-button { font-size: clamp(17px, 1.5vw, 20px); }
