/* Homepage v4 and games page (Claude, design owner, 18 Oct 2026). Loaded after books.css on both. */

/* Shared section heading */
.home-section-head { max-width: 760px; margin-bottom: 28px; }
.home-section-head h2 { font: 800 clamp(2rem, 4.4vw, 3rem)/1.05 var(--serif); color: var(--forest); margin: 8px 0 10px; letter-spacing: -0.01em; }
.home-section-head p:last-child { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* 1 · Hero: three lines and one action beside the games painting. Covers and the story card live in the doors below
   (impeccable critique, 18 Oct 2026). The copy column is wider so the h1 can outrank the section headings. */
.home-hero { padding: clamp(28px, 5vw, 72px) 0 clamp(32px, 4vw, 52px); background:
  radial-gradient(1200px 500px at 85% 10%, rgba(239, 198, 91, .16), transparent 60%), var(--cream); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
.home-hero-copy h1 { font: 800 clamp(2.2rem, 3.4vw, 3rem)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--forest); margin: 14px 0 22px; }
.home-hero-copy h1 span { display: block; white-space: nowrap; }
.home-hero-copy h1 span:last-child { color: var(--terracotta); font-style: italic; font-weight: 700; }
.home-hero-copy .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34ch; color: var(--ink-soft); margin: 0; }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The copy stays on the site grid; the scene window may bleed up to 72px into the right margin. */
.home-hero-art { position: relative; min-width: 0; margin-right: calc(-1 * min(72px, max(0px, (100vw - var(--wrap)) / 2))); }
/* The scene window itself (concept A of the «Hero Redesign Concepts» canvas) is in showcase.css. */

/* 2 · What we make: three illustrated doors, built on the «other series» card and its fanned 3D covers (styles.css). */
.home-ways { padding: 0 0 clamp(56px, 7vw, 96px); background: var(--cream); }
.home-ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-ways .way-door { border-radius: 22px; }
/* Band, art, title, text and link share rows across the three doors, so Spanish titles of different lengths stay aligned. */
@supports (grid-template-rows: subgrid) {
  .home-ways .way-door { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .home-ways .way-door .way-text { align-self: start; }
}
.home-ways .way-door .other-series-band { padding: 12px 18px; font-size: .76rem; }
.home-ways .way-door .other-series-shelf { height: clamp(240px, 21vw, 300px); }
.home-ways .way-door--games .other-series-shelf .book-chrome { aspect-ratio: 480 / 681; }
.home-ways .way-door strong { padding: 18px 22px 6px; font: 700 1.45rem/1.15 var(--serif); }
.home-ways .way-door .way-text { padding: 0 22px; color: var(--ink-soft); }
.home-ways .way-door .way-link { margin-top: auto; padding: 14px 22px 22px; font-size: 1rem; font-weight: 700; color: var(--forest); }
.home-ways .way-door:hover .way-link { text-decoration: underline; text-underline-offset: 4px; }

/* 3 · Why we exist, on forest (direction A, 21 Oct 2026): the story on the left, Jennifer's note on paper on the right, four habits below */
.story--mission { background: var(--forest); color: var(--cream); border: 0; }
.story--mission .kicker { color: var(--ochre); }
.story--mission .story-grid { align-items: center; }
@media (min-width: 880px) { .story--mission .story-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); } }
.story--mission h2 { max-width: none; color: var(--cream); font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.04; }
.story-intro { display: grid; gap: 22px; align-content: start; }
.story-intro .kicker { margin: 0; }
.story-lede { margin: 0; max-width: 30em; font-size: clamp(1.15rem, 1.7vw, 1.375rem); line-height: 1.5; color: var(--cream); }
.story--mission .story-mission { margin: 0; max-width: 32em; font: 400 1.19rem/1.6 var(--sans); color: rgba(255, 248, 236, .88); }
.story--mission .story-mission strong { color: var(--cream); }
.story--mission .story-copy { border: 0; padding: 0; gap: 28px; align-content: center; justify-items: center; }
.story-note--art { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 520px; transform: none; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px) clamp(22px, 3vw, 32px); }
.story-note--art .story-art { display: block; width: min(380px, 100%); height: auto; }
.story-note--art .story-community { margin: 0; max-width: 26em; text-align: center; text-wrap: balance; font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.4 var(--serif); color: var(--forest); }
.story--mission .story-copy p { max-width: none; }
.story-note { margin: 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) clamp(26px, 3.5vw, 40px); border-radius: 8px;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 48px rgba(10, 30, 24, .35); transform: rotate(-.8deg); }
.story-note-label { margin: 0 0 18px; font: 700 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.story-note blockquote { margin: 0; }
.story-note blockquote p { margin: 0; font: italic 400 clamp(1.4rem, 2.4vw, 1.875rem)/1.4 var(--serif); color: var(--forest); }
.story-note figcaption { margin-top: 22px; font: italic 400 1.6rem/1 var(--serif); color: var(--terracotta); }
.story--mission .story-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 10px 0 0; }
.story--mission .story-more .btn { background: var(--ochre); border-color: var(--ochre); color: var(--forest-deep); }
.story--mission .story-more .btn:hover { background: var(--cream); border-color: var(--cream); }
.story--mission .story-link { color: var(--cream); font-weight: 700; }
.mission-habits { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(255, 248, 236, .2); }
.mission-habits-title { margin: 0 0 clamp(24px, 3vw, 36px); font: 650 clamp(1.5rem, 2.4vw, 1.875rem)/1.15 var(--serif); color: var(--cream); }
.mission-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.mission-principles li { display: grid; gap: 10px; align-content: start; }
.mission-principles strong { font: 650 1.5rem/1.2 var(--serif); color: var(--cream); }
.mission-principles span { color: rgba(255, 248, 236, .8); }
.mission-principles .mission-icon { display: block; color: var(--ochre); }

