/* Palace library — live titles and interactive books over an untitled room plate. */
body{background:#19130f;color:#eadfc9;--muted:#b4a58e;--line:#b5986535;--gold:#c4a474}
body:before{display:none}
body>header,main,body>footer{--wine:#d7b67e;--ink:#eadfc9}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#d7b67e}
.header{max-width:none;padding:20px 5.4%;height:94px;background:linear-gradient(#251b14,#17110d);border-bottom:1px solid #a57d4666;box-shadow:0 4px 20px #0008;position:relative;z-index:2}
.brand{color:#e1c694;font-size:22px}.brand small{color:#a8916c;font-size:8px}.brand-mark{background:#452729;color:#dec593;box-shadow:inset 0 0 0 3px #452729,inset 0 0 0 4px #a98a55}
.header nav{color:#bfae91;gap:38px;font-size:12px}.header nav .active{color:#efdab4}.header nav a.active:after{background:#c4a474;height:1px;width:26px;left:calc(50% - 13px)}.nav-mine{color:#e1c694}
.hero{position:relative;display:block;max-width:1800px;width:100%;height:clamp(680px,59.3vw,990px);min-height:0;padding:0;background:#20160e url('assets/palace-room-v1.perf-v1.webp') center/100% 100% no-repeat;isolation:isolate;overflow:hidden}
.hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#19130f 0%,transparent 15%,transparent 95%,#0002)}
.hero-copy{position:absolute;left:11.2%;top:25%;width:29%;padding:0;color:#eee2c6;text-shadow:0 2px 9px #0006}
.hero-copy>.eyebrow{font-size:9px;letter-spacing:.2em;color:#bca674;gap:10px;white-space:nowrap}
.hero h1{font-size:clamp(31px,3.15vw,53px);line-height:1.6;letter-spacing:.06em;margin:24px 0 20px}
.hero .lead{font-size:clamp(12px,1.05vw,16px);color:#c6bea6;line-height:2.2}
.hero-actions{margin-top:29px;display:flex;align-items:flex-start;flex-direction:column;gap:13px}
.hero .primary{background:#663a34;border:1px solid #b79866;color:#f2ddbb;box-shadow:inset 0 0 0 3px #422822;padding:12px 24px;min-height:45px;font-size:12px}
.hero .primary:hover{background:#7c4940}.hero .text-link{font-size:11px;color:#ddc394;border-bottom-color:#b79a6155;gap:15px}
.edition-note{margin-top:30px;font-size:10px;gap:13px}.edition-note p{font-size:10px;color:#b9aa8c}.edition-note small{font-size:9px;color:#9c937b;line-height:1.9}
.book-display{position:absolute;inset:0;padding:0;max-width:none;width:auto;pointer-events:none;perspective:1600px}
.book-caption{position:absolute;left:59.5%;width:23.8%;top:23%;margin:0;padding:0;color:#d3b580;font-size:9px;letter-spacing:.14em}
.book{pointer-events:auto;position:absolute;left:71.3%;top:29%;width:clamp(225px,20.3vw,350px);height:auto;aspect-ratio:314/443;margin:0 0 0 max(-175px,-10.15vw);transform:rotate(-3deg) rotateY(-12deg);filter:drop-shadow(16px 15px 14px #0009)}
.book:after{left:-5%;width:120%;bottom:-5px;background:#000a;filter:blur(16px);transform:rotate(3deg)}
.book:hover,.book:focus-visible{transform:translateY(-11px) rotate(-2deg) rotateY(-6deg)}
.cover-top{top:10.8%;font-size:clamp(7px,.58vw,10px)}.cover-title{top:16.5%;font-size:clamp(28px,2.48vw,43px)}.cover-sub{top:44.7%;font-size:clamp(7px,.65vw,11px)}.cover-years{top:49.7%;font-size:clamp(10px,.85vw,14px)}.cover-bottom{bottom:6.5%;font-size:clamp(6px,.52vw,9px)}
.book-under{position:absolute;left:59.2%;width:24.5%;top:76%;margin:0;padding:0;color:#ddc8a2;font-size:10px;letter-spacing:.06em;text-shadow:0 1px 4px #000}
.book-under>span>small{display:block;color:#aa9675;font-size:9px;margin-top:5px}.book-under .price{font-size:34px;color:#e2bf81}.book-under .price small{font-size:16px}.book-under .price i{color:#af9876}
.shelf-note{border-top:0;padding-top:24px;padding-bottom:25px}.shelf-note p{color:#d4bea0}.shelf-note div{color:#a8977c;font-size:11px}.shelf-note b{color:#8e6b40}
.inside{padding-top:90px;padding-bottom:85px}.section-title .eyebrow{color:#b89a67}.section-title h2{color:#e5d3b3;font-weight:400;font-size:34px}.section-title>p{color:#a99c86}.chapter-preview h3{color:#dac7a7;font-weight:400}.chapter-preview p{color:#a99c86}.text-link{color:#d3b37b;border-bottom-color:#b5986550}.text-link:hover{border-bottom-color:#d3b37b}.roman{color:#8e7146}
.next-section{padding-top:50px;padding-bottom:50px;gap:50px}.library-monogram{flex:none;width:155px;text-align:center;color:#8c7048;font:italic 34px/1.05 Georgia,serif;border-right:1px solid var(--line);padding:20px 35px 20px 0}.library-monogram i{font-size:26px}.next-section h2{color:#d9c5a4;font-weight:400;font-size:28px}.next-section p{color:#a99c86}
.custom-section{background:radial-gradient(ellipse at 25% 0,#33413340,transparent 70%),#1c241f;border-color:#8f795747;box-shadow:inset 0 1px 0 #d3ae6c16,inset 0 -1px 0 #d3ae6c16}.custom-options{border-color:#b5986545}.custom-options button:hover{background:#c4a4740c}.custom-options span,.custom-options i{color:#c6aa78}.custom-options h3{color:#e0ceb0;font-weight:400}.custom-options p{color:#a8ac99}
.help-section h2{color:#dfccad;font-weight:400}.faq summary{color:#cebea4}.faq p{color:#a99c86}footer{color:#bba487}footer>p{color:#91806a}
dialog{--ink:#302b24;--muted:#756e61;--wine:#612e32;--gold:#a18451;--line:#a1845140;color:var(--ink);background:#f5eedf;box-shadow:0 30px 120px #000a}dialog::backdrop{background:#100d0ac2;backdrop-filter:blur(5px)}dialog .text-link{color:var(--wine);border-bottom-color:#612e3240}dialog .text-link:hover{border-bottom-color:var(--wine)}dialog .primary{background:var(--wine);color:#fff8e9;border-color:var(--wine)}dialog .primary:hover{background:#793e42}dialog button:focus-visible,dialog a:focus-visible{outline-color:var(--wine)}.skip{color:#302b24}
@media(min-width:721px){.hero{height:clamp(620px,calc(100svh - 94px),900px)}.hero-copy{top:21%}.hero h1{font-size:clamp(31px,2.8vw,49px);line-height:1.55;margin:19px 0 17px}.hero-actions{flex-direction:row;align-items:center;flex-wrap:wrap;gap:16px;margin-top:25px}.edition-note{margin-top:25px}.book{height:46%;width:auto;aspect-ratio:314/443;top:27%;margin-left:0;translate:-50% 0}.book-caption{top:22%}.book-under{top:78%}.cover-title{font-size:clamp(25px,2.05vw,37px)}.cover-top{font-size:8px}.cover-sub{font-size:8px}.cover-years{font-size:11px}.cover-bottom{font-size:7px}}
@media(min-width:1801px){.hero{box-shadow:0 0 80px #0008}}
@media(max-width:1100px) and (min-width:721px){.hero{height:690px;background-size:auto 100%;background-position:center}.hero-copy{left:9.8%;width:33%;top:24%}.hero h1{font-size:34px}.hero-copy>.eyebrow{font-size:8px;letter-spacing:.1em}.book{width:225px;margin-left:-112px;top:29%}.book-caption{left:60%;width:25%;top:23%}.book-under{left:59%;width:27%;top:77%}.cover-title{font-size:28px}.cover-top{font-size:7px}.cover-sub{font-size:7px}.cover-years{font-size:10px}.cover-bottom{font-size:6px}.edition-note{margin-top:23px}.header nav{gap:24px}}
@media(max-width:720px){
 .header{height:auto;padding:20px 24px 16px;background:#201711}.brand{font-size:21px}.header nav{font-size:11px;gap:0;margin-top:20px}.nav-mine{font-size:11px}.header nav a.active:after{bottom:-4px}
 .hero{height:auto;min-height:0;display:flex;flex-direction:column;padding:0;gap:0;background:#19130f;overflow:hidden}
 .hero-copy{position:relative;inset:auto;width:100%;padding:35px 30px 34px;background:linear-gradient(90deg,#0e160fd9,#182016d9),url('assets/palace-room-v1.perf-v1.webp') 18% 25%/280% auto;border-bottom:1px solid #bd94533d;text-align:center}
 .hero-copy>.eyebrow{justify-content:center;font-size:8px;letter-spacing:.16em}.hero-copy>.eyebrow span{width:15px}
 .hero h1{font-size:32px;line-height:1.6;margin:14px 0 11px;letter-spacing:.06em}.hero h1 br{display:none}.hero .lead{font-size:12px;line-height:1.9}.hero .lead br{display:none}
 .hero-actions{flex-direction:row;align-items:center;justify-content:center;gap:18px;margin-top:22px;flex-wrap:wrap}.hero .primary{padding:10px 15px;font-size:11px;gap:13px;min-height:43px}.hero .text-link{font-size:10px;gap:7px}.edition-note{display:none}
 .book-display{position:relative;inset:auto;height:530px;width:100%;max-width:none;align-self:stretch;background:#211710 url('assets/palace-room-v1.perf-v1.webp') 100% 50%/211% 100%;padding:0;isolation:isolate}
 .book-display:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#19130f,transparent 20%);z-index:-1}
 .book-caption{left:18%;top:19%;width:63%;font-size:8px}.book{width:220px;height:310px;aspect-ratio:auto;top:26%;left:50%;margin-left:-110px}.book:after{width:245px}
 .cover-top{top:10.8%;font-size:7px}.cover-title{top:16.5%;font-size:27px}.cover-sub{top:44.7%;font-size:7px}.cover-years{top:49.7%;font-size:10px}.cover-bottom{bottom:6.5%;font-size:6px}
 .book-under{left:18%;top:89%;width:64%;font-size:9px}.book-under .price{font-size:29px}.book-under>span>small{font-size:8px;margin-top:2px}.book-under .price i{font-size:9px}
 .shelf-note{padding-top:24px;padding-bottom:25px;text-align:center}.shelf-note div{justify-content:center;font-size:9px}.shelf-note p{font-size:15px}.inside{padding-top:58px;padding-bottom:40px}.section-title h2{font-size:29px}.section-title>p{font-size:12px}.chapter-preview h3{font-size:20px}.library-monogram{width:65px;font-size:27px;padding:15px 17px 15px 0}.library-monogram i{font-size:19px}.next-section{gap:25px;padding-top:35px;padding-bottom:35px}.next-section h2{font-size:23px}.next-section>div:nth-child(2){min-width:0}.next-margin{display:none}.custom-section{padding:52px 0;margin-top:15px}.custom-options h3{font-size:20px}.help-section{padding-top:55px;padding-bottom:60px}.help-section h2{font-size:29px}
}
@media(max-width:380px){.header{padding-left:20px;padding-right:20px}.hero-copy{padding:28px 20px}.hero h1{font-size:27px}.hero-actions{gap:12px}.hero .primary{font-size:10px;padding:10px 11px}.hero .text-link{font-size:9px}.book-display{height:490px}.book{width:205px;height:289px;margin-left:-102.5px;top:26%}.book-caption{left:15%;width:70%}.book-under{left:15%;width:70%;top:89%}.cover-title{font-size:25px}.cover-sub{font-size:6.5px}}
.book{container-type:inline-size}.cover-top{font-size:2.87cqw}.cover-title{font-size:12.1cqw}.cover-sub{font-size:3.18cqw}.cover-years{font-size:4.14cqw}.cover-bottom{font-size:2.54cqw}
.book-under .price small{display:inline;margin:0;color:#e2bf81;font-size:16px}
@media(min-width:721px){.book{top:26%;height:44%;margin-left:0}.edition-note{display:none}}
@media(max-width:720px){.hero-copy{padding:23px 24px}.hero h1{font-size:28px;line-height:1.45;margin:12px 0 10px}.hero h1 br{display:block}.hero .lead{font-size:11px}.hero-actions{margin-top:17px}.book-display{height:470px;background-size:211% 125%;background-position:100% 10%}.book{top:24%;width:205px;height:289px;margin-left:-102.5px}.book-caption{top:17%}.book-under{top:88.5%}}
@media(prefers-reduced-motion:reduce){.book:hover,.book:focus-visible{transform:rotate(-3deg) rotateY(-12deg)}}

[hidden]{display:none!important} #payment-qr{display:block;margin:16px auto;background:white;padding:10px;max-width:100%;height:auto} #account-form{display:grid;gap:12px} #account-form label{display:grid;gap:6px} #account-form input{padding:12px;border:1px solid #bba779;border-radius:5px;font:inherit} #payment-status{line-height:1.7;margin-top:16px}
