:root{--ink:#3d3637;--muted:#827a77;--paper:#fdfaf4;--bg:#f1eee9;--ease:cubic-bezier(.22,.74,.18,1)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #a37483;outline-offset:5px}button:disabled{cursor:default}#shelf{max-width:530px;margin:auto;padding:27px 27px 36px}.top{display:flex;align-items:center;justify-content:space-between;padding-top:env(safe-area-inset-top)}.wordmark{font-size:29px;font-weight:750;letter-spacing:-1.6px;text-decoration:none;color:var(--ink)}.wordmark span{color:#8b4a60}.test-label{display:flex;align-items:center;gap:6px;border:1px solid #d8d1cb;border-radius:20px;padding:7px 10px;font-size:9px;color:#847771}.test-label i{width:4px;height:4px;border-radius:50%;background:#9c806a}.intro{padding:43px 0 32px}.eyebrow{font-size:8px;letter-spacing:1.5px;text-transform:uppercase;font-weight:550}h1{font:400 38px/1.15 Georgia,'Times New Roman',serif;letter-spacing:-1.3px;margin:14px 0}h1 em{color:#87536a;font-weight:400}.intro p{font-size:12px;color:var(--muted);margin:15px 0 0}.books{display:grid;grid-template-columns:1fr 1fr;column-gap:25px;row-gap:31px;padding:0 5px 0 2px;align-items:start}.book-item{border:0;background:none;text-align:left;padding:0;min-width:0;perspective:1000px}.book-item:nth-child(even){padding-top:27px}.book-item .volume{aspect-ratio:.72;width:100%;position:relative;box-shadow:1px 2px 0 #cdc5bc,3px 3px 0 #faf8f1,4px 4px 0 #d2cbc2,5px 5px 0 #faf8f1,6px 6px 0 #c6beb4,7px 13px 15px #5e4a3a24;border-radius:4px 10px 10px 4px;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}.volume,.cover-face{container-type:inline-size;overflow:hidden;background:var(--cover);color:var(--foil);border:1px solid #ffffff14}.volume:before,.cover-face:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:4;background:linear-gradient(90deg,#0003 0%,#0001 2%,#ffffff14 4%,transparent 6%,#00000018 7%,transparent 9%,transparent 96%,#00000014 100%),repeating-linear-gradient(0deg,#ffffff05 0,#ffffff05 1px,transparent 1px,transparent 3px),repeating-linear-gradient(90deg,#00000005 0,#00000005 1px,transparent 1px,transparent 3px)}.cover-layout{position:absolute;inset:0;padding:14% 13% 12% 17%;display:flex;flex-direction:column;align-items:flex-start}.cover-edition{font-size:4.2cqw;text-transform:uppercase;letter-spacing:.14em;opacity:.78}.cover-title{font-family:Georgia,'Times New Roman',serif;font-size:18cqw;line-height:1.02;font-weight:400;letter-spacing:-.045em;margin:17% 0 0;position:relative;z-index:2;overflow-wrap:anywhere}.cover-subtitle{font-size:4.4cqw;letter-spacing:.02em;line-height:1.6;opacity:.78;margin-top:8%}.cover-symbol{width:100%;height:32%;margin:auto 0 0;overflow:visible;stroke:currentColor;opacity:.55;fill:none;stroke-width:.65}.cover-bottom{font-size:4.4cqw;letter-spacing:.07em;display:flex;justify-content:space-between;width:100%;margin-top:12%;opacity:.75}.elastic{position:absolute;z-index:5;right:9%;top:-1px;width:3.2%;height:calc(100% + 2px);background:linear-gradient(90deg,#00000027,#00000012 50%,#ffffff15 75%,#00000024);box-shadow:1px 0 1px #0001;border-left:1px solid #ffffff08;transform-origin:50% 0}.book-caption{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:16px 0 0 5px;font-size:10px;color:var(--muted)}.book-caption svg{opacity:.6;width:15px;height:15px}.book-item.is-source .volume{visibility:hidden}.book-item.is-source .book-caption{opacity:0}.foot{padding-top:43px;color:var(--muted);display:flex;flex-direction:column;gap:14px;text-align:center;font-size:10px;line-height:1.7}.foot>span:last-child{font-size:9px;opacity:.8}.reader-wash{position:fixed;inset:0;z-index:-1;background:#f1eee9;opacity:0;transition:opacity .45s ease}dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:0;background:transparent;color:var(--ink);overflow:hidden;isolation:isolate}dialog::backdrop{background:#30252c00;transition:background .4s}dialog.engaged::backdrop{background:#30252c55}dialog.engaged .reader-wash{opacity:.96}.reader-controls{position:absolute;top:max(18px,env(safe-area-inset-top));left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;opacity:0;transition:opacity .3s;z-index:10;max-width:720px;margin:auto}.reader-controls>span{font-size:9px;letter-spacing:1.1px;text-transform:uppercase;color:#827775}.reader-controls button{border:1px solid #d8d0c9;border-radius:24px;background:#f9f6efc9;display:flex;align-items:center;gap:9px;padding:11px 13px;min-height:44px;font-size:11px}.reader-hint{position:absolute;bottom:max(11px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;font-size:9px;letter-spacing:.4px;color:#8f8380;opacity:0;transition:opacity .3s;margin:10px}.engaged .reader-controls,.engaged .reader-hint{opacity:1}#flight{position:fixed;perspective:1800px;transform-origin:0 0;z-index:2;will-change:transform;pointer-events:none}.book-body{width:100%;height:100%;position:relative;transform-style:preserve-3d}.paper{position:absolute;inset:0;background:var(--paper);border-radius:3px 9px 9px 3px;overflow:auto;overscroll-behavior:contain;box-shadow:inset 12px 0 15px -12px #442d2055,0 15px 35px #3e2a2826;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#d5c8b6 transparent}.paper:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#936d3b03 0,#936d3b03 1px,transparent 1px,transparent 4px)}.page-inner{min-height:100%;padding:29px 25px 19px 29px;display:flex;flex-direction:column;position:relative}.page-header{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#8e8172}.page-header .eyebrow{font-size:7px;letter-spacing:1px}.folio{font:italic 11px Georgia,serif;color:#a29487}.paper h2{font:400 35px/1.08 Georgia,serif;letter-spacing:-1px;margin:23px 0 10px;color:#493b3f;overflow-wrap:anywhere}.address{font-size:11px;line-height:1.6;color:#95867c;margin:0}.divider{display:flex;align-items:center;gap:14px;color:#c3b5a5;margin:25px 0 13px}.divider span{height:1px;background:#e7ddcf;flex:1}.page-tabs{display:flex;gap:17px;border-bottom:1px solid #e8ddcf;margin-bottom:21px}.page-tabs button{position:relative;border:0;background:transparent;color:#a09082;font-size:11px;padding:13px 0;min-height:44px}.page-tabs button[aria-selected=true]{color:#764657}.page-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;height:2px;background:#92566c;left:0;right:0}#content{flex:1;font-size:13px;line-height:1.6;min-height:220px;color:#6c5a54}.small-label{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:#a49382;margin:0 0 11px}.description{font:400 19px/1.5 Georgia,serif;color:#68554f;margin:0 0 23px}.project-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;border-top:1px solid #e8ddcf;padding-top:20px}.project-facts small{display:block;font-size:9px;color:#9c8b7f}.project-facts strong{display:block;font-size:13px;font-weight:500;margin-top:5px}.stage{display:flex;gap:13px;align-items:flex-start;border-bottom:1px solid #e8ddcf;padding:13px 0}.stage:first-child{padding-top:0}.stage-circle{width:22px;height:22px;flex-shrink:0;border:1px solid #d1c1af;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#9b8276;margin-top:2px}.stage.done .stage-circle{background:#e4e9de;color:#65745e;border-color:#e4e9de}.stage strong{font-size:12px;font-weight:500}.stage small{display:block;color:#a08f81;font-size:10px;margin-top:3px}.handnote{font:italic 19px/1.8 Georgia,serif;background:repeating-linear-gradient(transparent 0,transparent 33px,#e8ddcf 33px,#e8ddcf 34px);padding:0 0 15px;color:#75605b;margin:4px 0}.note-date{font-size:9px;color:#a19080;margin:19px 0}.page-footer{display:flex;justify-content:space-between;align-items:center;color:#b2a28f;font-size:8px;border-top:1px solid #e8ddcf;padding-top:17px;margin-top:27px}.page-footer span:last-child{font:italic 15px Georgia,serif}.page-stack{position:absolute;inset:3px -5px -5px 1px;background:repeating-linear-gradient(0deg,#bfb3a2 0,#bfb3a2 1px,#f7f0e5 1px,#f7f0e5 3px);border:1px solid #d7ccbb;border-radius:4px 10px 10px 4px;transform:translateZ(-2px)}.hinge,.turn-leaf{position:absolute;inset:0;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform;pointer-events:none}.hinge{z-index:6}.cover-face,.cover-back{position:absolute;inset:0;border-radius:3px 9px 9px 3px;backface-visibility:hidden;-webkit-backface-visibility:hidden}.cover-face{transform:translateZ(2px);box-shadow:4px 7px 15px #37232424}.cover-back{transform:rotateY(180deg) translateZ(2px);background:var(--inside);overflow:hidden;box-shadow:inset -6px 0 12px #0002}.inside-border{position:absolute;inset:15px;border:1px solid #ffffff25;border-radius:3px}.inside-imprint{position:absolute;top:23%;left:15%;right:15%;font:16px/1.6 Georgia,serif;color:var(--foil);opacity:.7}.inside-imprint em{display:block;margin-top:20px}.inside-pocket{position:absolute;bottom:20px;left:18px;right:18px;height:27%;border:1px solid #ffffff18;background:#ffffff07;box-shadow:0 -3px 10px #00000009;clip-path:polygon(0 10%,100% 0,100% 100%,0 100%)}.turn-leaf{background:linear-gradient(90deg,#e9e0d2,#faf6ee 7%,#fffcf6 80%,#e8ddcf);border-radius:3px 8px 8px 3px;backface-visibility:hidden;opacity:1;box-shadow:2px 0 5px #432b2115}.leaf-one{z-index:4;transform:translateZ(.7px)}.leaf-two{z-index:3;transform:translateZ(.4px)}.reader-ready .paper{pointer-events:auto}.paper{pointer-events:none}.reader-ready .page-inner{opacity:1}.page-inner{opacity:0;transition:opacity .3s .05s}.reader-ready #flight{pointer-events:auto}.hinge:after{content:'';position:absolute;right:0;top:0;bottom:0;width:2px;background:#ffffff30;transform:translateZ(1px)}@media(min-width:700px){#shelf{max-width:780px;padding:35px 40px}.intro{padding-top:55px}h1{font-size:49px}.books{grid-template-columns:repeat(3,1fr);gap:34px}.book-item:nth-child(even){padding-top:0}.book-item:nth-child(3n+2){padding-top:25px}.reader-controls{max-width:900px}.inside-imprint{font-size:20px}}@media(max-width:360px){#shelf{padding:22px 20px}.books{gap:27px 19px}.intro{padding:35px 0 28px}h1{font-size:34px}.page-inner{padding:24px 19px 17px 23px}.paper h2{font-size:30px}.page-tabs{gap:14px}.reader-controls{left:17px;right:17px}}@media(hover:hover){.book-item:hover .volume{transform:translateY(-6px) rotate(-1deg);box-shadow:1px 2px 0 #cdc5bc,3px 3px 0 #faf8f1,4px 4px 0 #d2cbc2,5px 5px 0 #faf8f1,6px 6px 0 #c6beb4,8px 19px 22px #5e4a3a25}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* A compact, tactile shelf: stable hit areas, moving physical books. */
#shelf{max-width:560px;overflow:hidden;min-height:100svh;padding:27px 24px 30px}.intro{padding:46px 0 26px}h1{font-size:clamp(33px,8vw,44px)}.shelf-scene{position:relative;margin:22px -9px 0;padding:45px 15px 0;isolation:isolate;background:radial-gradient(ellipse at 50% 85%,#d7cfc140,transparent 70%)}.books{display:flex;align-items:flex-end;gap:7px;padding:0 7px;position:relative;height:310px;touch-action:pan-y;user-select:none;-webkit-user-select:none;perspective:1100px;z-index:2}.book-item,.book-item:nth-child(even),.book-item:nth-child(3n+2){position:relative;flex:1;min-width:0;padding:0;height:100%;display:flex;align-items:flex-end;perspective:900px;outline-offset:8px}.book-item .volume{width:100%;height:calc(100% - var(--book-height));aspect-ratio:auto;overflow:visible;border:0;background:none;border-radius:5px;box-shadow:none;transform-style:preserve-3d;transform-origin:50% 100%;transform:translateY(0) rotate(0);transition:transform 420ms cubic-bezier(.2,.8,.2,1)}.volume:before{display:none}.spine{position:absolute;inset:0;border-radius:6px 5px 4px 4px;background:linear-gradient(90deg,#0003,transparent 12%,#ffffff18 36%,transparent 65%,#0003),var(--cover);border:1px solid #ffffff18;box-shadow:inset 2px 0 2px #ffffff20,3px 3px 5px #30231c35;display:flex;flex-direction:column;align-items:center;color:var(--foil);overflow:hidden;z-index:3}.spine:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,#fff0 0 2px,#fff05 2px 3px);pointer-events:none}.spine-title{writing-mode:vertical-rl;transform:rotate(180deg);font:400 clamp(20px,5.5vw,29px)/1 Georgia,serif;letter-spacing:-.4px;white-space:nowrap;margin:auto 0}.spine-number{font-size:8px;letter-spacing:1px;margin-top:20px;opacity:.7}.spine-mark{font:italic 20px Georgia,serif;margin-bottom:20px;border-top:1px solid #ffffff30;padding-top:12px}.shelf-cover{position:absolute;left:100%;top:0;bottom:0;width:190px;container-type:inline-size;background:var(--cover);border-radius:0 7px 7px 0;transform-origin:0 50%;transform:rotateY(89deg);backface-visibility:hidden;box-shadow:5px 5px 0 #e9dfce,7px 9px 12px #36291f30;transition:transform 420ms cubic-bezier(.2,.8,.2,1);pointer-events:none}.shelf-cover .cover-layout{padding-left:12%}.shelf-cover .cover-title{overflow-wrap:normal}.book-item.chosen .volume{transform:translateY(-28px) translateX(-4px) rotate(-3deg)}.book-item.chosen .shelf-cover{transform:rotateY(76deg)}.book-item:hover .volume{box-shadow:none}.book-item:not(.chosen):hover .volume{transform:none}.shelf-board{height:17px;position:relative;background:linear-gradient(#e7d7bf,#c6ac88 18%,#d7c2a3 30%,#c9b18e);border-radius:2px;margin:0 -9px;box-shadow:0 12px 17px #55412e23,0 2px 2px #5b432a20;z-index:1}.shelf-board:before{content:'';position:absolute;left:0;right:0;top:-12px;height:12px;clip-path:polygon(3% 0,97% 0,100% 100%,0 100%);background:linear-gradient(#d7c4a8,#ecdfca)}.selection{text-align:center;padding:35px 0 0;min-height:170px}.selection .eyebrow{color:#998674;font-size:8px}.selection h2{font:400 29px/1.2 Georgia,serif;margin:10px 0 8px;letter-spacing:-.6px}.selection p{font-size:11px;color:#8e8279;margin:0}.gesture-hint{display:block;font-size:10px;color:#988b80;margin-top:26px}.foot{padding-top:27px}.foot>span:first-child{display:none}.book-item.is-source .volume{visibility:hidden}@media(min-width:700px){#shelf{max-width:610px}.books{height:340px;gap:13px}.spine-title{font-size:30px}.intro{padding-top:45px}.shelf-scene{padding-top:40px}}@media(max-width:360px){#shelf{padding:22px 20px}.books{gap:5px;height:280px}.shelf-scene{padding-left:10px;padding-right:10px}.spine-title{font-size:21px}.intro p{font-size:11px}}

/* Shared rigid geometry for leaving and returning to the shelf. */
.book-body{transform-origin:0 50%}.travel-spine{right:auto;transform-origin:0 50%;transform:rotateY(-90deg);backface-visibility:hidden;z-index:auto;border-radius:5px}.travel-spine .spine-title{font-size:calc(24px * var(--travel-scale))}.travel-spine .spine-number{font-size:calc(8px * var(--travel-scale));margin-top:calc(20px * var(--travel-scale))}.travel-spine .spine-mark{font-size:calc(20px * var(--travel-scale));margin-bottom:calc(20px * var(--travel-scale))}.book-item.chosen .volume{transform:translateY(-22px)}
#cabinet{position:relative;padding:0 8px 12px;border-left:7px solid #dac6a8;border-right:7px solid #dac6a8;border-radius:5px;background:linear-gradient(90deg,#c9b99e20,transparent 15%,transparent 85%,#c9b99e20);box-shadow:inset 2px 0 4px #56432d12,inset -2px 0 4px #56432d12}.shelf-scene{margin:0 -3px;padding:42px 6px 0;background:none}.books{height:240px;gap:7px;padding:0 4px}.row-label{position:absolute;top:12px;left:9px;right:9px;display:flex;justify-content:space-between;font-size:7px;letter-spacing:1.2px;color:#9f8e79}.row-label span{letter-spacing:.3px}.shelf-board{margin:0 -10px;height:13px}.row-selection{display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-height:52px;padding:15px 5px 12px}.row-name{font:17px Georgia,serif;color:#68574c}.row-detail{font-size:8px;color:#9b8b7b;text-align:right}.spine-title{font-size:24px}.spine-number{margin-top:16px}.spine-mark{margin-bottom:14px;padding-top:8px}.intro{padding:35px 0 30px}.intro p{max-width:290px;line-height:1.7}.shelf-cover{width:155px}#shelf{max-width:560px}.foot{padding-top:28px}@media(max-width:360px){.books{height:215px;gap:5px}.spine-title{font-size:21px}.row-name{font-size:15px}.row-detail{font-size:7px}}@media(min-width:700px){.books{height:270px}.spine-title{font-size:26px}}

html{scrollbar-gutter:stable}.reader-controls button:disabled{opacity:.6}

/* Quiet cabinet: no changing captions, just tactile bindings and wood. */
#shelf{padding-top:25px;padding-bottom:32px}.top{margin-bottom:28px}.shelf-scene{padding-top:40px;padding-bottom:0}.shelf-scene+.shelf-scene{padding-top:47px}#cabinet{padding-top:1px;padding-bottom:17px;border-width:9px;border-color:#cfb797;background:repeating-linear-gradient(91deg,#856c4610 0 1px,transparent 1px 27px),linear-gradient(90deg,#9d7d4f22,transparent 17%,transparent 85%,#9d7d4f20),#e8dfd0;box-shadow:inset 7px 0 12px -8px #513a2470,inset -7px 0 12px -8px #513a2470,0 8px 20px #57433113;border-top:12px solid #d7c1a0;border-bottom:12px solid #c9ae88;border-radius:4px 4px 2px 2px}.shelf-board{height:16px;background:repeating-linear-gradient(1deg,transparent 0 3px,#7854320c 3px 4px,transparent 4px 8px),linear-gradient(#edddc3,#bfa079 13%,#dbc19a 28%,#ccb088);box-shadow:0 13px 15px #533e2924,0 2px 2px #51381d20}.books{background:linear-gradient(0deg,#6d533121,transparent 30%)}.spine:after{background-image:url('cloth-full.svg'),repeating-linear-gradient(0deg,#fff0 0 2px,#ffffff0d 2px 3px),repeating-linear-gradient(90deg,transparent 0 2px,#0000000c 2px 3px);background-size:140px 140px,3px 3px,3px 3px;opacity:.47;mix-blend-mode:soft-light}.spine{box-shadow:inset 2px 0 2px #ffffff20,inset -3px 0 4px #00000018,3px 4px 5px #30231c38}.spine:before{content:'';position:absolute;inset:7px 4px;border:1px solid #ffffff10;border-radius:5px;box-shadow:0 1px 0 #00000012;pointer-events:none}.spine-title{text-shadow:0 1px 1px #00000045,0 -1px 0 #ffffff15}.shelf-cover:after,.cover-face:after{content:'';position:absolute;inset:0;background:url('cloth-full.svg') repeat;background-size:140px 140px;opacity:.25;mix-blend-mode:soft-light;pointer-events:none;border-radius:inherit}.book-item:nth-child(2n) .spine:after{background-size:100px 130px,3px 3px,3px 3px;opacity:.6}.book-item:nth-child(3n) .spine:before{border-color:#0000000c;inset:9px 4px}.shelf-cover{overflow:hidden}.book-item.chosen .spine{box-shadow:inset 2px 0 2px #ffffff20,inset -3px 0 4px #00000018,4px 7px 9px #30231c38}@media(max-width:360px){#shelf{padding-left:17px;padding-right:17px}.shelf-scene{padding-left:4px;padding-right:4px}}
.shelf-cover .cover-edition,.shelf-cover .cover-subtitle,.shelf-cover .cover-bottom{display:none}.shelf-cover .cover-title{margin-top:18%}.shelf-cover .cover-symbol{margin-top:auto;margin-bottom:16%}

/* Continuous cloth, without tile seams or horizontal ornaments. */
.spine:before{display:none}.spine:after,.book-item:nth-child(2n) .spine:after{background-image:url('cloth-full.svg');background-size:100% 100%;background-repeat:no-repeat;opacity:.36;mix-blend-mode:soft-light}.spine-mark{border:0;padding:0;line-height:0;opacity:.68}.spine-mark svg{display:block;width:15px;height:19px;filter:drop-shadow(0 1px 0 #0002)}.travel-spine .spine-mark svg{width:calc(15px * var(--travel-scale));height:calc(19px * var(--travel-scale))}.shelf-cover:after,.cover-face:after{background-size:100% 100%;background-repeat:no-repeat;opacity:.22}
/* Rounded, timeworn walnut cabinet. */
:root{--bg:#eee9e1}body{background:radial-gradient(ellipse at 40% 0,#f9f4eb,transparent 70%),#eee9e1}#shelf{padding-top:24px;padding-left:27px;padding-right:27px;padding-bottom:48px}.top{margin-bottom:35px}.wordmark{color:#65564b}#cabinet{border:12px solid #a78565;border-top:19px solid #b39473;border-bottom:21px solid #9f7c5d;border-radius:17px 17px 10px 10px;padding:2px 8px 17px;background:url('walnut.svg') center/100% 100%,radial-gradient(ellipse at 40% 20%,#d5c2a8,transparent 80%),linear-gradient(90deg,#7f604249,#cbb79b 12%,#c9b397 85%,#84634550);box-shadow:inset 5px 0 9px #51372230,inset -5px 0 9px #51372226,0 2px 0 #dec7aa,0 12px 20px -12px #50372480,0 30px 45px -25px #64472f55}#cabinet:before{content:'';position:absolute;top:-25px;left:-18px;right:-18px;height:16px;background:linear-gradient(#ccb28f,#b99a76 40%,#a48462 76%,#d2b897);border-radius:12px 12px 7px 7px;box-shadow:0 3px 5px #54382025;pointer-events:none}#cabinet:after{content:'';position:absolute;bottom:-29px;left:5px;right:5px;height:13px;border-left:20px solid #9f7d5d;border-right:20px solid #9f7d5d;border-radius:0 0 7px 7px;pointer-events:none}.shelf-board{height:18px;border-radius:5px;background:url('walnut.svg') center/100% 500%,linear-gradient(#dbc3a0 0%,#bea07a 22%,#a98965 75%,#c8ab85);box-shadow:0 10px 14px #4c321b32,inset 0 1px 1px #f7e6c855,inset 0 -2px 2px #73523730}.shelf-board:before{background:linear-gradient(#ab8e69,#cdb28c);border-radius:3px;clip-path:polygon(2% 0,98% 0,100% 100%,0 100%)}.books{background:linear-gradient(0deg,#5f402329,transparent 24%)}.shelf-scene+.shelf-scene{padding-top:48px}@media(max-width:360px){#shelf{padding-left:21px;padding-right:21px}#cabinet{border-left-width:10px;border-right-width:10px}}
/* Photographic furniture with independently interactive books. */
body{background:#f0eade}#shelf{max-width:660px;padding:25px 0 0;overflow:hidden}.top{padding:0 27px;margin-bottom:0}.intro{padding:24px 27px 12px}.intro h1{font-size:clamp(34px,8vw,47px);line-height:1.15;margin:10px 0 20px;letter-spacing:-1.4px}.intro h1 em{color:#825a55}#cabinet{width:100%;aspect-ratio:756/2079;border:0;padding:0;border-radius:0;box-shadow:none;background:url('antique-cabinet.png') center top/100% 100% no-repeat;isolation:isolate}#cabinet:before,#cabinet:after{display:none}#cabinet .shelf-scene{position:absolute;left:20.4%;right:20.4%;height:16.8%;padding:0;margin:0;background:none;isolation:auto}#cabinet .shelf-scene:nth-child(1){bottom:72.05%}#cabinet .shelf-scene:nth-child(2){bottom:52.05%}#cabinet .shelf-scene:nth-child(3){bottom:32.7%}#cabinet .shelf-scene:nth-child(4){bottom:13.55%}#cabinet .books{height:100%;padding:0;gap:4px;background:none}#cabinet .shelf-board{display:none}.spine-title{font-size:clamp(17px,4.25vw,27px)}.spine-number{font-size:7px;margin-top:13px}.spine-mark{margin-bottom:13px}.spine-mark svg{width:13px;height:17px}.book-item.chosen .volume{transform:translateY(-16px)}.shelf-cover{width:140px}.spine{box-shadow:inset 2px 0 2px #ffffff20,inset -3px 0 4px #00000018,3px 5px 5px #180d0655}.book-item.chosen .spine{box-shadow:inset 2px 0 2px #ffffff20,inset -3px 0 4px #00000018,5px 9px 9px #180d0655}@media(max-width:360px){#shelf{padding:22px 0 0}.top{padding:0 22px}.intro{padding-left:22px;padding-right:22px}.spine-title{font-size:16px}#cabinet .books{gap:3px}.spine-number{font-size:6px}.shelf-cover{width:115px}}
/* Set books back from the shelf lip, leaving a visible wooden ledge. */
#cabinet .shelf-scene{left:22.2%;right:22.2%;height:14.5%}#cabinet .shelf-scene:nth-child(1){bottom:72.9%}#cabinet .shelf-scene:nth-child(2){bottom:52.9%}#cabinet .shelf-scene:nth-child(3){bottom:33.55%}#cabinet .shelf-scene:nth-child(4){bottom:14.4%}#cabinet .books{gap:5px}.spine-title{font-size:clamp(15px,3.7vw,24px)}.spine-number{margin-top:10px}.spine-mark{margin-bottom:10px}.book-item .shelf-cover{box-shadow:3px 5px 8px #160b0650;border:1px solid #00000012;border-left:0}.book-item.chosen .shelf-cover{transform:rotateY(82deg)}.book-item.chosen .volume{transform:translateY(-10px)}.book-item .spine{box-shadow:inset 2px 0 2px #ffffff18,inset -3px 0 4px #00000020,2px 4px 5px #160c0860}.book-item.chosen .spine{box-shadow:inset 2px 0 2px #ffffff18,inset -3px 0 4px #00000020,4px 7px 8px #160c0860}@media(max-width:360px){#cabinet .books{gap:3px}.spine-title{font-size:14px}}
/* Measured shelf contact lines in the frontal cabinet image (819 × 1920). */
#shelf{max-width:720px}#cabinet{aspect-ratio:819/1920;background-image:url('front-cabinet.png')}#cabinet .shelf-scene{left:13.8%;right:13.8%;height:15.3%}#cabinet .shelf-scene:nth-child(1){bottom:72.14%}#cabinet .shelf-scene:nth-child(2){bottom:52.5%}#cabinet .shelf-scene:nth-child(3){bottom:33.07%}#cabinet .shelf-scene:nth-child(4){bottom:12.8%}#cabinet .books{gap:6px}.book-item.chosen .volume{transform:scale(1.025);transform-origin:50% 100%}.spine-title{font-size:clamp(17px,4.35vw,28px)}.book-item .spine{box-shadow:inset 2px 0 2px #ffffff18,inset -3px 0 4px #00000020,2px 2px 3px #160c0866}.book-item.chosen .spine{box-shadow:inset 2px 0 2px #ffffff18,inset -3px 0 4px #00000020,4px 3px 5px #160c0866}@media(max-width:360px){#cabinet .books{gap:4px}.spine-title{font-size:16px}}
/* Six stable spine slots per shelf; books stay behind the furniture face. */
#cabinet .shelf-scene{left:15%;right:15%;height:14.8%}#cabinet .books{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:end}.book-item{width:100%}.book-item .shelf-cover{display:none}.book-item.chosen .volume,.book-item:hover .volume{transform:none}.book-item .spine{background:linear-gradient(90deg,#00000046,transparent 18%,#ffffff0c 42%,transparent 65%,#00000038),var(--cover);box-shadow:inset 1px 0 2px #ffffff12,inset -2px 0 3px #00000032,1px 1px 2px #130a0860;transition:box-shadow .25s,color .25s}.book-item.chosen .spine{box-shadow:inset 1px 0 2px #ffffff25,inset -2px 0 3px #00000025,0 0 0 1px #e9d5b54d}.book-item.chosen .spine-title{text-shadow:0 0 9px #f6e7ca35,0 1px 1px #0004}.books:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:15;background:linear-gradient(180deg,#2513081c,transparent 24%,transparent 86%,#1b0d0626)}.spine-title{font-size:clamp(16px,3.8vw,24px)}.spine-number{font-size:6px}.spine-mark svg{width:11px;height:15px}@media(max-width:360px){#cabinet .books{gap:3px}.spine-title{font-size:14px}}
/* Tactile browsing again: movement, without glow or a loose white page. */
#cabinet .shelf-scene{height:16.2%}.books:after{display:none}.book-item .shelf-cover{display:block;transform:rotateY(89deg);box-shadow:3px 5px 8px #160b0640;transition:transform 360ms cubic-bezier(.2,.75,.2,1)}.book-item .volume{transform-origin:50% 100%;transition:transform 360ms cubic-bezier(.2,.75,.2,1)}.book-item.chosen .volume,.book-item.chosen:hover .volume{transform:translateY(-12px) translateX(-2px) rotate(-1.5deg)}.book-item.chosen .shelf-cover{transform:rotateY(78deg)}.book-item .spine,.book-item.chosen .spine{box-shadow:inset 1px 0 2px #ffffff18,inset -2px 0 3px #00000028,2px 3px 4px #160c0855}.book-item.chosen .spine{box-shadow:inset 1px 0 2px #ffffff18,inset -2px 0 3px #00000028,4px 7px 8px #160c0850}.book-item .spine-title,.book-item.chosen .spine-title{text-shadow:0 1px 1px #00000035}.book-item:not(.chosen) .volume{transform:none}
.bookmarks{position:absolute;right:-66px;top:64px;width:72px;display:flex;flex-direction:column;gap:8px;z-index:10;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s}.reader-ready .bookmarks{visibility:visible;opacity:1;pointer-events:auto}.bookmarks button{border:0;border-radius:0 7px 7px 0;min-height:49px;text-align:left;padding:0 7px 0 13px;font-size:10px;font-weight:500;color:#564a43;background:#d9c6a9;box-shadow:inset 4px 0 7px #49351e19,2px 3px 5px #44332616;transition:transform .2s}.bookmarks button:nth-child(2){background:#c8cdb9}.bookmarks button:nth-child(3){background:#dec4b2}.bookmarks button:nth-child(4){background:#c7c8d1}.bookmarks button:nth-child(5){background:#d7c7d1}.bookmarks button[aria-selected=true]{transform:translateX(4px);color:#352c29}.paper .page-inner{padding:24px 22px 20px 25px}.paper h2{font-size:32px;margin:19px 0 7px}.paper .divider{margin:17px 0 18px}.page-header .folio{font-size:10px}.section-kicker{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#8c7866;margin:22px 0 10px}.section-kicker:first-child{margin-top:0}.text-action{border:0;background:none;color:#82566a;font-size:11px;letter-spacing:0;text-transform:none;padding:10px 0;min-height:40px}.project-status{display:flex;justify-content:space-between;font-size:10px;color:#7c8069;margin-bottom:18px}.client-card{padding-bottom:17px;border-bottom:1px solid #e5dbcc}.client-card h3,.person h3{font:400 23px/1.25 Georgia,serif;margin:0 0 10px;color:#5a4541}.contact-phone{font-size:14px;letter-spacing:.25px;color:#6c5650;line-height:1.7;overflow-wrap:anywhere}.contact-phone a{color:#765160;text-decoration:none;display:inline-block;padding:8px 0}.quiet{font-size:11px;color:#9a8777;line-height:1.6;overflow-wrap:anywhere}.client-preference{font-size:11px;line-height:1.6;margin:10px 0 6px}.demo-phone{font-size:9px;color:#ad9b88}.task-line{display:flex;gap:11px;text-align:left;border:0;border-bottom:1px solid #e8dfd1;background:transparent;width:100%;padding:14px 0;min-height:55px;align-items:flex-start}.task-line strong{font-size:13px;font-weight:500;line-height:1.5;display:block;color:#65514b}.task-line small{display:block;font-size:10px;color:#a48b78;margin-top:5px}.task-check{width:19px;height:19px;flex:none;border:1px solid #c7b5a2;border-radius:50%;margin-top:2px;color:#718063;text-align:center;font-size:12px}.completed strong{text-decoration:line-through;color:#a79889}.completed .task-check{background:#e2e6d7}.up-next{font-size:12px;line-height:1.6;margin:15px 0 23px}.up-next span{display:block;font-size:9px;color:#a48b78;margin-bottom:4px}.money-preview{display:flex;justify-content:space-between;align-items:center;width:100%;background:#eee7da;border:1px solid #e0d6c4;border-radius:4px;text-align:left;padding:15px;color:#776052;font-size:10px}.money-preview strong{display:block;font:24px Georgia,serif;margin-top:7px}.stage-summary{font:18px/1.5 Georgia,serif;margin:0}.paper-button{background:#7c535e;color:#fffaf4;border:0;border-radius:5px;min-height:44px;padding:12px 15px;font-size:12px}.paper-button.secondary{background:#eee6d8;color:#786450}.inline-form,.edit-form{display:flex;flex-direction:column;gap:12px;margin-top:20px}.inline-form label,.edit-form label{font-size:11px;color:#8c7866}.edit-form label{display:flex;flex-direction:column;gap:7px}.paper input,.paper textarea{display:block;width:100%;box-sizing:border-box;font:14px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;color:#604e49;background:#fffdf760;border:1px solid #d9cbb7;border-radius:4px;padding:11px;outline-offset:3px}.paper textarea{resize:vertical;min-height:85px}#project-note{font:italic 18px/1.9 Georgia,serif;background:repeating-linear-gradient(transparent 0 33px,#e5d9c7 33px 34px);padding:4px 0;border:0;margin-bottom:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.spaced{margin-top:30px}.money-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.money-grid small{display:block;font-size:10px;color:#9c8878}.money-grid strong{font:19px Georgia,serif;display:block;margin-top:8px}.money-total{font:32px Georgia,serif;margin:15px 0 20px}.money-total small{display:block;font:10px -apple-system,sans-serif;margin-top:8px;color:#9c8878}.commission{padding:17px 0;border-bottom:1px solid #e3d9cb}.commission>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:12px}.commission strong{font-weight:500}.commission .paper-button{width:100%}.person{padding:19px 0;border-bottom:1px solid #e4dacb}.person-role{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#9a8272}.person-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.person h3{margin:9px 0 2px;font-size:22px}.person p{margin:8px 0 0}.person+.paper-button{margin-top:20px;width:100%}#note-status{display:block;font-size:10px;color:#74805e;margin-top:12px}.cancel-edit{align-self:center}.all-done{font:18px Georgia,serif;color:#738264}.reader-hint{font-size:8px}@media(max-width:360px){.paper .page-inner{padding:20px 16px 18px 20px}.paper h2{font-size:28px}.bookmarks{right:-64px;width:70px}.bookmarks button{font-size:9px;padding-left:11px}.client-card h3{font-size:21px}.contact-phone{font-size:12px}.money-grid strong{font-size:16px}}
/* Paper edges and slim bookmarks tucked between leaves. */
.reader-ready #flight:after{content:'';position:absolute;top:5px;bottom:-5px;right:-12px;width:13px;background:repeating-linear-gradient(90deg,#e5dbc9 0 1px,#fffcf4 1px 3px,#cfc0a8 3px 3.5px,#f5eddf 3.5px 5px);border-radius:0 6px 6px 0;box-shadow:3px 3px 5px #58412b1c;z-index:11;pointer-events:none}.reader-ready .book-body:after{content:'';position:absolute;bottom:-9px;left:5px;right:-8px;height:10px;background:repeating-linear-gradient(0deg,#dacdb8 0 1px,#faf5eb 1px 3px);border-radius:0 0 6px 3px;box-shadow:0 6px 9px #46332515;pointer-events:none}.reader-ready .page-stack{inset:5px -10px -8px 2px;border-color:#dfd2bf;box-shadow:2px 3px 0 #f6eddf,3px 4px 0 #d3c2a9}.paper{border-radius:3px 5px 5px 3px;box-shadow:inset 12px 0 15px -12px #442d2055,0 12px 27px #3e2a2820}.bookmarks{right:-67px;width:73px;top:71px;gap:15px;z-index:10}.bookmarks button{position:relative;min-height:42px;border-radius:0 4px 9px 0;font:italic 12px/1.15 Georgia,'Times New Roman',serif;padding:0 5px 0 19px;letter-spacing:0;color:#655748;background:#ded0b8;box-shadow:inset 1px 1px 0 #ffffff45,0 1px 2px #56412b1a}.bookmarks button:before{content:'';position:absolute;left:0;top:0;bottom:0;width:16px;background:linear-gradient(90deg,#7a614e24,transparent);pointer-events:none}.bookmarks button:nth-child(2){background:#d0d4c3}.bookmarks button:nth-child(3){background:#e3cdbd}.bookmarks button:nth-child(4){background:#d2d2da}.bookmarks button:nth-child(5){background:#dfd0d8}.bookmarks button[aria-selected=true]{transform:translateX(3px);color:#4d3b32;box-shadow:inset 1px 1px 0 #ffffff65,0 2px 3px #56412b24}.money-total{font-size:24px}.money-preview strong{font-size:21px}.money-grid strong{font-size:18px}.contact-phone{font-size:13px;letter-spacing:0}.reader-hint{font-size:8px}@media(max-width:360px){.bookmarks{right:-66px;width:72px}.bookmarks button{font-size:11px;padding-left:18px}.contact-phone{font-size:12px}}
.bookmarks button{font-size:11px;padding-left:17px;padding-right:4px;white-space:nowrap}.bookmarks button:nth-child(4){font-size:10.5px}
/* Each ribbon is bound to its own depth in the fore-edge. No bottom stack. */
.reader-ready #flight:after,.reader-ready .book-body:after{display:none}.page-stack,.reader-ready .page-stack{inset:1px -1px 0 1px;transform:translateZ(-2px);background:#f6f0e5;border:0;border-radius:3px;box-shadow:none}.paper{border-radius:3px;box-shadow:inset 12px 0 15px -12px #442d2055,0 9px 22px #3e2a281a}.bookmarks{left:calc(100% - 2px);right:auto;top:3px;bottom:3px;width:88px;display:block;z-index:3;gap:0}.bookmark-leaf{position:absolute;top:calc(var(--depth)*.7px);bottom:calc(var(--depth)*.7px);left:calc(var(--depth)*3px);width:7px;border-radius:0 2px 2px 0;background:linear-gradient(90deg,#fdf9f1,#f0e8d9);border-right:1px solid #c9baa333;box-shadow:1px 0 2px #4f352010;z-index:calc(6 - var(--depth));pointer-events:none}.bookmarks .bookmark-leaf button{position:absolute;left:3px;top:calc(64px + var(--depth)*57px);width:69px;height:40px;min-height:40px;box-sizing:border-box;padding:0 5px 0 9px;border:0;border-radius:1px 4px 4px 1px;background:var(--ribbon);color:#3f3933;font:500 11px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;white-space:nowrap;text-align:center;box-shadow:inset 0 1px 0 #ffffff38,0 2px 3px #48342120;transform:none;pointer-events:auto;transition:filter .18s}.bookmarks .bookmark-leaf button:before{content:'';position:absolute;inset:0;width:auto;background:url('cloth-full.svg') center/100% 100%;opacity:.33;mix-blend-mode:soft-light;pointer-events:none}.bookmarks .bookmark-leaf button:after{content:'';position:absolute;inset:3px 3px 3px 5px;border-top:1px solid #ffffff26;border-bottom:1px solid #0000000c;pointer-events:none}.bookmarks .bookmark-leaf button[aria-selected=true]{transform:none;color:#2e2924;filter:brightness(1.06);box-shadow:inset 0 1px 0 #ffffff50,0 2px 3px #48342120}.bookmarks .bookmark-leaf button:focus-visible{outline:2px solid #7e5863;outline-offset:3px}.reader-ready .bookmarks{pointer-events:none}@media(max-width:360px){.bookmarks{right:auto;width:88px}.bookmarks .bookmark-leaf button{font-size:10px;padding-left:8px;width:68px}.paper .page-inner{padding-left:19px;padding-right:15px}.paper h2{font-size:26px}}

/* Printed linen labels: generous letterforms, shared weave over ink and cloth. */
.bookmarks .bookmark-leaf button{width:79px;padding:0 7px 0 8px;font:400 13px/1.2 Georgia,'Times New Roman',serif;letter-spacing:.15px;color:#594c3e;isolation:isolate}
.bookmarks .bookmark-leaf button .ribbon-ink{position:relative;z-index:1;mix-blend-mode:multiply;opacity:.88;text-shadow:0 .4px .25px #ffffff3b}
.bookmarks .bookmark-leaf button:before{z-index:2;opacity:.55;background:repeating-linear-gradient(0deg,#ffffff38 0 .5px,transparent .5px 2px),repeating-linear-gradient(90deg,#46311a20 0 .5px,transparent .5px 2.5px),url('cloth-full.svg') center/90px 50px;mix-blend-mode:soft-light}
.bookmarks .bookmark-leaf button:after{z-index:3}
.bookmarks .bookmark-leaf button[aria-selected=true]{color:#594c3e}
@media(max-width:360px){.bookmarks .bookmark-leaf button{width:79px;font-size:13px;padding:0 7px 0 8px}}

/* Three shelves, fitted to the viewport; retain the original carved cabinet. */
#shelf{height:100svh;height:100dvh;max-width:650px;padding:12px 0 max(5px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;overflow:hidden}
#shelf .top{align-self:stretch;padding:0 22px;flex:none}
.wordmark{font-size:25px}
#shelf .intro{align-self:stretch;padding:6px 22px 10px;flex:none}
#shelf .intro h1{font-size:28px;line-height:1.08;letter-spacing:-.7px;margin:0}
#cabinet{flex:1;min-height:0;width:min(100%,calc((100dvh - 117px - env(safe-area-inset-bottom))*819/1546));aspect-ratio:auto;background:none}
#cabinet:before,#cabinet:after{display:block;content:'';position:absolute;left:0;right:0;width:100%;border:0;border-radius:0;box-shadow:none;pointer-events:none;background-image:url('front-cabinet.png');background-repeat:no-repeat;z-index:-1}
#cabinet:before{top:0;bottom:auto;height:60.155%;background-size:100% 206.452%;background-position:top}
#cabinet:after{top:auto;bottom:0;height:39.845%;background-size:100% 311.688%;background-position:bottom}
#cabinet .shelf-scene{height:20%;left:15%;right:15%}
#cabinet .shelf-scene:nth-child(1){bottom:65.4%}
#cabinet .shelf-scene:nth-child(2){bottom:41.07%}
#cabinet .shelf-scene:nth-child(3){bottom:15.91%}
.spine-title{font-size:clamp(13px,3.5vw,20px)}
.reader-controls{top:auto;bottom:max(25px,env(safe-area-inset-bottom));left:14px;right:14px;justify-content:center}
.reader-controls>span{display:none}
.reader-controls button{flex-direction:row-reverse;border:0;border-radius:0;background:transparent;padding:10px 18px;min-height:44px;font:13px Georgia,serif;color:#786455;gap:8px}
.reader-controls button svg{width:16px;height:16px}
.reader-hint{bottom:2px;font-size:8px;margin:2px 10px}
.bookmarks .bookmark-leaf button{width:65px;padding:0 4px 0 5px;font-size:11.5px;letter-spacing:0}
.paper .client-card h3,.paper .person h3{font:400 16px/1.4 Georgia,serif;margin:4px 0 5px}
.paper .stage-summary,.paper .all-done{font:400 14px/1.5 Georgia,serif}
.paper .money-preview strong,.paper .money-grid strong,.paper .money-total{font-size:17px}
.paper #project-note{font:italic 15px/1.9 Georgia,serif;background:none}
.paper .page-inner{padding:20px 20px 18px 23px}
.paper .section-kicker{margin-top:18px}
.paper .client-card{padding-bottom:12px}
@media(max-width:360px){.bookmarks .bookmark-leaf button{width:65px;font-size:11.5px;padding:0 4px 0 5px}.paper .page-inner{padding:18px 15px 17px 18px}.spine-title{font-size:12px}}
@media(max-height:700px){#shelf .intro h1{font-size:23px}#shelf .intro{padding-top:3px;padding-bottom:5px}.wordmark{font-size:22px}#cabinet{width:min(100%,calc((100dvh - 94px - env(safe-area-inset-bottom))*819/1546))}.spine-number{margin-top:7px}.spine-mark{margin-bottom:7px}.spine-title{font-size:12px}}

/* Fixed mobile stage; only the open book's paper may scroll. */
html{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#f0eade}
body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#shelf{position:absolute;inset:0;height:100%;width:100%;touch-action:none;overscroll-behavior:none}
#cabinet{touch-action:none}
#cabinet .books{touch-action:none}
#cabinet .shelf-scene{height:21.5%}
#cabinet .book-item .spine{display:block}
#cabinet .spine-number{position:absolute;top:9px;left:0;right:0;margin:0;text-align:center;line-height:1}
#cabinet .spine-title{position:absolute;top:26px;bottom:31px;left:0;right:0;margin:0;display:flex;align-items:center;justify-content:center;line-height:1.15;overflow:hidden;font-size:clamp(12px,3.4vw,19px)}
#cabinet .spine-mark{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);width:11px;height:15px;margin:0;padding:0;line-height:0;flex:none}
#cabinet .spine-mark svg{display:block;width:11px;height:15px;max-width:none;flex:none}
#cabinet:before{clip-path:polygon(2% 2.5%,6% 1.5%,94% 1.5%,98% 2.5%,97% 5%,94% 9%,94% 100%,6% 100%,6% 9%,3% 5%)}
#cabinet:after{clip-path:polygon(6% 0,94% 0,94% 65%,97% 77%,95% 94%,90% 94%,87% 77%,82% 74%,70% 77%,50% 80%,30% 77%,18% 74%,13% 77%,10% 94%,5% 94%,3% 77%,6% 65%)}
.paper{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-height:700px){#cabinet .spine-title{font-size:11px;top:22px;bottom:26px}#cabinet .spine-mark{bottom:7px}#cabinet .spine-number{top:7px}}
#cabinet:before{height:calc(60.155% + 1px)}
#cabinet:after{clip-path:polygon(6% 0,94% 0,94% 65%,96% 72%,96% 81%,94% 93%,90% 93%,89% 84%,87% 75%,83% 70.5%,76% 71%,68% 73%,58% 75%,50% 76%,42% 75%,32% 73%,24% 71%,17% 70.5%,13% 75%,11% 84%,10% 93%,6% 93%,4% 81%,4% 72%,6% 65%)}
/* One continuous room photograph, including the wall behind the heading. */
#shelf{max-width:none;padding:0;display:block;background:#f0eade;isolation:isolate}
#shelf .top{position:absolute;z-index:2;left:0;right:0;top:max(15px,env(safe-area-inset-top));padding:0 22px}
#shelf .intro{position:absolute;z-index:2;left:0;right:0;top:max(52px,calc(env(safe-area-inset-top) + 40px));padding:0 22px}
#shelf .intro h1{font-size:clamp(24px,6vw,31px);line-height:1.08;margin:0}
#cabinet{position:absolute;top:0;left:50%;transform:translateX(-50%);width:max(100%,80dvh);height:100%;min-height:0;aspect-ratio:auto;background:url('cabinet-room.png') center/100% 100% no-repeat;z-index:-1;clip-path:none}
#cabinet:before,#cabinet:after{display:none;clip-path:none}
#cabinet .shelf-scene{left:32.5%;right:32.5%;height:16.4%}
#cabinet .shelf-scene:nth-child(1){bottom:57.16%}
#cabinet .shelf-scene:nth-child(2){bottom:37.96%}
#cabinet .shelf-scene:nth-child(3){bottom:18.75%}
#cabinet .books{gap:4px}
#cabinet .spine-title{font-size:clamp(12px,3.4vw,18px)}
@media(max-height:700px){#shelf .top{top:10px}#shelf .intro{top:40px}#shelf .intro h1{font-size:22px}#cabinet .spine-title{font-size:11px}}
#cabinet .shelf-scene:nth-child(3){bottom:18.15%}
/* A quiet text return, with no framed focus treatment. */
.reader-controls #close{appearance:none;-webkit-appearance:none;background:none;border:0;border-radius:0;box-shadow:none;outline:none;color:#80564e;font:400 16px/1.3 Georgia,'Times New Roman',serif;letter-spacing:.1px;min-height:44px;padding:10px 16px;gap:10px}
.reader-controls #close svg{width:20px;height:20px;flex:none;stroke-width:1.4}
.reader-controls #close:focus,.reader-controls #close:focus-visible{outline:none;box-shadow:none}
.reader-controls #close:focus-visible span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:#80564e65}
.reader-controls #close:active{color:#56362f;transform:translateY(1px)}

/* Center the return within the actual gap below the open page. */
.reader-controls{top:var(--return-center);bottom:auto;transform:translateY(-50%);left:0;right:0}
.bookmark-leaf{left:calc(var(--depth)*2px)}
.bookmarks .bookmark-leaf button{width:60px;padding-left:3px;padding-right:3px}
#shelf .intro{top:calc((18.2dvh + max(15px,env(safe-area-inset-top)) + 30px)/2);transform:translateY(-50%)}
#shelf .intro h1 em{color:#925a50;font-style:italic}
@media(max-width:360px){.bookmarks .bookmark-leaf button{width:60px;padding-left:3px;padding-right:3px}}
/* Joined binding: the cover hinge sits inside the square spine edge. */
#cabinet .book-item .spine{border-radius:5px 0 0 4px;border-right:0}
#cabinet .book-item .shelf-cover{left:calc(100% - 1.5px);border:0;border-radius:0 5px 5px 0;transform-origin:0 50%;background:linear-gradient(90deg,#00000016,transparent 5%),var(--cover)}

/* Stable vertical lettering on narrow phone spines. */
#cabinet .shelf-scene{height:17.2%}
#cabinet .spine-title{display:block;position:absolute;left:50%;right:auto;top:50%;bottom:auto;width:max-content;height:max-content;max-height:calc(100% - 43px);margin:0;transform:translate(-50%,-50%) rotate(180deg);writing-mode:vertical-rl;text-orientation:mixed;text-align:center;overflow:visible;font:400 15px/1.15 Georgia,'Times New Roman',serif;letter-spacing:0;color:var(--foil);opacity:1;text-shadow:0 1px 1px #0005;-webkit-font-smoothing:auto}
@media(max-height:740px){#cabinet .spine-title{font-size:13px}}
@media(max-height:640px){#cabinet .spine-title{font-size:12px}}
.project-detail-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-4px 0 16px;padding-bottom:12px;border-bottom:1px solid #e5dbcc;font-size:10px;color:#93806e;line-height:1.6}.project-detail-line button{flex:none}.contact-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px}.contact-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 10px;border:1px solid #dcd0bf;border-radius:4px;font-size:11px;text-decoration:none;color:#775548;background:#f5efe4}.payment-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e5dbcc;padding:8px 0;font-size:13px}.payment-line small{display:block;font-size:10px;color:#93806e;margin-top:4px}.payment-line+.paper-button{margin-top:14px}.spaced-button{margin-top:22px}.paper select{width:100%;min-width:0;min-height:44px;background:#fffdf7;color:#604e49;border:1px solid #d9cbb7;border-radius:4px;padding:10px;font:16px/1.4 -apple-system,sans-serif}.paper input,.paper textarea{font-size:16px}.edit-form .quiet{margin:0}.form-error{color:#9b493e;font-size:12px;margin:0}.section-kicker .text-action{font-size:10px}.commission>.text-action{padding-top:0}

/* Extend only the plaster above the scene; never rescale the cabinet or its hit areas. */
html{background-color:#eee7db;background-image:url('cabinet-room.png');background-position:center top;background-size:max(100vw,80dvh) 100dvh;background-repeat:no-repeat}
body{background:transparent}
#shelf{background:transparent}
#shelf:before{content:'';position:absolute;left:0;right:0;top:-160px;height:calc(160px + max(64px,env(safe-area-inset-top)));z-index:0;pointer-events:none;background:#eee7db url('cabinet-room.png') center top / auto max(200dvh,1400px) no-repeat;-webkit-mask-image:linear-gradient(#000 0%,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(#000 0%,#000 calc(100% - 36px),transparent 100%)}

/* Quiet, editable task deadlines within the notebook. */
.task-item{border-bottom:1px solid #e8dfd1}.task-item .task-line{border-bottom:0;padding-bottom:5px}.task-edit{margin-left:30px;padding:4px 0 9px;min-height:40px}.up-next small{display:block;margin-top:5px}.edit-form input[type=date],.edit-form input[type=time]{min-width:0;max-width:100%;min-height:46px}.edit-form input:disabled{opacity:.45}.edit-form [data-clear-deadline]{align-self:flex-start;padding-top:0}.task-item.completed small{color:#a79889}

/* One viewport for the room and reader, including Safari's changing toolbars. */
html{scrollbar-gutter:auto;background-color:#eee7db;background-image:none}
body{height:100dvh;min-height:0;bottom:auto}
#shelf{height:100dvh;min-height:0;bottom:auto}
#cabinet{height:100%;margin:0;padding:0;border:0;background-position:center center}
#reader{height:100dvh;min-height:0;bottom:auto}
.reader-hint{bottom:max(2px,env(safe-area-inset-bottom))}

#reader{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}

/* Installed iPhone apps use the full screen, not the shortened Safari dvh. */
:root{--app-height:100dvh}
html,body,#shelf,#reader{height:var(--app-height)}
#cabinet{width:max(100%,calc(var(--app-height)*.8))}
#shelf .intro{top:calc((var(--app-height)*.182 + max(15px,env(safe-area-inset-top)) + 30px)/2)}

/* Leave more wall between the heading and cornice; books share the room geometry. */
#cabinet{--room-drop:min(32px,calc(var(--app-height)*.035));top:var(--room-drop);height:calc(var(--app-height) - var(--room-drop))}

/* More space beneath the title on iPhone, in Safari and from the home screen. */
html[data-iphone="true"] #cabinet{--room-drop:min(84px,calc(var(--app-height)*.095))}
html[data-iphone="true"] #shelf:before{height:calc(160px + max(116px,env(safe-area-inset-top)))}

/* Safari date/time controls must obey the same page width as text fields. */
.paper .page-inner,#content,.paper .edit-form,.paper .inline-form{min-width:0}
.paper .edit-form,.paper .inline-form,.paper .edit-form label{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.paper input[type=date],.paper input[type=time]{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;inline-size:100%;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;min-height:48px;overflow:hidden;text-align:left}
.paper input[type=date]::-webkit-date-and-time-value,.paper input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left;margin:0}
.paper input[type=date]::-webkit-datetime-edit,.paper input[type=time]::-webkit-datetime-edit{min-width:0;padding:0}
