/* ==========================================================================
   pages.css · inner pages (books, book detail, play, about, ideas, post,
   news & events, gallery, contact, legal, 404)
   ========================================================================== */

.breadcrumbs--light a, .breadcrumbs--light li + li::before { color: #CFDDD5; }
.breadcrumbs--light [aria-current] { color: var(--gold); }
.badge--lg { font-size: 1rem; padding: .7em 1.2em; }

/* ---------- Book detail: hero ---------- */
.book-hero { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3.5rem, 2.5rem + 3vw, 5.5rem); overflow: hidden; color: var(--cream); isolation: isolate; }
.book-hero .world { z-index: -1; }
.book-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.book-hero__title { font-size: clamp(3rem, 1.8rem + 4.6vw, 6rem); color: var(--paper-white); margin-bottom: .05em; }
.book-hero__subtitle { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); color: var(--gold); margin-bottom: 1rem; }
.book-hero__headline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; color: var(--cream); max-width: 34ch; }
.book-hero__ctas { margin-top: 1.6rem; }
.book-hero__ctas .badge--soon { border-color: var(--line); }
.book-hero__cover { position: relative; display: grid; place-items: center; min-height: clamp(420px, 30vw + 160px, 620px); }
.book-hero__book { --w: clamp(220px, 14vw + 120px, 380px); --ry: 22deg; z-index: 2; }
.book-hero__book .book3d__shadow { background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%); }
.book-hero__pal { position: absolute; z-index: 1; width: 42%; left: -6%; bottom: -2%; }
.page-book.theme-red .book-hero__pal { left: auto; right: -6%; }
.page-book.theme-leaf .book-hero__pal { left: auto; right: -2%; top: 2%; bottom: auto; width: 34%; }
.page-book.theme-wood .book-hero__pal { bottom: -10%; }
.book-hero__pal svg { width: 100%; height: auto; }
.book-hero__seal { position: absolute; z-index: 3; right: 6%; top: 4%; --size: clamp(110px, 4vw + 86px, 150px); transform: rotate(10deg); }
.page-book.theme-red .book-hero__seal { right: auto; left: 4%; background: var(--gold); color: var(--wood-900); box-shadow: inset 0 0 0 5px var(--gold), inset 0 0 0 7px rgba(255, 253, 247, .7), 0 10px 22px -10px rgba(0, 0, 0, .6); }
.book-hero__wrap-btn {
  position: absolute; z-index: 4; bottom: -2%; right: 4%; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 46px; padding: .5rem 1rem; border-radius: 999px; border: 2px solid rgba(247, 241, 227, .55); background: rgba(10, 43, 36, .55);
  color: var(--cream); font-weight: 700; cursor: pointer; backdrop-filter: blur(6px);
}
.book-hero__wrap-btn:hover { background: var(--gold); color: var(--forest-900); border-color: var(--line); }
.book-hero__wrap-btn .icon { width: 1.1rem; height: 1.1rem; }
@media (max-width: 960px) {
  .book-hero__grid { grid-template-columns: 1fr; }
  .book-hero__cover { order: -1; min-height: 380px; }
  .book-hero__copy { text-align: center; }
  .book-hero__headline { margin-inline: auto; }
  .book-hero .cpanel__facts, .book-hero__ctas, .book-hero .cpanel__kicker, .book-hero .breadcrumbs ol { justify-content: center; }
}

