/*
Theme Name: Imperfect Matter Sketchbook
Description: An artist’s journal by a perfectionist learning to let go of control.
Version: 1.2.0
Author: Imperfect Matter
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: imperfect-matter-sketchbook
*/
*{box-sizing:border-box}body{margin:0;background:#e5e5e1;color:#242422;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #a52727;outline-offset:5px}.toolbar{height:78px;max-width:1400px;padding:0 42px;margin:auto;display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.13em}.toolbar .identity img{width:38px;height:38px;object-fit:contain}.toolbar button{border:0;background:none;font-size:12px;letter-spacing:0}.muted{color:#777}main{max-width:1240px;margin:auto;padding:12px 44px 0}.book{position:relative;display:grid;grid-template-columns:1fr 1fr;perspective:2200px;background:#fafaf8;box-shadow:0 20px 55px #0002,0 2px 6px #0002;border:1px solid #d4d4cd}.page{position:relative;padding:28px 36px 24px;min-height:580px;background:#fafaf8;display:flex;flex-direction:column;overflow:hidden}.page:nth-child(odd){background:linear-gradient(90deg,#fff 92%,#eeeeea 99%,#d6d6cf)}.page:nth-child(even){background:linear-gradient(90deg,#d9d9d2,#f4f4f0 2%,#fff 9%)}.page[hidden]{display:none}.running,footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.12em;line-height:1.4}.running{color:#666}footer{margin-top:auto;padding-top:20px}h1,h2,p{margin:0}h1{font-size:clamp(40px,5vw,70px);font-weight:400;line-height:1.03;letter-spacing:-.055em}h2{font-size:clamp(32px,3.5vw,48px);font-weight:400;line-height:1.05;letter-spacing:-.045em}.cover-body{padding-top:24px}.wordmark{height:44px;width:210px;display:flex;align-items:center;overflow:hidden;margin-bottom:24px}.wordmark img{width:100%}.byline{font-size:13px;margin-top:18px}.toc{margin-top:36px}.toc a{display:flex;justify-content:space-between;border-bottom:1px solid #dcdcd6;padding:12px 0;text-decoration:none;font-size:12px}.toc a:hover{color:#a52727}.page figure{margin:0;min-height:0}.picture figure{flex:1;display:flex;flex-direction:column;justify-content:center;padding:20px 0}.picture img{width:100%;max-height:390px;object-fit:contain}.picture figcaption{display:flex;justify-content:space-between;gap:10px;margin-top:13px;font-size:11px}.picture figcaption span{color:#777}.opening figure{padding:36px 0}.inset figure{padding:70px 30px}.portrait img{max-height:420px}.chapter h2{margin-top:36px}.chapter p{font-size:13px;line-height:1.6;max-width:300px;margin-top:14px}.chapter figure{flex:1;display:flex;align-items:center;justify-content:center;padding-top:24px}.chapter img{width:100%;height:280px;object-fit:contain}.values h2{margin-top:42px}.values dl{margin-top:32px}.values dt{font-size:12px;margin-top:24px}.values dd{margin:8px 0 0;color:#62625c;font-size:13px;line-height:1.55;max-width:320px}.contact-body{margin:auto 0}.end-logo{height:60px;width:60px;object-fit:contain;margin-bottom:30px}.contact a{display:inline-block;margin-top:28px;text-decoration:none;border-bottom:1px solid #aaa;padding-bottom:5px;font-size:13px}.contact p{margin-top:24px;line-height:1.6;color:#777;font-size:12px}.controls{display:flex;justify-content:space-between;align-items:center;margin:22px auto 0;max-width:640px}.controls button{border:0;background:transparent;padding:12px 16px;font-size:13px}.controls button:hover:enabled{color:#a52727}#progress{font-size:11px;letter-spacing:.12em;font-variant-numeric:tabular-nums}.hint{text-align:center;color:#777;font-size:11px;margin:10px 0}.study-note{text-align:center;padding:20px;font-size:9px;letter-spacing:.12em;color:#777}.js .page{height:min(70vh,670px);min-height:550px}.turn-leaf{position:absolute!important;top:0;width:50%;z-index:4;pointer-events:none;backface-visibility:hidden;box-shadow:10px 0 20px #0001}.turn-leaf.forward{left:50%;transform-origin:left center;animation:turn-forward .65s cubic-bezier(.3,.1,.3,1) forwards}.turn-leaf.backward{left:0;transform-origin:right center;animation:turn-back .65s cubic-bezier(.3,.1,.3,1) forwards}@keyframes turn-forward{to{transform:rotateY(-175deg);filter:brightness(.82)}}@keyframes turn-back{to{transform:rotateY(175deg);filter:brightness(.82)}}@media(min-width:761px) and (max-height:800px){.toolbar{height:58px}main{padding-top:0}.js .page{height:550px}.controls{margin-top:10px}.study-note{padding:10px}.cover-body{padding-top:14px}.wordmark{margin-bottom:14px}.toc{margin-top:22px}.chapter h2{margin-top:24px}.chapter img{height:250px}}
@media(max-width:760px){.toolbar{padding:0 20px;height:64px}.toolbar>span{font-size:8px}.toolbar .muted{display:none}main{padding:8px 16px 0;max-width:500px}.book{grid-template-columns:1fr}.page{padding:25px 26px;min-height:550px}.js .page{height:600px;min-height:0;background:linear-gradient(90deg,#eeeee9,#fff 5%,#fff 98%,#eeeee9)}.page:not([hidden]){grid-column:1}.turn-leaf{width:100%;left:0!important}.cover-body{padding-top:24px}h1{font-size:56px}h2{font-size:40px}.picture img{max-height:410px}.chapter img{height:290px}.controls{margin-top:12px}.controls button{font-size:12px;padding:10px 4px}.hint{font-size:10px}.inset figure{padding:50px 0}.contact a{font-size:12px}}
@media(prefers-reduced-motion:reduce){.turn-leaf{animation:none!important}}


/* Wide, white sketchbook study. */
.top-nav{display:flex;gap:24px;align-items:center;letter-spacing:0;font-size:12px}.top-nav a{text-decoration:none}.top-nav a:hover,.top-nav button:hover{color:#a52727}
.toolbar{max-width:none;padding-inline:32px}
main{max-width:1800px;padding-inline:28px}
.book{border-color:#d4d4cd;box-shadow:0 18px 48px #00000018,0 2px 5px #00000012,2px 3px 0 #f5f5f1,4px 5px 0 #d9d9d3}
@media(min-width:761px){.js .page{height:clamp(550px,74vh,790px);padding-inline:clamp(30px,3.2vw,64px)}.picture img{max-height:55vh}.chapter img{height:clamp(250px,39vh,440px)}.controls{max-width:720px}}
@media(max-width:760px){main{padding-inline:16px}.toolbar{padding-inline:20px}.top-nav{gap:14px;font-size:11px}.toolbar button{font-size:11px}.toolbar>span{max-width:85px;line-height:1.5}}
/* Handmade sketchbook: reusable material and binding settings. */
:root{--sketch-cover:#595d57;--sketch-thread:#aaa494;--sketch-paper:#fff;--sketch-width:1920px}
main{max-width:var(--sketch-width)}
.book{isolation:isolate;border:1px solid #d3d3cb;border-bottom:4px solid var(--sketch-cover);border-radius:2px 6px 7px 2px;box-shadow:0 20px 45px #0002,0 0 0 5px var(--sketch-cover),2px 5px 0 5px #3f433e}
.book::before{content:"";position:absolute;z-index:5;pointer-events:none;top:10%;bottom:10%;left:calc(50% - 6px);width:12px;background:radial-gradient(ellipse 2px 2px at 2px 25px,#737267 80%,transparent 100%) 0 0/12px 92px,radial-gradient(ellipse 2px 2px at 10px 30px,#737267 80%,transparent 100%) 0 0/12px 92px,repeating-linear-gradient(25deg,transparent 0 23px,var(--sketch-thread) 24px 25px,transparent 26px 92px);opacity:.65}
.page:nth-child(odd){background:linear-gradient(90deg,var(--sketch-paper) 94%,#f0f0eb 98.5%,#ddded6)}
.page:nth-child(even){background:linear-gradient(90deg,#ddded6,#f2f2ed 1.5%,var(--sketch-paper) 6%)}
@media(min-width:1000px){.js .page{height:clamp(520px,69vh,740px)}.picture img{max-height:49vh}.chapter img{height:clamp(220px,34vh,380px)}}
@media(max-width:760px){.book::before{left:-3px;width:10px;opacity:.45}.book{border-radius:2px 5px 5px 2px}.js .page{background:linear-gradient(90deg,#edeee8,var(--sketch-paper) 5%)} }
.book::before{background:url("binding.svg") repeat-y center top}
/* Reference: handmade ribbon-bound journal. Local prototype only. */
:root{--sketch-cover:#b62d3a;--sketch-thread:#c62339;--sketch-width:1500px}
main{position:relative;padding-right:60px;padding-left:28px}
.book{border-bottom-width:3px;box-shadow:0 18px 48px #0002,0 0 0 4px #b62d3a,2px 5px 0 4px #8e2431}
.book::before{width:24px;left:calc(50% - 12px);top:4%;bottom:4%;background:repeating-linear-gradient(180deg,transparent 0 18px,#972032 19px,#d92d43 21px,#c41e35 38px,#961e30 40px,transparent 42px 63px);opacity:1;border-inline:1px solid #b2aaa055}
.book::after{content:"";position:absolute;z-index:6;pointer-events:none;left:calc(50% + 22px);top:-24px;width:19px;height:85px;background:linear-gradient(90deg,#a61b2d,#db2a40 45%,#af1b2d);clip-path:polygon(0 0,100% 0,100% 100%,50% 87%,0 100%);transform:rotate(-3deg);box-shadow:2px 2px 4px #0003}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.filter-defs{position:absolute;pointer-events:none}
.page.diary-cover{background:radial-gradient(ellipse at 15% 95%,#ba8b321c,transparent 50%),linear-gradient(90deg,#f1cf63,#f4d777 90%,#d5b75e);}
.diary-cover .cover-body{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding-top:10px}
.diary-cover .wordmark{width:min(290px,90%);height:70px;margin:0 0 12px}
.cover-emblem{width:clamp(170px,20vw,285px);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#c9243d;box-shadow:inset 1px 2px 5px #8c152b30;transform:rotate(-3deg);transition:transform .25s}
.cover-emblem:hover{transform:rotate(0deg) scale(1.02)}
.cover-emblem img{width:82%;height:auto;filter:url(#yellow-sun)}
.cover-caption{font-size:12px;margin-top:26px;letter-spacing:.02em}.open-book{font-size:12px;text-decoration:none;border-bottom:1px solid #473d2d66;padding-bottom:5px;margin-top:14px}
.diary-index h2{font-size:clamp(28px,3vw,43px);margin-top:28px}.diary-index .toc{margin-top:20px}.diary-index .toc a{padding-block:10px}
.index-print{position:relative;align-self:flex-end;width:42%;margin:24px 14px 8px!important;padding:8px 8px 12px;background:#fff;box-shadow:0 2px 8px #0002;transform:rotate(3deg)}.index-print img{display:block;width:100%;height:auto}.index-print figcaption{font-size:9px;margin-top:7px}.index-print::before{content:"";position:absolute;width:52px;height:18px;top:-8px;left:calc(50% - 26px);background:#ddd3b9a8;transform:rotate(-8deg);}
.chapter-tabs{position:absolute;right:16px;top:60px;display:flex;flex-direction:column;gap:12px;z-index:8}.chapter-tabs a{writing-mode:vertical-rl;text-decoration:none;font-size:10px;letter-spacing:.05em;padding:12px 10px;background:#e8cc78;color:#302d28;border-radius:0 4px 4px 0;box-shadow:2px 2px 3px #0002}.chapter-tabs a:nth-child(2){background:#b92c3f;color:#fff}.chapter-tabs a:nth-child(3){background:#d8d8c6}.chapter-tabs a:nth-child(4){background:#bfc9cf}.chapter-tabs a:nth-child(5){background:#e0cbb7}.chapter-tabs a:hover{transform:translateX(3px)}
.chapter img,.picture img{padding:8px;background:white;box-shadow:0 2px 7px #00000019}.chapter img{width:auto;max-width:100%;transform:rotate(-1deg)}.picture img{transform:rotate(.6deg)}.values dl{background:#f7f5ee;padding:6px 20px 22px;transform:rotate(-.7deg);box-shadow:0 2px 6px #0001}
@media(min-width:1000px){.js .page{height:clamp(560px,75vh,730px)}}
@media(max-width:760px){main{padding-left:14px;padding-right:40px}.chapter-tabs{right:8px;top:55px;gap:8px}.chapter-tabs a{font-size:9px;padding:10px 6px}.book::before{left:-4px;width:12px}.book::after{left:16px}.js .page.diary-cover{background:linear-gradient(90deg,#e4c261,#f4d777 8%,#f4d777)}.cover-emblem{width:210px;max-width:95%}.diary-cover .wordmark{width:240px;max-width:100%}.cover-caption{font-size:11px}.page{padding-inline:23px}.diary-index h2{font-size:34px}.index-print{width:60%}.toc a{font-size:11px}.contact a{font-size:11px}.running,footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){.cover-emblem{transition:none}}
.book::after{left:calc(50% + 9px);width:16px;height:65px}
@media(max-width:760px){.book::after{left:4px;width:14px;height:52px}}
/* The journal itself is the interface; original cover photograph supplies the ink and paper. */
:root{--sun-paper:#ffd26a;--sketch-width:none}
body{background:#fff;margin:0}.toolbar{position:absolute;right:70px;top:0;height:48px;padding:0;z-index:10}.toolbar>.identity,.toolbar>span{display:none}.toolbar .top-nav{gap:20px;font-size:11px}.toolbar button{font-size:11px}.hint,.study-note{display:none}
main{max-width:none;padding:0 35px 0 0;margin:0;min-height:100dvh}.book{border:0;border-radius:0;box-shadow:inset 0 -3px #a52b3a;min-height:100dvh}.js .page{height:100dvh;min-height:650px;padding-top:60px;padding-bottom:72px}.page footer{padding-top:12px}.running{justify-content:flex-start;align-items:center;min-height:26px}.running>span{margin-left:auto}.page-logo{height:24px;width:24px;object-fit:contain;margin-right:8px}.book .controls{position:absolute;bottom:8px;left:0;right:0;max-width:none;padding:0 35px;z-index:9;margin:0;height:44px}.controls button{font-size:11px}.book::after{top:0;height:55px}.book::before{top:4%;bottom:4%}.chapter-tabs{right:2px;top:100px;gap:14px}.chapter-tabs a{font-size:10px;padding:13px 8px}.chapter-tabs a[aria-current]{transform:translateX(2px);box-shadow:2px 2px 5px #0003}
.page.diary-cover,.js .page.diary-cover{background-color:#f9ca5a;background-image:none;background-size:168% 128%;background-position:55% 50%;background-repeat:no-repeat;padding:0;}
.diary-cover>.running,.diary-cover>footer{display:none}.diary-cover .cover-body{position:absolute;inset:0;padding:0;display:block}.diary-cover .wordmark{position:absolute;top:30%;left:14%;width:72%;max-width:none;height:9%;margin:0;transform:rotate(-2deg);z-index:2}.diary-cover .wordmark img{width:100%;mix-blend-mode:multiply}.cover-emblem{position:absolute;top:36%;left:23%;width:50%;max-width:none;aspect-ratio:1;border-radius:49% 51% 48% 52%;background:#d51e38;box-shadow:inset 1px 2px 5px #790e2530;transform:rotate(-3deg);z-index:1}.cover-emblem::after{content:"";position:absolute;inset:0;background:url('paper-grain.svg');opacity:.24;border-radius:inherit;pointer-events:none;mix-blend-mode:multiply}.cover-emblem img{width:84%;filter:url(#yellow-sun) brightness(1.14)}.open-book{position:absolute;bottom:3%;right:7%;margin:0;padding:10px 14px;border:0;background:#ffe39bdc;box-shadow:1px 2px 4px #5b451e25;font-size:12px;transform:rotate(-2deg)}
.diary-index h2{margin-top:22px}.index-print{width:46%;margin-top:30px!important}.page:not(.diary-cover)::after{content:"";position:absolute;inset:0;pointer-events:none;background:url('paper-grain.svg');opacity:.055;z-index:0}.page>*{position:relative;z-index:1}.page>.running,.page>footer{z-index:2}.page .cover-body{position:absolute}.picture figure{padding-inline:6px}.picture img{max-height:60vh}.chapter img{height:42vh}.values dl{margin-top:28px}.book-closed main{width:min(76dvh,calc(100vw - 36px));padding-right:0;margin:auto;min-height:100dvh}.book-closed .book{display:block;box-shadow:5px 0 0 #e7e0d1,8px 0 0 #b42a3a;border-radius:3px 12px 12px 2px;overflow:visible}.book-closed .page{border-radius:3px 10px 10px 2px;height:100dvh;min-height:650px}.book-closed .book::before,.book-closed .book::after,.book-closed .controls,.book-closed .toolbar{display:none}.book-closed .chapter-tabs{right:-30px;top:18%;}.book-closed .diary-cover .wordmark{top:30%;}.book-closed .cover-emblem{top:37%}
@media(max-width:760px){main{padding-right:29px}.js .page{padding:48px 23px 68px;min-height:650px;height:100dvh}.js .page.diary-cover{padding:0}.toolbar{right:48px;height:40px}.toolbar .top-nav{gap:16px}.chapter-tabs{right:0;top:85px;gap:10px}.chapter-tabs a{padding:11px 6px;font-size:9px}.book::before{left:0;width:10px}.book::after{left:8px;width:12px;height:42px}.book .controls{padding-inline:14px}.controls button{padding-inline:0;font-size:10px}.running,footer{font-size:8px}.page-logo{width:20px;height:20px;margin-right:3px}.chapter img{height:38vh;max-height:330px}.picture img{max-height:62vh}.book-closed main{width:calc(100vw - 30px);margin:0}.book-closed .page{min-height:650px}.book-closed .chapter-tabs{right:-27px}.cover-emblem{top:39%;left:23%;width:50%}.diary-index .index-print{width:65%}.diary-index .toc{margin-top:20px}}
@media print{body,main{background:white!important}.toolbar,.chapter-tabs,.controls,.hint,.study-note{display:none!important}main,.book-closed main{width:100%!important;padding:0!important;margin:0!important}.book{display:block!important;box-shadow:none!important;border:0!important}.book::before,.book::after{display:none!important}.page,.page[hidden],.book-closed .page{display:flex!important;break-after:page;min-height:0!important;height:260mm!important;overflow:visible!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.turn-leaf{display:none!important}.open-book{display:none!important}@page{size:A4;margin:12mm}}
/* Match the photographed circular window instead of covering the original stamp. */
.book-closed main{width:min(60dvh,calc(100vw - 36px))}
.cover-emblem,.book-closed .cover-emblem{top:35.5%;left:24%;width:48%;height:28%;aspect-ratio:auto;background:#d51e38c9}
.cover-emblem img{width:90%;height:100%;object-fit:contain}
@media(max-width:760px){.book-closed main{width:calc(100vw - 30px)}}
body:not(.book-closed) .open-book{display:none}
@media print{.page:not(.diary-cover) figure img{max-height:175mm!important;object-fit:contain}.chapter img{height:135mm!important}.diary-index .index-print img{height:auto!important}.page-logo{height:24px!important;width:24px!important}}
/* Keep the identity mark out of artwork sizing rules. */
.page .running .page-logo{width:24px;height:24px;min-width:24px;max-width:24px;max-height:24px;flex:0 0 24px;padding:0;margin-right:8px;background:transparent;box-shadow:none;transform:none;object-fit:contain}
body{overflow-x:clip}.running{flex-wrap:nowrap}.running span{white-space:nowrap}
@media(max-width:760px){.page .running .page-logo{width:20px;height:20px;min-width:20px;max-width:20px;max-height:20px;flex-basis:20px;margin-right:3px}}
/* Independent yellow journal: no reference photograph or third-party lettering. */
body{background:#fff}
main{max-width:1500px;min-height:0;margin:32px auto;padding:0 38px 0 18px}
.book{min-height:0;border-radius:4px 9px 9px 4px;box-shadow:0 18px 35px #00000014,0 0 0 3px #bd263c,2px 4px 0 3px #92253a}
.js .page{height:calc(100dvh - 64px);min-height:630px;max-height:850px}
.toolbar{top:42px;right:max(76px,calc((100vw - 1500px)/2 + 76px))}
.chapter-tabs{top:80px;right:5px}
.page.diary-cover,.js .page.diary-cover{background:#fff}
.diary-cover .cover-body{display:none}.inside-front{height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:55px 12%;background:linear-gradient(90deg,#fff 93%,#f1f1eb 99%,#dedfd7)}
.inside-front .wordmark{position:static;transform:none;width:250px;max-width:100%;height:76px;margin:0 0 36px}.inside-front h2{font-size:clamp(44px,5vw,76px);font-weight:400;line-height:1.02}.inside-front p{font-size:14px;margin-top:26px}.inside-front .inside-note{font-size:12px;color:#777;margin-top:10px}.inside-logo{width:54px;height:54px;object-fit:contain;margin-top:44px}
.book-closed main{width:min(65dvh,calc(100vw - 60px));margin:32px auto;padding:0}
.book-closed .book{overflow:visible;box-shadow:0 25px 45px #0002,3px 2px 0 #eee9dc,6px 4px 0 #ddd5c4,8px 6px 0 #b6263b;transform:rotate(-1deg)}
.book-closed .page{height:calc(100dvh - 64px);min-height:600px;max-height:850px}
.book-closed .page.diary-cover{background:radial-gradient(ellipse at 10% 95%,#c58f231c,transparent 48%),linear-gradient(90deg,#e5b843,#ffcf61 6%,#ffd66e 75%,#f8cb5f);border-left:8px solid #b62238;border-radius:4px 9px 9px 4px}
.book-closed .inside-front{display:none}.book-closed .diary-cover .cover-body{display:block}
.book-closed .diary-cover::after{content:"";position:absolute;inset:0;background:url('paper-grain.svg');opacity:.14;pointer-events:none;mix-blend-mode:multiply}
.book-closed .diary-cover .wordmark{top:16%;left:12%;width:76%;height:12%;transform:rotate(-2deg)}
.book-closed .cover-emblem{top:34%;left:22%;width:56%;height:auto;aspect-ratio:1;background:#cb263f;box-shadow:inset 1px 2px 5px #8c152b20}
.book-closed .cover-emblem img{width:88%;height:auto}
.book-closed .book::before{display:block;top:5%;bottom:5%;left:-9px;width:23px;background:repeating-linear-gradient(180deg,transparent 0 19px,#a21c31 20px,#d62b43 23px,#c6233a 38px,#9c2032 40px,transparent 42px 65px);border:0}
.book-closed .book::after{display:block;left:22px;top:-17px;width:17px;height:54px}
.book-closed .open-book{bottom:9%;right:50%;transform:translateX(50%) rotate(-2deg);white-space:nowrap;background:#ffe6a9;font-size:12px;padding:12px 16px}
@media(max-width:760px){main{margin:12px auto;padding:0 30px 0 10px}.js .page{height:calc(100dvh - 24px);min-height:630px}.toolbar{top:18px;right:46px}.toolbar .top-nav{gap:12px}.toolbar button,.toolbar .top-nav a{font-size:10px}.chapter-tabs{top:80px;right:1px}.book-closed main{width:calc(100vw - 54px);margin:24px 32px 24px 16px}.book-closed .page{height:calc(100dvh - 48px);min-height:600px}.inside-front{padding:48px 28px}.inside-front .wordmark{margin-bottom:24px}.book-closed .chapter-tabs{right:-27px}}
/* Tactile scan study: paper, imperfect cuts and mounted photographs. */
.book{background:#e5e1d5;box-shadow:0 15px 28px #24201717,0 0 0 3px #b52d40,2px 4px 0 3px #92253a}
.page:nth-child(odd):not(.diary-cover){background:radial-gradient(ellipse at 2% 15%,#ded9c722,transparent 45%),linear-gradient(90deg,#f2f1e9 0%,#fdfcf7 2%,#fffef9 65%,#f7f6ee 94%,#ddded3 99%,#bdbfb2)}
.page:nth-child(even){background:radial-gradient(ellipse at 90% 95%,#d9d1bb20,transparent 40%),linear-gradient(90deg,#b7baae,#e7e8df 2%,#fafaf3 6%,#fffef9 20%,#fefdf8 97%,#e7e4d8)}
.page:not(.diary-cover)::after{background:url('paper-grain.svg');opacity:.18;mix-blend-mode:multiply}
.page:not(.diary-cover)::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border:1px solid #9d9d8220;box-shadow:inset 0 0 13px #77765e0c;clip-path:polygon(0 .15%,20% 0,43% .22%,68% .05%,100% .25%,99.8% 26%,100% 53%,99.8% 77%,100% 99.8%,73% 100%,49% 99.85%,20% 100%,0 99.7%,.15% 65%,0 32%)}
.inside-front{background:radial-gradient(ellipse at 10% 80%,#ddd5bc22,transparent 55%),linear-gradient(90deg,#fefdf7 0%,#fffef9 87%,#eeeee4 97%,#bfc2b5)}
.inside-front::after{content:"";position:absolute;inset:0;pointer-events:none;background:url('paper-grain.svg');opacity:.15;mix-blend-mode:multiply}
.book-closed .page.diary-cover{background:radial-gradient(ellipse at 8% 12%,#fff2bc55,transparent 43%),radial-gradient(ellipse at 95% 90%,#bd8b2b24,transparent 36%),linear-gradient(93deg,#e4b64b,#ffd36c 7%,#ffd775 78%,#eec35e);box-shadow:inset 0 0 18px #87682e14}
.book-closed .diary-cover::after{opacity:.3}
.book-closed .book{border-radius:4px 9px 13px 3px;box-shadow:0 24px 32px #2923181c,2px 2px 0 #f8f4e9,4px 3px 0 #c8c5b8,6px 5px 0 #eae5d8,8px 6px 0 #b42d41}
.book-closed .wordmark{opacity:.93}.cover-emblem{border-radius:49% 51% 50% 48%;opacity:.96}.cover-emblem::after{opacity:.34}.cover-emblem img{opacity:.94}
.book::before{filter:drop-shadow(1px 2px 1px #5b122f35);transform:rotate(-.2deg)}
.chapter figure,.picture figure{position:relative}
.chapter figure::before,.picture figure::before{content:"";position:absolute;width:66px;height:22px;left:calc(50% - 33px);top:18%;background:linear-gradient(90deg,#e3dcc28c,#e8e0c9b0,#d8cfb58a);clip-path:polygon(2% 0,98% 5%,100% 30%,98% 55%,100% 95%,3% 100%,0 72%,2% 45%);transform:rotate(-7deg);z-index:3;pointer-events:none;box-shadow:0 1px 2px #5551}
.chapter figure::before{top:calc(50% - 21vh + 9px)}
.picture figure::before{top:calc(50% - 30vh + 5px)}
.picture.portrait figure::before{top:calc(50% - 210px)}
.chapter img,.picture img{border:1px solid #e9e7df;padding:10px 10px 24px;background:#fffefb;box-shadow:1px 3px 5px #403b2c1c,0 0 1px #9994;filter:none}
.chapter img{transform:rotate(-1.3deg)}.picture img{transform:rotate(.8deg)}.page:nth-child(4n) img:not(.page-logo):not(.inside-logo){transform:rotate(-.55deg)}
.index-print{background:#fffdf6;border:1px solid #ebe7db;box-shadow:2px 4px 7px #302c2229;transform:rotate(3.2deg);padding:9px 9px 22px}.index-print::before{height:23px;opacity:.88;clip-path:polygon(0 5%,98% 0,100% 88%,2% 100%)}.index-print figcaption{font-family:Georgia,serif;font-style:italic;color:#575448}
.chapter-tabs a{border-radius:1px 4px 3px 0;box-shadow:2px 2px 3px #0002,inset 0 0 5px #99885d16;transform:rotate(.7deg)}.chapter-tabs a:nth-child(even){transform:rotate(-1deg)}
@media(max-width:760px){.js .page:not(.diary-cover){background:linear-gradient(90deg,#d4d6c9,#f6f6ed 3%,#fffef9 12%,#fffef9 96%,#ece9dd)}.chapter figure::before{top:calc(50% - min(19vh,165px) + 9px)}.picture figure::before{top:calc(50% - 31vh + 10px)}.inside-front{background:linear-gradient(90deg,#e5e7da,#fffef9 8%)} }
.chapter figure::before,.picture figure::before{display:none}
.photo-mount{position:relative;max-width:100%;flex-shrink:1;min-height:0}.picture .photo-mount{width:100%}.photo-mount::before{content:"";position:absolute;width:64px;height:23px;top:-6px;left:calc(50% - 32px);background:linear-gradient(90deg,#e1d9bf90,#e9e1c9b8,#ded4b58a);clip-path:polygon(2% 0,98% 5%,100% 30%,98% 55%,100% 95%,3% 100%,0 72%,2% 45%);transform:rotate(-7deg);z-index:3;pointer-events:none}.photo-mount img{display:block}
.page .running .page-logo{border:0}
/* Fine red sewn binding and collected-paper composition. */
.book::before,.book-closed .book::before{width:10px;left:calc(50% - 5px);top:5%;bottom:5%;background:url('thread-stitch.svg') repeat-y center top;border:0;opacity:.9;filter:none;transform:none}
.book::after,.book-closed .book::after{display:none}
.book-closed .book::before{left:0}.book-closed .page.diary-cover{border-left:2px solid #b62238}
.book{border-radius:12px 15px 14px 11px;box-shadow:0 17px 30px #30271924,0 0 0 1px #d4cdbd,0 0 0 3px #f5f0e5,0 0 0 4px #c9c3b5,0 0 0 6px #eee8da,0 0 0 7px #c1b9a9,0 0 0 9px #b12d40}
.page:nth-child(odd){border-radius:12px 2px 1px 11px}.page:nth-child(even){border-radius:2px 15px 14px 1px}
.toolbar{height:65px;top:8px;left:36px;right:64px;max-width:1460px;margin:auto;justify-content:space-between}.toolbar>.identity{display:flex;width:280px;height:58px;align-items:center;overflow:hidden}.toolbar>.identity img{content:url('assets/wordmark-selected-v4-768x256.png');width:100%;height:auto;object-fit:contain}.toolbar .top-nav{font-size:12px;gap:28px}.toolbar button{font-size:12px}
main{margin-top:80px;margin-bottom:26px;padding-left:26px;padding-right:48px;}.js .page{height:calc(100dvh - 110px);min-height:640px}.chapter-tabs{right:13px;top:50px;gap:16px}.chapter-tabs a{clip-path:polygon(0 1%,94% 0,100% 6%,97% 93%,90% 99%,0 100%);padding-block:16px;min-width:31px}.chapter-tabs a[aria-current]{text-decoration:underline;text-underline-offset:4px}
.collage .collage-canvas{position:relative;flex:1;min-height:320px;margin-top:20px}.collage h2{margin-top:22px}.collage-left>p{max-width:66%;font-size:13px;line-height:1.5}
.collage .collage-canvas figure{position:absolute;display:block;padding:0;margin:0;min-height:0;flex:none}.collage .collage-canvas img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;padding:7px 7px 18px;transform:none}.collage .photo-mount{width:100%;position:relative}.collage .photo-mount::before{width:44px;height:19px;left:calc(50% - 22px);top:-9px}.collage-main{width:66%;left:0;bottom:26px;transform:rotate(-1.5deg)}.collage-small{width:30%;right:0;z-index:2}.collage-small.upper{top:-42px;transform:rotate(2deg)}.collage-small.lower{bottom:18px;transform:rotate(3deg)}
.collage .paper-note{position:absolute;z-index:3;bottom:-4px;left:32%;width:auto;max-width:none;font-family:inherit;font-size:11px;font-weight:400;line-height:1.6;letter-spacing:.04em;background:#eee7d6;padding:14px 18px;box-shadow:0 1px 3px #3f34221c;transform:rotate(-6deg);clip-path:polygon(1% 2%,98% 0,100% 97%,2% 100%);margin:0}
.collage-right .collage-main{top:30px;bottom:auto;left:auto;right:0;width:81%;transform:rotate(.8deg)}.collage-right .collage-small.lower{left:0;right:auto;bottom:18px;width:58%;transform:rotate(-2deg)}.collage-right .paper-note{left:auto;right:0;bottom:36px;font-size:11px;max-width:37%;transform:rotate(5deg)}
.collage .collage-canvas figure::before{display:none}
@media(min-width:1250px){.collage .collage-canvas{min-height:370px}.collage-left .collage-small.upper{top:-85px}.collage-left>p{max-width:63%}}
@media(max-width:760px){main{margin:65px 0 20px;padding-left:16px;padding-right:38px}.js .page{height:calc(100dvh - 90px);min-height:680px}.toolbar{left:16px;right:40px;top:0;height:56px}.toolbar>.identity{width:135px;height:46px}.toolbar .top-nav{gap:10px}.toolbar button,.toolbar .top-nav a{font-size:9px}.chapter-tabs{right:6px;top:62px;gap:12px}.chapter-tabs a{min-width:27px;padding:13px 6px;font-size:9px}.book::before{left:0;width:7px}.collage-left>p{max-width:100%;font-size:12px}.collage .collage-canvas{min-height:330px;margin-top:30px}.collage-small.upper{top:0}.collage-main{bottom:40px;width:70%}.collage-small.lower{bottom:10px}.collage .paper-note{left:8%;bottom:4px;font-size:9px;padding:10px 12px}.collage-right .collage-main{width:88%;top:26px}.collage-right .paper-note{left:auto;right:0;font-size:10px;bottom:44px}.book-closed main{margin-top:24px}.book-closed .page{height:calc(100dvh - 48px);min-height:600px}}

/* Quiet gallery identity: original symbol beside the artist's lettering. */
.toolbar>.identity{width:auto;height:58px;gap:9px;overflow:visible;flex-shrink:0}
.toolbar>.identity img{content:normal;display:block;object-fit:contain}
.toolbar>.identity .identity-symbol{width:28px;height:28px}
.toolbar>.identity .identity-wordmark{width:170px;height:auto}
@media(max-width:760px){
.toolbar>.identity{height:46px;gap:5px}
.toolbar>.identity .identity-symbol{width:20px;height:20px}
.toolbar>.identity .identity-wordmark{width:112px;height:auto}
.toolbar .top-nav{gap:9px}
}

/* A plain bound cover with quiet wear; branding lives in the header. */
.book::before,.book::after,.book-closed .book::before,.book-closed .book::after{display:none}
.book-closed .toolbar{display:flex}
.book-closed main{margin-top:80px}
.book-closed .page{height:calc(100dvh - 110px)}
.book-closed .page.diary-cover{background:#ffd26a;border-left:0}
.cover-emblem img{filter:url(#yellow-sun)}
.book-closed .diary-cover::after{background-image:url('cover-scuffs.svg'),url('paper-grain.svg');background-size:100% 100%,auto;opacity:.24;z-index:4}
@media(max-width:760px){.book-closed main{margin-top:65px}.book-closed .page{height:calc(100dvh - 90px)}}

@media(max-width:760px){.toolbar{right:16px}.toolbar .top-nav{gap:8px}.toolbar>.identity .identity-wordmark{width:96px}.toolbar>.identity{gap:4px}.toolbar button,.toolbar .top-nav a{font-size:9px}}

/* Collections and bookmarks set between different leaves. */
#progress{display:none}
.inside-front .portfolio-scope{font-size:clamp(30px,3.2vw,49px);line-height:1.14;letter-spacing:-.035em}
.toc .collection-planned{display:flex;border-bottom:1px solid #dcdcd6;padding:10px 0;font-size:12px}
.toc .secondary-collection{font-size:10px;color:#67675f}
.diary-index .index-print{width:32%;margin-top:16px!important}
.chapter-tabs a{position:relative;transform-origin:left center;border-left:1px solid #00000012}
.chapter-tabs a:nth-child(1){transform:translateX(-7px) rotate(-2deg);z-index:5;box-shadow:2px 2px 3px #0002}
.chapter-tabs a:nth-child(2){transform:translateX(5px) rotate(1.3deg);z-index:4;box-shadow:4px 3px 5px #0003}
.chapter-tabs a:nth-child(3){transform:translateX(-3px) rotate(-1deg);z-index:3;box-shadow:2px 2px 3px #0002}
.chapter-tabs a:nth-child(4){transform:translateX(9px) rotate(2deg);z-index:2;box-shadow:5px 4px 6px #0003}
.chapter-tabs a:nth-child(5){transform:translateX(1px) rotate(-1.5deg);z-index:1;box-shadow:3px 3px 4px #0002}
.chapter-tabs a:hover{filter:brightness(1.05)}
@media(max-width:760px){.inside-front .portfolio-scope{font-size:34px}.chapter-tabs a:nth-child(4){transform:translateX(5px) rotate(2deg)}.chapter-tabs a:nth-child(2){transform:translateX(3px) rotate(1.3deg)}}

/* The perfectionist's journal: ordered tabs recede through the paper stack. */
.chapter-tabs{gap:5px}
.chapter-tabs a:nth-child(n){height:76px;width:34px;min-width:34px;padding:10px 7px;display:flex;align-items:center;justify-content:center;clip-path:none;border-radius:0 3px 3px 0;transform:translateX(var(--tab-depth));box-shadow:2px 1px 3px #30271926;border-left:1px solid #b9ac8e66}
.chapter-tabs a:nth-child(1){--tab-depth:8px;z-index:5}
.chapter-tabs a:nth-child(2){--tab-depth:4px;z-index:4}
.chapter-tabs a:nth-child(3){--tab-depth:0px;z-index:3}
.chapter-tabs a:nth-child(4){--tab-depth:-4px;z-index:2}
.chapter-tabs a:nth-child(5){--tab-depth:-8px;z-index:1}
.chapter-tabs a:hover{filter:brightness(1.05)}
@media(min-width:761px){.page.spread-continuation{padding-top:26px}.page.spread-continuation>.running{display:none}.collage-right.spread-continuation .collage-main{top:16px}}
@media(max-width:760px){.chapter-tabs{gap:5px}.chapter-tabs a:nth-child(n){height:67px;width:27px;min-width:27px;padding:9px 6px}.chapter-tabs a:nth-child(1){--tab-depth:4px}.chapter-tabs a:nth-child(2){--tab-depth:1px}.chapter-tabs a:nth-child(3){--tab-depth:-2px}.chapter-tabs a:nth-child(4){--tab-depth:-5px}.chapter-tabs a:nth-child(5){--tab-depth:-8px}}

/* Physical chapter order: Home sits at the top leaf; later tabs reach deeper. */
.chapter-tabs a:nth-child(n){--tab-depth:0px;height:71px;min-width:34px;transform:translateX(var(--tab-depth));border-radius:0 2px 2px 0}
.chapter-tabs a:nth-child(1){--tab-depth:-10px;z-index:6}
.chapter-tabs a:nth-child(2){--tab-depth:-6px;z-index:5}
.chapter-tabs a:nth-child(3){--tab-depth:-2px;z-index:4}
.chapter-tabs a:nth-child(4){--tab-depth:2px;z-index:3}
.chapter-tabs a:nth-child(5){--tab-depth:6px;z-index:2}
.chapter-tabs a:nth-child(6){--tab-depth:10px;z-index:1;background:#d9b9a6}
.collection-intro-body{margin:auto 0;padding:40px clamp(0px,7vw,100px)}
.collection-intro h2{font-size:clamp(38px,5vw,70px);font-weight:400;line-height:1.1}.collection-intro p{margin-top:24px;font-size:13px;color:#777}
@media(min-width:761px){.page.single-spread{grid-column:1/-1;background:#fffef9;border-radius:12px 15px 14px 11px}}
@media(max-width:760px){.chapter-tabs{right:9px;gap:4px}.chapter-tabs a:nth-child(n){height:64px;width:27px;min-width:27px;padding:8px 6px;font-size:9px}.chapter-tabs a:nth-child(1){--tab-depth:-8px}.chapter-tabs a:nth-child(2){--tab-depth:-5px}.chapter-tabs a:nth-child(3){--tab-depth:-2px}.chapter-tabs a:nth-child(4){--tab-depth:1px}.chapter-tabs a:nth-child(5){--tab-depth:4px}.chapter-tabs a:nth-child(6){--tab-depth:7px}}


/* Precisely mounted 5:4 and 4:5 photographs. */
.page figure,.page .collage-canvas figure,.page .index-print,.page .photo-mount,.page .photo-mount img,.page .index-print img{transform:none!important}
.page .photo-mount{padding:8px 8px 20px;background:#fffefb;border:1px solid #e9e7df;box-shadow:1px 3px 5px #403b2c1c}
.page .photo-mount::before,.page .index-print::before{transform:none}
.page .photo-mount img,.page .collage-canvas .photo-mount img,.page .index-print img{padding:0;border:0;box-shadow:none;display:block;width:100%;height:auto;max-height:none;object-fit:cover;object-position:var(--photo-x,50%) var(--photo-y,50%);background:#f0efeb}
.page img[data-format="landscape"]{aspect-ratio:5/4}
.page img[data-format="portrait"]{aspect-ratio:4/5}
.page .portrait .photo-mount{max-width:100%}
.page.portrait .photo-mount,.page.chapter[data-collection="photography"] .photo-mount{width:min(100%,calc(46vh * .8));margin-inline:auto}
.page.chapter .photo-mount{width:100%}
.page .index-print{padding:8px 8px 20px}
@media(max-width:760px){.page.portrait .photo-mount,.page.chapter[data-collection="photography"] .photo-mount{width:min(100%,calc(48vh * .8))}}

/* Editable gallery leaves preserve the journal while photographs stay square to the paper. */
.gallery-leaf figure{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:24px 0 12px}
.gallery-leaf .photo-mount{width:100%;max-width:min(100%,calc(51vh * 1.25));flex:none}
.gallery-leaf .photo-mount:has(img[data-format="portrait"]){max-width:min(100%,calc(49vh * .8))}
.gallery-leaf figcaption{width:100%;display:flex;justify-content:space-between;gap:16px;font-size:11px;line-height:1.5;margin-top:14px}
.gallery-leaf figcaption>span:last-child:not(:first-child){color:#777;text-align:right}
.gallery-intro-copy h2{margin-top:26px;font-size:clamp(30px,3.3vw,46px)}
.gallery-intro-copy p{font-size:13px;line-height:1.6;max-width:410px;margin-top:12px}
.gallery-intro .photo-mount{max-width:min(100%,calc(37vh * 1.25))}
.gallery-intro .photo-mount:has(img[data-format="portrait"]){max-width:min(100%,calc(37vh * .8))}
.gallery-leaf.single-spread .photo-mount{max-width:min(66%,calc(43vh * 1.25))}
@media(min-width:761px){
.page.spread-left:not(.single-spread):not(.diary-cover){border-radius:12px 2px 1px 11px;background:radial-gradient(ellipse at 2% 15%,#ded9c722,transparent 45%),linear-gradient(90deg,#f2f1e9 0%,#fdfcf7 2%,#fffef9 65%,#f7f6ee 94%,#ddded3 99%,#bdbfb2)}
.page.spread-right{border-radius:2px 15px 14px 1px;background:radial-gradient(ellipse at 90% 95%,#d9d1bb20,transparent 40%),linear-gradient(90deg,#b7baae,#e7e8df 2%,#fafaf3 6%,#fffef9 20%,#fefdf8 97%,#e7e4d8)}
}
@media(max-width:760px){.gallery-leaf .photo-mount,.gallery-leaf.single-spread .photo-mount{max-width:100%}.gallery-leaf figcaption{font-size:10px}.gallery-intro-copy h2{margin-top:22px}}

body.admin-bar .toolbar{top:40px}body.admin-bar main,body.admin-bar.book-closed main{margin-top:112px}html.js body.admin-bar .page{height:calc(100dvh - 142px)}
@media(max-width:782px){body.admin-bar .toolbar{top:46px}body.admin-bar main,body.admin-bar.book-closed main{margin-top:111px}}
.gallery-leaf figcaption .work-buy{display:inline-block;width:fit-content;margin-top:6px;padding:5px 0;border-bottom:1px solid currentColor;text-decoration:none;font-size:12px}
.gallery-leaf figcaption .work-buy:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.gallery-leaf figcaption .work-availability{font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-top:6px}

.wp-site-blocks{padding:0!important;margin:0!important}html{scroll-behavior:auto}
