@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,wght,SOFT,WONK@0,500,30,1;0,600,30,1;1,500,30,1&display=swap');
:root{--paper:#faf7ef;--ink:#173f46;--muted:#526865;--green:#224f43;--yellow:#f4cc59;--line:#dce1d7;--cream:#f4eddc;--coral:#ae4936;--serif:'Fraunces',Georgia,serif;--sans:'DM Sans','Avenir Next',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.65}body:has(dialog[open]){overflow:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-underline-offset:5px}button:disabled{cursor:default;opacity:.6}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #287db9;outline-offset:5px}button,a,summary{touch-action:manipulation}img{max-width:100%;height:auto;display:block}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.12}h1,h2{font-family:var(--serif);font-weight:500;letter-spacing:-.035em}h1{font-size:clamp(44px,5.1vw,72px)}h2{font-size:clamp(34px,4vw,52px)}h3{font-size:20px;font-weight:600}h1 em,h2 em{font-weight:500;color:var(--green)}p{margin-bottom:1.15em}em{font-style:italic}.wrap{width:min(1200px,calc(100% - 96px));margin-inline:auto}.eyebrow,.small-label{font-size:12px;letter-spacing:.15em;font-weight:700;line-height:1.6}.eyebrow{margin-bottom:20px}.small-label{letter-spacing:.11em}svg{width:24px;height:24px}.announcement{text-align:center;background:var(--green);color:#fff9df;padding:9px 16px;font-size:13px;letter-spacing:.025em}.site-header{height:105px;display:flex;align-items:center;justify-content:space-between;gap:30px}.wordmark{font-family:var(--serif);font-size:42px;font-weight:600;letter-spacing:-.065em;text-decoration:none;line-height:1}.logo-period{color:#cb653b}.site-header nav{display:flex;gap:34px;font-size:15px}.site-header nav a{text-decoration:none}.site-header nav a:hover{text-decoration:underline}.basket-button{display:inline-flex;gap:9px;align-items:center;text-decoration:none;font-size:14px;font-weight:500}.basket-count{font-size:12px;background:#e6ecdf;border-radius:50%;min-width:23px;height:23px;text-align:center;line-height:23px}.shelf-heading{text-align:center;padding-top:28px;position:relative;z-index:1;pointer-events:none}.shelf-heading .eyebrow{margin-bottom:15px}.shelf-heading h1{margin-bottom:18px}.shelf-heading p:last-child{font-size:16px;line-height:1.6;color:var(--muted)}.shelf-scene{width:100%;max-width:1600px;position:relative;margin:-38px auto 0;isolation:isolate}.shelf-background{width:100%;aspect-ratio:2/1;object-fit:cover;mix-blend-mode:multiply}.hero-book{position:absolute;bottom:28%;left:24%;width:25%;aspect-ratio:1;display:block;perspective:1200px;z-index:2;filter:drop-shadow(13px 14px 9px #5c443935);transform:rotate(-4deg);transition:transform .3s ease,filter .3s ease}.hero-book img{border-radius:3px 9px 9px 3px;box-shadow:inset -5px 0 0 #fff;width:100%;height:100%;object-fit:contain}.hero-book:hover{transform:rotate(-1deg) translateY(-12px);filter:drop-shadow(14px 24px 12px #5c443933)}.shelf-card{position:absolute;left:56%;bottom:30%;max-width:25%;padding-bottom:5px}.shelf-card h2{font-size:clamp(30px,4vw,56px);line-height:1.04;margin:15px 0 16px;letter-spacing:-.04em}.shelf-card h2 i{font-size:.67em}.shelf-card p{font-size:16px;color:var(--muted);line-height:1.6;margin-bottom:19px}.button{border:0;border-radius:100px;min-height:48px;padding:13px 25px;background:var(--green);color:#fffaf0;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:15px;font-weight:600;line-height:1.45;transition:background .2s,transform .2s;white-space:normal}.button:hover:not(:disabled){background:#113d31;transform:translateY(-2px)}.button-light{background:#eceddc;color:var(--green)}.button-light:hover:not(:disabled){background:#dde5cb}.text-link{border:0;background:transparent;padding:0;display:inline-block;font-size:15px;text-decoration:underline;text-decoration-thickness:1px;line-height:1.6;cursor:pointer}.shelf-card .text-link{display:block;margin-top:14px;width:fit-content}.shelf-caption{position:absolute;bottom:13%;left:0;right:0;text-align:center;font-family:var(--serif);font-size:18px;font-style:italic;color:#736955}.story-section{display:grid;grid-template-columns:1.22fr 1fr;gap:90px;align-items:center;padding:35px 0 110px}.story-art{position:relative;transform:rotate(-3deg);margin:12px 0}.story-art>img{border-radius:8px;box-shadow:0 16px 36px #725d3820;border:8px solid #fffaf0}.paper-note{position:absolute;bottom:-50px;right:0;background:var(--yellow);padding:20px 28px;font-family:var(--serif);font-size:23px;line-height:1.18;transform:rotate(7deg);box-shadow:0 8px 15px #725d3814}.story-copy>p:not(.eyebrow){color:var(--muted);font-size:16px}.story-copy h2{margin-bottom:23px}.grown-ups-section{background:#e9eedf;padding:85px 0}.grown-ups-grid{display:grid;grid-template-columns:1fr 1fr;gap:130px;align-items:center}.grown-ups-grid>div>p:not(.eyebrow){max-width:450px;font-size:16px}.grown-ups-grid h2{margin-bottom:25px}.discovery-list article{display:flex;gap:24px;padding:25px 0;border-top:1px solid #c7d2be}.discovery-list article:first-child{padding-top:0;border:0}.discovery-list article:last-child{padding-bottom:0}.discovery-number{font-family:var(--serif);font-size:32px;color:#496648;line-height:1.1;min-width:36px}.discovery-list h3{font-family:var(--serif);font-size:23px;margin:0 0 8px;font-weight:500}.discovery-list p{font-size:15px;line-height:1.6;color:var(--muted);margin:0}.about-section{display:grid;grid-template-columns:1fr 1fr;gap:120px;align-items:center;padding:100px 0}.notebook-art{max-width:440px;padding:16px;background:#fffcf4;transform:rotate(-3deg);box-shadow:0 15px 50px #816d3820}.notebook-art img{border-radius:2px}.about-section p:not(.eyebrow){font-size:16px;color:var(--muted)}.faq-section{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.6fr;gap:100px;padding:80px 0 100px}.faq-list details{border-bottom:1px solid var(--line)}.faq-list summary{list-style:none;padding:22px 38px 22px 0;cursor:pointer;position:relative;font-weight:500;font-size:17px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:'+';position:absolute;right:5px;top:15px;font-size:29px;font-weight:400}.faq-list details[open] summary:after{content:'−'}.faq-list details p{font-size:16px;color:var(--muted);padding-right:20px}.site-footer{background:var(--green);color:#fff6da;padding:50px 0 20px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:35px;padding-bottom:40px}.footer-top p{margin:0;font-family:var(--serif);font-size:20px}.footer-top>a:last-child{font-size:14px}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid #ffffff25;padding-top:20px;font-size:13px;color:#d7e2ca}.site-footer .logo-period{color:#f0c663}.skip-link{position:fixed;z-index:99;left:20px;top:-100px;background:var(--ink);color:white;padding:12px 18px}.skip-link:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.product-main{padding-top:30px}.back-link{margin-bottom:40px}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:90px;padding-bottom:85px}.product-gallery{text-align:center}.product-cover{border-radius:8px;box-shadow:8px 14px 30px #67533429;margin-bottom:30px}.product-copy h1{font-size:55px;margin-bottom:20px}.product-subtitle{font-family:var(--serif);font-size:23px}.product-copy>p:not(.eyebrow){color:var(--muted);font-size:17px}.book-tags{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:26px}.book-tags span{font-size:13px;padding:5px 11px;border-radius:20px;background:#e7ecde}.purchase-box{padding:24px;border:1px solid #dce1d5;border-radius:12px;background:#f0f1e6}.purchase-box .availability{font-weight:600;font-size:17px;margin-bottom:8px}.purchase-box p{font-size:15px;color:var(--muted)}.purchase-box button{width:100%}.purchase-box button:disabled{opacity:1;background:#d9dfd0;color:#445542}.product-notes{padding-top:30px}.product-notes h2{font-family:var(--sans);font-size:18px;font-weight:600;letter-spacing:0}.product-notes ul{padding-left:20px;color:var(--muted);font-size:16px}.product-notes li{padding-bottom:8px}.product-samples{border-top:1px solid var(--line);padding:65px 0 90px}.sample-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.sample-tile{border:0;padding:0;background:none;text-align:left;color:var(--ink)}.sample-tile img{border-radius:6px;transition:transform .2s}.sample-tile:hover img{transform:translateY(-4px)}.sample-tile span{display:block;margin-top:16px;font-family:var(--serif);font-size:21px}.collection-section{padding-bottom:80px}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:40px}.catalogue-book{text-decoration:none}.catalogue-book img{width:100%;aspect-ratio:1;object-fit:contain}.catalogue-book h3{font-family:var(--serif);font-size:25px;margin:15px 0 10px}.catalogue-book p{margin-bottom:8px}.catalogue-book span{font-size:14px;text-decoration:underline}dialog{border:0;color:var(--ink);background:var(--paper);border-radius:15px;box-shadow:0 25px 100px #12272450;padding:28px;max-height:92dvh;overscroll-behavior:contain}dialog::backdrop{background:#172e32ba;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.dialog-top .eyebrow{margin-bottom:4px}.dialog-top h2{font-size:29px;margin:0}.close-button{border:1px solid #cdd4c8;border-radius:50%;width:44px;height:44px;flex-shrink:0;background:transparent;color:var(--ink);font-size:30px;line-height:1}.close-button:hover{background:#e6e9df}.reader-dialog{width:min(1150px,95vw)}.reader-stage{background:#fff8e8;border-radius:8px;overflow:hidden}.reader-stage img{width:100%;aspect-ratio:2/1;object-fit:contain}.reader-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.reader-controls p{margin:0;font-size:14px}.reader-controls .button{min-width:105px}.reader-verse{font-family:var(--serif);font-size:22px;max-width:760px;margin:0 auto 12px;text-align:center;line-height:1.45}.reader-note{text-align:center;font-size:13px;color:var(--muted);margin:0}.guide-dialog{width:min(760px,94vw);padding:35px}.guide-intro{font-size:17px}.guide-dialog article{padding-top:22px;border-top:1px solid var(--line);margin-top:24px}.guide-dialog article>span{font-size:12px;letter-spacing:.05em;font-weight:700}.guide-dialog h3{font-family:var(--serif);font-size:25px;line-height:1.2;margin:9px 0 15px}.guide-dialog p{font-size:16px}.guide-dialog .question{background:#e9eddf;padding:14px 18px;border-radius:8px}.cart-dialog{width:480px;max-width:95vw;margin-right:24px;min-height:420px}.empty-cart{text-align:center;padding:35px 8px}.empty-cart>svg{width:44px;height:44px;margin-bottom:22px;color:#779270}.empty-cart h3{font-family:var(--serif);font-size:27px}.empty-cart p{color:var(--muted);font-size:16px}.cart-error{color:#9a3025;font-size:15px}.cart-line{display:grid;grid-template-columns:72px 1fr;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.cart-line img{border-radius:4px;width:72px}.cart-line h3{font-size:16px;margin:0 0 8px}.cart-line p{font-size:14px;margin:4px 0}.cart-line button{border:0;background:none;font-size:14px;color:var(--green);text-decoration:underline;padding:6px 0}.quantity-control{display:flex;align-items:center;gap:14px}.quantity-control button{font-size:20px;width:32px;height:32px;border:1px solid var(--line);text-decoration:none;border-radius:50%;padding:0}.cart-total{display:flex;justify-content:space-between;font-weight:600;margin:24px 0 8px}.cart-checkout{width:100%;margin-top:12px}.cart-shipping-note{font-size:14px;color:var(--muted)}.price{font-size:25px;font-weight:600}.variant-select{width:100%;padding:12px;border:1px solid var(--line);background:var(--paper);border-radius:6px;margin:8px 0 18px}.standard-page{min-height:50vh;padding-block:50px 90px;max-width:820px}.cart-page{max-width:760px;min-height:50vh;padding-block:50px 90px}.cart-page .empty-cart{padding-bottom:65px}.rte img{max-width:100%}.rte h2{font-size:30px}.error-page{text-align:center;padding:100px 24px 130px}
@media(min-width:1500px){.shelf-scene{margin-top:-70px}.hero-book{width:23%;left:26%}.shelf-card{bottom:30%}}
@media(max-width:1100px){.wrap{width:calc(100% - 64px)}.shelf-card{bottom:29%;max-width:30%;left:55%}.shelf-card h2{font-size:42px;margin:10px 0}.shelf-card p{margin-bottom:14px}.shelf-card .small-label{font-size:10px}.shelf-card .button{padding:12px 18px;font-size:14px}.hero-book{width:29%;left:20%;bottom:28%}.shelf-caption{bottom:11%}.story-section{gap:55px}.grown-ups-grid{gap:70px}.about-section{gap:65px}.product-grid{gap:45px}}
@media(max-width:760px){.wrap{width:calc(100% - 40px)}.announcement{font-size:12px;padding:7px 10px}.site-header{height:86px;flex-wrap:wrap;gap:10px;position:relative}.wordmark{font-size:36px}.site-header nav{position:static;order:3;justify-content:center;width:100%;gap:24px;font-size:13px;padding:5px 0 14px}.basket-label{display:none}.basket-button{gap:6px}.shelf-heading{padding-top:45px}.shelf-heading h1{font-size:48px}.shelf-heading .eyebrow{font-size:10px;letter-spacing:.1em}.shelf-heading p:last-child{font-size:15px}.shelf-scene{margin:18px 0 0;display:grid;grid-template-columns:1fr;padding-bottom:20px;overflow:hidden}.shelf-background{width:150%;max-width:none;aspect-ratio:2/1;margin-left:-25%}.hero-book{width:50%;left:25%;bottom:auto;top:6%;transform:rotate(-4deg)}.shelf-card{position:static;max-width:none;text-align:center;padding:0 24px 10px;margin-top:-4px}.shelf-card .small-label{font-size:11px}.shelf-card h2{font-size:40px;line-height:1.12;margin:12px 0}.shelf-card h2 br{display:none}.shelf-card h2 i{font-size:.75em;margin-left:5px}.shelf-card p{font-size:16px;margin:10px 0 18px}.shelf-card .text-link{margin:15px auto}.shelf-card .button{font-size:15px;padding:14px 24px}.shelf-caption{display:none}.story-section{grid-template-columns:1fr;gap:65px;padding:55px 0 70px}.story-art{width:calc(100% - 12px);margin:0 6px}.paper-note{font-size:21px;padding:17px 24px;bottom:-37px;right:12px}.story-copy h2{font-size:40px}.story-copy h2 br{display:none}.grown-ups-section{padding:55px 0}.grown-ups-grid{grid-template-columns:1fr;gap:30px}.grown-ups-grid h2{font-size:40px}.discovery-list article{padding:21px 0}.about-section{grid-template-columns:1fr;gap:50px;padding:65px 0}.notebook-art{width:85%;margin-inline:auto;padding:10px}.about-section h2{font-size:40px}.faq-section{grid-template-columns:1fr;gap:15px;padding:50px 0 65px}.faq-section h2{font-size:36px}.faq-section h2 br{display:none}.faq-list summary{font-size:16px;padding-top:18px;padding-bottom:18px}.footer-top{flex-direction:column;text-align:center;gap:24px;padding-bottom:30px}.footer-bottom{font-size:12px;flex-direction:column;text-align:center;gap:10px}.site-footer{padding-top:40px}.product-main{padding-top:55px}.back-link{margin-bottom:30px}.product-grid{grid-template-columns:1fr;gap:45px;padding-bottom:50px}.product-cover{max-width:440px;margin-inline:auto}.product-copy h1{font-size:43px}.product-subtitle{font-size:22px}.product-copy .eyebrow{font-size:11px}.product-samples{padding:45px 0 60px}.product-samples h2{font-size:35px}.sample-grid{grid-template-columns:1fr;gap:30px}.sample-tile span{font-size:22px;margin-top:12px}.reader-dialog{padding:18px;width:96vw;max-height:94dvh}.dialog-top{margin-bottom:18px}.dialog-top h2{font-size:24px}.dialog-top .eyebrow{font-size:10px}.close-button{width:40px;height:40px}.reader-controls{gap:10px}.reader-controls .button{font-size:14px;min-width:90px;padding:11px 16px}.reader-verse{font-size:21px;text-align:left}.reader-note{font-size:12px;text-align:left}.guide-dialog{padding:22px}.guide-dialog .dialog-top h2{font-size:28px}.cart-dialog{margin:auto;min-height:400px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.catalogue-book h3{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.shelf-background{mask-image:linear-gradient(to bottom,transparent,black 16%)}
.policy-links{display:flex;flex-wrap:wrap;gap:14px 24px;padding-top:20px;font-size:13px}
.additional-product-image{margin-top:24px;border-radius:8px}
.contact-form{display:grid;gap:12px;margin-top:30px}
.contact-form input,.contact-form textarea,.standard-page input{border:1px solid #cbd3c4;background:#fffdf6;border-radius:6px;padding:12px;color:var(--ink);max-width:100%;min-width:0}
.contact-form button{width:fit-content;margin-top:12px}
.collection-page{max-width:1200px}.catalogue-book h2{font-size:25px;margin:18px 0 10px}
.coming-label{text-decoration:none;cursor:default}
@media(max-width:760px){
  .site-header{height:auto;padding-top:15px;padding-bottom:4px;row-gap:5px}
  .site-header nav{font-size:14px;gap:18px;padding-bottom:0}
  .site-header nav a{min-height:44px;display:flex;align-items:center}
  .basket-button{min-height:44px;min-width:44px}
  .shelf-heading{padding-top:23px}
  .shelf-heading .eyebrow{display:none}
  .shelf-heading h1{font-size:clamp(35px,10.25vw,44px);margin-bottom:12px}
  .shelf-heading p:last-child{font-size:15px;margin-bottom:0}
  .shelf-scene{margin-top:85px;overflow:visible}
  .shelf-background{width:100%;margin-left:0}
  .hero-book{top:-19vw;width:55%;left:22.5%}

  .shelf-card{margin-top:5px}
  .shelf-card h2{font-size:34px}
  .shelf-card p{margin:10px 0 18px}
  .shelf-card .text-link{min-height:44px;display:flex;justify-content:center;align-items:center;margin-top:4px}
  .shelf-card .small-label{font-size:12px}
}

/* The shelf is the home page. Phone and desktop use separate compositions. */
.site-header{height:100px}
.wordmark{font-size:40px}
.shelf-main{min-height:calc(100svh - 157px)}
.bookshelf{min-height:calc(100svh - 157px);display:flex;align-items:center;overflow:hidden}
.shelf-scene{margin:0 auto;padding:0;max-width:1600px;transform:translateY(-4%)}
.shelf-background{width:100%;max-width:100%;margin:0;mask-image:linear-gradient(to bottom,transparent,black 25%)}
.hero-book{width:27%;left:36.5%;top:auto;bottom:28%;transform:rotate(-3deg)}
.hero-book:hover{transform:rotate(0) translateY(-12px)}

.site-footer{background:transparent;color:var(--muted);padding:14px 0 18px}
.footer-bottom{border:0;padding:0;color:var(--muted);font-size:12px;align-items:center}
.footer-bottom a{text-decoration:none}
.product-main{padding-top:20px;min-height:calc(100svh - 157px)}
.product-grid{align-items:center;padding-bottom:50px}
.product-gallery{max-width:480px}
.product-copy h1{font-size:48px}
.parent-link{margin-top:24px;min-height:44px;display:inline-flex;align-items:center}
.policy-links{color:var(--muted)}
.collection-section{border-top:14px solid #c89455;padding-top:45px;box-shadow:0 -9px 15px -13px #664027}
@media(max-width:760px){
  .site-header{height:82px;padding:0;flex-wrap:nowrap}
  .wordmark{font-size:clamp(30px,9vw,35px);white-space:nowrap}
  .basket-button{flex-shrink:0}
  .basket-label{display:none}
  .bookshelf,.shelf-main{min-height:calc(100svh - 136px)}
  .shelf-scene{margin:0;width:100%;padding:0;transform:translateY(26%);overflow:visible}
  .shelf-background{width:100%;max-width:100%;aspect-ratio:2/1;mask-image:linear-gradient(to bottom,transparent,black 25%)}
  .hero-book{width:68%;left:16%;top:auto;bottom:28%;transform:rotate(-3deg)}

  .footer-bottom{flex-direction:row;gap:15px;font-size:12px}
  .site-footer{padding:14px 0 18px}
  .product-main{padding-top:18px;min-height:calc(100svh - 136px)}
  .product-grid{gap:32px}
  .product-gallery{max-width:350px;margin-inline:auto}
  .product-copy h1{font-size:40px}
  .product-cover{margin-bottom:20px}
  .book-grid{grid-template-columns:1fr;max-width:270px;margin-inline:auto}
}
@media(max-width:760px){
  .hero-book{width:min(68vw,62svh);left:50%;transform:translateX(-50%) rotate(-3deg)}
  .hero-book:hover{transform:translateX(-50%) rotate(0) translateY(-8px)}
}
@media(max-width:760px) and (max-height:500px){.shelf-scene{transform:none}}
.product-gallery{width:100%;min-width:0}
.product-cover{width:100%;max-width:100%}

/* One bookcase, from the shelf to the reading nook. */
body{background:#f4eee3}
.site-header{height:94px}
.site-footer{padding:18px 0 24px}
.shelf-main,.bookshelf{min-height:0}
.bookshelf{display:block;padding:0;overflow:visible}
.shelf-scene{width:100%;min-width:0;max-width:none;margin:0;transform:none;isolation:isolate;overflow:visible}
/* Anchor the cover to the shelf surface; lift it only for a pointer hover. */
.shelf-scene::after{content:'';position:absolute;left:50%;top:54%;width:26%;height:.9%;border-radius:50%;background:radial-gradient(ellipse,#40291380 0%,#40291330 48%,transparent 74%);filter:blur(2px);transform:translate(-50%,-50%);pointer-events:none;z-index:1;transition:opacity .25s,filter .25s}
.shelf-scene:has(.book-is-lifted)::after{opacity:0}
.bookcase-picture,.bookcase-art{display:block;width:100%}
.bookcase-art{height:auto;border-radius:12px}
.bookcase-picture .bookcase-art{aspect-ratio:3/2;object-fit:contain;border-radius:0}
.hero-book{width:24%;left:38%;bottom:46.4%;top:auto;transform:none;filter:drop-shadow(7px 3px 5px #39201340)}
.hero-book:hover{transform:none}
@media(hover:hover) and (pointer:fine){
  .shelf-scene .hero-book:hover{transform:translateY(-10px);filter:drop-shadow(7px 13px 9px #39201330)}
  .shelf-scene:has(.hero-book:hover)::after{opacity:.55;filter:blur(4px)}

}
.hero-book img{border-radius:2px 5px 5px 2px;box-shadow:2px 1px 0 #efe7d5,4px 2px 0 #bcac90,5px 3px 0 #f2ebdc}

.product-main{max-width:1160px;padding-top:10px}
.back-link{margin-bottom:18px;min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.product-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center;padding-bottom:24px}
.product-gallery{width:100%;max-width:470px;margin:auto}
.book-display{position:relative}
.book-display .product-cover{position:absolute;width:64%;max-width:none;height:auto;aspect-ratio:1;object-fit:contain;left:18%;bottom:38%;margin:0;border-radius:3px 8px 8px 3px;transform:rotate(-2deg);box-shadow:7px 5px 10px #37201555}
.shelf-peek{position:absolute;left:50%;bottom:calc(38% - 34px);transform:translateX(-50%);min-height:44px;background:#fff8e7;color:#30494a;border:1px solid #b3915f;border-radius:4px;padding:9px 23px;white-space:nowrap;box-shadow:1px 3px 4px #51361535}
.product-copy{background:#fffaf0;border:1px solid #dac9ab;padding:38px 34px;box-shadow:4px 5px 0 #e9dcc2,5px 6px 0 #d2bea0,10px 18px 30px #50341b14;border-radius:3px}
.product-copy h1{font-size:clamp(36px,3.8vw,50px)}
.product-copy>p,.product-copy .rte{font-size:17px;line-height:1.6}
.purchase-box{padding:20px 0 0;background:none;border:0;border-top:1px solid #deceb0;border-radius:0}
.purchase-box .availability{font-family:var(--serif);font-size:23px;color:var(--green)}
.purchase-box button:disabled{background:#ebe2ce;color:#52604d;border:1px solid #dbcfb7}
.parent-link{font-size:14px;margin-top:16px;text-underline-offset:4px}
.additional-product-image{margin-top:24px;border:8px solid #fffaf0;box-shadow:2px 5px 15px #50341b22}
.collection-section{margin-top:28px;border:0;padding:48px;background:var(--paper) url('bookcase-desktop.webp') center/cover;box-shadow:none;border-radius:12px}
.book-grid{gap:40px}
dialog{border:14px solid transparent;border-radius:9px;background-image:linear-gradient(#fffaf0,#fffaf0),url('bookcase-desktop.webp');background-origin:padding-box,border-box;background-clip:padding-box,border-box;background-size:auto,cover;box-shadow:0 25px 100px #21190f70;max-height:94dvh}
dialog::backdrop{background:#35281cc9;backdrop-filter:blur(6px)}
.dialog-top{border-bottom:1px solid #dfd0b4;padding-bottom:17px;margin-bottom:24px}
.dialog-top .eyebrow{color:#786345}
.close-button{border-color:#d2c1a1;background:#fffaf0}
.close-button:hover{background:#efe3cc}
.reader-dialog{width:min(1170px,97vw);padding:24px}
.reader-stage{border-radius:3px;overflow:visible;box-shadow:0 4px 0 #e2d4ba,0 5px 0 #b5a58a,0 8px 0 #f5e8d0,0 9px 0 #c9b38e,3px 14px 20px #61492825}
.reader-stage img{border-radius:3px}
.reader-controls{margin:28px 0 18px}
.reader-verse{font-size:20px;line-height:1.5}
.reader-controls .button-light{background:#f0e4cd;border-color:#dfceb0}
.guide-dialog{padding:30px}
.guide-dialog article{border-color:#dfd0b4}
.guide-dialog .question{background:#eee8d6;border-left:3px solid #927341;border-radius:0}
.cart-dialog{margin:auto;width:500px;min-height:0;padding:28px}
.cart-dialog .empty-cart{padding:22px 0 12px}
.empty-cart h3{font-size:27px}
.cart-dialog .empty-cart>svg{margin-bottom:14px}
.cart-page,.standard-page,.error-page{background:#fffaf0;border:14px solid transparent;background-image:linear-gradient(#fffaf0,#fffaf0),url('bookcase-desktop.webp');background-origin:padding-box,border-box;background-clip:padding-box,border-box;background-size:auto,cover;border-radius:8px;padding:40px;margin:22px auto 48px;box-shadow:0 14px 30px #55391d18}
.cart-page{max-width:760px}
.cart-line{border-color:#dfd0b4}
.cart-line img{box-shadow:3px 3px 6px #50341b25}
@media(max-width:760px){
  .site-header{height:82px}
  .bookshelf{padding:0}
  .shelf-main,.bookshelf{min-height:0}
  .shelf-scene{width:100%;min-width:0;max-width:none;transform:none}
  .bookcase-picture .bookcase-art{aspect-ratio:3/4}
  .shelf-scene::after{top:62.5%;width:58%;height:1%;filter:blur(2px)}
  .hero-book{width:54%;left:23%;bottom:38%;transform:none;filter:drop-shadow(5px 2px 4px #39201340)}
  .hero-book:hover{transform:none}

  .site-footer{padding:14px 0 18px}
  .footer-bottom{font-size:12px;gap:10px}
  .product-main{width:100%;padding-top:0}
  .back-link{margin:0 20px 4px}
  .product-grid{display:flex;flex-direction:column;gap:12px;padding:0 12px 30px}
  .product-gallery{max-width:400px}
  .product-copy{width:calc(100% - 18px);max-width:400px;padding:27px 24px;margin-top:-10px;position:relative}
  .product-copy h1{font-size:36px;margin-bottom:16px}
  .product-copy>p,.product-copy .rte{font-size:16px}
  .parent-link{font-size:14px}
  .purchase-box{padding-top:18px}
  .shelf-peek{bottom:calc(38% - 30px);padding:7px 18px;font-size:14px}
  dialog{border-width:8px;max-height:95dvh}
  .reader-dialog{width:98vw;max-width:98vw;padding:14px 10px}
  .reader-dialog .dialog-top{padding:0 4px 14px;margin-bottom:18px}
  .dialog-top h2{font-size:24px}
  .dialog-top .eyebrow{font-size:12px}
  .reader-controls{gap:5px;margin:24px 0 16px}
  .reader-controls .button{min-width:76px;font-size:14px;padding:10px 12px}
  .reader-controls p{font-size:12px;text-align:center;line-height:1.4;max-width:95px}
  .reader-verse{font-size:18px;padding:0 5px;text-align:left}
  .guide-dialog,.cart-dialog{width:95vw;max-width:95vw;padding:20px 17px}
  .guide-dialog .dialog-top h2{font-size:26px}
  .cart-page,.standard-page,.error-page{width:calc(100% - 24px);padding:24px 16px;border-width:8px;margin-top:12px}
  .cart-page h1{font-size:40px}
  .collection-section{padding:36px 28px;background-image:url('bookcase-mobile.webp')}
}
@media(prefers-reduced-motion:reduce){.shelf-scene .hero-book,.shelf-scene::after,.shelf-scene .hero-book:hover{transform:none;filter:drop-shadow(7px 3px 5px #39201340)}.shelf-scene:has(.hero-book:hover)::after{opacity:1;filter:blur(2px)}}
/* Sample a clean area of the same oak for reading-frame borders. */
dialog,.cart-page,.standard-page,.error-page{background-size:auto,300% 300%;background-position:center,50% 15%}
@media(min-width:761px){.reader-verse{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}

/* The existing cover becomes the open spread, hinged along its spine. */
.book-is-lifted{visibility:hidden}
.reader-dialog.is-opening{background:none;border-color:transparent;box-shadow:none}
.reader-dialog.is-opening .reader-stage{visibility:hidden}
.reader-dialog.is-opening .reader-controls,.reader-dialog.is-opening .reader-verse{opacity:0;pointer-events:none}
.reader-dialog:not(.is-opening) .reader-controls,.reader-dialog:not(.is-opening) .reader-verse{animation:book-controls-in 220ms ease both}
.reader-dialog.is-opening::backdrop{animation:book-backdrop-in 1150ms ease both}
.book-opening{position:fixed;pointer-events:none;perspective:2200px;transform-origin:75% 50%;border-radius:2px;z-index:2}
.book-opening-right,.book-opening-hinge{position:absolute;left:50%;top:0;width:50%;height:100%}
.book-opening-right{overflow:hidden;border-radius:0 2px 2px 0;background:#fff8e8}
.book-opening-hinge{transform-origin:0 50%;transform-style:preserve-3d}
.book-opening-front,.book-opening-back{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:3px 6px 6px 3px;box-shadow:0 2px 3px #34231135}
.book-opening-front{object-fit:fill}
.book-opening-back{overflow:hidden;background:#fff8e8;transform:rotateY(180deg);border-radius:2px 0 0 2px;box-shadow:none}
.book-opening-right img,.book-opening-back img{width:200%;max-width:none;height:100%;object-fit:fill}
.book-opening-right img{transform:translateX(-50%)}
@keyframes book-backdrop-in{from{background:#faf7ef00}to{background:#faf7ef}}
@keyframes book-controls-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.book-opening{display:none}}

/* A quiet reading surface: the book, its controls and the science. */
.reader-dialog{--reader-crease:linear-gradient(90deg,transparent 48.5%,#493a2418 49.8%,#493a2430 50%,#ffffff1a 50.3%,transparent 51.5%);--reader-book-shadow:0 2px 0 #ded3bf,0 4px 0 #f7efde,0 9px 24px #493b2020;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:60px 48px 72px;border:0;border-radius:0;background:var(--paper);box-shadow:none;color:var(--ink);overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b9c2b8 transparent}
.reader-dialog::backdrop{background:var(--paper);backdrop-filter:none}
.reader-sheet{width:min(1120px,100%);margin-inline:auto}
.reader-dialog .reader-close{position:fixed;top:12px;right:18px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;padding:0;background:var(--paper);color:var(--ink);font-size:29px;font-weight:400;line-height:1}
.reader-dialog .reader-close:hover{background:#eaece2}
.reader-dialog .reader-close:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.reader-dialog:not(.is-keyboard-navigation) .reader-close:focus{outline:none}
.reader-stage{position:relative;border-radius:2px;box-shadow:var(--reader-book-shadow)}
.reader-stage>img{border-radius:2px}
.reader-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background:var(--reader-crease)}
.reader-dialog{overflow-anchor:none;overscroll-behavior-y:contain}
.reader-stage{aspect-ratio:2/1;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.reader-stage img{-webkit-user-drag:none}
.reader-dialog .reader-controls{justify-content:center;margin:15px 0 30px;gap:20px}
.reader-arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink)}
.reader-arrow:hover:not(:disabled){background:#eaece2}
.reader-arrow:disabled{opacity:.28}
.reader-arrow svg{width:21px;height:21px}
.reader-dialog .reader-controls p{color:var(--muted);font-size:13px;max-width:none;margin:0;min-width:90px;text-align:center}
.reader-dialog .reader-verse{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0;margin:0}
.book-science{display:block;width:min(720px,100%);margin:0 auto;padding:0 0 24px;text-align:left}
.book-science :is(h2,h3){font-family:var(--serif);font-size:25px;font-weight:500;line-height:1.2;letter-spacing:-.02em;margin:0 0 16px}
.book-science p{font-size:16px;line-height:1.6;margin-bottom:12px}
.reader-dialog.is-opening .reader-context{opacity:0;pointer-events:none}
.reader-dialog:not(.is-opening) .reader-context{animation:book-controls-in 220ms ease both}
.reader-dialog :is(button,a,summary):focus-visible{outline-color:#287db9}
.guide-dialog,.cart-dialog{border:0;background:#fffaf0;border-radius:8px;box-shadow:0 24px 80px #0a171747;padding:32px}
.guide-dialog .dialog-top{gap:24px;align-items:flex-start;border-color:#243f3820}
.guide-dialog .dialog-top h2{font-size:32px;max-width:480px;line-height:1.1}
.guide-dialog .eyebrow{font-size:12px;color:#607267}
.guide-dialog .guide-intro{font-size:16px;color:#496258;line-height:1.55}
.science-guide details{border-top:1px solid #253e3420}
.science-guide summary{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px;cursor:pointer;position:relative;padding:15px 27px 15px 0;list-style:none;min-height:56px}
.science-guide summary::-webkit-details-marker{display:none}
.science-guide summary::after{content:'+';position:absolute;right:1px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:400;color:#63766d}
.science-guide details[open] summary::after{content:'−'}
.guide-pages{font-size:12px;color:#63766d;white-space:nowrap}
.guide-concept{font-size:16px;font-weight:500;color:var(--ink);line-height:1.4}
.science-explanation>p{font-size:16px;line-height:1.6;margin-bottom:15px}
.science-explanation strong{font-weight:500}
.science-guide .question{padding:0 0 10px;border:0;background:none;color:var(--muted);font-size:14px;line-height:1.5}
.guide-closing{font-size:14px!important;color:#687d71;margin:16px 0 0}
.product-main{padding-top:24px}
.product-copy{padding:18px 0 18px 28px;background:none;border:0;box-shadow:none}
.product-copy .eyebrow{font-size:12px;color:#63766d;margin-bottom:12px}
.product-copy .parent-link{margin:0 0 20px;font-size:15px}
.book-display{padding:12px 15px;text-align:center}
.book-display .product-cover{position:static;width:100%;max-width:430px;margin:0 auto 24px;transform:rotate(-2deg);box-shadow:5px 9px 20px #37201530}
.shelf-peek{position:static;transform:none;min-height:44px;border-radius:6px;background:#e6ebdf;border:0;box-shadow:none;font-size:15px}
.shelf-peek:hover{transform:translateY(-2px)}
@media(max-width:760px){
  .reader-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;padding:54px 12px 40px}
  .reader-dialog .reader-close{top:4px;right:6px}
  .reader-dialog .reader-controls{gap:17px;margin:12px 0 24px}
  .book-science{padding:0 7px 20px}
  .book-science :is(h2,h3){font-size:24px;margin-bottom:14px}
  .product-main>.book-science{width:calc(100% - 48px);margin:0 24px}
  .guide-dialog,.cart-dialog{width:calc(100vw - 24px);max-width:none;padding:23px 20px}
  .guide-dialog .dialog-top h2{font-size:29px}
  .product-copy{padding:20px 8px;margin:0;width:100%;max-width:none}
  .product-grid{gap:20px;padding:0 22px 32px}
  .book-display{padding:10px 18px 0}
}

/* Keep the current story readable when a full spread is small on a phone. */
@media(max-width:760px){.reader-dialog .reader-verse{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:pre-line;margin:0 8px 30px;padding:0;font-size:18px;line-height:1.5;text-align:center}}

/* The books share a measured shelf surface. The scene fits the viewport;
   the row stays inside the oak uprights at every size and orientation. */
.bookshelf{min-height:calc(100svh - 156px);display:grid;place-items:center}
.shelf-scene{display:block;width:min(100%,1440px,calc((100svh - 156px) * 1.5));margin:0 auto;padding:0;transform:none}
.shelf-scene::after{content:none}
.shelf-scene .bookcase-art{aspect-ratio:3/2;border-radius:0}
.shelf-books{position:absolute;left:16%;right:16%;bottom:46%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:3%;align-items:end;z-index:2}
.shelf-books .hero-book,.shelf-books .hero-book:hover{position:relative;inset:auto;width:100%;aspect-ratio:1;transform:none;filter:none;perspective:1000px;isolation:isolate}
.shelf-books .hero-book::before{content:'';position:absolute;left:-4%;right:-6%;bottom:-1.5%;height:4%;border-radius:50%;background:#39220c65;filter:blur(2px);z-index:-1;transition:opacity .3s,filter .3s}
.shelf-books .hero-book img{border-radius:1px 4px 4px 1px;box-shadow:1px 0 0 #f8efd9,2px 1px 0 #aa987a,3px 2px 0 #eee4d1,5px 3px 9px #39201330;transform-origin:15% 100%;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.shelf-books .hero-book::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(90deg,#15251d16,transparent 2%,#ffffff1f 2.6%,transparent 4%)}
@media(hover:hover) and (pointer:fine){
  .shelf-books .hero-book:hover img,.shelf-books .hero-book:focus-visible img{transform:translateY(-7px) rotateY(-5deg);box-shadow:1px 0 0 #f8efd9,2px 1px 0 #aa987a,3px 2px 0 #eee4d1,7px 10px 15px #39201326}
  .shelf-books .hero-book:hover::before{opacity:.55;filter:blur(4px)}
  .shelf-books .hero-book:hover::after{opacity:0}
}
@media(max-width:760px) and (orientation:portrait){
  .bookshelf{min-height:calc(100svh - 136px)}
  .shelf-scene{width:min(100%,680px,calc((100svh - 136px) * .75))}
  .shelf-scene .bookcase-art{aspect-ratio:3/4}
  .shelf-books{left:15%;right:15%;bottom:37.4%;column-gap:3%}
}

/* A physical leaf joins the two spreads. The original, accessible image stays
   still underneath until the turn settles; the animated copies are decorative. */
.reader-sheet{width:min(1120px,100%,calc((100svh - 132px) * 2))}
.reader-stage{cursor:grab;isolation:isolate}
.reader-stage.is-dragging{cursor:grabbing}
.reader-stage::after{z-index:1}
.page-turn{position:absolute;inset:0;z-index:2;pointer-events:none;perspective:1800px;perspective-origin:50% 50%;--front-light:90deg;--back-light:270deg}
.page-turn[hidden]{display:none}
.page-half{overflow:hidden;background:#fff8e8}
/* Each animated half carries its part of the same crease as the resting book.
   It is already in place when the copies hand back to the accessible image. */
.page-half::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background-image:var(--reader-crease);background-size:200% 100%;background-repeat:no-repeat}
.page-half-left::before{background-position:left center}
.page-half-right::before{background-position:right center}
.page-turn .page-half img{display:block;width:200%;max-width:none;height:100%;aspect-ratio:auto;object-fit:fill;border-radius:0}
.page-half-right img{transform:translateX(-50%)}
.page-underneath{position:absolute;top:0;width:50%;height:100%}
.turn-forward .page-underneath{left:50%;border-radius:0 2px 2px 0}
.turn-backward .page-underneath{left:0;border-radius:2px 0 0 2px}
.page-leaf{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d;will-change:transform;z-index:2}
.turn-forward .page-leaf{left:50%;transform-origin:0 50%}
.turn-backward .page-leaf{left:0;transform-origin:100% 50%}
.turn-backward{--front-light:270deg;--back-light:90deg}
.page-face{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.page-front{transform:rotateY(0deg)}
.page-back{transform:rotateY(180deg)}
.page-front::after,.page-back::after{content:'';position:absolute;inset:0;pointer-events:none}
.page-front::after{background:linear-gradient(var(--front-light),#30200c 0%,#796e59 35%,#fff6dd 100%);opacity:var(--front-shade,0)}
.page-back::after{background:linear-gradient(var(--back-light),#30200c 0%,#7b715e 40%,#fff6dd 100%);opacity:var(--back-shade,0)}
.page-cast-shadow{position:absolute;inset:0;background:linear-gradient(90deg,transparent,#37220f 48%,#291706 50%,#37220f 52%,transparent);opacity:var(--page-shadow,0);z-index:1}
@media(max-width:760px){.page-turn{perspective:900px}}
@media(prefers-reduced-motion:reduce){
  .shelf-books .hero-book img,.shelf-books .hero-book:hover img,.shelf-books .hero-book:focus-visible img{transform:none}
  .page-turn{display:none}
}

/* Free reading is the front door; physical editions have their own quiet place. */
.site-header nav{align-items:center;gap:24px;font-size:14px}
.bookshelf{position:relative;padding-bottom:36px}
.shelf-invitation{position:absolute;bottom:7px;left:20px;right:20px;margin:0;text-align:center;font-size:15px;color:var(--muted)}
.library-section{padding:72px 0 64px}
.library-heading{max-width:620px;margin-bottom:38px}
.library-heading h2,.print-section h2{font-size:clamp(32px,4vw,46px);margin-bottom:18px}
.library-heading p,.library-list p,.print-section p{font-size:16px;color:var(--muted)}
.library-list{display:grid;grid-template-columns:1fr 1fr;gap:64px}
.library-list article{border-top:1px solid var(--line);padding-top:26px}
.library-list h3{font-family:var(--serif);font-size:27px;font-weight:500;margin:0 0 14px}
.library-list h3 a{text-decoration:none}
.book-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;font-size:15px}
.print-section{padding:48px 0 64px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.print-section .eyebrow{font-size:11px;margin-bottom:14px}
.print-section h2{margin-bottom:0}
.product-copy .print-promise{font-size:27px;margin-bottom:14px}
.product-copy .availability-detail{font-size:14px;color:var(--muted)}
.footer-bottom{justify-content:flex-start;gap:24px}
.footer-bottom>span{margin-right:auto}
.story-main{padding-bottom:32px}
.story-intro{padding-top:24px;max-width:1060px}
.story-intro .back-link{margin:0 0 34px}
.story-title-row{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:44px}
.story-cover{width:190px;box-shadow:3px 5px 12px #37201525;transform:rotate(-2deg)}
.story-title-row h1{font-size:clamp(38px,5vw,62px);margin-bottom:18px}
.story-title-row p:not(.eyebrow){font-size:16px;max-width:640px;color:var(--muted)}
.story-title-row .eyebrow{font-size:11px;margin-bottom:14px}
.story-scroll-link{margin-left:20px}
.story-contents{margin:36px 0 0;border-block:1px solid var(--line);font-size:14px}
.story-contents summary{padding:16px 0;cursor:pointer}
.story-contents nav{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding:4px 0 20px}
.story-contents nav a{text-decoration:none;line-height:1.5}
.story-contents nav a:hover{text-decoration:underline}
.story-contents nav span{display:inline-block;min-width:48px;font-size:12px;color:var(--muted)}
.story-spread{width:min(1120px,calc(100% - 48px));margin:64px auto 88px;scroll-margin-top:28px}
.spread-caption{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 16px}
.spread-caption h2{font-family:var(--sans);font-size:17px;line-height:1.5;letter-spacing:0;font-weight:500;margin:0}
.spread-caption>span{font-size:12px;color:var(--muted);white-space:nowrap}
.story-spread-image{width:100%;height:auto;aspect-ratio:2/1;box-shadow:0 3px 0 #e8dfcf,0 8px 22px #493b201a;border-radius:2px}
.spread-reading{width:min(680px,100%);margin:30px auto 0}
.story-text{font-family:var(--serif);font-size:24px;line-height:1.65;text-align:center;white-space:pre-line;margin:0 0 30px}
.story-endmatter .story-text{font-family:var(--sans);font-size:16px;text-align:left;line-height:1.75}
.spread-note{border-block:1px solid var(--line);padding:0 0 4px}
.spread-note summary{cursor:pointer;font-size:15px;padding:15px 0;color:var(--muted)}
.spread-note .science-explanation{padding:4px 0 0}
.spread-note .question{font-size:14px;color:var(--muted)}
.page-turn-link{display:block;width:fit-content;margin:20px auto 0;font-size:13px;color:var(--muted)}
.story-finish{max-width:720px;text-align:center;border-top:1px solid var(--line);padding:44px 0 24px}
.story-finish h2{font-size:34px}
.story-finish p{font-size:16px;color:var(--muted)}
.story-finish .book-links{justify-content:center}
.reader-book-links{width:min(720px,100%);margin:8px auto 0;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--muted)}
.reader-dialog .reader-verse.is-endmatter{position:static;width:min(720px,100%);height:auto;overflow:visible;clip:auto;white-space:pre-line;margin:0 auto 30px;font-size:16px;line-height:1.7;text-align:left}
.reader-dialog.is-opening .reader-book-links{visibility:hidden}
@media(max-width:760px){
  .site-header{gap:14px}
  .site-header nav{gap:14px;font-size:12px}
  .site-header .wordmark{font-size:29px}
  .shelf-invitation{font-size:13px;bottom:8px}
  .library-section{padding:48px 0 40px}
  .library-heading{margin-bottom:28px}
  .library-list{grid-template-columns:1fr;gap:32px}
  .library-list h3{font-size:25px}
  .print-section{grid-template-columns:1fr;gap:24px;padding:36px 0 40px}
  .story-intro{padding-top:8px}
  .story-intro .back-link{margin-bottom:26px}
  .story-title-row{grid-template-columns:1fr;gap:25px}
  .story-cover{width:130px;margin:0 auto}
  .story-title-row h1{font-size:39px}
  .story-title-row .eyebrow{font-size:10px;letter-spacing:.1em}
  .story-scroll-link{margin-left:12px;font-size:13px}
  .story-contents{margin-top:28px}
  .story-contents nav{grid-template-columns:1fr}
  .story-spread{width:calc(100% - 24px);margin:40px auto 56px}
  .spread-caption{padding:0 8px;gap:8px}
  .spread-caption h2{font-size:15px}
  .spread-caption>span{font-size:11px}
  .spread-reading{padding:0 10px;margin-top:24px}
  .story-text{font-size:21px;line-height:1.6}
  .reader-book-links{margin-inline:7px;width:calc(100% - 14px);font-size:12px;flex-direction:column;gap:14px}
  .reader-dialog .reader-verse.is-endmatter{width:auto;margin:0 8px 28px}
  .footer-bottom{gap:12px;font-size:11px}
  .footer-bottom>span{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep the home page centred on the books themselves. */
.shelf-anchor{position:absolute;top:0;left:0}
.shelf-print-links{max-width:720px;padding:10px 0 18px;text-align:center;color:var(--muted);font-size:14px}
.shelf-print-links summary{cursor:pointer;display:list-item;width:fit-content;margin:auto;padding:10px 4px}
.shelf-print-links nav{display:flex;justify-content:center;gap:16px 28px;flex-wrap:wrap;padding:8px 0}

/* Optional immersive reading uses the same pages and controls. */
.reader-fullscreen{position:fixed;right:76px;top:12px;z-index:3;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:24px;background:var(--paper);color:var(--ink);font-size:13px;line-height:1.2}
.reader-fullscreen svg{width:19px;height:19px}
.reader-fullscreen:hover{background:#eaece2}
.reader-surface:fullscreen{background:var(--paper);color:var(--ink)}
.reader-dialog.is-reading-fullscreen{padding:0;overflow:hidden;scrollbar-gutter:auto}
.reader-dialog.is-reading-fullscreen .reader-surface{position:fixed;inset:0;width:100dvw;height:100dvh;display:grid;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--paper);overflow:hidden}
.reader-dialog.is-reading-fullscreen .reader-sheet{position:relative;width:100%;height:100%;min-width:0;min-height:0;max-width:none;margin:0;display:grid;place-items:center;container-type:size}
/* The spread gets the entire safe viewport. Overlay controls reserve no space. */
.reader-dialog.is-reading-fullscreen .reader-stage{width:min(100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 2));aspect-ratio:2/1;box-shadow:none;border-radius:0}
@supports(width:1cqw){.reader-dialog.is-reading-fullscreen .reader-stage{width:min(100cqw,200cqh)}}
.reader-dialog.is-reading-fullscreen .reader-controls{position:absolute;z-index:3;bottom:8px;left:50%;transform:translateX(-50%);margin:0;padding:0 8px;gap:8px;border-radius:28px;background:#f8f4ebeb;animation:none}
.reader-dialog.is-reading-fullscreen :is(.reader-controls,.reader-close,.reader-fullscreen){transition:opacity 160ms ease}
.reader-dialog.is-reading-fullscreen.is-reader-ui-hidden :is(.reader-controls,.reader-close,.reader-fullscreen){opacity:0;pointer-events:none}
.reader-dialog.is-reading-fullscreen :is(#reader-guide,.reader-book-links){display:none}
.reader-dialog.is-reading-fullscreen :is(.reader-verse,#reader-fullscreen-label){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0;margin:0}
.reader-dialog.is-reading-fullscreen .reader-close{top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
.reader-dialog.is-reading-fullscreen .reader-fullscreen{top:max(8px,env(safe-area-inset-top));right:max(64px,calc(env(safe-area-inset-right) + 52px));width:44px;height:44px;justify-content:center;padding:0;background:#f8f4ebeb}
@media(max-width:760px){
  .reader-fullscreen{top:4px;right:58px;font-size:12px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.reader-dialog.is-reading-fullscreen :is(.reader-controls,.reader-close,.reader-fullscreen){transition:none}}

[data-science-evidence] ol{padding-left:24px}
[data-science-evidence] li{padding-left:4px;margin-bottom:24px}
[data-science-evidence] a{overflow-wrap:anywhere}

/* Covers turn out from the same oak shelf; spines leave room to browse. */
.shelf-books.is-growing{
  --book-size:clamp(150px,13.5vw,196px);
  /* Physical thickness is independent of the 44px browsing target. */
  --book-thickness:20px;--spine-inset:12px;--book-hinge:calc(var(--spine-inset) + var(--book-thickness));
  --shelf-turn-time:480ms;--shelf-turn-ease:cubic-bezier(.35,.05,.2,1);
  display:flex;align-items:flex-end;justify-content:flex-start;justify-content:safe center;gap:7px;height:calc(var(--book-size) + 18px);
  padding:12px 5px 6px;margin-bottom:-6px;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;scroll-padding-inline:5px;scrollbar-width:none;
}
.shelf-books.is-growing::-webkit-scrollbar{display:none}
.shelf-books.is-growing.shelf-ready{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.shelf-books.is-growing .hero-book,.shelf-books.is-growing .hero-book:hover{
  flex:0 0 44px;width:44px;height:var(--book-size);aspect-ratio:auto;
  perspective:1000px;perspective-origin:left center;
  transition:flex-basis var(--shelf-turn-time) var(--shelf-turn-ease);
}
.shelf-books.is-growing .hero-book.is-facing,
.shelf-books.is-growing:not(.shelf-ready) .hero-book:is(:hover,:focus){flex-basis:var(--book-size);z-index:3}
.shelf-books.is-growing .hero-book::after{display:none}
.shelf-books.is-growing .hero-book::before{
  left:var(--spine-inset);right:var(--spine-inset);bottom:-2px;height:3px;filter:blur(1.5px);background:#39220c40;
  transition:left var(--shelf-turn-time) var(--shelf-turn-ease),right var(--shelf-turn-time) var(--shelf-turn-ease);
}
.shelf-books.is-growing .hero-book.is-facing::before,
.shelf-books.is-growing:not(.shelf-ready) .hero-book:is(:hover,:focus)::before{left:0;right:0}
.book-spine{
  position:absolute;top:0;bottom:0;left:var(--spine-inset);width:var(--book-thickness);display:flex;align-items:center;justify-content:center;
  color:#fff9e9;background:linear-gradient(90deg,#0002,transparent 13%,#fff1 50%,#0002),#365c4b;
  border-radius:1px;border:1px solid #263d3130;
  box-shadow:1px 1px 2px #39201326,inset 1px 0 0 #fff3;
  transform-origin:right center;transform:translate3d(0,0,0) rotateY(0deg);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  /* Retain the painted face at rest and through the edge-on turn. */
  will-change:transform;
  pointer-events:none;transition:transform var(--shelf-turn-time) var(--shelf-turn-ease);
}
.book-spine>span{writing-mode:vertical-rl;transform:rotate(180deg);max-height:calc(100% - 20px);max-width:calc(100% - 4px);white-space:nowrap;font-size:12px;font-weight:600;line-height:1;text-align:center}
.is-growing .hero-book:nth-child(4n+2) .book-spine{background-color:#c5a05a;color:#302b21}
.is-growing .hero-book:nth-child(4n+3) .book-spine{background-color:#4b6c7e}
.is-growing .hero-book:nth-child(4n+4) .book-spine{background-color:#9b513e}
.is-growing .hero-book .book-spine[data-illustrated-spine]{
  color:#173e44;background-color:#f9efd8;
  background-image:linear-gradient(90deg,#172e3226,transparent 13%,#fff2 50%,#172e3220),var(--spine-art);
  background-position:center;background-size:100% 100%,cover;background-repeat:no-repeat;
}
.book-spine[data-illustrated-spine]>span{font-weight:700}
.hero-book[data-book="beans-and-beginnings"] .book-spine>span{position:relative;top:-10%;font-size:calc(var(--book-size) * .06);letter-spacing:-.05em}
.hero-book[data-book="bubbles-and-wands"] .book-spine>span{position:relative;top:-7%;font-size:calc(var(--book-size) * .065)}
.hero-book[data-book="squash-and-spring"] .book-spine>span{position:relative;top:-8%}
.shelf-books.is-growing .hero-book img{
  position:absolute;bottom:0;left:0;width:var(--book-size);height:var(--book-size);max-width:none;
  border-radius:1px 2px 2px 1px;box-shadow:1px 0 0 #eee3cc,2px 1px 0 #b5a68d,3px 2px 5px #39201324;
  opacity:1;transform:translate3d(var(--book-hinge),0,0) rotateY(90deg);transform-origin:left center;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  will-change:transform;
  pointer-events:none;transition:transform var(--shelf-turn-time) var(--shelf-turn-ease);
}
.shelf-books.is-growing .hero-book.is-facing img,
.shelf-books.is-growing:not(.shelf-ready) .hero-book:is(:hover,:focus) img{transform:translate3d(0,0,0) rotateY(0deg)}
.shelf-books.is-growing .hero-book.is-facing .book-spine,
.shelf-books.is-growing:not(.shelf-ready) .hero-book:is(:hover,:focus) .book-spine{transform:translate3d(calc(-1 * var(--book-hinge)),0,0) rotateY(-90deg)}
/* Drag and settling share one frame-driven pose; ordinary hover keeps its own easing. */
.shelf-books.is-growing.is-touch-motion .hero-book{
  flex-basis:calc(44px + (var(--book-size) - 44px) * var(--book-open));transition:none;
}
.shelf-books.is-growing.is-touch-motion .hero-book img{
  transform:translate3d(calc(var(--book-hinge) * (1 - var(--book-open))),0,0) rotateY(var(--cover-angle));transition:none;
}
.shelf-books.is-growing.is-touch-motion .hero-book .book-spine{
  transform:translate3d(calc(-1 * var(--book-hinge) * var(--book-open)),0,0) rotateY(var(--spine-angle));transition:none;
}
.shelf-books.is-growing.is-touch-motion .hero-book::before{
  left:calc(var(--spine-inset) * (1 - var(--book-open)));right:calc(var(--spine-inset) * (1 - var(--book-open)));transition:none;
}
.shelf-books.is-growing.is-shelf-dragging,.shelf-books.is-growing.is-shelf-dragging .hero-book{cursor:grabbing}
.shelf-books.is-growing .hero-book:focus-visible{outline:2px solid #287db9;outline-offset:3px}
.shelf-browse{position:absolute;left:16%;right:16%;bottom:calc(46% - 52px);display:flex;align-items:center;justify-content:space-between;gap:12px;color:#354d40}
.shelf-browse[hidden]{display:none}
.shelf-browse button{width:44px;height:44px;border:0;border-radius:50%;background:#fffaf0b3;color:inherit;font-size:32px;line-height:1;cursor:pointer}
.shelf-browse button:disabled{opacity:.28;cursor:default}
.shelf-browse span{font-size:12px;background:#fffaf0b3;border-radius:4px;padding:4px 8px}
@media(max-width:760px) and (orientation:portrait){
  .shelf-browse{left:15%;right:15%;bottom:calc(37.4% - 52px)}
}

/* Additional populated shelves reuse cropped bands of the same oak painting.
   Desktop bands: cap 0–100, bay 290–588, base 588–1024 in a 1536×1024 image.
   The bay can grow taller on a short/narrow viewport without stretching the
   top rail, plant, mushroom, feet, or floor. No artwork is added to the books. */
.shelf-scene[hidden]{display:none}
/* A short screen may scroll vertically; it must not squeeze a cover behind an upright. */
.shelf-scene{min-width:min(100%,540px)}
.shelf-case-cap,.shelf-tier-art,.shelf-case-base{
  background-image:var(--shelf-desktop);background-repeat:no-repeat;
  pointer-events:none;
}
.shelf-case-cap{aspect-ratio:1536/100;background-size:100% 1024%;background-position:center top}
.shelf-case-base{aspect-ratio:1536/436;background-size:100% 234.8624%;background-position:center bottom}
.shelf-tier{
  position:relative;isolation:isolate;width:100%;min-width:0;aspect-ratio:1536/298;
  min-height:calc(clamp(150px,13.5vw,196px) + 42px);
}
.shelf-tier-art{position:absolute;inset:0;background-size:100% 343.6242%;background-position:center 39.9449%}
.shelf-tier .shelf-books{bottom:11.7584%}
.shelf-tier .shelf-browse{bottom:calc(11.7584% - 52px);z-index:3}
@media(max-width:760px) and (orientation:portrait){
  /* Portrait bands: cap 0–130, bay 420–941, base 941–1448 in 1086×1448. */
  .shelf-case-cap,.shelf-tier-art,.shelf-case-base{background-image:var(--shelf-mobile)}
  .shelf-case-cap{aspect-ratio:1086/130;background-size:100% 1113.8462%}
  .shelf-case-base{aspect-ratio:1086/507;background-size:100% 285.6016%}
  .shelf-tier{aspect-ratio:1086/521}
  .shelf-tier-art{background-size:100% 277.9271%;background-position:center 45.3074%}
  .shelf-tier .shelf-books{bottom:6.6319%}
  .shelf-tier .shelf-browse{bottom:calc(6.6319% - 52px)}
}

/* Recovery appears only when the current spread could not load. */
.reader-stage.is-page-loading > #reader-image,.reader-stage.is-page-failed > #reader-image{visibility:hidden}
.reader-load-error:not([hidden]){position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--paper);color:var(--ink)}
.reader-load-error p{margin:0;font-size:15px}
.reader-load-error button{min-width:72px;min-height:44px;padding:6px 18px;border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit}

/* A single silent swipe cue overlays the gesture surface without taking space. */
.swipe-hint{position:absolute;left:50%;top:70%;width:clamp(80px,12vw,96px);aspect-ratio:3/2;transform:translate(-50%,-50%);z-index:6;pointer-events:none;user-select:none;color:#24433e;animation:swipe-cue-fade 2600ms both}
.swipe-hint[hidden]{display:none}
.swipe-hint svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 1.5px #24382b26)}
.swipe-hint-trail{stroke:#fffaf0b3;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;animation:swipe-cue-trail 2600ms both}
.swipe-hint-hand{stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;animation:swipe-cue-hand 2600ms cubic-bezier(.4,0,.2,1) both}
.swipe-hint-outline{fill:#fffaf0e6}
.swipe-hint-crease{opacity:.5}
.swipe-hint-contact{fill:none;stroke:#fffaf0;stroke-width:1.25;transform-origin:59px 25px;animation:swipe-cue-contact 2600ms both}
@keyframes swipe-cue-fade{0%,100%{opacity:0}16%,76%{opacity:.9}}
@keyframes swipe-cue-hand{0%,24%{transform:translateX(20px) rotate(4deg)}74%,100%{transform:translateX(-20px) rotate(-3deg)}}
@keyframes swipe-cue-trail{0%,16%,82%,100%{opacity:0}30%,62%{opacity:.7}}
@keyframes swipe-cue-contact{0%,12%,44%,100%{opacity:0;transform:scale(.7)}22%{opacity:.75;transform:scale(1)}38%{opacity:0;transform:scale(1.35)}}
/* One quiet glow identifies the existing control; its geometry never moves. */
.reader-fullscreen.is-discovery-cue::after{content:"";position:absolute;inset:-3px;border:1px solid #b58b47;border-radius:inherit;pointer-events:none;animation:fullscreen-cue-glow 2400ms ease-in-out both}
@keyframes fullscreen-cue-glow{0%,100%{opacity:0;box-shadow:0 0 0 0 #d3ae6900}35%{opacity:.8;box-shadow:0 0 0 5px #d3ae6924}75%{opacity:.35;box-shadow:0 0 0 9px #d3ae6900}}
@media(prefers-reduced-motion:reduce){.swipe-hint{display:none!important}.reader-fullscreen.is-discovery-cue::after{display:none}}