/* ---------- Book detail: about / features ---------- */
.book-about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.book-about__author { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-top: 1.5rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-md); }
.book-about__avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; border: 2px solid var(--line); }
.book-about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-tile { display: grid; gap: .7rem; align-content: start; padding: 1.2rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-md); box-shadow: 5px 6px 0 rgba(59, 36, 22, .1); font-weight: 700; color: var(--forest); line-height: 1.35; }
.feature-tile__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--gold); border: 2px solid var(--line); color: var(--forest); --icon-hole: var(--gold); }
.feature-tile__icon .icon { width: 26px; height: 26px; }
.feature-tile--big { background: var(--red); color: var(--paper-white); text-align: center; align-content: center; }
.feature-tile__num { font-family: var(--font-serif); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
@media (max-width: 900px) { .book-about__grid { grid-template-columns: 1fr; } }

.type-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 980px; margin-inline: auto; }
.type-chip { display: inline-flex; align-items: center; gap: .65rem; padding: .55rem 1.1rem .55rem .55rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--forest); box-shadow: 0 4px 0 var(--cream-300); }
.type-chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--gold); --icon-hole: var(--forest); }
.type-chip__icon .icon { width: 22px; height: 22px; }

.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.step-card { position: relative; padding: 1.6rem 1.3rem 1.3rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-lg); box-shadow: 5px 6px 0 rgba(59, 36, 22, .1); }
.step-card__num { position: absolute; top: -18px; left: 1.2rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--paper-white); border: 2.5px solid var(--line); font-family: var(--font-serif); font-weight: 800; }
.step-card__icon { display: block; color: var(--gold-700); margin-bottom: .6rem; }
.step-card__icon .icon { width: 34px; height: 34px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.audience { margin-top: 2.5rem; padding: 1.5rem; border: 2.5px dashed var(--wood-300); border-radius: var(--r-lg); background: rgba(244, 177, 61, .08); }
.audience__title { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.audience__title .icon { width: 1.4rem; height: 1.4rem; color: var(--red); }
.audience ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.audience li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.audience li .icon { width: 1.2rem; height: 1.2rem; color: var(--leaf-700); }

/* Look inside */
.book-look { color: var(--cream); }
.book-look .section-head .lead { color: #D6E2DB; }
.look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 1000px; margin-inline: auto; color: var(--ink); }
.look__pdf { margin-top: 2.5rem; }
.look__note { margin-top: .9rem; font-size: .95rem; color: #CFDDD5; }
.look-soon { display: grid; gap: 2rem; justify-items: center; }
.look-soon__wrap { position: relative; padding: 0; border: 3px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; max-width: 920px; background: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.look-soon__zoom { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(10, 43, 36, .75); color: var(--cream); font-weight: 700; }
.look-soon__zoom .icon { width: 1rem; height: 1rem; }
@media (max-width: 760px) { .look-grid { grid-template-columns: 1fr; } }

/* Buy box */
.buybox { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.buybox__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.buybox__art .book3d { --w: clamp(170px, 10vw + 100px, 260px); z-index: 2; }
.buybox__pal { position: absolute; left: -6%; bottom: -8%; width: 46%; z-index: 1; }
.buybox__pal svg { width: 100%; height: auto; }
.formats { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .7rem; }
.format { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: .1rem 1rem; align-items: center; padding: .9rem 1.1rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-md); }
.format__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.format__isbn { grid-row: 2; font-size: .9rem; color: var(--ink-soft); }
.format .btn { grid-row: 1 / span 2; grid-column: 2; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 0; }
.details div { padding: .6rem .8rem; border-radius: var(--r-sm); background: rgba(15, 59, 50, .06); }
.details dt { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.details dd { margin: 0; font-weight: 600; color: var(--forest); }
@media (max-width: 860px) { .buybox { grid-template-columns: 1fr; } .buybox__art { min-height: 300px; } }
@media (max-width: 480px) { .format { grid-template-columns: 1fr; } .format .btn { grid-row: auto; grid-column: auto; width: 100%; } }

/* Related books / book cards */
.book-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.book-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 6px 8px 0 rgba(59, 36, 22, .1); transition: transform .4s var(--ease-spring); }
.book-card:hover { transform: translateY(-6px); }
.book-card__media { position: relative; display: grid; place-items: center; padding: 2rem 1rem 1.2rem; min-height: 290px; background: radial-gradient(80% 80% at 50% 70%, var(--soft), color-mix(in srgb, var(--soft) 70%, var(--accent))); border-bottom: 2.5px solid var(--line); overflow: hidden; }
.book-card__media .book3d { --w: 150px; z-index: 2; }
.book-card__pal { position: absolute; right: -8%; bottom: -12%; width: 46%; z-index: 1; }
.book-card--parrot .book-card__pal { bottom: -4%; width: 36%; }
.book-card--horse .book-card__pal { bottom: -24%; }
.book-card__pal svg { width: 100%; height: auto; }
.book-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.book-card__meta { display: flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: .2rem; }
.book-card__meta .icon { width: 1.1rem; height: 1.1rem; --icon-hole: var(--paper-white); }
.book-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin: 0; }
.book-card__title a { color: var(--forest); text-decoration: none; }
.book-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.book-card__title a:focus-visible { outline: none; }
.book-card:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.book-card__sub { color: var(--ink-soft); font-size: 1rem; }
.book-card__foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.book-card .link-arrow { position: relative; z-index: 4; }

/* ---------- Books index ---------- */
.shelf-hero { padding-bottom: 0; }
.bookshelf { position: relative; width: min(100% - 2 * var(--gutter), 1180px); margin: clamp(2rem, 1rem + 3vw, 3.5rem) auto 0; padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.bookshelf__wall { position: absolute; inset: 0 0 18px; border-radius: 40px 40px 0 0; border: 3px solid var(--line); border-bottom: 0; overflow: hidden; }
.bookshelf__vine { position: absolute; top: -2%; width: 9%; }
.bookshelf__vine svg { width: 100%; height: auto; }
.bookshelf__vine--l { left: 2%; }
.bookshelf__vine--r { right: 3%; }
.bookshelf__lamp { position: absolute; left: 50%; top: -3%; width: 22%; transform: translateX(-50%); }
.bookshelf__lamp svg { width: 100%; height: auto; }
.bookshelf__row { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0 clamp(1rem, 4vw, 4rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 2.5rem); align-items: end; }
.bookshelf__slot { position: relative; display: grid; justify-items: center; padding-bottom: 6px; }
.bookshelf__slot .book3d { --w: clamp(110px, 12vw + 30px, 220px); }
.bookshelf__pal { position: absolute; z-index: -1; width: 70%; bottom: 52%; left: 50%; transform: translateX(-10%); pointer-events: none; }
.bookshelf__slot--parrot .bookshelf__pal { width: 52%; bottom: 72%; transform: translateX(10%); }
.bookshelf__slot--horse .bookshelf__pal { width: 66%; bottom: 50%; transform: translateX(-60%); }
.bookshelf__slot--cat .bookshelf__pal { width: 62%; transform: translateX(-80%); }
.bookshelf__pal svg { width: 100%; height: auto; }
.bookshelf__label { position: absolute; bottom: -54px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); color: var(--cream); font-size: clamp(.9rem, .7rem + .6vw, 1.25rem); z-index: 3; }
.bookshelf__plank { position: relative; z-index: 1; height: 70px; border: 3px solid var(--line); border-radius: 6px; box-shadow: 0 30px 40px -30px rgba(42, 32, 24, .8); }
@media (max-width: 760px) {
  .bookshelf__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 5rem; padding-bottom: 1rem; }
  .bookshelf__label { bottom: -36px; }
  .bookshelf__pal { display: none; }
}

.glance-wrap { overflow-x: auto; border: 2.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper-white); box-shadow: 6px 8px 0 rgba(59, 36, 22, .1); }
.glance { width: 100%; border-collapse: collapse; min-width: 760px; }
.glance th, .glance td { padding: .9rem 1rem; text-align: left; border-bottom: 1.5px solid var(--cream-300); vertical-align: middle; }
.glance thead th { background: var(--forest); color: var(--cream); font-family: var(--font-serif); font-size: .95rem; letter-spacing: .04em; }
.glance tbody tr:last-child th, .glance tbody tr:last-child td { border-bottom: 0; }
.glance tbody tr:hover { background: rgba(244, 177, 61, .08); }
.glance th[scope='row'] a { display: flex; align-items: center; gap: .8rem; font-family: var(--font-serif); font-weight: 700; color: var(--forest); text-decoration: none; }
.glance__thumb { width: 44px; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); }
.glance__animal { display: inline-flex; align-items: center; gap: .4rem; }
.glance__animal .icon { width: 1.2rem; height: 1.2rem; color: var(--red); --icon-hole: var(--paper-white); }

