/* Progressive reading and small accessibility improvements; story art/timing are unchanged. */
.reading-chapter{position:relative;padding:110px 7.5%;min-height:75svh;isolation:isolate;background:#0a120f}
.reading-chapter>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.reading-chapter::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#08120be8,#08120b9c 65%,#08120b55)}
.reading-chapter>div{max-width:640px}.reading-chapter h2{font-size:clamp(40px,5vw,76px)}.reading-chapter p:last-child{max-width:400px;margin-top:28px;font-size:17px}
.reading-afterword{margin-top:38px;padding-top:26px;border-top:1px solid #cbbb8733}.reading-afterword h3{font:400 30px/1.2 Georgia,serif;margin:0}.reading-afterword .eyebrow{margin-bottom:16px}
.book-page .chapter-page-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;color:#50371f;font:16px/1.5 Georgia,serif;text-decoration:underline;text-underline-offset:4px;padding:8px 0}
/* The last invitation should be as readable and easy to press as the first. */
.lantern-switch{font-size:16px;line-height:1.5;min-height:48px}
.contact-copy .lantern-status{font-size:16px!important;line-height:1.5;min-height:24px;color:#ccd0bd!important;max-width:34ch}
.contact-address>span:first-child{font-size:12px;line-height:1.5}
.footer-line{font-size:12px;line-height:1.5}
.story-controls{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:8px;max-width:calc(100% - 28px)}
.story-controls :is(.story-restart,.motion-toggle){position:static;margin:0;min-height:44px;padding:9px 12px;border:1px solid #cbbb8759;border-radius:3px;background:#0b100de8;color:#ece9d7;font-size:14px;line-height:1.4;align-items:center;justify-content:center;gap:8px}
.story-restart{display:inline-flex}.story-restart>span{color:var(--gold);font-size:21px;line-height:1}
.story-scroll-hint{--hint-start:-7px;--hint-end:11px;position:fixed;right:max(12px,env(safe-area-inset-right));top:46%;z-index:30;display:flex;align-items:center;flex-direction:column;gap:7px;pointer-events:none;color:#e7ddbd;animation:scroll-hint-drift 2.6s ease-in-out infinite}
.story-scroll-hint>span{font:10px/1.2 Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;text-shadow:0 1px 5px #000}
.story-scroll-hint::before{content:'';position:absolute;bottom:-8px;width:44px;height:78px;background:radial-gradient(ellipse closest-side,#d9be762e,transparent);z-index:-1}
.story-scroll-hint .scroll-hint-touch{display:none}
.story-scroll-hint svg{filter:drop-shadow(0 0 5px #ddc98799) drop-shadow(0 1px 3px #000)}
.story-scroll-hint path{stroke:url(#scroll-hint-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.story-scroll-hint path:nth-of-type(1){opacity:.45}.story-scroll-hint path:nth-of-type(2){opacity:.75}
.story-scroll-hint[hidden],html[data-motion="reduced"] .story-scroll-hint,html[data-workshop-open] .story-scroll-hint{display:none}
@keyframes scroll-hint-drift{0%,100%{opacity:.08;transform:translateY(var(--hint-start))}45%{opacity:.65}80%{opacity:.08;transform:translateY(var(--hint-end))}}
/* Follow the input gesture: wheel down on a mouse, finger up on a touchscreen. */
@media(hover:none) and (pointer:coarse){.story-scroll-hint{--hint-start:9px;--hint-end:-12px}.story-scroll-hint .scroll-hint-desktop{display:none}.story-scroll-hint .scroll-hint-touch{display:block}.story-scroll-hint svg{transform:rotate(180deg)}}
.story-controls :is(a,button):hover,.copy-email:hover{border-color:var(--gold);background:#20271bea}
html[data-workshop-open] .story-controls{visibility:hidden}
.contact-email-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.contact-email-row>a{font-family:Georgia,serif;font-size:clamp(20px,2.2vw,26px);color:#e2dfc9;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.copy-email{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid #cbbb8759;border-radius:3px;background:#0b100d99;color:var(--gold)}
.copy-email[hidden],.copy-check,.copy-email[data-copied] .copy-symbol{display:none}
.copy-email[data-copied] .copy-check{display:block}
.copy-email-status{min-height:21px;font-size:14px;line-height:1.5;color:#d6d8c9}
.copy-email-fallback{width:min(100%,320px);min-height:44px;padding:10px;border:1px solid #cbbb8780;border-radius:3px;background:#0b100de8;color:#ece9d7;font:16px/1.5 Arial,sans-serif}
.copy-email-help{font-size:14px;line-height:1.5;color:#d6d8c9}
.journey-stage>.contact{padding-bottom:max(80px,calc(64px + env(safe-area-inset-bottom)))}
.workshop-actions :is(button,a){font-size:16px;min-height:48px}
/* Keep the artwork and shade covering the viewport while the invitation scrolls.
   Scrolling the whole contact panel exposed the shade's bottom edge. */
.contact-content{display:contents}
html[data-motion="full"] .journey-stage>.contact{overflow:hidden;contain:paint}
html[data-motion="full"] .contact>.lantern-art{z-index:0}
html[data-motion="full"] .contact>.contact-shade{z-index:1;inset:-1px;pointer-events:none}
html[data-motion="full"] .contact-content{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:space-between;gap:inherit;padding:inherit;overflow-y:auto;min-height:0}
.footer-line{padding-right:0}
.contact-copy,.footer-line{flex-shrink:0}
.workshop-actions [data-workshop-open]:first-child{background:#efe2c7;color:#332719;border-color:#efe2c7}.workshop-actions [data-workshop-open]:first-child::after{color:#806135}.workshop-actions [data-workshop-open]:first-child:hover{background:#fff0d3;color:#332719}
.storybook-dialog a:focus-visible{outline-color:#50371f}.site-header nav a{min-height:24px;display:inline-flex;align-items:center}.footer-line>a{padding:8px 0}
@media(max-width:699px){.site-header nav a:first-child{display:inline-flex}.reading-chapter{padding:100px 7%}}
@media(max-aspect-ratio:1/1){.reading-chapter[data-encounter="elder"]>img{object-position:61% center}.reading-chapter[data-encounter="bridge"]>img{object-position:65% center}.reading-chapter[data-encounter="trogs"]>img{object-position:58% center}}
@media(forced-colors:active){.scene-shade,.contact-shade{background:Canvas}.story-copy,.contact-copy{color:CanvasText}.story-copy p,.story-copy em,.contact-copy p,.contact-copy em{color:CanvasText}.light-word::after{display:none}}