/* 4 · Our series */
.home-series-intro { padding: var(--section-y) 0 28px; }
.series-intro-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.series-intro-grid > div { flex: 1 1 520px; max-width: 760px; }
.series-intro-grid h2 { font: 800 clamp(2rem, 4.4vw, 3.1rem)/1.05 var(--serif); color: var(--forest); margin: 8px 0 12px; letter-spacing: -0.01em; }
.series-intro-grid p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.series-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.series-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--forest); font-weight: 700; text-decoration: none; }
.series-jump a:first-child { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* Games series block */
.series-block--games { padding: 0 0 clamp(56px, 7vw, 88px); }
.series-card { border-radius: 30px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.series-band, .stories-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0;
  padding: 13px clamp(20px, 4vw, 40px); background: var(--forest); color: var(--cream); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.series-band-count { color: var(--ochre); letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.series-cities-wrap { padding: clamp(22px, 4vw, 44px) clamp(20px, 4vw, 44px) 0; }
.series-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.series-city { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--forest);
  font: 700 .95rem var(--sans); cursor: pointer; }
.series-city[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.series-panel { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 32px 44px; align-items: center; padding-bottom: clamp(24px, 4vw, 44px); }
.series-panel[hidden] { display: none; }
.series-panel-copy h3 { font: 800 clamp(1.9rem, 3.4vw, 2.8rem)/1.02 var(--serif); color: var(--forest); margin: 0; }
.series-city-name { display: flex; align-items: center; gap: 12px; max-width: 260px; margin: 12px 0 14px; font-size: .85rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.series-city-name::before, .series-city-name::after { content: ""; flex: 1; height: 1px; background: var(--ochre); }
.series-panel-copy > p:not([class]) { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.series-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 4px; }
.series-price strong { font: 800 2.1rem/1 var(--serif); color: var(--forest); }
.series-price span, .series-dates { color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }
.series-dates { margin: 0; }
.series-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.series-panel-books { min-width: 0; }
.series-price a { font-size: .88rem; font-weight: 700; color: var(--forest); }

/* Each city as a walk (canvas «Hero Redesign Concepts», concept D, 18 Oct 2026): copy and price on one row,
   then the four adventures along a dotted trail, each place in an arch window with its book leaning on it. */
.series-panel--walk { grid-template-columns: 1fr; gap: 26px; align-items: start; }
.series-panel--walk .series-panel-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 48px; }
.series-panel-intro { flex: 1 1 460px; }
.series-panel-intro > p:not([class]) { margin: 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 54ch; }
.series-panel-act { flex: 0 1 380px; }
.series-panel-act .series-price { margin-top: 0; }
.series-cities-wrap { --showcase-bleed: clamp(20px, 4vw, 44px); }  /* the walk's phone swipe row reaches the card edge */

/* Cover stack: one big cover in front, the others behind (main.js rotates them). */
.cover-stack { position: relative; }
.cover-stack-list { position: relative; list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 560px; aspect-ratio: 10 / 7.6; }
.cover-stack-item { position: absolute; left: 50%; top: 3%; width: 44%; transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .55s ease, filter .55s ease, visibility .55s; }
.cover-stack-item a { display: block; }
/* Covers past the fourth wait, hidden, behind the front one (stacks with five or more books). */
.cover-stack-item { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(-6%) scale(.62); z-index: 0; }
.cover-stack-item[data-pos="0"], .cover-stack-item[data-pos="1"], .cover-stack-item[data-pos="2"], .cover-stack-item[data-pos="3"] { opacity: 1; visibility: visible; pointer-events: auto; }
.cover-stack-item[data-pos="0"] { transform: translateX(-50%); z-index: 4; }
.cover-stack-item[data-pos="1"] { transform: translateX(-118%) translateY(7%) rotate(-9deg) scale(.8); z-index: 3; filter: saturate(.85) brightness(.97); }
.cover-stack-item[data-pos="2"] { transform: translateX(18%) translateY(7%) rotate(9deg) scale(.8); z-index: 2; filter: saturate(.85) brightness(.97); }
.cover-stack-item[data-pos="3"] { transform: translateX(-50%) translateY(-5%) scale(.7); z-index: 1; opacity: .55; }
.cover-stack--2 .cover-stack-item[data-pos="1"] { transform: translateX(10%) translateY(6%) rotate(8deg) scale(.82); }
.cover-stack-item:not([data-pos="0"]) { cursor: pointer; }
.cover-stack-item:not([data-pos="0"]):hover { filter: none; }
.cover-stack-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.cover-stack-caption { margin: 0; display: grid; gap: 2px; text-align: center; max-width: 34ch; }
.cover-stack-caption strong { font: 700 1.05rem/1.2 var(--serif); color: var(--forest); }
.cover-stack-caption span { font: italic .95rem/1.3 var(--serif); color: var(--terracotta); }
.cover-stack-controls { display: flex; gap: 8px; }
.cover-stack-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--forest); background: var(--paper); color: var(--forest); font-size: 1.1rem; cursor: pointer; }
.cover-stack-controls button:hover { background: var(--forest); color: var(--cream); }

.series-how { background: var(--cream); border-top: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.series-how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; }
.series-how-head h3 { font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--serif); color: var(--forest); margin: 6px 0 0; }
.series-how-head > p { flex: 0 1 420px; margin: 0; color: var(--ink-soft); }
.series-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.series-steps li { display: grid; gap: 8px; align-content: start; }
.series-step-number { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--ochre); font: 800 1.25rem var(--serif); }
.series-steps h4 { margin: 4px 0 0; font: 700 1.25rem/1.2 var(--serif); color: var(--forest); }
.series-steps p { margin: 0; color: var(--ink-soft); }
.series-why-title { margin: 36px 0 18px; padding-top: 28px; border-top: 1px dashed var(--line); font: italic 700 1.3rem var(--serif); color: var(--terracotta); }
.series-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.series-why li { display: grid; gap: 6px; align-content: start; color: var(--ink-soft); font-size: .97rem; }
.series-why svg { color: var(--forest); }
.series-why strong { color: var(--ink); font-size: 1.02rem; }

