/* The books and the plans on navy, to the founder's voxel design (2026-11-12, docs/design/landing-books-20261112.png
   and landing-plans-20261112.png; docs/decisions/2026-11-13-voxel-books-and-plans.md). The pictures are voxels.js's,
   drawn by books.js and plan-art.js. Loaded after home.css, so these rules win over the cream page's. */
.building-page {
  --navy: #10284a; --navy-deep: #0d2241; --navy-frame: #173a66; --navy-shadow: #2d6cb4;
  --gold-bright: #f2c14e; --cream-text: #f5eee0; --cream-soft: #c9d3e3; --chip: #f4efe6; --chip-ink: #1f3a2e;
  /* the cream at about 75 percent on the twilight, solid so its contrast is exact ("We’ve got them." under the team) */
  --cream-quiet: #c8c7c2;
  /* The page's colours blend (the founder, 2026-11-13: "the deep blue of the second panel is a little tough on the
     eyes"): the film's sea eases into a softer, lighter twilight for the books, which eases into the plans' navy, and
     the footer and the sea strip stand on that navy. Each panel starts on the colour the one above ended on, so no
     edge shows; every text colour here keeps at least 4.5 to 1 on the lightest of them (walk-public-site.mjs). */
  --sea-top: #155676; --twilight: #354f70; --dusk: #233e64;
}
html.past-middle:has(body.voyage-page) { background: #10284a; }

/* ---------- section 1: the books ---------- */
.building-page .books { padding-block: clamp(48px, 4.6vw, 64px) clamp(40px, 4.4vw, 60px); background: linear-gradient(180deg, var(--sea-top) 0, #2a5274 12%, var(--twilight) 30%, var(--twilight) 70%, var(--dusk) 100%); color: var(--cream-text); }
.books-eyebrow { margin: 0 0 14px; color: var(--gold-bright); font: 700 14px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.building-page .books h2 { max-width: 780px; margin: 0; color: var(--cream-text); font: 650 clamp(38px, 4.5vw, 64px)/1.04 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.025em; }
.books-line { margin: 18px 0 0; max-width: 54ch; color: var(--cream-text); font: 400 clamp(18px, 1.5vw, 21px)/1.45 var(--sans); }
.books-line strong { color: var(--gold-bright); font-weight: 700; }

/* Beside each title, framed portraits in its empty right side (the founder, 2026-11-13, then his notes on the preview:
   "slightly bigger, space it nicely and frame it neat ... rectangle"): the three of us on the books, the one pager and
   our story on the plans, the same frame so the two panels rhyme. Each row of boxes is centred on its title block;
   under the title on a phone. */
.building-page .head-with-boxes, .building-page .membership .build-wrap.plans-head.head-with-boxes { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(32px, 5vw, 80px); align-items: center; }
.head-words { min-width: 0; }
.head-side { position: relative; display: grid; justify-items: center; }
.head-boxes { display: flex; justify-content: center; gap: clamp(18px, 1.95vw, 28px); margin: 0; padding: 0; list-style: none; }
.head-boxes > li { width: clamp(96px, 8.9vw, 128px); }
.head-box { display: grid; justify-items: center; gap: 12px; color: var(--gold-bright); text-decoration: none; }
/* a portrait rectangle, three by four: a thin cream frame, soft corners, the clip frame's offset blue shadow, even on
   every one; the portraits are cut on the face, the one pager's cover keeps its top */
.head-box img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; border: 2px solid var(--chip); border-radius: 14px; background: var(--chip); box-shadow: 6px 6px 0 var(--navy-shadow); }
.head-box-words { color: var(--gold-bright); font: 700 12px/1.3 var(--sans); letter-spacing: .06em; text-align: center; text-transform: uppercase; }
a.head-box { transition: transform var(--dur-1) var(--ease-out); }
a.head-box:hover { transform: translateY(-2px); }
a.head-box:hover .head-box-words { color: #ffd876; }
a.head-box:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; border-radius: 14px; }
/* "We’ve got them." under the three of us (the founder, 2026-11-13), one quiet line centred under the row; it hangs
   under the side, so the row itself stays centred on the title block */
.team-note { position: absolute; top: 100%; left: 0; right: 0; margin: 18px 0 0; color: var(--cream-quiet); font: italic 400 17px/1.4 var(--serif); text-align: center; }
@media (max-width: 699px) {
  .building-page .head-with-boxes, .building-page .membership .build-wrap.plans-head.head-with-boxes { grid-template-columns: 1fr; }
  .head-boxes > li { width: 88px; }
  .head-boxes { gap: 18px; }
  .team-note { position: static; margin-top: 16px; }
}
/* Slide two as the founder laid it out (2026-11-17, docs/decisions/2026-11-17-home-slide-two.md): on a wide screen two
   columns, on the left the title, the line on one line, the three tutors in a row, "Try a book" and the three glass
   books in a row; on the right the two lesson clips, the main one large and the second under it. Under 1000 px one
   column: the books' part, then the clips. */
.books-slide { display: grid; gap: clamp(40px, 5vw, 56px); align-items: center; }
.books-main { min-width: 0; }
.books-films { min-width: 0; display: grid; gap: 22px; }
@media (min-width: 1000px) { .books-slide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(40px, 4vw, 64px); } }
/* the title a little smaller than the plans' so the slide's left column, title to books, stands in one screen at 1440
   by 900 (the walk measures it) */
.building-page .books .books-main h2 { font-size: clamp(36px, 3.7vw, 56px); }
/* the line under the title: one line wherever its column holds it (the walk measures it at 1440), balanced rows where not */
.building-page .books .books-line { max-width: none; text-wrap: balance; }
@media (min-width: 1280px) { .building-page .books .books-line { white-space: nowrap; font-size: 18.5px; } }
/* the three tutors in one row under the line, left aligned with it, "We’ve got them." beside them */
.books-team { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 2.2vw, 32px); margin-top: clamp(20px, 1.9vw, 28px); }
.books-team .head-boxes { justify-content: flex-start; }
.books-team .head-boxes > li { width: clamp(80px, 6.3vw, 92px); }
.books-team .team-note { position: static; margin: 0; text-align: left; }

/* "Try a book": the title's serif, between the title's size and the line's, in the slide's gold, so the three moving
   books under it read as an invitation */
.building-page .books-try { margin: clamp(26px, 2.4vw, 34px) 0 0; color: var(--gold-bright); font: 650 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.015em; }

/* the clips: a cream frame on a soft offset shadow, the gold play mark on the poster; the main clip the column's width,
   the second under it, smaller, set to the right so the two step down like the books' shadows */
.books-film { position: relative; margin: 0 12px 12px 0; border: 6px solid var(--chip); border-radius: 8px; background: var(--navy-frame); box-shadow: 12px 12px 0 var(--navy-shadow); overflow: hidden; }
.books-film-second { justify-self: end; width: min(100%, 68%); box-shadow: 10px 10px 0 var(--navy-shadow); }
.books-film video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy-frame); }
/* once played, the whole picture shows: the main clip was filmed upright */
.books-film video.played { object-fit: contain; }
.books-clip-play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.books-clip-play::before { content: ""; width: 72px; height: 72px; border-radius: 8px; background: var(--gold-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%2310284a'/%3E%3C/svg%3E") center / 30px no-repeat; box-shadow: 0 6px 18px rgb(4 14 30 / .35); transition: transform var(--dur-1) var(--ease-out); }
.books-film-second .books-clip-play::before { width: 56px; height: 56px; background-size: 24px; }
.books-clip-play:hover::before { transform: scale(1.05); }
.books-clip-play:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -6px; }

/* the books: each tile a link to its book's glass page, the loop of its whole glass case (6 by 5, the case's own
   framing, on the content box inside the edge and the foot, so nothing is cut) under a cream edge with the clips' offset blue shadow and a gold foot like the book's own
   case, then its chip: the title and its tag. On a phone the row keeps its three and slides sideways inside its own
   container. */
.glass-row { min-width: 0; margin-top: 16px; }
.glass-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); margin: 0; padding: 0 10px 12px 0; list-style: none; }
.glass-books > li { display: grid; }
.glass-book { display: grid; grid-template-rows: auto 1fr; gap: 12px; color: inherit; text-decoration: none; transition: transform var(--dur-1) var(--ease-out); }
/* the lift, on hover where there is hover and on keyboard focus; home-motion.css cancels it under reduced motion with
   the site's other lifts (#923 round 1, item 10) */
