/* HEYBA: the story, original drawing and an open-book view. */
#heyba{--muted:#625d55;--gold:#a67a36;padding-top:44px;padding-bottom:38px;scroll-margin-top:150px}
#heyba .youth-hero{display:grid;align-items:center;padding-bottom:55px}
#heyba .page-intro{max-width:680px}
#heyba h1{font-family:'DM Sans',Arial,sans-serif;font-weight:700;font-size:clamp(58px,7vw,94px);letter-spacing:-.055em;line-height:1;margin:20px 0 8px;color:#092e50}
#heyba .heyba-subtitle{font:clamp(27px,3.3vw,43px)/1.2 var(--serif);color:#092e50;margin:0 0 18px}
#heyba .heyba-author{font-size:18px;margin:0 0 16px}
#heyba .heyba-availability{display:inline-block;margin:0 0 8px;padding:9px 15px;border:1px solid #b99b66;border-radius:24px;color:#674819;background:#fbefd7;font-size:13px;font-weight:700}
#heyba .book-isbn-status{font-size:12px;color:var(--muted);margin:5px 0 18px}
#heyba .heyba-age{display:inline-block;padding:7px 12px;border-radius:20px;background:#e4edf1;color:#143b59;font-size:12px}
#heyba .page-intro>p:not([class]){font-size:16px;line-height:1.85;margin:18px 0}
#heyba .heyba-quote{font:italic 26px/1.4 Georgia,serif;color:#674819;margin:23px 0}
#heyba .heyba-art{width:100%;max-width:360px;min-width:0;margin:0 auto}
#heyba .heyba-explore{display:inline-block;margin-top:18px;font-size:13px}
#heyba .heyba-controls{display:flex;justify-content:center;gap:8px;margin-top:18px}
#heyba .heyba-controls button{min-height:44px;min-width:44px;border:1px solid #b99b66;border-radius:24px;background:#fffaf0;padding:8px 15px;color:#092e50}
#heyba .heyba-hint{text-align:center;font-size:11px;color:var(--muted);line-height:1.5}
#heyba .link{border:0;border-bottom:1px solid currentColor;background:none;padding:0;color:#5b4726;line-height:1.6}
#heyba .heyba-open-view img{border-radius:0;transform:none}
#heyba .heyba-front-stage{max-width:360px;margin:auto}
#heyba .heyba-front-stage .heyba-volume{width:100%;max-width:100%}
.heyba-lightbox{width:min(1200px,96vw);max-width:1200px;max-height:94dvh;padding:18px;background:#faf7f0;border:1px solid #b99b66;border-radius:8px;overflow:auto}
.heyba-lightbox::backdrop{background:#0c1b2be6}
.heyba-lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}
.heyba-lightbox-top h2{font:18px/1.35 Georgia,serif;margin:0}
.heyba-lightbox-top button{border:1px solid #b99b66;background:white;border-radius:20px;padding:10px 16px;min-height:44px;white-space:nowrap}
.heyba-lightbox-image{display:grid;place-items:center}
.heyba-lightbox-image img{display:block;width:auto;max-width:100%;max-height:74dvh;object-fit:contain}
.heyba-lightbox>p{font-size:12px;margin:12px 0 0}
@media(max-width:760px){#heyba{padding-top:30px}#heyba .youth-hero-heyba{grid-template-columns:1fr;gap:30px}#heyba .heyba-art{max-width:300px}#heyba .heyba-story{grid-template-columns:1fr;gap:10px}#heyba .page-intro>p:not([class]){font-size:15px}.heyba-lightbox{padding:12px}.heyba-lightbox-top h2{font-size:14px}}
#heyba .youth-hero-heyba{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:55px}
#heyba .heyba-art{max-width:330px}
.heyba-front-stage{display:block;box-sizing:border-box;width:100%;padding:16px 23px 28px 10px;border:0;background:transparent;cursor:zoom-in}
.heyba-front-stage .heyba-volume img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
.heyba-art figcaption{font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin-top:8px}
.heyba-credit{font-size:14px!important;line-height:1.65!important;color:var(--muted);margin-top:8px}
.heyba-theme-list{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 4px;padding:0;list-style:none}
.heyba-theme-list li{padding:7px 12px;border:1px solid #d5dccd;border-radius:20px;background:#f1f4e9;font-size:12px;line-height:1.3;color:var(--ink)}
.heyba-story{border-top:1px solid var(--line);padding:38px 0 42px;display:grid;grid-template-columns:.8fr 1.2fr;gap:55px}
.heyba-story h2,.heyba-inside h2{font:clamp(28px,3.7vw,43px)/1.12 var(--serif);letter-spacing:-.02em;margin:14px 0 20px}
.heyba-story p,.heyba-inside p{font-size:16px;line-height:1.8}
.heyba-story p:first-child{margin-top:0}
.heyba-inside{padding:35px 0 48px;border-top:1px solid var(--line)}
.heyba-inside-intro{max-width:740px;margin-bottom:25px}
.heyba-open-figure{margin:0}
.heyba-open-view{position:relative;display:block;width:100%;padding:0;border:0;border-radius:5px;overflow:hidden;cursor:zoom-in;background:#f1eadf;box-shadow:0 12px 28px #243d2e15}
.heyba-open-view img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.heyba-open-view span{position:absolute;right:18px;bottom:18px;display:block;padding:10px 15px;border:1px solid #d4d8c8;border-radius:24px;background:#fcfaf2f2;color:var(--ink);font-size:13px;line-height:1.35}
.heyba-open-figure figcaption{margin:14px 0 25px;color:var(--muted);font-size:13px;line-height:1.65;max-width:800px}
.heyba-reading{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.heyba-reading article{padding:26px;background:#f1f3e8;border-top:2px solid var(--gold)}
.heyba-reading h3{font:27px/1.2 var(--serif);margin:0 0 14px}
.heyba-reading p{font-size:15px;margin:0 0 14px}
.heyba-reading blockquote{margin:16px 0 0;padding-left:18px;border-left:2px solid var(--gold);font:italic 23px/1.4 var(--serif);color:var(--ink)}
.heyba-front-stage:focus-visible,.heyba-open-view:focus-visible{outline:3px solid var(--gold);outline-offset:5px}
@media(max-width:800px){#heyba .youth-hero-heyba{gap:30px}.heyba-story{gap:28px}.heyba-story p,.heyba-inside p{font-size:15px}}
@media(max-width:600px){#heyba .youth-hero-heyba{grid-template-columns:1fr;gap:25px}#heyba .heyba-art{max-width:275px}.heyba-story{grid-template-columns:1fr;gap:6px;padding:28px 0}.heyba-inside{padding-top:28px}.heyba-reading{grid-template-columns:1fr;gap:20px}.heyba-reading article{padding:22px}.heyba-open-view span{right:10px;bottom:10px;font-size:11px;padding:8px 11px}.heyba-story h2,.heyba-inside h2{font-size:30px}.heyba-theme-list{gap:7px}.heyba-theme-list li{font-size:11px}.heyba-open-figure figcaption{font-size:12px}}

/* Real six-face volumes; the original front artwork is kept inside the front face. */
body .hb-book-stage{perspective:1300px;overflow:visible;touch-action:pan-y pinch-zoom}
body .heyba-volume.hb-rotating-book,body #honorGrid .heyba-volume.hb-rotating-book{--volume-depth:16px;--volume-half:8px;position:relative;display:block;width:100%;aspect-ratio:var(--volume-ratio,2/3);background:transparent;isolation:auto;transform-style:preserve-3d;transform:rotateX(-3deg) rotateY(-12deg);transform-origin:50% 50%;box-shadow:none;transition:none;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom;cursor:grab}
body .hb-rotating-book::before,body .hb-rotating-book::after,body #honorGrid .hb-rotating-book::before,body #honorGrid .hb-rotating-book::after{content:none;display:none}
.hb-rotating-book.hb-book-dragging{cursor:grabbing}
body .hb-book-stage:hover .heyba-volume.hb-rotating-book,body #honorGrid .hb-book-stage:hover .heyba-volume.hb-rotating-book{box-shadow:none}
.hb-book-front,.hb-book-back,.hb-book-spine,.hb-book-pages,.hb-book-top,.hb-book-bottom{position:absolute;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hb-book-front,.hb-book-back{inset:0;border-radius:1px;background:var(--volume-color,#203e35);box-shadow:1px 2px 4px #12291d33}
.hb-book-front{transform:translateZ(var(--volume-half));overflow:hidden}
.hb-book-front>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}
.hb-book-front::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 3px 0 5px #0003,inset -1px 0 2px #fff5;z-index:3}
.hb-book-back{transform:rotateY(180deg) translateZ(var(--volume-half));container-type:inline-size;overflow:hidden;background:linear-gradient(135deg,#ffffff12,transparent 65%),var(--volume-color,#203e35);border:1px solid #b99b6666;color:#fff6e2}
.hb-book-back-content{position:absolute;inset:7%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4cqw;text-align:center;border-top:1px solid #d8bd8166;border-bottom:1px solid #d8bd8166;padding:6cqw 0}
.hb-book-back-content .hb-back-author{font:normal 5.4cqw/1.4 var(--sans,Arial);color:#edd7a6;letter-spacing:.04em;margin:0;max-width:100%}
.hb-book-back-content .hb-back-title{display:block;font:normal var(--back-title-size,8.5cqw)/1.15 var(--serif,Georgia);color:#fff6e2;letter-spacing:-.02em;overflow-wrap:anywhere;text-wrap:balance;max-width:100%;margin:0}
.hb-book-back-content .hb-back-rule{width:28%;height:1px;background:#d7b76e;flex:none}
.hb-book-back-content .hb-back-description{display:block;font:normal 5.1cqw/1.5 var(--sans,Arial);color:#f5eddc;max-width:100%;margin:0;text-wrap:pretty}
.hb-book-back-content .hb-back-note{display:block;font:normal 3.6cqw/1.4 var(--sans,Arial);letter-spacing:.07em;text-transform:uppercase;color:#d8c59e;margin-top:auto;padding-top:4cqw}
.hb-book-back>img{display:block;width:100%;height:100%;object-fit:contain}
.hb-book-spine{left:calc(-1 * var(--volume-half));top:0;width:var(--volume-depth);height:100%;transform:rotateY(-90deg);background:linear-gradient(90deg,#0005,transparent 45%,#fff2),var(--volume-color,#203e35);color:#f7e8c4;display:flex;align-items:center;justify-content:center;padding:10px 2px;writing-mode:vertical-rl;overflow:hidden}
.hb-book-spine>span{font:10px/1.1 var(--serif,Georgia);max-height:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-book-pages{right:calc(-1 * var(--volume-half));top:1%;height:98%;width:var(--volume-depth);transform:rotateY(90deg);background:repeating-linear-gradient(90deg,#fff9ec 0 1px,#c9c2b1 1px 2px,#ede5d6 2px 3px)}
.hb-book-top,.hb-book-bottom{left:0;width:100%;height:var(--volume-depth);background:repeating-linear-gradient(#fff9ec 0 1px,#c9c2b1 1px 2px,#ede5d6 2px 3px)}
.hb-book-top{top:calc(-1 * var(--volume-half));transform:rotateX(90deg)}
.hb-book-bottom{bottom:calc(-1 * var(--volume-half));transform:rotateX(-90deg)}
.hb-book-front .hb-projected-art{display:block;position:absolute;inset:0;overflow:hidden}
.hb-book-front .hb-projected-art.is-projected img,#honorGrid .hb-book-front .hb-projected-art.is-projected img{position:absolute;left:0;top:0;width:1024px;height:1536px;max-width:none;max-height:none;aspect-ratio:auto;object-fit:fill;transform-origin:0 0;pointer-events:none}
body #honorGrid .honor-cover.mockup-cover.hb-book-stage{aspect-ratio:3/4;padding:8% 11%;overflow:visible;background:radial-gradient(ellipse at 45% 25%,#faf7ee,#ece9dd 65%,#e2e4d8);border:1px solid #d9dbcc;border-radius:3px}

@media(max-width:760px){#heyba .youth-hero-heyba{grid-template-columns:1fr;gap:30px}#heyba .heyba-story{grid-template-columns:1fr;gap:10px}}

#heyba .heyba-front-stage{padding:18px 23px 22px;border:1px solid #b99b66;box-shadow:inset 0 0 0 2px #f9f4e6,0 0 0 1px #b99b6640;background:#faf8f1b3}

/* The rotating book leads the presentation on every screen. */
#heyba{padding-top:24px}
#heyba .youth-hero-heyba{grid-template-columns:minmax(0,1fr);gap:36px}
#heyba .heyba-art{grid-column:1;width:100%;max-width:330px;margin:0 auto}
#heyba .page-intro{grid-column:1;width:100%;max-width:840px;margin:0 auto}
@media(max-width:600px){#heyba{padding-top:18px}#heyba .youth-hero-heyba{gap:26px}#heyba .heyba-art{max-width:290px}}