.book-row { overflow: hidden; }
.book-row:nth-of-type(even) { background: var(--paper); }
.book-row__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.book-row--flip .book-row__visual { order: 2; }
.book-row__visual { position: relative; display: grid; place-items: center; min-height: clamp(380px, 28vw + 120px, 540px); }
.book-row__blob { position: absolute; inset: 6% 4%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--deep); border: 3px solid var(--line); box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--deep) 80%, #fff), 0 30px 60px -30px rgba(42, 32, 24, .7); }
.book-row__book { --w: clamp(190px, 10vw + 110px, 300px); z-index: 2; }
.book-row__pal { position: absolute; z-index: 1; width: 42%; left: -2%; bottom: 2%; }
.book-row--flip .book-row__pal { left: auto; right: -2%; }
.book-row--parrot .book-row__pal { width: 32%; top: 2%; bottom: auto; }
.book-row--horse .book-row__pal { bottom: -6%; }
.book-row__pal svg { width: 100%; height: auto; }
.book-row__seal { position: absolute; z-index: 3; right: 8%; top: 8%; --size: clamp(100px, 3vw + 80px, 130px); transform: rotate(9deg); }
.book-row--flip .book-row__seal { right: auto; left: 8%; transform: rotate(-9deg); }
.book-row__kicker { color: var(--red); }
.book-row__sub { margin-top: -.3rem; }
.book-row__headline { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--wood); }
.mini-chips { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.mini-chips li { padding: .3em .8em; border-radius: 999px; background: var(--cream-200); border: 1.5px solid var(--cream-300); font-size: .92rem; font-weight: 600; color: var(--forest); }
@media (max-width: 900px) { .book-row__grid { grid-template-columns: 1fr; } .book-row--flip .book-row__visual { order: 0; } }

/* Notify band (newsletter inline) */
.notify-band { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 1rem + 2vw, 3rem); align-items: center; padding: clamp(1.6rem, 1rem + 3vw, 3rem); border-radius: var(--r-xl); border: 3px solid var(--line); color: var(--cream); overflow: hidden; }
.notify-band__pal { width: clamp(110px, 10vw, 170px); }
.notify-band__pal svg { width: 100%; height: auto; }
.notify-band h2 { color: var(--cream); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.notify-band p { margin: 0; color: #DCE6DF; }
.newsletter-form--inline .newsletter-form__row { margin: 0; max-width: none; }
.newsletter-form--inline .newsletter-form__note { color: inherit; opacity: .85; }
.on-dark .newsletter-form__note .icon { color: var(--gold); }
@media (max-width: 1023px) { .notify-band { grid-template-columns: 1fr; text-align: center; } .notify-band__pal { margin-inline: auto; } }
@media (max-width: 600px) { .newsletter-form--inline .newsletter-form__row { flex-direction: column; } }

/* ---------- Play & Explore ---------- */
.play-hero__pals { position: relative; aspect-ratio: 1.2 / 1; }
.play-hero__table { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; border: 3px solid var(--line); border-radius: 18px; z-index: 3; }
.play-pal { position: absolute; }
.play-pal svg { width: 100%; height: auto; }
.play-pal--dog { left: -2%; bottom: 8%; width: 33%; z-index: 2; }
.play-pal--cat { left: 25%; bottom: 12%; width: 27%; z-index: 2; }
.play-pal--parrot { left: 50%; bottom: 19%; width: 22%; z-index: 4; }
.play-pal--horse { right: -2%; bottom: 10%; width: 33%; z-index: 2; }
.play-pal--dice { left: 44%; bottom: 4%; width: 9%; z-index: 5; transform: rotate(-12deg); }
.play-pal--cards { right: 24%; bottom: 5%; width: 18%; z-index: 5; transform: rotate(8deg); }
.play-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.play-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .45rem 1.1rem .45rem .7rem; border: 2.5px solid var(--line); border-radius: 999px; background: var(--paper-white); color: var(--forest); font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--cream-300); }
.play-nav a:hover { background: var(--gold-100); }
.play-nav .icon { width: 1.3rem; height: 1.3rem; color: var(--red); --icon-hole: var(--paper-white); }
.play-note { display: flex; gap: .6rem; align-items: flex-start; max-width: 760px; margin: 2rem auto 0; font-size: .95rem; color: var(--ink-soft); }
.play-note .icon { width: 1.3rem; height: 1.3rem; flex: none; color: var(--wood); }
.play-note--light { color: #CFDDD5; margin-left: 0; }
.play-note--light .icon { color: var(--gold); }

.riddles { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.riddles__toggles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.qtab[aria-pressed='true'] { background: var(--red); color: var(--paper-white); box-shadow: 0 4px 0 var(--red-700); }
.qtab[aria-pressed='true'] .qtab__icon { background: var(--paper-white); }
.riddles__stage { position: relative; aspect-ratio: 1; max-width: 340px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, var(--gold-100), var(--gold-300)); border: 3px solid var(--line); overflow: hidden; }
.riddles__pal { position: absolute; left: 50%; bottom: -4%; width: 72%; transform: translateX(-50%); }
.riddles__pal[data-riddle-pal='horse'] { bottom: -26%; }
.riddles__pal[data-riddle-pal='parrot'] { width: 56%; }
.riddles__pal svg { width: 100%; height: auto; }
.riddles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: riddle; }
.riddle { position: relative; padding: 1.3rem 1.4rem 1.2rem 4rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-md); box-shadow: 5px 6px 0 rgba(59, 36, 22, .1); counter-increment: riddle; }
.riddle::before { content: counter(riddle); position: absolute; left: 1rem; top: 1.1rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--gold); font-family: var(--font-serif); font-weight: 800; }
.riddle__q { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--forest); margin-bottom: .8rem; }
.riddle__a { margin: .8rem 0 0; padding: .7rem .9rem; border-left: 4px solid var(--gold); background: var(--gold-100); font-weight: 700; font-family: var(--font-hand); font-size: 1.35rem; color: var(--forest); }
.riddle__src { margin: .7rem 0 0; font-size: .85rem; font-style: italic; color: var(--ink-soft); }
@media (max-width: 860px) { .riddles { grid-template-columns: 1fr; } .riddles__stage { max-width: 240px; margin-inline: auto; } .riddles__toggles { justify-content: center; } }

