/* Shared upper-left key light, with a short contact shadow and a wider air shadow.
   These refinements stay on physical surfaces; the reading layer stays still. */
:root{--finish-key:#fffff5cc;--finish-contact:#233b2c25;--finish-air:#233b2c30;--finish-edge:#9e967b;--finish-warm:#e5cc9b;--finish-green:#c7d7b6}
.hero .cabinet{box-shadow:9px 12px 0 #89937c,15px 22px 30px var(--finish-air),0 2px 4px var(--finish-contact),inset 0 1px 2px var(--finish-key)}
.book-shelf .page-edges{box-shadow:2px 3px 3px var(--finish-contact),10px 17px 19px var(--finish-air)}
.book-shelf .physical-cover{box-shadow:inset 2px 1px 0 var(--finish-key),inset 8px 0 8px #17231c21,inset 11px 0 1px #fff4c429,inset 14px 0 5px #18221d18,2px 3px 3px var(--finish-contact)}
.book-shelf .book-pick:is(:hover,:focus-visible) .physical-cover{box-shadow:inset 2px 1px 0 var(--finish-key),inset 8px 0 8px #17231c21,inset 11px 0 1px #fff4c429,inset 14px 0 5px #18221d18,6px 7px 7px var(--finish-air)}
.project-desktop .live-toolbar,#project-viewer .live-toolbar{background:linear-gradient(120deg,#faf7ed,#f7f3e9 44%,#eeeadf);box-shadow:inset 0 1px 0 var(--finish-key)}
.project-desktop .live-window,#project-viewer .live-window{border-color:#ece1c1}
.scroll-gallery-flight:after{box-shadow:inset 1px 1px 0 var(--finish-key),inset -1px -1px 0 var(--finish-contact)}
.project-desktop .window-shadow{box-shadow:0 2px 3px var(--finish-contact),0 12px 24px var(--finish-air)}

/* The questions were already in the project records. They now lead the work. */
.desktop-caption .project-context{font-size:14px;line-height:1.45;color:#5d6157;margin:16px 0 8px;max-width:28ch}
.desktop-caption .project-context[hidden]{display:none}
.desktop-caption.has-project-question h3{font-size:29px;line-height:1.13;margin:0 0 15px;max-width:16ch;text-wrap:pretty}
.desktop-caption #project-story{max-width:30ch}

/* These tabs continue the two neighboring frames. They do not intercept a
   document scroll or the framed page's separate right-hand reading rail. */
.project-edge{position:absolute;top:43%;width:29px;height:52px;display:grid;place-items:center;z-index:7;border:1px solid #af9572;border-radius:4px;padding:0;color:#344d3c;box-shadow:inset 0 1px 0 var(--finish-key),0 3px 5px var(--finish-contact);font-size:20px;line-height:1;touch-action:manipulation}
.project-edge-prev{left:-20px;background:var(--finish-green);transform:rotate(-3deg)}
.project-edge-next{right:-20px;background:var(--finish-warm);transform:rotate(3deg)}
.project-edge:hover{border-color:#754e37;filter:brightness(1.035)}
.project-edge:active{box-shadow:inset 0 2px 3px var(--finish-contact);scale:.96}
.project-edge:focus-visible{outline:2px solid #a64028;outline-offset:4px}
.scroll-gallery-flight .project-edge{opacity:calc(1 - var(--flight-energy,0))}
.project-scroll-rail.is-scrubbing{box-shadow:inset 2px 0 6px var(--finish-contact)}
.project-scroll-rail.is-scrubbing .project-scroll-thumb{box-shadow:inset 0 1px 0 var(--finish-key),1px 2px 3px var(--finish-contact)}

@media(max-width:850px){.desktop-caption.has-project-question h3{font-size:26px}.desktop-caption .project-context{font-size:13px}}
@media(max-width:600px){
 .scroll-gallery-stage .desktop-caption .project-context{font-size:12px;line-height:1.4;margin:0 0 5px;max-width:none}
 .scroll-gallery-stage .desktop-caption.has-project-question h3{font-size:22px;line-height:1.12;margin:0 0 8px;max-width:25ch}
 .scroll-gallery-stage .desktop-caption #project-story{max-width:none}
 .project-edge{width:27px;height:48px;font-size:18px;top:42%}
 .project-edge-prev{left:-16px}.project-edge-next{right:-16px}
}
@media(prefers-reduced-motion:reduce){.project-edge:active{scale:1}.project-edge{transition:none}}
