/* The homepage's first screen (docs/decisions/2026-11-16-home-first-screen.md; home-sea.js): the sea's still, the live
   sea over it once drawn, a few crayon clouds, the founder's headline, the line and the copy under it, the ages and two buttons. Nothing else stands on the
   stage: no film, no play button, no controls (the worlds film's player and its stylesheet, worlds.css, left the tree
   on 2026-11-16). This is also the page's one sheet for the few shared rules the film's stylesheet held (the masthead
   over the sea, the focus ring there, the footer's name and the plans' note). */

/* the masthead lies over the sea, in the sea's light */
.voyage-page .mast.marketing-mast { position: absolute; z-index: 6; inset: 0 0 auto 0; color: #f7fbfa; }
.voyage-page .marketing-mast .brand,
.voyage-page .marketing-nav a { color: inherit; }
.voyage-page .marketing-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
/* over the sea the site's one focus ring is drawn in the sea's light (home-motion.css draws it in ink) */
.voyage-page .marketing-mast :is(a, button):focus-visible,
.voyage-page .voyage :is(a, button):focus-visible { outline-color: #f7fbfa; }
/* past the top of the page the sea carries on; the footer's ink still ends it (home-motion.js, home.css) */
html:not(.past-middle):has(body.voyage-page) { background: #10597a; }

/* the book's own face, paper and ink (the glass book's, glass-book.css): the headline and the line under it are set
   in the face, the words in the founder's ivory and gold (2026-11-17 16:10Z), the second button on the paper in the ink.
   The face is the one serif: Fraunces, then the page's own serif stack (home.css's --serif under .building-page,
   whose "Primer Reading" is the same Fraunces file), with no second fallback list of its own. */
.voyage.first-screen {
  --book-serif: Fraunces, var(--serif);
  --book-paper: #fbf6e8;
  --book-ink: #1d2540;
  /* the first screen's words (the founder, 2026-11-17 16:10Z): warm ivory rather than white, and the loving math part
     in a soft golden cream, the focal point */
  --hero-ivory: #fff5e4;
  --hero-gold: #f7d68a;
  /* a line's halo (#929 round 3, central): layered soft shadows in the sea's navy (the shade's rgb(6 20 44)), close and
     dense under the strokes, wide and faint past them, so the line reads at 4.5 to 1 on the foam of the still with no
     box and no visible edge; worn by the ages, the one line under 4.5 on a laptop's still */
  --hero-halo: 0 0 1px rgb(6 20 44 / .6), 0 0 3px rgb(6 20 44 / .55), 0 0 8px rgb(6 20 44 / .5), 0 0 16px rgb(6 20 44 / .4), 0 0 28px rgb(6 20 44 / .3);
  position: relative; isolation: isolate; background: #10597a; color: #f7fbfa;
}
/* the whole screen, down to a phone on its side (375 tall), so the two buttons are in the first view there too */
.first-stage { position: relative; height: 100vh; height: 100svh; min-height: 360px; overflow: hidden; isolation: isolate; }
.voyage-poster,
.voyage-poster img,
.voyage-sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.voyage-poster img { object-fit: cover; }
/* the live sea: it crossfades in over the still once drawn (home-sea.js, film.js), framed as the still is */
.voyage-sea { z-index: 0; opacity: 0; transition: opacity .9s; }
.voyage.live .voyage-sea { opacity: 1; }
/* a soft shade at the top, under the masthead and the title, for the title's cream */
.first-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgb(6 20 44 / .55), rgb(6 20 44 / .3) 34%, rgb(6 20 44 / 0) 60%); }

/* above the sea, with the live sea: a few crayon clouds (clouds.js draws their shape) */
.voyage-sky { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.voyage-puff { position: absolute; width: clamp(90px, 13vw, 190px); opacity: .96; filter: drop-shadow(22px 34px 16px rgb(3 30 50 / .32)); translate: calc(var(--px, 0) * var(--depth, 10px)) calc(var(--py, 0) * var(--depth, 10px)); transition: translate .9s cubic-bezier(.2,.7,.2,1); animation: voyage-drift 46s linear infinite alternate; }
.voyage-puff.one { left: -3%; top: 60%; --depth: 22px; }
.voyage-puff.two { right: 2%; top: 80%; --depth: 14px; width: clamp(70px, 9vw, 130px); animation-duration: 58s; animation-direction: alternate-reverse; }
.voyage-puff.three { left: 44%; top: 5%; --depth: 8px; width: clamp(60px, 7vw, 110px); animation-duration: 64s; }
@keyframes voyage-drift { from { transform: translateX(-3vw); } to { transform: translateX(7vw); } }

/* The words (the founder, 2026-11-17 16:10Z; docs/decisions/2026-11-16-home-first-screen.md, round 4): the headline,
   the line under it, the supporting copy, the ages and the two buttons, in one column over the sea. */
.first-words { position: absolute; z-index: 4; left: 22px; right: 22px; top: max(10%, 84px); display: grid; justify-items: start; gap: 14px; }
/* the headline, the largest thing on the screen: "A little wonder." in warm ivory, "A lifelong love of math." under it
   in the soft golden cream, in the book's serif, line height 1.05, tightened a little, a soft shadow for the sea */
.first-title { margin: 0; max-width: 100%; color: var(--hero-ivory); font: 600 clamp(32px, 9.8vw, 46px)/1.05 var(--book-serif); font-variation-settings: "opsz" 144; text-shadow: 0 1px 2px rgb(4 18 36 / .55), 0 2px 18px rgb(4 18 36 / .5); text-wrap: balance; }
/* slightly tightened (the founder's note): primer.css sets every element's letter spacing to 0 with !important, which
   took the old title's -.018em away too, so the headline's own spacing has to say !important, on its lines as well */
.first-title,
.first-title span { letter-spacing: -.01em !important; }
.first-title span { display: block; }
.first-title .first-love { color: var(--hero-gold); }
/* the subheading, in the same serif at about a third of the headline, ivory */
.first-sub { margin: 0; max-width: 100%; color: var(--hero-ivory); font: 500 clamp(18px, 4.8vw, 20px)/1.3 var(--book-serif); font-variation-settings: "opsz" 36; letter-spacing: 0; text-shadow: 0 1px 2px rgb(4 18 36 / .6), 0 2px 14px rgb(4 18 36 / .55); text-wrap: balance; }
/* the supporting copy, in the site's sans (the nav's and the buttons' family), regular, ivory, with no box (the founder,
   2026-11-17: "the box ... looks weird"), a soft shadow like the headline's so it reads on the moving sea */
.first-line { margin: 0; max-width: 100%; color: var(--hero-ivory); font: 400 clamp(17px, 4.6vw, 19px)/1.45 var(--sans); letter-spacing: .005em; text-shadow: 0 1px 2px rgb(4 18 36 / .6), 0 2px 14px rgb(4 18 36 / .55); text-wrap: pretty; }
/* the ages, small, after the copy, in their halo: the still has foam under "For ages" on a laptop (3.71 to 1 at 1440x900
   with the soft shadow alone, #929 round 2), and the sea stays as approved, so the line carries its own dark */
.first-ages { margin: -4px 0 4px; color: var(--hero-ivory); font: 500 15px/1.3 var(--sans); letter-spacing: .02em; text-shadow: var(--hero-halo); }
/* the two buttons: the site's button (home-motion.css .primary-link), one size and one radius, side by side; the first
   in the site's warm gold (books.css --gold-bright, the gold of "The tutor", "the book" and the clips' play mark) with
   the book's ink, the second on the book's paper (the founder, 2026-11-17: "make it something nice, inviting,
   aesthetic, while being minimal"); a soft shadow. They lift 2 px through the site's one lift (home-motion.css: on hover
   where there is hover, on keyboard focus on every device, sunk on a press, none under reduced motion); here only its
   size, the sea's shade and its shadow are set, the lift's deeper than the resting one, as before #913 (#923 round 1,
   item 4) */
.first-buttons { display: flex; flex-wrap: wrap; gap: 12px; --lift: translate3d(0, -2px, 0); --shade: 3 20 40; --lift-shadow: 0 14px 28px -12px rgb(3 20 40 / .7); }
.first-buttons .primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px -12px rgb(3 20 40 / .6); }
.building-page .first-buttons .first-button-gold,
.building-page .first-buttons .first-button-gold:hover { background: var(--gold-bright); border: 1px solid var(--gold-bright); color: var(--book-ink); }
.building-page .first-buttons .first-button-paper { background: var(--book-paper); border: 1px solid var(--book-paper); color: var(--book-ink); }
.building-page .first-buttons .first-button-paper:hover { background: #fff; border-color: #fff; color: var(--book-ink); }
@media (max-width: 599px) {
  .first-buttons { flex-direction: column; align-items: stretch; }
}

/* wide screens (the screen's shape alone, so a phone on its side too): the words on the left, the ship on the right */
@media (min-aspect-ratio: 21/20) {
  .first-words { left: 6vw; right: auto; top: max(13%, 100px); max-width: min(50vw, 720px); }
}
/* 64 to 72 px for the headline on a desktop (72 at 1440), the subheading a third of it, the copy 19 to 21 px */
@media (min-aspect-ratio: 21/20) and (min-width: 700px) {
  .first-title { font-size: clamp(40px, 5vw, 72px); }
  .first-sub { font-size: clamp(19px, 1.7vw, 25px); }
  .first-line { font-size: clamp(19px, 1.4vw, 21px); }
  .first-ages { font-size: 16px; }
}
/* a phone on its side: the words smaller and higher, clear of the ship */
@media (min-aspect-ratio: 21/20) and (max-height: 520px) {
  .first-words { top: 86px; gap: 5px; max-width: max(56vw, 380px); }
  /* round 4's words reach lower here (the copy, the ages): a soft shade from the left under them as well as the one from
     the top, so every line holds 4.5 to 1 (the walk measured 4.05 for the ages at 844x390 with the top shade alone);
     on a laptop the sea stays as approved, with the top shade alone (#929 round 2, item 4) */
  .first-shade { background: linear-gradient(90deg, rgb(6 20 44 / .45), rgb(6 20 44 / .25) 40%, rgb(6 20 44 / 0) 62%), linear-gradient(180deg, rgb(6 20 44 / .55), rgb(6 20 44 / .3) 34%, rgb(6 20 44 / 0) 60%); }
  .first-title { font-size: clamp(22px, 7vh, 28px); }
  .first-sub { font-size: 15px; }
  .first-line { font-size: 14px; line-height: 1.35; }
  .first-ages { margin: 0; font-size: 13px; }
  /* the headline stays the largest words on the screen: the masthead's name steps down under it here */
  .voyage-page .mast.marketing-mast .brand b { font-size: 22px; }
  .first-buttons { flex-wrap: nowrap; gap: 10px; }
  .first-buttons .primary-link { min-height: 44px; padding: 8px 14px; gap: 8px; font-size: 15px; }
  .voyage-puff.one { top: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .voyage-puff { animation: none; }
  .voyage-sea, .voyage-puff { transition: none; }
}

/* the footer keeps its ink and its links; the name stands where the three closing lines were */
.voyage-page .colophon .colophon-brand { display: flex; align-items: center; gap: 14px; margin: 0; max-width: none; color: inherit; }
.voyage-page .colophon .colophon-brand img { width: 52px; height: 52px; }
/* under the name, the founder's line (2026-11-13), in the footer's quiet type */
.voyage-page .colophon .colophon-name { display: grid; gap: 8px; justify-items: start; }
.voyage-page .colophon .colophon-motto { margin: 0; padding-left: 66px; color: var(--cream-soft, #c9d3e3); font: 400 14px/1.4 var(--sans); letter-spacing: .02em; }
.voyage-page .colophon .colophon-brand b { font: 500 clamp(28px, 3.4vw, 40px)/1 "Fraunces Brand", var(--serif); font-variation-settings: "opsz" 144; }
/* the plans' terms under the cards (site/design/landing-2026-11-11.html in #795) */
.voyage-page .plans-note { margin: 22px 0 0; color: var(--ink-soft, #4c6158); font-size: 14.5px; }