.scramble { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; max-width: 1000px; margin-inline: auto; padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.scramble__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: var(--forest); background-image: radial-gradient(70% 60% at 50% 75%, rgba(244, 177, 61, .35), transparent 70%); border: 3px solid var(--line); overflow: hidden; }
.scramble__pal { position: absolute; left: 50%; bottom: -2%; width: 78%; transform: translateX(-50%); }
.scramble__pal[data-scramble-pal='horse'] { bottom: -24%; }
.scramble__pal[data-scramble-pal='parrot'] { width: 58%; }
.scramble__pal svg { width: 100%; height: auto; }
.scramble__play .field { max-width: 260px; }
.tiles { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 72px; margin: .5rem 0 1.4rem; }
.tile { display: grid; place-items: center; width: clamp(44px, 6vw, 58px); aspect-ratio: 1; border-radius: 12px; background: var(--gold); border: 2.5px solid var(--line); box-shadow: 0 5px 0 var(--gold-700); font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: var(--forest-900); }
.scramble__form { display: flex; gap: .7rem; }
.scramble__form .input { flex: 1; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.scramble__feedback { min-height: 1.6em; margin: .9rem 0; font-weight: 600; color: var(--forest); }
@media (max-width: 760px) { .scramble { grid-template-columns: 1fr; } .scramble__stage { max-width: 260px; margin-inline: auto; width: 100%; } .scramble__form { flex-direction: column; } }

.who { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: center; }
.who__pal { max-width: 360px; }
.who__pal svg { width: 100%; height: auto; }
.who__card { display: grid; gap: 1.2rem; justify-items: start; padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); color: var(--ink); }
.who__out { margin: 0; min-height: 2.6em; font-family: var(--font-hand); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; color: var(--forest); }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } .who__pal { max-width: 220px; margin-inline: auto; } }