@media (hover: hover) { .glass-book:hover { transform: translateY(-4px); } }
.glass-book:focus-visible { transform: translateY(-4px); outline: 3px solid var(--gold-bright); outline-offset: 6px; border-radius: 10px; }
.glass { position: relative; display: block; aspect-ratio: 6 / 5; box-sizing: content-box; border: 4px solid var(--chip); border-bottom: 7px solid var(--gold-bright); border-radius: 10px; background: var(--navy-frame); box-shadow: 8px 8px 0 var(--navy-shadow); overflow: hidden; }
.glass video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 28%, rgb(255 255 255 / 0) 74%, rgb(255 255 255 / .1)); pointer-events: none; }
.book-chip { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--chip); color: var(--chip-ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
/* each spine is its book's colour, set by books.js from voxels.js's palette (P.books) */
.book-spine { flex: none; width: 12px; align-self: stretch; min-height: 30px; border: 2px solid #c99a3a; border-radius: 3px; background: var(--spine, var(--navy-frame)); }
.book-chip-words { display: grid; gap: 2px; min-width: 0; }
/* a long title takes two balanced rows rather than leave its tile */
.book-chip b { font: 700 clamp(13px, 1.02vw, 14.5px)/1.25 var(--sans); color: var(--chip-ink); text-wrap: balance; overflow-wrap: break-word; }
.book-chip small { font: 400 12.5px/1.3 var(--sans); color: #4f5d55; white-space: nowrap; }
@media (max-width: 999px) {
  .books-films { max-width: 640px; }
}
@media (max-width: 699px) {
  /* the three books in one row that slides inside its own container; each tile wide enough for its title */
  .glass-row { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .glass-books { grid-template-columns: repeat(3, 196px); width: max-content; }
  .glass-books > li { scroll-snap-align: start; }
  .book-chip b { font-size: 14px; }
  .books-team .head-boxes > li { width: 88px; }
  .books-team .head-boxes { gap: 16px; }
  .books-film-second { width: 78%; }
}

/* ---------- section 2: the plans, in voxel ---------- */
.building-page .membership { position: relative; padding-block: clamp(48px, 5vw, 72px) clamp(48px, 5vw, 72px); background: linear-gradient(180deg, var(--dusk) 0, #1a3359 30%, var(--navy) 65%); color: var(--cream-text); }
.building-page .membership .plans-head h2 { max-width: 780px; color: var(--cream-text); font: 650 clamp(36px, 4.2vw, 60px)/1.05 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.03em; }
.building-page .membership .plans-sub { max-width: 54ch; margin-top: 14px; color: var(--cream-soft); font: 400 clamp(17px, 1.4vw, 19px)/1.5 var(--sans); text-wrap: pretty; }
.building-page .membership .price-plans { gap: clamp(24px, 2.4vw, 32px); }
.building-page .membership .price-plan { margin: 0 0 8px; padding: clamp(20px, 1.8vw, 24px); border-radius: 8px; background: var(--chip); color: var(--chip-ink); box-shadow: 8px 8px 0 var(--edge); }
.building-page .membership .price-plan-one { --edge: #7cb569; --wi: #1f3a2e; }
.building-page .membership .price-plan-week { --edge: #2d6cb4; --wi: #1f3a2e; }
.building-page .membership .price-plan-primer { --edge: #f2c14e; --wi: #1f3a2e; }
@media (hover: hover) { .building-page .membership .price-plan:hover { box-shadow: 8px 8px 0 var(--edge); } }
.building-page .membership .plan-top { grid-template-rows: 1fr auto; min-height: clamp(120px, 10vw, 146px); align-items: end; }
.building-page .membership .plan-top h3 { font-variation-settings: "opsz" 36; font-weight: 650; }
.building-page .membership .plan-top h3 { grid-column: 1; grid-row: 1; align-self: end; white-space: normal; color: var(--chip-ink); }
.building-page .membership .plan-pill { grid-row: 2; background: #fffdf8; border: 1px solid #ddd5c4; border-radius: 4px; padding: 3px 9px; font-size: 13px; }
.building-page .membership .plan-art { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: clamp(96px, 9vw, 130px); }
.building-page .membership .price-plan-primer .plan-art { width: clamp(84px, 7.6vw, 110px); }
.building-page .membership .plan-amount { color: var(--chip-ink); }
.building-page .membership .plan-per { color: #4f5d55; }
.building-page .membership .plan-list { color: var(--chip-ink); }
.building-page .membership .plans-note { color: var(--cream-soft); }
/* ---------- the end: the footer on the plans' navy, then the voxel sea, its boat bobbing (the founder, 2026-11-13) ---------- */
.building-page footer { padding-block: clamp(8px, 1.4vw, 20px) 0; background: var(--navy); color: var(--cream-text); }
.building-page footer .build-wrap.colophon { padding-block: 0 clamp(8px, 1vw, 16px); }
.building-page .colophon-links a { color: var(--cream-text); }
.building-page .colophon-links a:hover { background: rgb(245 238 224 / .1); }
/* the story's link holds its words in a span (a flex link would drop the space before Nepal); the old footer's span
   rules (story.css, building.css) are not for it */
.building-page .colophon-links a > span { flex: none; flex-basis: auto; order: 0; color: inherit; }
.building-page .colophon-links .colophon-nepal { color: var(--gold-bright); }
.plans-sea { height: clamp(96px, 10vw, 150px); overflow: hidden; }
.plans-sea svg { display: block; width: 100%; height: 100%; }
.plans-boat { animation: plans-bob 3.2s ease-in-out infinite; }
@keyframes plans-bob { 50% { transform: translateY(-.7px); } }

@media (max-width: 600px) {
  .books-film { margin-right: 8px; box-shadow: 8px 8px 0 var(--navy-shadow); }
  .books-clip-play::before { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .plans-boat, .glass-book, .books-clip-play::before, a.head-box { animation: none; transition: none; }
}
