@font-face{font-family:Pinyon;src:url('assets/PinyonScript-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#493c2c;--soft:#78654d;--accent:#805733;--paper:#e8ddc5;--table:#181510;--book-width:min(100vw,150svh)}
*{box-sizing:border-box}
html{color-scheme:light;scroll-behavior:smooth}
body{margin:0;min-height:100svh;display:grid;place-items:center;background:var(--table);color:var(--ink);font-family:Baskerville,'Iowan Old Style',Georgia,serif;font-size:18px;overflow-x:hidden}
button,a,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
a{color:inherit;text-underline-offset:5px;text-decoration-thickness:1px}
button,a{touch-action:manipulation}
button:hover,a:hover{color:var(--accent)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:1px solid #8d613c;outline-offset:5px}
button:disabled{opacity:.35;cursor:default}
[hidden]{display:none!important}
h1,h2,h3{font-weight:400}
.sr-only,.bookmark span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;top:-100px;left:15px;background:var(--paper);padding:15px;z-index:100}
.skip:focus{top:15px}
.site-bar,.site-footer,.book-tools,.mobile-chapters,.orientation-note,.cover-name,.cover-invitation>span,#continue{display:none!important}
main{width:var(--book-width);margin:auto;outline:none}
#cover,.spread{position:relative;aspect-ratio:1.5;isolation:isolate;container-type:inline-size}
#cover>img,.scene{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.cover-invitation{display:contents}
#open-book{position:absolute;left:47%;top:4%;width:46%;height:92%;font-size:0;padding:0;border-radius:12px}
#open-book:focus-visible{outline-color:#dbbd89;outline-offset:6px}
#book{perspective:1800px}
.image-bookmarks{position:absolute;inset:0;pointer-events:none;z-index:8}
.bookmark{position:absolute;left:89%;width:10%;height:7%;pointer-events:auto;border-radius:2px;outline-offset:1px!important;transition:background .2s,box-shadow .2s}
.bookmark:hover,.bookmark:focus-visible{background:#fff6dc18;box-shadow:0 3px 12px #37241526}
.b1{top:19.6%}.b2{top:31.3%;height:8%}.b3{top:43.4%}.b4{top:54.6%;height:8%}.b5{top:66.4%}
.spine-close{position:absolute;left:47%;top:11%;width:3%;height:78%;z-index:6;outline-offset:-3px!important}
.spine-close span{position:absolute;left:0;top:65%;writing-mode:vertical-rl;white-space:nowrap;font-family:Pinyon,serif;font-size:20px;opacity:0;transition:opacity .2s}
.spine-close:hover span,.spine-close:focus-visible span{opacity:1}
.fly-target{position:absolute;left:51%;top:28%;width:36%;height:43%;border-radius:30%;cursor:zoom-in;text-decoration:none}
.fly-target span{position:absolute;left:12%;bottom:1%;font-family:Pinyon,serif;font-size:clamp(18px,1.65vw,25px);text-shadow:0 1px #f4e6ce;opacity:0;transition:opacity .2s}
.fly-target:hover span,.fly-target:focus-visible span{opacity:1}
.page-number{position:absolute;left:64.8%;top:79.3%;width:8%;height:6.5%;z-index:7;border-radius:40%;min-height:28px}
.page-number span{position:absolute;left:0;top:70%;width:100%;font:20px Pinyon,serif;opacity:0;transition:opacity .2s}
.page-number:hover span,.page-number:focus-visible span{opacity:1}
.eyebrow{font-size:clamp(11px,1vw,14px);letter-spacing:.09em;text-transform:uppercase;color:var(--soft);line-height:1.5;margin:0 0 14px}
#collection-intro{position:absolute;left:10%;top:25%;width:32%;color:#5b422b}
#collection-intro h2{font-family:Pinyon,serif;font-size:clamp(30px,3.7vw,58px);line-height:1.1;margin:16px 0 12px}
#collection-intro .intro-hand{font-family:Pinyon,serif;font-size:clamp(22px,2.1vw,31px);margin:12px 0 25px}
#collection-intro>p:not(.eyebrow):not(.intro-hand){font-size:clamp(15px,1.4vw,21px);line-height:1.65;margin:0 0 18px}
#collection-intro>a,#collection-intro>button{font-family:Pinyon,serif;display:block;text-decoration:none;font-size:clamp(21px,2vw,30px);line-height:1.25;padding:5px 0;margin:5px 0;min-height:35px;text-align:left}
#collection-intro #intro-image{font-family:inherit;font-size:13px;color:var(--soft);margin-top:14px}
#reading-leaf{position:absolute;left:10%;top:16%;width:33%;height:68%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;outline:none}
.leaf-top{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--soft);font-size:14px;min-height:32px}
.leaf-top button{padding:6px 0;min-height:32px}
.leaf-top a{font-family:Pinyon,serif;font-size:21px;text-decoration:none}
#chapter-copy{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#9e866440 transparent}
#chapter-heading{font-family:Pinyon,serif;font-size:clamp(30px,3.3vw,49px);line-height:1.1;margin:6px 0 17px;outline:none}
.lead{font-style:italic;font-size:clamp(16px,1.4vw,21px);line-height:1.45;margin:0 0 23px}
.leaf-prose{font-size:clamp(16px,1.3vw,20px);line-height:1.55}
.leaf-prose p{margin:0 0 17px}
.reading-note{font-size:14px;line-height:1.5;color:var(--soft)}
.text-action{display:inline-block;text-decoration:underline;text-underline-offset:5px;font-size:16px;line-height:1.5;text-align:left;padding:6px 0;margin-right:15px}
.inline-actions{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:20px}
.chapter-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-top:8px;font-family:Pinyon,serif;font-size:21px}
.chapter-pagination a{max-width:none;text-decoration:none;padding:8px 0;line-height:1.15}
.chapter-pagination a:last-child{text-align:right}
.chapter-pagination button{min-width:40px;min-height:40px;font-family:inherit;font-size:22px}
#right-study{position:absolute;left:53%;top:20%;width:34%;height:58%;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
#right-study img{display:block;max-width:100%;max-height:86%;object-fit:contain;min-height:0}
#right-study figcaption{font-size:14px;color:var(--soft);line-height:1.5;text-align:center;max-width:38ch}
/* Loose specimens on the leaf: alpha silhouettes, never image-shaped panels.
   The close shadow anchors fibres; the softer shadow lifts their free edges. */
#right-study.object-study{left:51.5%;top:21%;width:36.5%;height:57%;gap:20px;overflow:visible;background:none;border:0;box-shadow:none}
#right-study.object-study img{width:100%;height:auto;max-height:84%;object-fit:contain;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;mix-blend-mode:normal;filter:drop-shadow(.5px 1px .7px #36211342) drop-shadow(2px 5px 4px #5e412a2c);transform:rotate(-2deg);transform-origin:50% 65%;user-select:none;-webkit-user-drag:none}
#right-study.object-study.object-feather img{width:92%;transform:rotate(-8deg);filter:drop-shadow(.4px .8px .6px #36211338) drop-shadow(1.5px 4px 3.5px #5e412a26)}
#right-study.object-study.object-body img{width:91%;transform:rotate(2deg)}
#right-study.object-study.object-underwing img{width:94%;transform:rotate(-1.5deg)}
#right-study.object-study.object-fly img{width:100%;transform:rotate(-3deg)}
#right-study.object-study figcaption{font-style:italic;font-size:13px;max-width:32ch;margin-top:9px;color:#796750}

/* Every overlay shares the exact silhouette and placement of the reading spread. */
dialog{position:fixed;inset:0;margin:auto;width:var(--book-width);height:min(100svh,66.6667vw);max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:transparent url('assets/csf-open-book-bookmarks.png') center/100% 100% no-repeat;color:var(--ink);overflow:hidden;container-type:inline-size}
dialog::backdrop{background:var(--table)}
.dialog-top{position:absolute;left:10%;top:14%;width:76%;display:flex;justify-content:space-between;align-items:center;color:var(--soft);z-index:4}
.dialog-top>span{font:clamp(19px,1.7vw,25px) Pinyon,serif}
.dialog-top button{font:clamp(21px,1.8vw,26px) Pinyon,serif;min-height:36px;padding:0}
dialog h2{font-family:Pinyon,serif;font-size:clamp(34px,3.4vw,52px);line-height:1.15;margin:0 0 22px}
dialog p,dialog li{font-size:clamp(16px,1.3vw,19px);line-height:1.6}
#contents-title{position:absolute;left:10%;top:24%;margin:0;font-size:clamp(35px,4vw,60px)}
.dialog-intro{position:absolute;left:10%;top:35%;width:30%;font-style:italic;line-height:1.6;margin:0}
#contents-list{position:absolute;left:54%;top:24%;width:31%;height:53%;display:flex;flex-direction:column;justify-content:space-between}
.contents-item{display:block;text-decoration:none;padding:3px 0}
.contents-item>span{font-family:Pinyon,serif;font-size:clamp(26px,2.5vw,36px);line-height:1.2}
.contents-item small{display:block;font-size:14px;line-height:1.5;color:var(--soft);margin-top:5px}
.contents-item[aria-current=page]>span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.source-note{position:absolute;left:10%;bottom:22%;width:29%;font-size:14px;color:var(--soft);line-height:1.6}
#detail-body{position:absolute;left:10%;top:23%;width:76%;height:60%;column-count:2;column-gap:14%;column-fill:auto;overflow:auto;scrollbar-width:thin}
#detail-body h2{margin:0 0 24px}
#detail-body>p{margin:0 0 22px}
#detail-body ol{padding-left:24px;margin-top:0}
#detail-body li{margin-bottom:10px}
.source-link{font-size:16px;line-height:1.5}
/* The register is set in two facing columns, four entries to each leaf. */
.register-open #detail-body{column-count:auto;overflow:visible;top:20%;height:65%}
.register-open #detail-title{font-size:clamp(29px,3vw,43px);margin:0 0 8px;width:43%}
.register-intro{font-size:14px!important;color:var(--soft);margin:0!important;width:43%}
.register-find{position:absolute;left:57%;top:0;width:43%;font-size:14px;display:flex;flex-direction:column;gap:8px}
.register-find input{font-family:inherit;font-size:18px;color:var(--ink);width:100%;border:0;border-bottom:1px solid #8d795255;border-radius:0;background:transparent;padding:8px 0;outline-offset:4px}
.register-find input::placeholder{color:#907b5f}
#register-items{margin-top:35px;display:grid;grid-template-rows:repeat(4,1fr);grid-auto-flow:column;grid-template-columns:1fr 1fr;column-gap:14%;height:61%}
.pattern-entry{text-align:left;padding:6px 0;min-height:45px}
.pattern-entry>span{font-family:Pinyon,serif;font-size:clamp(23px,2.2vw,32px);line-height:1.15}
.pattern-entry small{display:block;font-size:13px;line-height:1.4;color:var(--soft);margin-top:4px}
.register-turn{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;font-family:Pinyon,serif;font-size:24px}
.register-turn button{min-height:40px;padding:0}
/* Source readings are ink on the leaves, never photographs of paper on paper. */
.source-open #detail-body{display:grid;grid-template-columns:1fr 1fr;gap:14%;column-count:auto;top:21%;height:65%;overflow:visible}
.source-leaf{min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#9e866440 transparent}
.source-open #detail-body h2{font-size:clamp(32px,3.4vw,52px);margin:8px 0 4px}
.source-leaf h3{font-family:Pinyon,serif;font-size:clamp(30px,3vw,45px);line-height:1.2;margin:12px 0 18px}
.source-open #detail-body .source-subtitle{font-style:italic;margin:0 0 24px;font-size:18px}
.dressing{font-size:clamp(14px,1.12vw,17px);line-height:1.42;margin:0}
.dressing dt{font-style:italic;color:#674b30;margin-top:9px}
.dressing dd{margin:2px 0 0}
.source-open #detail-body .source-credit{font-size:13px;line-height:1.5;margin-top:16px;color:var(--soft)}
.source-citations{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px;font-size:16px}
#return-register{font-family:Pinyon,serif;font-size:23px;margin-top:8px}
/* A corner is a quiet, physical page-turn target, not an external toolbar. */
.page-corner{position:absolute;bottom:11%;width:7%;height:9%;z-index:7;padding:0;font:20px Pinyon,serif;opacity:0;transition:opacity .2s,transform .25s}
.page-corner.turn-back{left:6%}.page-corner.turn-forward{right:13%}
.page-corner:hover,.page-corner:focus-visible{opacity:1}
.page-corner.turn-back:hover{transform:rotate(-3deg)}.page-corner.turn-forward:hover{transform:rotate(3deg)}
body[data-turn='open'] .spread{animation:book-opening .75s cubic-bezier(.2,.65,.25,1)}
body[data-turn='forward'] #chapter-copy,body[data-turn='forward'] #right-study,body[data-turn='forward'] #detail-body,body[data-turn='back'] #chapter-copy,body[data-turn='back'] #right-study,body[data-turn='back'] #detail-body{animation:ink-settle .4s ease-out}
@keyframes book-opening{from{opacity:.25;transform:rotateY(-6deg) scale(.985)}to{opacity:1;transform:none}}
@keyframes ink-settle{from{opacity:.35;transform:translateX(6px)}to{opacity:1;transform:none}}
.no-script{padding:30px;background:var(--paper)}
/* Preserve the spread at smaller sizes; browser zoom remains available. */
@media(max-width:1000px){
 :root{--book-width:100vw}
 dialog{height:66.6667vw;max-height:none}
 #collection-intro{top:22%}
 #collection-intro h2{font-size:32px;margin:10px 0}
 #collection-intro .intro-hand{font-size:23px;margin:10px 0 15px}
 #collection-intro>p:not(.eyebrow):not(.intro-hand){font-size:16px;line-height:1.45;margin-bottom:10px}
 #collection-intro>a,#collection-intro>button{font-size:22px;padding:3px 0;margin:2px 0;min-height:28px}
 #collection-intro #intro-image{font-size:12px;margin-top:6px}
 #reading-leaf{top:15%;height:70%;gap:7px}
 .eyebrow{font-size:11px;letter-spacing:.05em;margin-bottom:8px}
 .leaf-top{font-size:13px;min-height:26px}.leaf-top a{font-size:18px}.leaf-top button{min-height:26px;padding:3px 0}
 #chapter-heading{font-size:32px;margin:5px 0 12px}
 .lead{font-size:16px;margin-bottom:14px}.leaf-prose{font-size:16px;line-height:1.45}.leaf-prose p{margin-bottom:12px}
 .reading-note{font-size:13px}.text-action{font-size:14px;padding:4px 0}.inline-actions{gap:3px 10px;margin-top:10px}
 .chapter-pagination{font-size:18px;gap:5px;margin-top:3px}.chapter-pagination button{font-size:20px;min-height:30px}
 #right-study{gap:10px}#right-study figcaption{font-size:12px}
 .contents-item small{font-size:12px;line-height:1.4}.source-note{font-size:13px;bottom:20%}
 #detail-body p,#detail-body li{font-size:16px;line-height:1.45}
 .register-open #detail-title{font-size:29px}.register-intro{font-size:12px!important}.register-find{font-size:13px}.register-find input{font-size:16px;padding:5px 0}
 #register-items{margin-top:20px}.pattern-entry small{font-size:12px}.register-turn{font-size:21px}
 .source-open #detail-body .source-subtitle{font-size:16px;margin-bottom:14px}.source-open #detail-body .source-credit{font-size:12px;margin-top:10px}.dressing{font-size:14px;line-height:1.38}.dressing dt{margin-top:7px}
}
@media(max-width:650px){
 /* The full object stays visible. Pinch zoom or landscape reveals the reading scale. */
 #collection-intro{top:20%;max-height:64%;overflow:auto;scrollbar-width:thin}
 #collection-intro h2{font-size:25px}.eyebrow{font-size:9px}#collection-intro .intro-hand{font-size:19px}
 #collection-intro>p:not(.eyebrow):not(.intro-hand){font-size:13px}#collection-intro>a,#collection-intro>button{font-size:18px;min-height:25px}
 #chapter-heading{font-size:25px}.leaf-top a{font-size:15px}.leaf-top{font-size:12px}.lead{font-size:14px}.leaf-prose{font-size:14px}
 .chapter-pagination{font-size:15px}.chapter-pagination button{font-size:17px}.dialog-top>span{font-size:16px}.dialog-top button{font-size:19px}
 #contents-title{font-size:30px}.dialog-intro{font-size:14px}.contents-item>span{font-size:21px}.contents-item small{display:none}.source-note{font-size:11px}
 .register-open #detail-title{font-size:23px}.register-intro{font-size:10px!important}.register-find{font-size:11px;gap:3px}.register-find input{font-size:14px}.pattern-entry>span{font-size:19px}.pattern-entry small{font-size:10px}.pattern-entry{min-height:28px;padding:3px 0}#register-items{margin-top:13px}.register-turn{font-size:18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* A small landscape screen shows the whole physical object; pinch zoom supplies
   reading magnification. All ink scales with the book rather than the viewport. */
@media (orientation:landscape) and (max-height:600px){
 :root{--book-width:min(100vw,150svh)}
 dialog{height:min(100svh,66.6667vw)}
 #collection-intro{top:25%;max-height:none;overflow:visible}
 #collection-intro .eyebrow,.eyebrow{font-size:.97cqw;letter-spacing:.09em;margin-bottom:.97cqw}
 #collection-intro h2{font-size:4cqw;margin:1.1cqw 0 .83cqw}
 #collection-intro .intro-hand{font-size:2.15cqw;margin:.83cqw 0 1.74cqw}
 #collection-intro>p:not(.eyebrow):not(.intro-hand){font-size:1.46cqw;line-height:1.65;margin-bottom:1.25cqw}
 #collection-intro>a,#collection-intro>button{font-size:2.08cqw;line-height:1.25;padding:.35cqw 0;margin:.35cqw 0;min-height:2.43cqw}
 #collection-intro #intro-image{font-size:.9cqw;margin-top:.97cqw}
 #reading-leaf{top:16%;height:68%;gap:.83cqw}
 .leaf-top{font-size:.97cqw;min-height:2.22cqw;gap:.83cqw}
 .leaf-top button{padding:.42cqw 0;min-height:2.22cqw}.leaf-top a{font-size:1.46cqw}
 #chapter-heading{font-size:3.4cqw;margin:.42cqw 0 1.18cqw}
 .lead{font-size:1.46cqw;line-height:1.45;margin-bottom:1.6cqw}
 .leaf-prose{font-size:1.39cqw;line-height:1.55}.leaf-prose p{margin-bottom:1.18cqw}
 .reading-note{font-size:.97cqw;line-height:1.5}.text-action{font-size:1.11cqw;padding:.42cqw 0;margin-right:1.04cqw}
 .inline-actions{gap:.42cqw 1.11cqw;margin-top:1.39cqw}
 .chapter-pagination{font-size:1.46cqw;gap:.69cqw;margin-top:.56cqw}.chapter-pagination a{padding:.56cqw 0}
 .chapter-pagination button{font-size:1.53cqw;min-height:2.78cqw;min-width:2.78cqw}
 #right-study{gap:1.25cqw}#right-study figcaption{font-size:.97cqw;line-height:1.5}
 .spine-close span,.page-number span,.page-corner{font-size:1.39cqw}.fly-target span{font-size:1.74cqw}.page-number{min-height:0}
 .dialog-top>span{font-size:1.74cqw}.dialog-top button{font-size:1.81cqw;min-height:2.5cqw}
 dialog h2{font-size:3.61cqw;margin-bottom:1.53cqw}
 dialog p,dialog li,#detail-body p,#detail-body li{font-size:1.32cqw;line-height:1.6}
 #contents-title{font-size:4.17cqw}.contents-item>span{font-size:2.5cqw}
 .contents-item{padding:.21cqw 0}.contents-item small{display:block;font-size:.97cqw;line-height:1.5;margin-top:.35cqw}
 .source-note{font-size:.97cqw;bottom:22%;line-height:1.6}
 #detail-body h2{margin-bottom:1.67cqw}#detail-body>p{margin-bottom:1.53cqw}#detail-body ol{padding-left:1.67cqw}#detail-body li{margin-bottom:.69cqw}
 .source-link{font-size:1.11cqw}
 .register-open #detail-title{font-size:2.99cqw;margin-bottom:.56cqw}.register-intro{font-size:.97cqw!important}
 .register-find{font-size:.97cqw;gap:.56cqw}.register-find input{font-size:1.25cqw;padding:.56cqw 0}
 #register-items{margin-top:2.43cqw}.pattern-entry{min-height:3.13cqw;padding:.42cqw 0}
 .pattern-entry>span{font-size:2.22cqw}.pattern-entry small{font-size:.9cqw;line-height:1.4;margin-top:.28cqw}
 .register-turn{font-size:1.67cqw}.register-turn button{min-height:2.78cqw}
 .source-open #detail-body h2{font-size:3.61cqw;margin:.56cqw 0 .28cqw}
 .source-leaf h3{font-size:3.13cqw;margin:.83cqw 0 1.25cqw}
 .source-open #detail-body .source-subtitle{font-size:1.25cqw;margin-bottom:1.67cqw}
 .dressing{font-size:1.18cqw;line-height:1.42}.dressing dt{margin-top:.63cqw}.dressing dd{margin-top:.14cqw}
 .source-open #detail-body .source-credit{font-size:.9cqw;line-height:1.5;margin-top:1.11cqw}
 .source-citations{font-size:1.11cqw;gap:1.25cqw;margin-top:.69cqw}#return-register{font-size:1.6cqw;margin-top:.56cqw}
}
@media (orientation:landscape) and (max-height:600px){
 #right-study.object-study{gap:1.39cqw}
 #right-study.object-study figcaption{font-size:.9cqw;margin-top:.63cqw}
}

/* The opening specimen is a separate object, carried by the turning paper. */
#right-study.collection-specimen{top:18%;height:60%;justify-content:space-between;pointer-events:none}
.collection-specimen .specimen-title{align-self:flex-start;margin:0 0 10px 4%;font-family:Pinyon,serif;font-size:clamp(32px,4vw,58px);line-height:1.15;color:var(--ink)}
#right-study.collection-specimen img{max-height:73%;width:100%;flex:0 1 auto}
#right-study.collection-specimen figcaption{margin-top:0}
.page-number .folio-number{top:0;opacity:1;font-size:28px;line-height:1.4}
.page-number .folio-hint{top:70%;font-size:18px}
@media(orientation:landscape) and (max-height:600px){.collection-specimen .specimen-title{font-size:4cqw;margin-bottom:.7cqw}.page-number .folio-number{font-size:2cqw}.page-number .folio-hint{font-size:1.25cqw}}

#contact-pen{position:absolute;left:29%;top:37%;width:4%;height:43%;transform:rotate(23deg);transform-origin:center;z-index:3;border-radius:45%;cursor:pointer;background:transparent}
#contact-pen:focus-visible{outline:1px solid #dbbd89;outline-offset:6px}