/* ---------- About ---------- */
.about-hero__portrait { max-width: 440px; }
.stats--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 860px) { .stats--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-story__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 4px dashed var(--wood-300); display: grid; gap: 1.8rem; }
.timeline__item { position: relative; padding: 1.2rem 1.3rem 1.1rem; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-md); box-shadow: 5px 6px 0 rgba(59, 36, 22, .1); }
.timeline__dot { position: absolute; left: calc(-1.4rem - 26px); top: 1.1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--line); color: var(--forest); --icon-hole: var(--gold); }
.timeline__dot .icon { width: 22px; height: 22px; }
.timeline__when { margin: 0 0 .2rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.timeline__item h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.timeline__item p:last-child { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .about-story__grid { grid-template-columns: 1fr; } }

.archie__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.archie__note { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); padding: .8rem 1rem; border-radius: var(--r-md); background: rgba(90, 143, 90, .1); }
.archie__note .icon { width: 1.2rem; height: 1.2rem; flex: none; color: var(--leaf-700); margin-top: .2rem; }
.archie__photos { position: relative; min-height: 460px; }
.archie__photo { position: absolute; width: 56%; padding: 10px 10px 34px; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(42, 32, 24, .7); cursor: zoom-in; transition: transform .4s var(--ease-spring), z-index 0s; }
.archie__photo img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 3px; }
.archie__photo--0 { left: 0; top: 4%; transform: rotate(-6deg); z-index: 2; }
.archie__photo--1 { right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.archie__photo--2 { left: 24%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.archie__photo:hover, .archie__photo:focus-visible { transform: rotate(0) scale(1.04); z-index: 5; }
@media (max-width: 900px) { .archie__grid { grid-template-columns: 1fr; } .archie__photos { min-height: 380px; } }

.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.press-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 6px 8px 0 rgba(59, 36, 22, .1); transition: transform .4s var(--ease-spring); }
.press-card a:hover { transform: translateY(-6px); color: inherit; }
.press-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2.5px solid var(--line); background: var(--cream-200); }
.press-card__media img { width: 100%; height: 100%; object-fit: cover; }
.press-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.press-card__outlet { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.press-card__outlet .icon { width: 1rem; height: 1rem; }
.press-card__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; line-height: 1.3; color: var(--forest); }
.press-card__excerpt { color: var(--ink-soft); font-size: 1rem; }
.press-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Ideas hub & article ---------- */
.ideas-hero__art { position: relative; aspect-ratio: 1.2 / 1; }
.ideas-hero__art > div { position: absolute; }
.ideas-hero__art svg { width: 100%; height: auto; }
.ideas-hero__board { left: 6%; top: 0; width: 46%; transform: rotate(-4deg); }
.ideas-hero__pal { right: 4%; bottom: 0; width: 44%; }
.ideas-hero__mug { left: 18%; bottom: 2%; width: 20%; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip-btn { min-height: 46px; padding: .4rem 1.1rem; border: 2.5px solid var(--line); border-radius: 999px; background: var(--paper-white); color: var(--forest); font-weight: 700; cursor: pointer; }
.chip-btn[aria-pressed='true'] { background: var(--forest); color: var(--cream); }
.ideas-list { display: grid; gap: 1.6rem; }
.idea-card--row .idea-card__link { flex-direction: row; }
.idea-card--row .idea-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 2.5px solid var(--line); }
.idea-card--row h2, .idea-card--row h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.25; }
.press-card--row a { flex-direction: row; }
.press-card--row .press-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 2.5px solid var(--line); }
.filter-empty { text-align: center; color: var(--ink-soft); }
@media (max-width: 760px) {
  .idea-card--row .idea-card__link, .press-card--row a { flex-direction: column; }
  .idea-card--row .idea-card__media, .press-card--row .press-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 2.5px solid var(--line); }
}