/* Book series: one block per strand (colours from content/library.json) */
/* The books sit on a sand band so they read apart from the games card above (Ouadie, 19 Oct 2026). */
.series-books { padding: var(--section-y) 0; background: var(--sand); }
.series-books-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; }
.series-books-head h2, .series-books-head h3 { font: 800 clamp(1.7rem, 3.2vw, 2.5rem)/1.08 var(--serif); color: var(--forest); margin: 6px 0 0; }
.series-books-head > p { flex: 0 1 420px; margin: 0; color: var(--ink-soft); }
.method-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--forest); }
.method-pills li { padding: 9px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.method-pills li[aria-hidden] { padding: 0; border: 0; background: none; color: var(--terracotta); }
/* Books intro with the moving wall (canvas «Hero Redesign Concepts», concept C, 18 Oct 2026): three tilted
   columns of covers and scenes drift up and down; hover or the button stops them, reduced motion keeps them still. */
.books-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px 48px; align-items: center; margin-bottom: 32px; }
.books-showcase-copy { display: grid; gap: 16px; justify-items: start; }
.books-showcase-copy h3 { margin: 0; font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1.06 var(--serif); color: var(--forest); }
.books-showcase-copy > p:not(.kicker) { margin: 0; max-width: 44ch; color: var(--ink-soft); font-size: 1.08rem; }
.books-showcase-copy .kicker { margin: 0; }
.books-showcase-copy .btn { margin-top: 6px; }
.strand-grid { display: grid; gap: 24px; }
.strand-block { display: flex; flex-direction: column; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.strand-band { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 24px; background: var(--strand); color: var(--cream);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.strand-body { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.strand-copy { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 32px); }
.strand-copy h4 { margin: 0; font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 var(--serif); color: var(--forest); }
.strand-copy > p { margin: 0; font: italic 1.12rem/1.35 var(--serif); color: var(--strand); }
.strand-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-soft); }
.strand-steps li { display: flex; align-items: center; gap: 10px; }
.strand-steps span { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--strand); color: var(--cream); font-size: .75rem; font-weight: 700; }
.strand-steps li:last-child span { background: var(--forest); }
.strand-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--forest); }
.strand-shelf { padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 32px); background: var(--strand-tint); display: flex; flex-direction: column; justify-content: center; }
.strand-shelf .cover-stack-list { max-width: 460px; }
.strand-shelf .cover-stack--1 .cover-stack-list { aspect-ratio: 10 / 8.8; }
.strand-shelf .cover-stack--1 .cover-stack-item { width: 52%; }
.strand-shelf .cover-stack-caption span { color: color-mix(in srgb, var(--strand) 80%, #1d2622); }  /* 4.5:1+ on the strand tint */

/* Stories series: the shelf keeps its cards and gains its band */
.series-block--stories { background: transparent; padding-top: clamp(56px, 7vw, 88px); }
.series-block--stories > .wrap { padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); border: 1px solid var(--line); border-radius: 30px; background: var(--paper); overflow: hidden; }
.series-block--stories .stories-band { margin: 0; border-radius: 0; background: var(--ochre); color: var(--ink); }
.series-block--stories .stories-band > span:nth-child(2) { margin-right: auto; }
.series-block--stories .series-band-count { color: var(--ink); }
.stories-band .strand-icon { color: var(--ink); }
.series-block--stories .home-stories-heading, .series-block--stories .story-grid { margin-inline: clamp(20px, 4vw, 44px); }
.series-block--stories .home-stories-heading { margin-top: clamp(22px, 3vw, 36px); }
.series-block--stories .story-grid { margin-bottom: clamp(22px, 3vw, 40px); }

/* The stories fan (concept B) is in showcase.css; here it lines up with the block's heading. */
.series-block--stories .story-fan { margin-inline: clamp(20px, 4vw, 44px); }

/* 5 · Where to start */
.home-start { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--line); }
.start-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
/* Two per row: a big cover on the left, the title and tags beside it, then how you play it (18 Oct review). */
.start-card { position: relative; display: grid; grid-template-columns: clamp(150px, 36%, 210px) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "art head" "art play"; column-gap: 26px; row-gap: 18px; padding: 26px; transition: transform .18s ease, box-shadow .18s ease;
  border-radius: 22px; background: var(--cream); border: 1px solid var(--line); border-top: 6px solid var(--pick); }
