:root{color-scheme:light;--ink:#27362e;--muted:#4d5b4f;--line:#b7bcae;--paper:#f4f0e5}
*{box-sizing:border-box}
body{margin:0;min-width:280px;color:var(--ink);background:radial-gradient(ellipse at 68% 42%,#f7f5eb,#e9ebdf 78%);font:15px/1.5 system-ui,sans-serif}
button,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.32;cursor:default}
:focus-visible{outline:3px solid #627d68;outline-offset:4px}
.layout{max-width:1530px;margin:auto;padding:0 clamp(22px,5vw,82px);min-height:100svh;display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2.55fr);grid-template-rows:auto 1fr}
.masthead{grid-column:1/-1;border-bottom:1px solid var(--line);height:76px;display:flex;align-items:center;gap:11px;text-transform:uppercase;letter-spacing:.17em;font-size:.68rem;font-weight:700}
.mark{display:grid;place-items:center;width:28px;height:28px;border:1px solid #778573;border-radius:50%;font-size:14px}
.intro{align-self:center;padding:0 20px 65px 0}
h1{font:400 clamp(2.75rem,4.5vw,5.2rem)/.93 Georgia,serif;letter-spacing:-.066em;margin:0 0 24px}
h1 em{color:#496453;font-weight:400}
h1 > span,h1 > em,.cover-title > span{display:block}
.title-family,.title-year{font-size:.48em;line-height:1.2;letter-spacing:.02em}
.title-family{margin-bottom:.34em}
.title-year{margin-top:.42em}
.description,.hint{color:var(--muted);max-width:24ch}
.description{font-size:1rem;margin:0 0 25px}
.hint{font-size:.79rem;margin:22px 0 0}
.primary{background:#314c3f;color:#fff;border:1px solid #314c3f;border-radius:6px;padding:11px 15px;font-weight:600;min-width:145px;text-align:left}
.primary span{margin-left:13px}.primary:hover{background:#456455}
.reader{align-self:center;min-width:0;display:grid;justify-items:center;padding:24px 0 32px;gap:20px}
.stage{width:100%;height:clamp(360px,68svh,760px);display:grid;place-items:center;perspective:1800px;touch-action:pan-y}
.book{position:relative;display:flex;align-items:stretch;justify-content:center;height:100%;width:min(100%,calc(clamp(360px,68svh,760px) * 1.09));transform-style:preserve-3d}
.book.closed{width:min(87%,calc(clamp(360px,68svh,760px) * .525))}
.cover{position:relative;isolation:isolate;width:100%;border:1px solid #374339;background:#385140 url("photos/lake-cover.jpg") center / cover;border-radius:5px 11px 11px 4px;box-shadow:inset 8px 0 8px -5px #17271d, 4px 3px #9b927d, 7px 5px #e9dfcb, 8px 6px #9b927d, 12px 9px #4c5446, 18px 23px 37px #292a2244, 2px 6px 12px #252b2450}
.cover.back{border-radius:11px 5px 4px 11px;box-shadow:inset -8px 0 9px -5px #17271d,-5px 4px #dcd2be,-8px 6px #525747,-14px 21px 34px #292a2244}
.cover.front:before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;background:linear-gradient(175deg,#15393320 20%,transparent 55%,#172c2640),linear-gradient(90deg,#17271d65 0,transparent 9%,transparent 97%,#101c2550)}
.cover-title{position:absolute;left:12%;right:12%;top:13%;padding:14px 6px 18px;text-align:center;color:#283b31;background:#f5eddaeb;border:1px solid #fffeef;outline:1px solid #384f4255;outline-offset:-6px;box-shadow:0 3px 12px #24362933;font:400 clamp(1.3rem,3.2vw,3rem)/.9 Georgia,serif;letter-spacing:-.045em}.cover-title em{display:block;margin-top:.14em}
.page{position:relative;flex:1;min-width:0;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:clamp(4px,1vh,9px);padding:clamp(8px,1.5vw,18px);background:repeating-linear-gradient(45deg,#ccbda41c 0 1px,transparent 1px 3px),var(--paper);border:1px solid #c7bdab;border-radius:9px 2px 2px 9px;box-shadow:-4px 3px #c9c0ad,-6px 5px #e5dbc7,-9px 8px #53604e,-14px 16px 25px #2b322839;transform-origin:right center}
.page.right{border-radius:2px 9px 9px 2px;box-shadow:4px 3px #c9c0ad,6px 5px #e5dbc7,9px 8px #53604e,14px 16px 25px #2b322839;transform-origin:left center}
.page::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#fff4,transparent 10%,transparent 91%,#69574335);border-radius:inherit}
.page.right::after{background:linear-gradient(90deg,#69574335,transparent 9%,transparent 90%,#fff4)}
.sleeve{position:relative;display:grid;place-items:center;min-height:0;min-width:0;border-radius:3px;border:1px solid #c7bead;background:#fff4;box-shadow:inset 0 -2px #b5ab9340,inset 0 1px #fff}
button.sleeve{width:100%;padding:4px;overflow:hidden}
.sleeve img{width:100%;height:100%;min-height:0;position:absolute;inset:0;padding:4px;object-fit:contain;transition:transform .22s ease}
.sleeve::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(158deg,#fff4 0%,transparent 25%,transparent 75%,#fff2 100%)}
button.sleeve:hover img,button.sleeve:focus-visible img{transform:translateY(-3px)}
.sleeve.lifted img{visibility:hidden}
.flap{position:absolute;top:0;bottom:0;width:50%;z-index:4;pointer-events:none;margin:0;box-shadow:0 6px 14px #171c1740!important}
.flap.right{right:0}.flap.left{left:0}
.controls{display:flex;align-items:center;gap:12px}
.arrow,.page-choice{border:1px solid #9ea99a;border-radius:6px;background:#f7f7ee}
.arrow{height:42px;width:46px;font-size:1.2rem}
.arrow:not(:disabled):hover,.page-choice:hover{background:#e0e6da}
.page-choice select{height:40px;min-width:145px;padding:0 10px;background:transparent;border:0;font-size:.82rem;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
dialog{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:transparent;overflow:hidden;color:#fcf7e9}
dialog::backdrop{background:rgba(17,24,20,var(--dim,.94));transition:background .32s}
#large{position:absolute;object-fit:contain;box-shadow:0 12px 36px #0006}
dialog button{position:absolute;z-index:1;width:44px;height:44px;border:1px solid #cdd4c088;border-radius:50%;background:#28372e;color:inherit;font-size:1.25rem}
.viewer-close{right:16px;top:12px}
.viewer-prev,.viewer-next{bottom:10px}.viewer-prev{left:16px}.viewer-next{right:16px}
#caption{position:absolute;left:65px;right:65px;bottom:9px;margin:0;text-align:center;padding:8px 0;font-size:.88rem}
@media(max-width:720px){
.layout{display:block;padding:0 14px}.masthead{height:47px}
.intro{padding:16px 0 0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
h1{font-size:clamp(2rem,8vw,3.1rem);margin:0}h1 br{display:none}
.description{display:none}.hint{grid-column:1/-1;margin:0;max-width:none;font-size:.73rem}
.primary{padding:8px 9px;min-width:0;font-size:.8rem}.primary span{margin-left:4px}
.reader{padding:18px 0 24px;gap:15px}.stage{height:min(61svh,calc((100vw - 28px) * 1.04))}
.book{width:min(100%,calc(min(61svh,(100vw - 28px) * 1.04) * 1.09))}
.book.closed{width:min(82%,calc(min(61svh,(100vw - 28px) * 1.04) * .525))}
.page{padding:6px}.cover-title{font-size:clamp(1.3rem,5vw,2.4rem)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.viewer-zoom{left:16px;top:12px;display:grid;place-items:center}
.viewer-zoom span{width:14px;height:14px;border:2px solid currentColor;border-radius:50%;position:relative;transform:translate(-2px,-2px)}
.viewer-zoom span::after{content:"";position:absolute;width:8px;height:2px;background:currentColor;top:11px;left:9px;transform:rotate(45deg)}
.viewer-zoom[aria-pressed="true"]{background:#f7f7ee;color:#28372e}
#large.zoomed{cursor:grab;touch-action:none}
#large.zoomed:active{cursor:grabbing}
.sleeve-slot{position:relative;min-width:0;min-height:0;display:grid}
.sleeve-slot.has-note{padding-top:22px}
.has-note .sleeve{z-index:1;background-color:#f5f0e6}
.note-tab{position:absolute;top:4px;right:9%;width:clamp(54px,49%,128px);height:31px;padding:0;border:0;border-radius:1px 3px 0 0;background:#e4d5af var(--note-image) 50% var(--note-position) / 112% var(--note-image-height) no-repeat;box-shadow:0 2px 4px #4d3c2966;filter:contrast(1.08);transform:rotate(-4deg);transition:transform .18s ease}
.sleeve-slot:nth-child(even) .note-tab{right:13%;transform:rotate(3deg)}
.note-tab:hover,.note-tab:focus-visible{transform:translateY(-3px) rotate(-2deg)}
.note-pocket{grid-template-rows:1fr;place-items:center;background:linear-gradient(155deg,#efeee430,#fff7),#cdc4b0}
.note-stack{width:72%;padding:6px 6px 8px;border:1px solid #b1a48b;background:#f7eddb;border-radius:3px;box-shadow:3px 4px #e8dec8,5px 6px #b8aa8e;font-size:.78rem;transform:rotate(-4deg)}
.note-stack img{display:block;width:100%;max-height:42vh;object-fit:contain}
#note-viewer{display:none;place-items:center;padding:12px}
#note-viewer[open]{display:grid}
.note-panel{width:min(100%,470px);max-height:100%;overflow:auto;padding:12px 16px;background:#f4eee1;color:#27362e;border-radius:8px}
.note-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.note-panel h2{margin:0 0 8px;font:1.35rem Georgia,serif}
.note-panel button{position:static;background:#314c3f}
.note-sheet{position:relative;width:min(100%,49svh);margin:auto;overflow:hidden}
.note-sheet img{display:block;width:100%;filter:contrast(1.17) brightness(1.035)}
#note-highlight{position:absolute;transition:top .24s ease,height .24s ease;left:2%;right:2%;border:2px solid #d99723;background:#ffd46933;box-shadow:0 0 0 100vmax #211d1824;pointer-events:none}
 
.note-transcript h3{font-size:.88rem;margin:13px 0 5px}
.note-transcript ul{list-style:none;padding:0;margin:0}
.note-transcript li{display:grid;grid-template-columns:2.5em minmax(0,1fr);gap:2px 8px;padding:6px 8px;font-size:.84rem;border-radius:4px}
.note-transcript .matching-entry{background:#f8e3a3}
.note-transcript small{grid-column:2;color:#594725}

.cover-title img{display:block;width:100%;height:auto;max-height:33vh;padding:3px 9px;object-fit:contain}
.note-transcript li{display:block;padding:0}
.note-excerpt{display:grid;grid-template-columns:2.5em minmax(0,1fr);gap:8px;text-align:left}
.note-panel button.note-excerpt{width:100%;height:auto;padding:7px 8px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:inherit;line-height:inherit}
.note-panel button.note-excerpt:hover{background:#ded1b75c}
.note-transcript small{display:block;padding:0 8px 6px 3.7em}
#note-reader{padding:6px 2px 8px}
.note-panel #note-back{width:auto;height:auto;min-height:38px;padding:6px 12px;border-radius:5px;font-size:.83rem;color:#fcf7e9}
#note-card{padding:20px;margin:18px 5px;min-height:10em;background:#fffbef;border:1px solid #cbbd9f;border-radius:4px;box-shadow:3px 4px #e1d6bc,5px 6px #c7b99e}
#note-card h3{margin:0 0 8px;font:1.3rem Georgia,serif}
#note-card p{margin:0}
.note-carousel{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px}
.note-panel .note-arrow{font-size:1.35rem;color:#fcf7e9}
.note-panel .note-arrow:hover,.note-panel .note-arrow:focus-visible{background:#496453}
.note-carousel .note-sheet{width:min(100%,49svh)}
@media(max-width:380px){.note-carousel{gap:4px}}

/* A quiet, lived-in archive: oat paper, cabinet green, and soft afternoon light. */
:root{
  color-scheme:light;
  --ink:#2f382f;--muted:#686b5f;--line:#c9c2b1;--paper:#f2ecdd;
  --room:#e8e1d3;--moss:#405747;--gold:#c9a66b;
}
html{min-height:100%;background:#e8e1d3}
body{min-height:100dvh;min-width:280px;background:radial-gradient(ellipse at 50% 25%,#f5f1e8 0,#e7e1d5 68%,#dcd5c7 100%);color:var(--ink);font-family:Georgia,"Times New Roman",serif}
button,select{font-family:inherit}
button:focus-visible,select:focus-visible{outline:2px solid #6f795f;outline-offset:3px}
.layout{display:block;max-width:none;min-height:100dvh;padding:0 clamp(16px,4.5vw,72px)}
.masthead{height:62px;border-color:#a99e8970;color:#57604f;font:600 .66rem/1.2 system-ui,sans-serif;letter-spacing:.18em}
.mark{border-color:#8d8b75;color:#405747;font:600 12px Georgia,serif}
.masthead-date{margin-left:auto;letter-spacing:.12em;color:#777466}
.room-scene{position:relative;min-height:calc(100dvh - 62px);height:calc(100dvh - 62px);max-height:1000px;display:grid;place-items:center;overflow:hidden}
.room-scene[hidden]{display:none!important}
.room-image-frame{position:relative;height:min(100%,94svh);aspect-ratio:9/16;max-width:100%;filter:drop-shadow(0 18px 26px #493d2b30)}
.room-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:2px}
.room-caption{position:absolute;left:clamp(12px,4vw,62px);top:50%;transform:translateY(-50%);z-index:2;width:min(25%,290px);padding:clamp(12px,1.6vw,22px);background:#f3eddfed;border:1px solid #fff8;box-shadow:0 12px 34px #3a342522}
.room-caption h1{font-size:clamp(2rem,3.4vw,3.7rem)}
.room-instruction{margin:0;max-width:24ch;color:var(--ink);font:400 .88rem/1.5 system-ui,sans-serif}
.eyebrow{margin:0 0 10px;color:#77725f;font:600 .65rem/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase}
h1{font:400 clamp(2.5rem,4.2vw,4.5rem)/.9 Georgia,serif;letter-spacing:-.06em;margin:0 0 17px}
h1 em{color:#526d58}
.title-family,.title-year{font-size:.4em;line-height:1.1;letter-spacing:.02em}
.title-family{margin-bottom:.4em}
.title-year{margin-top:.42em}
.description{margin:0 0 19px;color:#696b5e;font-size:.9rem;max-width:22ch}
.primary{background:#405747;color:#f8f3e8;border:1px solid #405747;border-radius:2px;padding:11px 15px;min-width:150px;font:600 .77rem system-ui,sans-serif;letter-spacing:.02em;transition:background .18s,transform .18s}
.primary:hover{background:#30473a;transform:translateY(-1px)}
.primary span{margin-left:17px}
.room-hotspot{position:absolute;z-index:3;left:17%;top:46%;width:66%;height:13%;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer}
.room-hotspot:focus-visible{outline:3px solid #f7edce;outline-offset:4px;box-shadow:0 0 0 7px #4057479c}
.hotspot-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:8px 13px;background:#f4eddaed;border:1px solid #c5b58d;color:#384538;box-shadow:0 4px 12px #241c1833;font:600 .68rem/1.1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;opacity:0;transition:opacity .2s}
.room-hotspot:hover .hotspot-label,.room-hotspot:focus-visible .hotspot-label{opacity:1}
.room-hint{position:absolute;right:0;bottom:17px;margin:0;color:#767264;font:italic .77rem Georgia,serif}
.reader[hidden]{display:none!important}
.reader{--book-height:max(180px,calc(100svh - 180px));min-height:calc(100dvh - 62px);max-width:1420px;margin:0 auto;padding:14px 0 16px;align-self:stretch;grid-template-rows:auto auto auto;align-content:start;gap:12px}
.reader-heading{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 2px}
.reader-heading .eyebrow{margin:0 0 3px}
.reader-title{margin:0;font:italic 1.42rem Georgia,serif;letter-spacing:-.03em}
.page-navigation{position:relative;width:min(100%,calc(var(--book-height) * 1.08 + 24px));min-width:0;padding-inline:12px}
.page-navigation:has(.book.closed):not(:has(.book.turning-open)){width:min(100%,calc(var(--book-height) * .525 + 24px))}
.page-navigation>.arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:12;display:grid;place-items:center;width:48px;height:72px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#314c3f;font-size:2.4rem;line-height:1;text-shadow:0 1px 3px #f8f2e5,0 0 8px #f8f2e5;touch-action:manipulation}
.page-navigation>#previous{left:-8px}
.page-navigation>#next{right:-8px}
.page-navigation>.arrow:not(:disabled):hover{background:transparent;color:#132d20}
.page-navigation>.arrow:not(:disabled):active{background:transparent;color:#607656}
#pages[hidden]{display:none!important}
.text-button{position:static;width:auto;height:auto;padding:8px 0;border:0;border-radius:0;background:transparent;color:#606858;font:600 .73rem system-ui,sans-serif}
.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.stage{height:var(--book-height);min-height:0;touch-action:pan-y}
.book{height:100%;width:min(100%,calc(var(--book-height) * 1.08))}
.book.closed{width:min(100%,calc(var(--book-height) * .525))}
.cover{cursor:pointer}
.cover-title{font-family:Georgia,serif}
.page{background:repeating-linear-gradient(45deg,#8e7a5210 0 1px,transparent 1px 4px),#f2ecdd}
.sleeve{overflow:hidden;background:#e9e2d3;border-color:#c7baa3;box-shadow:inset 0 0 0 3px #f7f1e6,inset 0 -2px #8a806b30}
.sleeve::before{content:"";position:absolute;z-index:3;top:0;left:3px;right:3px;height:7px;pointer-events:none;background:linear-gradient(#fff9,#e5dbc9aa);box-shadow:0 1px 1px #8a806b55}
.sleeve img{transition:transform .34s cubic-bezier(.2,.65,.3,1)}
button.sleeve:hover img,button.sleeve:focus-visible img{transform:translateY(-7px)}
.sleeve.lifted img{visibility:hidden}
.flap{transform-style:preserve-3d;backface-visibility:hidden}
.page.dragging{z-index:8;transition:none;filter:drop-shadow(13px 7px 8px #2223)}
.page.settling{transition:transform .34s cubic-bezier(.2,.7,.25,1)}
.controls{gap:10px}
.arrow,.page-choice{border-color:#b9b19f;border-radius:2px;background:#f4f0e6}
.arrow{width:44px;height:40px;font-family:system-ui,sans-serif}
.page-choice select{font: .76rem system-ui,sans-serif}
.sound-toggle{height:38px;padding:0 11px;border:1px solid #b9b19f;border-radius:2px;background:#f4f0e6;color:#51584c;font:600 .67rem system-ui,sans-serif}
.sound-toggle[aria-pressed="true"]{background:#dfe4d8;border-color:#78866f}
.reader-hint{margin:0;color:#777466;text-align:center;font:italic .77rem Georgia,serif}
.note-tab{clip-path:polygon(0 0,100% 0,100% 82%,91% 78%,84% 87%,76% 80%,67% 88%,59% 80%,49% 87%,40% 80%,29% 87%,18% 80%,9% 87%,0 80%);height:34px;transition:transform .2s,filter .2s}
.note-tab:hover,.note-tab:focus-visible{transform:translateY(-6px) rotate(-1deg);filter:contrast(1.2) brightness(1.06)}
@keyframes tucked-note-wiggle{
  0%,76%,100%{rotate:0deg;translate:0 0}
  80%{rotate:-4deg;translate:0 -3px}
  84%{rotate:4deg;translate:0 -3px}
  88%{rotate:-2deg;translate:0 -2px}
  92%{rotate:2deg;translate:0 -1px}
  96%{rotate:0deg;translate:0 0}
}
@media(prefers-reduced-motion:no-preference){
  .note-tab{animation:tucked-note-wiggle 5.5s ease-in-out infinite;transform-origin:50% 100%}
  .sleeve-slot:nth-child(even) .note-tab{animation-delay:.7s}
  .note-tab:hover,.note-tab:focus-visible,body:has(dialog[open]) .note-tab{animation:none}
  .turning-flap .note-tab{animation:none}
}
.note-stack{cursor:pointer}
#note-viewer{color:#353a31}
.note-panel{border-radius:2px;box-shadow:0 16px 60px #201c1450;background:#f1e9d8}
.note-sheet{filter:drop-shadow(2px 4px 4px #51463138);clip-path:polygon(0 1%,4% 0,8% 1%,13% 0,18% 1%,23% 0,28% 1%,34% 0,40% 1%,46% 0,52% 1%,58% 0,64% 1%,70% 0,76% 1%,82% 0,88% 1%,94% 0,100% 1%,99% 99%,92% 100%,86% 99%,80% 100%,74% 99%,68% 100%,62% 99%,56% 100%,50% 99%,44% 100%,38% 99%,32% 100%,26% 99%,20% 100%,14% 99%,8% 100%,0 99%)}
#note-highlight{transition:top .24s ease,height .24s ease}
.note-panel #note-card{border-radius:2px;background:#f8f2e4}
.note-panel #note-card{width:100%;margin:0;padding:14px 15px}
.book.mobile-book .flap{width:100%;left:0;right:auto}
#note-overview[hidden],#note-reader[hidden],#note-viewer [hidden],.note-panel [hidden]{display:none!important}
@media(max-width:720px){
 .layout{padding:0 14px}.masthead{height:50px;font-size:.58rem}.room-scene{height:calc(100dvh - 50px);min-height:520px}
 .room-image-frame{height:min(76%,72svh);width:auto;max-width:100%}
 .room-caption{top:12px;left:0;transform:none;width:min(58%,210px);padding:10px 12px}
 .room-caption h1{font-size:clamp(1.5rem,6.5vw,1.9rem);margin-bottom:7px}
 .room-caption .eyebrow{font-size:.56rem;margin-bottom:7px}
 .room-caption .room-instruction{font-size:.76rem;line-height:1.4}
 h1{font-size:clamp(2rem,8vw,2.9rem);margin-bottom:9px}
 .description{font-size:.77rem;margin-bottom:10px}.primary{min-width:0;padding:9px 10px;font-size:.7rem}
 .room-hint{right:0;bottom:8px;font-size:.68rem}
 .room-hotspot{left:17%;top:46%;width:66%;height:13%}
 .reader{--book-height:min(max(180px,calc(100svh - 180px)),calc((100vw - 52px) / .66));min-height:calc(100dvh - 50px);padding:12px 0 16px;gap:12px}
 .reader-title{font-size:1.2rem}.text-button{font-size:.66rem}
 .page-navigation,.page-navigation:has(.book.closed):not(:has(.book.turning-open)){width:min(100%,calc(var(--book-height) * .66 + 24px))}
 .page-navigation>.arrow{height:64px;font-size:2.1rem}
 .stage{height:var(--book-height);min-height:0}
 .book,.book.mobile-book,.book.closed{width:min(100%,calc(var(--book-height) * .66))}
 .book.mobile-book .page{flex:0 0 100%;width:100%;border-radius:8px 3px 3px 8px;box-shadow:-3px 3px #c9c0ad,-5px 5px #e5dbc7,-8px 8px #53604e,0 13px 25px #2b322839}
 .book.mobile-book .page.right{border-radius:3px 8px 8px 3px;transform-origin:right center}
 .book.mobile-book .note-pocket{flex:0 0 100%;width:100%}
 .book.mobile-book .cover{width:100%}
 .page{padding:8px;gap:8px}
 .controls{gap:7px}
 .page-choice select{min-width:108px;padding:0 5px;font-size:.7rem}
 .arrow{width:39px;height:38px}
 .sound-toggle{height:36px;padding:0 8px;font-size:.62rem}
 .reader-hint{font-size:.69rem;max-width:39ch}
 .note-panel{padding:10px}
}
@media(max-width:380px){
 .layout{padding-inline:10px}.room-caption{width:min(58%,190px)}.room-caption h1{font-size:1.5rem}
 .controls{gap:4px}.page-choice select{min-width:92px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* Page turns keep the next sheet underneath an inert, touch-following paper leaf. */
.page{touch-action:pan-y}
.book.turning-open:not(.mobile-book){width:min(100%,calc(var(--book-height) * 1.08))}
.book.turning-open:not(.mobile-book)>.cover{position:absolute;top:0;right:0;left:auto;width:50%;height:100%;z-index:0}
.book.turning-open .turning-cover{position:absolute;top:0;right:0;left:auto;width:50%;height:100%;z-index:10;pointer-events:none}
.turning-flap{z-index:9;backface-visibility:hidden;transform-style:preserve-3d;pointer-events:none;will-change:transform,filter}
.turning-flap::before{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(90deg,#29302700 53%,#1c211b52 100%);opacity:var(--turn-progress,0)}
.page-turn-corner{position:absolute;z-index:7;bottom:0;width:48px;height:48px;padding:0;border:0;border-radius:0;background:transparent;color:transparent;touch-action:none;cursor:grab}
.page-turn-corner.next{right:0}
.page-turn-corner.previous{left:0}
.page-turn-corner::after{content:"";position:absolute;bottom:1px;width:24px;height:24px;background:linear-gradient(135deg,#d9ceb7 0 48%,#f8f2e5 50% 72%,#a99e8978 74%);transition:transform .16s,filter .16s}
.page-turn-corner.next::after{right:1px;clip-path:polygon(0 100%,100% 0,100% 100%)}
.page-turn-corner.previous::after{left:1px;clip-path:polygon(0 0,100% 100%,0 100%)}
.page-turn-corner:hover::after,.page-turn-corner:focus-visible::after{filter:brightness(1.04);transform:scale(1.14)}
.page-turn-corner:focus-visible{outline:2px solid #627d68;outline-offset:-3px}
.page-turn-corner:active{cursor:grabbing}
#large{border:1px solid #e4dccb;padding:5px;background:#f4edde;box-shadow:0 14px 42px #0007,0 0 0 1px #fff5}
.note-panel{transform-origin:0 0;will-change:transform,opacity}
.note-sheet{transform-origin:50% 0}
.note-panel{width:min(100%,1020px);max-height:calc(100svh - 24px)}
.note-content{--note-frame-height:clamp(180px,calc(100svh - 300px),440px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
.note-panel:has(#note-continuation:not([hidden])) .note-content{--note-frame-height:clamp(150px,calc(100svh - 370px),390px)}
.note-frame{position:relative;overflow:hidden;margin:auto;width:min(100%,calc(var(--note-frame-height) * var(--note-crop-ratio)));aspect-ratio:var(--note-crop-ratio);background:#211f1c}
.note-sheet,.note-carousel .note-sheet{position:absolute;width:var(--note-sheet-width);left:var(--note-sheet-left);top:var(--note-sheet-top);margin:0;clip-path:none}
.note-sheet img{height:auto}
.note-reading{min-width:0;max-height:var(--note-frame-height);overflow:auto;padding:0 4px 8px}
.note-reading #note-reader{padding-top:0}
.note-reading .note-transcript h3{margin-top:0}
.note-reading #note-card{margin-top:10px}
.note-sheet img{filter:none}
.note-sheet img.enhanced{filter:contrast(1.08) brightness(1.02)}
#note-highlight{box-sizing:border-box;transition:top .24s ease,left .24s ease,width .24s ease,height .24s ease;box-shadow:none}
.note-sheet-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:8px 0}
.note-panel .note-sheet-controls button{width:auto;height:auto;min-height:44px;padding:7px 10px;font-size:.8rem;color:#fff8eb;border-radius:4px}
#sheet-count{font-size:.8rem;white-space:nowrap}
.note-display-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.75rem;margin:10px 0}
.note-display-controls label{display:flex;align-items:center;gap:6px;min-height:32px}
.note-display-controls input{width:18px;height:18px}
.note-display-controls span{color:#645d4f}
#excerpt-count{text-align:center;font-size:.78rem;margin:8px 0}
.note-panel .note-arrow{min-width:44px;min-height:44px}
.note-match{font-size:.8rem;line-height:1.45;border-left:2px solid #b0a17b;padding-left:9px}
.note-continuation-links{display:flex;flex-wrap:wrap;gap:6px}
.note-panel .note-continuation-links button{width:auto;height:auto;min-height:40px;padding:6px 10px;color:#fff8eb;font-size:.77rem;border-radius:4px}
.note-panel .note-continuation-links button[aria-pressed="true"]{background:#70592b}
#note-continuation{font-size:.82rem;margin:8px 0}
.note-transcript .matching-entry .note-excerpt{background:#f8e3a3}
.note-panel #note-card{border-left:3px solid #d99723}
@media(max-width:420px){
 .note-sheet-controls{gap:5px}
 .note-panel .note-sheet-controls button{padding:6px;font-size:.72rem}
 #sheet-count{font-size:.72rem}
 .note-display-controls{align-items:flex-start}
 .note-display-controls span{text-align:right;max-width:140px}
}
@media(max-width:720px){
 .note-content{display:block;--note-frame-height:min(52svh,420px)}
 .note-panel:has(#note-continuation:not([hidden])) .note-content{--note-frame-height:min(52svh,420px)}
 .note-reading{max-height:none;overflow:visible;margin-top:16px}
 .note-display-controls{flex-wrap:wrap;justify-content:flex-start;gap:6px 16px}
 .note-display-controls span{flex-basis:100%;text-align:left;max-width:none}
}
@media(max-width:720px){
 .book.turning-open:not(.mobile-book){width:min(100%,calc(var(--book-height) * .66))}
 .book.mobile-book .turning-cover{width:100%;right:0}
 .page-turn-corner{width:42px;height:42px}
 .page-turn-corner::after{width:21px;height:21px}
}