.post-hero { padding: clamp(2rem, 1rem + 3vw, 4rem) 0 2rem; }
.post-hero__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); margin: .8rem 0 1rem; }
.post-hero__by { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink-soft); }
.post-hero__avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); }
.post-hero__art { margin-top: 2rem; max-width: 1040px; }
.post-hero__media { position: relative; aspect-ratio: 16 / 7; border: 3px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.post-body { padding-bottom: 3rem; font-size: 1.18rem; line-height: 1.75; }
.post-body h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 2.2em; }
.post-body h3 { font-size: 1.35rem; margin-top: 1.6em; }
.post-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.post-list li { display: flex; gap: .7rem; align-items: flex-start; }
.post-list .icon { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .4rem; color: var(--gold-700); }
.post-callout { display: flex; gap: .8rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md); background: var(--gold-100); border: 2.5px solid var(--line); font-family: var(--font-serif); font-weight: 600; color: var(--forest); }
.post-callout .icon { width: 1.6rem; height: 1.6rem; flex: none; color: var(--red); --icon-hole: var(--gold-100); }
.post-cta { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center; margin: 3rem 0 2rem; padding: 1.6rem; font-size: 1.05rem; }
.post-cta__book .book3d { --w: 130px; }
.post-cta h2 { margin: 0 0 .3rem; font-size: 2rem; }
.post-author { display: flex; gap: 1.2rem; align-items: center; padding: 1.3rem 0; border-top: 2px dashed var(--cream-300); font-size: 1.02rem; }
.post-author__photo { width: 84px; height: 84px; border-radius: 50%; border: 2.5px solid var(--line); flex: none; }
.post-author__name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.post-author p:last-child { margin: 0; }
@media (max-width: 600px) { .post-cta { grid-template-columns: 1fr; justify-items: center; text-align: center; } .post-cta .flow-row { justify-content: center; } }