.start-art { grid-area: art; align-self: start; }
.start-head { grid-area: head; }
.start-play { grid-area: play; display: grid; gap: 10px; align-content: start; }
.start-cover { width: 100%; }
.start-story { position: relative; display: block; }
.start-story img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 18px 28px -14px #183a3166; }
.start-story .audio-mark { width: 34px; height: 34px; right: 8px; top: auto; bottom: 8px; }
.start-series { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pick-label); }
.start-series span { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--pick); }
.start-card h3 { margin: 0; font: 800 clamp(1.35rem, 2vw, 1.6rem)/1.12 var(--serif); }
.start-card h3 a { color: var(--forest); text-decoration: none; }
.start-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.start-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(24, 58, 49, .12); }
.start-card:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.start-card:focus-within { outline: 3px solid var(--ochre); outline-offset: 3px; }
.start-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.start-tags li { padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.start-how { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.start-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.start-steps span { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pick); color: var(--cream); font-size: .75rem; font-weight: 700; }
.start-card[style*="#EFC65B"] .start-steps span { color: var(--ink); }

/* Games page: how to play, with the step art */
.home-how { padding-block: var(--section-y); background: var(--forest); color: var(--cream); }
.home-how .home-section-head h2 { color: var(--cream); }
.home-how .kicker { color: var(--ochre); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.how-step { position: relative; background: rgba(255, 248, 236, .06); border: 1px solid rgba(255, 248, 236, .16); border-radius: 20px; padding: 18px 20px 22px; }
.how-art { margin: 0 0 16px; height: 210px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.how-art img { max-width: 92%; max-height: 92%; object-fit: contain; border-radius: 6px; }
.how-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ochre); color: var(--forest); font: 800 1rem var(--serif); }
.how-step h3 { font: 800 1.35rem/1.2 var(--serif); color: var(--cream); margin: 10px 0 8px; }
.how-step p { margin: 0; color: rgba(255, 248, 236, .86); }
#packs .offer-heading p:last-child { max-width: 50ch; } #packs .offer-heading { margin-bottom: 28px; }
.collection-hero { overflow-x: clip; }  /* games page: the pack hero may not widen the page on phones */
.games-other-series { padding-block: var(--section-y); }  /* games page: room after the sand band above and before the footer (Ouadie, 19 Oct 2026) */
/* Games page, 19 Oct 2026 review: the city panels under «Cada lugar, un misterio», the look inside within «what it is»,
   and the two other doors (books, stories) at the end. */
.games-cities { margin-top: clamp(20px, 3vw, 32px); }
.pack-inside { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px dashed var(--line); }
.pack-inside h3 { margin: 6px 0 8px; font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--serif); color: var(--forest); }
.games-other-series h2 { margin: 0 0 24px; font: 800 clamp(1.8rem, 3.4vw, 2.5rem)/1.08 var(--serif); color: var(--forest); }
.games-other-series .home-ways { padding: 0; background: none; }
.games-other-series .home-ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 879px) { .games-other-series .home-ways-grid { grid-template-columns: 1fr; } }
#packs .offer-heading h2 { white-space: normal; }  /* the Christmas title is longer than the nowrap rule in books.css expects */