/* ---------- News & events ---------- */
.news-hero__art { position: relative; aspect-ratio: 1.3 / 1; }
.news-hero__art > div { position: absolute; }
.news-hero__art svg { width: 100%; height: auto; }
.news-hero__bunting { left: 0; right: 0; top: 0; }
.news-hero__pal { left: 30%; bottom: 0; width: 40%; }
.upcoming { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem 1.6rem; }
.upcoming__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gold); border: 2.5px solid var(--line); color: var(--forest); }
.upcoming__icon .icon { width: 32px; height: 32px; }
.upcoming h2 { margin-bottom: .3rem; }
.upcoming p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .upcoming { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); background: var(--paper-white); border: 2.5px solid var(--line); border-radius: var(--r-xl); box-shadow: 6px 8px 0 rgba(59, 36, 22, .1); }
.event__kicker { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.event__title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); margin: .2rem 0 .8rem; }
.event__place { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; }
.event__place .icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--red); margin-top: .2rem; }
.event__thanks { margin-top: 1.2rem; font-style: italic; color: var(--ink-soft); }
.event__photos { position: relative; min-height: 440px; }
.event__photo { position: absolute; width: 62%; padding: 10px 10px 30px; background: var(--paper-white); border: 2.5px solid var(--line); border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(42, 32, 24, .7); cursor: zoom-in; transition: transform .4s var(--ease-spring); }
.event__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.event__photo--0 { left: 0; top: 0; transform: rotate(-5deg); z-index: 2; }
.event__photo--1 { right: 0; bottom: 0; transform: rotate(4deg); z-index: 1; }
.event__photo:hover, .event__photo:focus-visible { transform: rotate(0) scale(1.03); z-index: 3; }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; } .event__photos { min-height: 380px; } }

/* ---------- Gallery ---------- */
.gallery-hero__art { position: relative; aspect-ratio: 1.3 / 1; }
.gallery-hero__art > div { position: absolute; }
.gallery-hero__art svg { width: 100%; height: auto; }
.gallery-hero__pol--1 { left: 4%; top: 6%; width: 32%; transform: rotate(-8deg); }
.gallery-hero__pol--2 { left: 30%; top: 0; width: 30%; transform: rotate(6deg); }
.gallery-hero__pal { right: 2%; bottom: 0; width: 46%; }
.masonry { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 1.2rem; }
.masonry li { break-inside: avoid; margin-bottom: 1.2rem; }
.masonry__item { position: relative; display: block; width: 100%; padding: 0; border: 2.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--cream-200); cursor: zoom-in; box-shadow: 5px 6px 0 rgba(59, 36, 22, .1); }
.masonry__item img { width: 100%; transition: transform .6s var(--ease-out); }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__zoom { position: absolute; right: .7rem; bottom: .7rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 43, 36, .75); color: var(--cream); opacity: 0; transition: opacity .3s; }
.masonry__zoom .icon { width: 20px; height: 20px; }
.masonry__item:hover .masonry__zoom, .masonry__item:focus-visible .masonry__zoom { opacity: 1; }
.videos { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; }
.video { margin: 0; width: min(100%, 360px); }
.video video { width: 100%; border-radius: var(--r-lg); border: 3px solid var(--line); background: var(--forest-900); aspect-ratio: 9 / 16; object-fit: cover; }
.video figcaption { margin-top: .6rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact__intro { position: relative; }
.contact__list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list strong { display: block; font-family: var(--font-serif); color: var(--forest); }
.contact__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--forest); color: var(--gold); }
.contact__icon .icon { width: 22px; height: 22px; }
.contact__pal { width: clamp(140px, 14vw, 210px); margin-top: 1.5rem; }
.contact__pal svg { width: 100%; height: auto; }
.contact__card { padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin-bottom: .2rem; }
.contact__req { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.contact-form__submit { width: 100%; margin-top: .4rem; }
.contact__privacy { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__pal { display: none; } }

/* ---------- Legal ---------- */
.legal-hero { padding-bottom: 1rem; }
.legal-body { padding: clamp(1.4rem, 1rem + 3vw, 3rem); }
.legal-body h2 { font-family: var(--font-serif); font-size: 1.4rem; margin-top: 1.8em; }
.legal-body h2:first-of-type { margin-top: 1.2em; }

/* ---------- 404 ---------- */
.notfound__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.notfound__art { position: relative; aspect-ratio: 1; max-width: 420px; }
.notfound__pal { position: absolute; left: 6%; bottom: 0; width: 70%; z-index: 2; }
.notfound__pal svg, .notfound__ball svg { width: 100%; height: auto; }
.notfound__ball { position: absolute; right: 4%; bottom: 6%; width: 16%; z-index: 3; animation: bob 1.6s ease-in-out infinite; }
.notfound__num { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-family: var(--font-display); font-size: clamp(5rem, 3rem + 8vw, 9rem); color: var(--gold); opacity: .55; line-height: 1; }
@media (max-width: 800px) { .notfound__grid { grid-template-columns: 1fr; } .notfound__art { max-width: 300px; margin-inline: auto; } }

/* Generic inner-page hero art should never overflow on phones */
@media (max-width: 860px) {
  .play-hero__pals, .ideas-hero__art, .news-hero__art, .gallery-hero__art { max-width: 480px; width: 100%; margin-inline: auto; }
}