@media (max-width: 1023px) {
  .series-why, .mission-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid { grid-template-columns: 1fr; }
}
@media (max-width: 879px) {
  .home-hero-grid, .series-panel, .strand-body { grid-template-columns: 1fr; }
  .strand-shelf { order: -1; }
  .home-hero-copy h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .books-showcase { grid-template-columns: 1fr; }
  .series-block--stories .story-fan { margin-inline: 0; padding-inline: clamp(20px, 4vw, 44px); scroll-padding-inline: clamp(20px, 4vw, 44px); }
  .home-ways-grid { grid-template-columns: 1fr; }
  .how-steps, .series-steps { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .home-hero { padding-top: 18px; }
  .home-ways .way-door .other-series-shelf { height: 230px; }
  .cover-stack-item { width: 50%; }
  .home-hero-copy h1 { font-size: 7.6vw; }
  .home-hero .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .series-why, .mission-principles, .start-grid { grid-template-columns: 1fr; }
  .start-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "art head" "play play"; column-gap: 16px; padding: 20px; }
  .how-art { height: 170px; }
}
@media (max-width: 399px) { .home-hero-copy h1 span { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .cover-stack-item, .start-card { transition: none; } }
/* Series names stay on one line (Ouadie, 18 Oct 2026): the size follows the name's length and the room it has. */
.strand-copy { container-type: inline-size; }
.strand-copy h4.series-name { white-space: nowrap; font-size: clamp(1.4rem, calc(100cqi / (var(--name-len, 12) * .56)), 2.2rem); }
/* «Un libro, un paseo, todo el equipo»: each step shows its piece (21 Oct 2026) */
.series-step-art { margin: 0 0 6px; height: 180px; border-radius: 16px; overflow: hidden; background: #FFF8EC; border: 1px solid var(--line); display: grid; place-items: center; }
.series-step-art img { width: 100%; height: 100%; object-fit: cover; }
.series-step-art--mission img { object-position: 50% 12%; }
.series-step-art--roles img, .series-step-art--board img { object-fit: contain; padding: 10px; }
.series-why-art { display: grid; place-items: center; height: 130px; margin-bottom: 6px; border-radius: 16px; background: #FFF8EC; }
.series-why-art img { max-width: 88%; max-height: 118px; object-fit: contain; }
.series-why-head { display: flex; align-items: center; gap: 8px; }
/* Games page hero (26 Oct 2026): the four Madrid books fan where the pack's envelope was; the edition card and the
   crossword stay on top of the covers. */
.hero-pack .hero-offer-card, .hero-pack .hero-crossword { z-index: 40; }
@media (max-width: 559px) { .hero-pack .hero-offer-card { bottom: -9%; transform: rotate(-3deg) scale(.9); transform-origin: left bottom; } }
/* Touch search-and-find game on the homepage (7 Nov 2026) */
.home-search-find { padding: clamp(40px, 7vw, 80px) 0; background: #FFF6E8; border-top: 1px solid #EADFCB; border-bottom: 1px solid #EADFCB; }
.home-search-find-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.home-search-find-art { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 38px rgba(24, 58, 49, .18); transition: transform .2s ease, box-shadow .2s ease; }
.home-search-find-art img { display: block; width: 100%; height: auto; }
.home-search-find-art:hover, .home-search-find-art:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(24, 58, 49, .24); }
.home-search-find-copy h2 { max-width: none; margin: 6px 0 12px; }
.home-search-find-copy p { max-width: 46ch; }
.home-search-find-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.home-search-find-why { color: var(--forest); font-weight: 700; }
@media (max-width: 860px) { .home-search-find-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .home-search-find-art { transition: none; } }

/* Top of the home page around what a family can do today (Ouadie, 10 Nov 2026): finder, «Ya disponibles», free ¡ACHÚS! */
.home-finder { padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: var(--cream); }
.home-finder-head { text-align: center; margin-bottom: 22px; }
.home-finder-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: none; }
.finder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.finder-panel { background: #FFFDF8; border: 1px solid #E8DCC6; border-radius: 22px; padding: 20px; }
.finder-panel h3 { font-size: 1.25rem; margin-bottom: 12px; }
.finder-lede { margin: -6px 0 12px; color: var(--ink-soft); font-size: .95rem; }
.finder-ages, .finder-problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finder-age { display: grid; grid-template-columns: 74px 1fr auto 18px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  border: 2px solid #EDE2CF; background: #fff; text-decoration: none; color: var(--forest); transition: border-color .15s, transform .15s; }
.finder-age:hover { border-color: var(--forest); transform: translateY(-1px); }
.finder-age-num { font-family: var(--serif); font-weight: 650; font-size: 1.6rem; line-height: 1; text-align: center; }
.finder-age-num small { display: block; font-family: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); margin-top: 3px; }
.finder-age-copy { display: grid; gap: 2px; min-width: 0; }
.finder-age-copy strong { font-size: 1.02rem; }
.finder-age-copy span { font-size: .88rem; color: var(--ink-soft); }
.finder-fan { display: flex; align-items: flex-end; height: 56px; }
.finder-fan .book-chrome { display: block; height: 56px; margin-left: -14px; box-shadow: 0 4px 10px #183a3126; border-radius: 3px; overflow: hidden; }
.finder-fan .book-chrome:first-child { margin-left: 0; }
.finder-fan img { height: 100%; width: auto; display: block; }
.finder-go { font-weight: 700; }
.finder-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finder-problem { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px;
  border: 2px solid #EDE2CF; background: #fff; text-decoration: none; color: var(--forest); height: 100%; transition: border-color .15s; }
.finder-problem:hover { border-color: var(--strand); }
.finder-problem .book-chrome { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 4px 10px #183a3126; }
.finder-problem img { width: 100%; height: auto; display: block; }
.finder-problem-copy { display: grid; gap: 1px; min-width: 0; }
.finder-problem-copy strong { font-size: 1rem; color: var(--strand); }
.finder-problem-copy span { font-size: .86rem; }
.finder-problem-copy small { font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.finder-problem-copy small.is-live { color: var(--forest); }

.home-now { padding: clamp(24px, 3vw, 36px) 0 clamp(36px, 4vw, 56px); background: var(--cream); }
.home-now-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.home-now-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.home-now-head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.now-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.now-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; }
.now-cover { display: flex; align-items: flex-end; justify-content: center; height: 230px; padding: 14px 0 6px; border-radius: 18px;
  background: color-mix(in srgb, var(--strand) 12%, #FFFDF8); }
.now-cover .book-chrome { display: block; height: 100%; box-shadow: 0 14px 22px -10px #183a3166; border-radius: 3px; overflow: hidden; transition: transform .2s; }
.now-cover img { height: 100%; width: auto; display: block; }
.now-card:hover .now-cover .book-chrome { transform: translateY(-4px) rotate(-1deg); }
.now-series { margin: 4px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--strand); }
.now-card h3 { font-size: 1.12rem; line-height: 1.2; }
.now-card h3 a { text-decoration: none; }
.now-card h3 a:hover { text-decoration: underline; }
.now-badge { justify-self: start; transform: scale(.88); transform-origin: left center; }

.home-free { padding: 0 0 clamp(48px, 6vw, 80px); background: var(--cream); }
.home-free-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px;
  border-radius: 26px; background: #F1E7F6; border: 1px solid #E0CDEA; }
.home-free-art { display: flex; justify-content: center; }
.home-free-art .book-chrome { display: block; width: 50%; max-width: 260px; box-shadow: 0 18px 30px -14px #2a183a80; }
.home-free-art .book-chrome:first-child { border-radius: 6px 0 0 6px; overflow: hidden; }
.home-free-art .book-chrome:last-child { border-radius: 0 6px 6px 0; overflow: hidden; }
.home-free-art img { width: 100%; height: auto; display: block; }
.home-free .kicker { color: #6E3A8E; }
.home-free h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.home-free-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.home-free-link { font-weight: 700; }

@media (max-width: 900px) {
  .finder-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-free-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .finder-problems { grid-template-columns: 1fr; }
  .finder-age { grid-template-columns: 58px 1fr 18px; }
  .finder-fan { display: none; }
  .now-cover { height: 190px; }
  .now-grid { gap: 20px 14px; }
}
