/* Euclid's existing theme, Archivo typography and commerce-page structure. */
:root{--fg:rgb(var(--ink));--bg:rgb(var(--paper));--sub:rgba(var(--ink),.64);--line:rgba(var(--ink),.18);--soft:rgba(var(--ink),.035);--mono:'Space Mono',monospace;--header:73px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button,summary{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p,figure{margin:0}img{display:block;max-width:100%;height:auto}sup{font-size:.65em;line-height:0}i{font-family:Georgia,serif}[hidden]{display:none!important}summary:focus-visible{outline:2px solid var(--fg);outline-offset:4px}::selection{background:var(--fg);color:var(--bg)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;padding:15px;background:var(--fg);color:var(--bg)}.skip-link:focus{top:12px}main,body>footer{position:relative;z-index:1}.shell{width:calc(100% - 80px);max-width:1100px;margin-inline:auto}.page-lattice{position:fixed;inset:0;pointer-events:none;z-index:0}.eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.15em;line-height:1.7;text-transform:uppercase;color:var(--sub)}h2{font-size:clamp(25px,2.8vw,34px);font-weight:700;line-height:1.18;letter-spacing:-.035em}
.commerce-header{position:fixed;top:0;left:0;right:0;z-index:30;height:73px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px clamp(18px,4vw,40px);border-bottom:1px solid rgba(var(--ink),.14);background:var(--bg);font-family:var(--mono);font-size:10px;letter-spacing:.15em;text-transform:uppercase}.commerce-back{display:inline-flex;gap:10px;align-items:center}.commerce-back:hover{opacity:.6}.commerce-actions{display:flex;align-items:center;gap:18px}.theme-toggle{width:40px;height:40px;padding:0;border:1px solid rgba(var(--ink),.35);border-radius:50%;background:none;display:grid;place-items:center}.theme-dot{width:16px;height:16px;border-radius:50%;background:var(--fg)}.cart-link{display:grid;place-items:center;width:24px;height:32px}.header-product{position:absolute;left:50%;transform:translateX(-50%);font-family:Archivo,sans-serif;font-weight:600;font-size:12px;letter-spacing:-.02em;text-transform:none;opacity:0;transition:opacity .3s}.past-hero .header-product{opacity:1}
.product-hero{position:relative;min-height:100svh;grid-template-rows:1fr auto;padding-top:clamp(130px,17vh,170px);padding-bottom:0;display:grid;grid-template-columns:1fr 1.05fr;column-gap:clamp(50px,8vw,120px);align-items:center}.hero-cover{position:relative;width:clamp(270px,28vw,360px);margin:0 auto}.hero-cover>img{position:relative;width:100%;box-shadow:0 15px 35px #0002;border:1px solid rgba(var(--ink),.2)}.cover-backing{position:absolute;inset:0;transform:rotate(-4deg) translate(-10px,5px);border:1px solid rgba(var(--ink),.18);background:var(--soft)}.hero-copy .eyebrow{font-size:10px;letter-spacing:.18em;margin-bottom:22px}.hero-copy h1{font-size:clamp(38px,4.6vw,60px);font-weight:900;line-height:1.05;max-width:9ch;letter-spacing:-.045em}.hero-lead{font-size:21px;font-weight:600;letter-spacing:-.025em;line-height:1.45;margin-top:22px}.hero-description{font-size:14px;line-height:1.75;color:var(--sub);max-width:46ch;margin-top:16px;text-wrap:pretty}.product-facts{display:flex;flex-wrap:wrap;gap:8px 17px;padding:0;margin:25px 0 0;list-style:none;font-size:11px;color:var(--sub)}.product-facts strong{font-weight:700;color:var(--fg)}.price-row{display:flex;align-items:center;gap:18px;margin-top:28px}.price-row>strong{font-size:32px;line-height:1;font-weight:700;letter-spacing:-.045em}.price-row>span{font-size:8px;font-family:var(--mono);letter-spacing:.04em;color:var(--sub);line-height:1.6}.availability{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:10px;margin-top:18px;text-transform:uppercase;letter-spacing:.12em}.availability>span{width:5px;height:5px;border-radius:50%;background:var(--fg)}.small-note{font-size:11px;color:var(--sub);margin-top:9px}.more-info{grid-column:1/-1;margin-top:64px;padding:25px 0;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:11px}.more-info>span:first-child{display:flex;align-items:center;gap:20px;font-family:var(--mono);text-transform:uppercase;letter-spacing:.12em}.more-info>span:first-child>span{font-size:20px;transition:transform .3s}.more-info:hover>span:first-child>span{transform:translateY(4px)}.more-info>span:last-child{color:var(--sub)}
/* The supplied reference's curtain reveal, adapted to Euclid's native page. */
.gallery-curtain{position:relative;isolation:isolate;border-block:1px solid var(--line);background:var(--bg)}.gallery-stage{position:relative;overflow:clip;padding:36px 40px 26px}.gallery-heading{max-width:1100px;margin:auto}.gallery-heading h2{font-size:26px;margin-top:9px}.gallery-book{position:relative;width:min(46vw,540px);aspect-ratio:1391/1800;margin:70px auto;isolation:isolate;--fan:.35}.gallery-book img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:top;background:#fff;box-shadow:0 20px 55px #0003}.gallery-cover{z-index:2;box-shadow:0 25px 65px #0004,2px 2px #cbc9c0,4px 4px #96958c!important}.gallery-leaf{transform-origin:50% 90%}.leaf-one{transform:translateX(calc(var(--fan) * -160px)) rotate(calc(var(--fan) * -18deg));z-index:1}.leaf-two{transform:translateX(calc(var(--fan) * 160px)) rotate(calc(var(--fan) * 18deg));z-index:0}.gallery-caption{max-width:1100px;margin:auto;display:flex;justify-content:space-between;gap:20px;font-family:var(--mono);font-size:8px;letter-spacing:.09em;color:var(--sub);line-height:1.7}.gallery-caption>a{color:var(--fg);display:flex;gap:15px}.js-motion .gallery-curtain{height:190svh;clip-path:inset(0)}.js-motion .gallery-stage{position:fixed;inset:73px 0 0;padding:0}.js-motion .gallery-heading{position:absolute;top:40px;left:max(40px,calc((100vw - 1100px)/2));right:40px}.js-motion .gallery-book{position:absolute;width:min(52vw,calc((100svh - 250px)*.7728),540px);left:50%;top:55%;margin:0;transform:translate(-50%,-50%) translateY(var(--rise,40px)) scale(var(--scale,.9));will-change:transform}.js-motion .gallery-caption{position:absolute;left:max(40px,calc((100vw - 1100px)/2));right:max(40px,calc((100vw - 1100px)/2));bottom:24px;max-width:none}
.section-space{padding-block:85px}.contents-section{position:relative;background:var(--bg)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:35px}.section-heading h2{margin-top:12px}.section-heading>p{font-size:12px;line-height:1.75;color:var(--sub);max-width:37ch}
.sample-section{position:relative;background:var(--bg);border-top:1px solid var(--line);padding-top:75px}.sample-heading h2{margin-top:12px}.sample-topic{display:flex;align-items:baseline;gap:15px;margin-top:28px;font-size:19px;font-weight:600;line-height:1.4;letter-spacing:-.02em;max-width:680px}.sample-topic>span{font-family:var(--mono);font-size:14px;font-weight:400;flex:none}.sample-description{font-size:14px;line-height:1.75;color:var(--sub);max-width:67ch;margin-top:17px}.sample-walkthrough{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.95fr);gap:clamp(40px,5vw,80px);padding-top:48px;align-items:start}.sample-reader{position:sticky;top:100px;align-self:start;max-width:100%;margin-bottom:55px}.reader-label{display:flex;justify-content:space-between;gap:15px;margin-bottom:14px;font-family:var(--mono);font-size:8px;letter-spacing:.08em;color:var(--sub)}.sample-page-button{display:block;width:min(100%,calc((100svh - 190px)*.7074));aspect-ratio:1344/1900;margin:0 auto;box-shadow:0 10px 35px #0003;background:#fff;transition:box-shadow .25s}.sample-page-button:hover{box-shadow:0 15px 45px #0005}.sample-page-button>img{width:100%;height:100%;object-fit:contain}.sample-dots{display:flex;justify-content:center;gap:2px;margin-top:10px}.sample-dots a{width:36px;height:23px;display:grid;place-items:center}.sample-dots a::after{content:'';width:5px;height:5px;background:var(--fg);opacity:.25;border-radius:50%;transition:width .2s,opacity .2s}.sample-dots a[aria-current]::after{width:18px;border-radius:4px;opacity:1}.sample-stage{min-height:max(620px,86svh);padding:70px 0 100px;scroll-margin-top:125px}.sample-stage h3{font-size:clamp(24px,2.2vw,29px);line-height:1.25;letter-spacing:-.035em;font-weight:700;margin-top:20px}.sample-stage>p:not(.eyebrow){font-size:14px;line-height:1.8;color:var(--sub);margin-top:19px}.example-note{margin:26px 0 20px;padding:20px 0 20px 18px;border-left:1px solid rgba(var(--ink),.38)}.example-note>span{font-family:var(--mono);font-size:8px;letter-spacing:.1em;color:var(--sub);line-height:1.6}.example-note p{font-size:13px;line-height:1.75;margin-top:12px}.equation{font-family:Georgia,serif;font-size:23px;font-style:italic;letter-spacing:-.04em;white-space:nowrap;margin-top:20px}.example-result{display:flex;align-items:center;gap:28px;margin-top:20px}.example-result>span:first-child{font-family:var(--mono);font-size:13px;line-height:1.6}.example-result>span:nth-child(2){color:var(--sub)}.example-result>strong{font-size:32px;letter-spacing:-.04em}.example-note .note-detail{font-size:11px;color:var(--sub);margin-top:15px}.sample-stage>.source-note{font-size:10px!important;max-width:36ch;line-height:1.7!important;margin-top:14px!important}.practice-levels{list-style:none;padding:0;margin:27px 0 18px}.practice-levels li{display:flex;gap:17px;padding:18px 0;border-top:1px solid var(--line)}.practice-levels li>span{font-family:var(--mono);font-size:9px;color:var(--sub);min-width:20px;padding-top:3px}.practice-levels h4{font-size:15px;font-weight:600;margin-bottom:8px}.practice-levels p{font-size:12px;line-height:1.8;color:var(--sub)}.edition-section{position:relative;padding-block:50px 65px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 210px;gap:80px;align-items:center}.edition-section h2{margin-top:14px;font-size:30px}.edition-section>div>p:not(.eyebrow){font-size:14px;line-height:1.75;color:var(--sub);max-width:53ch;margin-top:20px}.edition-format{display:block;margin-top:26px;font-family:var(--mono);font-size:8px;line-height:1.6;letter-spacing:.12em;color:var(--sub)}.edition-offer{display:flex;flex-direction:column;align-items:start}.edition-offer>strong{font-size:38px;font-weight:700;letter-spacing:-.05em;line-height:1}.edition-offer>span{font-family:var(--mono);font-size:8px;color:var(--sub);margin-top:9px}.edition-offer>button{display:block;width:100%;padding:15px 20px;margin-top:20px;border:1px solid var(--line);background:var(--soft);font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--sub)}.edition-offer>p{font-size:10px!important;margin-top:10px!important}
/* All native content is visible before enhancement and with reduced motion. */
.js-reveals .reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease var(--reveal-delay,0ms),transform .8s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms)!important}.js-reveals .reveal.is-visible{opacity:1;transform:none}
dialog{padding:0;border:1px solid var(--line);background:var(--bg);color:var(--fg);max-width:min(950px,calc(100vw - 28px));width:950px;max-height:calc(100svh - 28px);box-shadow:0 20px 80px #0007}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.preview-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line)}.preview-header h2{font-size:13px;letter-spacing:0;line-height:1.5}.preview-header form{margin:0}.preview-header button{border:0;background:none;display:flex;align-items:center;gap:12px;padding:5px;font-size:12px}.preview-header button span{font-size:22px}.preview-scroll{max-height:calc(100svh - 98px);overflow:auto;background:#d1d0c7;overscroll-behavior:contain;padding:22px}.preview-scroll img{width:100%;height:auto;background:#fff;box-shadow:0 3px 20px #0002}
@media(max-width:1000px){.product-hero{column-gap:60px}.hero-cover{width:280px}.hero-copy h1{font-size:48px}.sample-walkthrough{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:40px}.sample-stage h3{font-size:25px}.sample-stage>p:not(.eyebrow){font-size:13px}}
@media(max-width:760px){.shell{width:calc(100% - 44px)}.commerce-header{padding-inline:18px}.product-hero{grid-template-columns:1fr;grid-template-rows:auto;gap:35px;padding-top:115px}.hero-cover{width:min(58vw,300px);order:1}.hero-copy{order:0}.hero-copy .eyebrow{font-size:9px;margin-bottom:19px}.hero-copy h1{font-size:clamp(34px,8vw,48px);max-width:none}.hero-lead{font-size:18px;margin-top:20px}.hero-lead br{display:none}.hero-lead br::after{content:' '}.hero-description{font-size:13px;max-width:54ch;margin-top:13px}.product-facts{margin-top:20px;font-size:10px;gap:8px 15px}.price-row{margin-top:24px}.price-row>strong{font-size:29px}.price-row>span{font-size:7px}.availability{font-size:9px;margin-top:14px}.small-note{font-size:10px}.more-info{order:2;margin-top:3px;padding:22px 0;font-size:9px}.more-info>span:first-child{font-size:9px;gap:12px}.more-info>span:last-child{max-width:17ch;line-height:1.7;text-align:right}.gallery-stage{padding:28px 22px 23px}.gallery-heading h2{font-size:23px}.gallery-heading .eyebrow{font-size:8px}.gallery-book{width:70vw;margin:65px auto}.gallery-caption{font-size:7px}.gallery-caption>span{max-width:20ch}.js-motion .gallery-curtain{height:165svh}.js-motion .gallery-heading{top:28px;left:22px;right:22px}.js-motion .gallery-book{width:min(76vw,calc((100svh - 220px)*.7728),400px);top:55%}.js-motion .gallery-caption{left:22px;right:22px;bottom:25px;font-size:7px}.js-motion .leaf-one{transform:translateX(calc(var(--fan) * -90px)) rotate(calc(var(--fan) * -14deg))}.js-motion .leaf-two{transform:translateX(calc(var(--fan) * 90px)) rotate(calc(var(--fan) * 14deg))}.section-space{padding-block:60px}.section-heading{display:block}.section-heading h2{font-size:27px;margin-top:12px}.section-heading>p{margin-top:18px;font-size:12px}.sample-section{padding-top:55px}.sample-heading h2{font-size:28px}.sample-topic{font-size:17px;gap:12px;margin-top:23px}.sample-topic>span{font-size:12px}.sample-description{font-size:13px;line-height:1.8}.sample-walkthrough{display:block;padding-top:32px}.sample-reader{position:relative;top:auto;max-width:500px;margin:0 auto 12px}.sample-page-button{width:100%;max-width:500px;aspect-ratio:1344/1900}.reader-label{font-size:7px}.sample-stage{min-height:0;padding:40px 0;border-bottom:1px solid var(--line)}.sample-stage:last-child{border:0}.sample-stage .eyebrow{font-size:8px}.sample-stage h3{font-size:24px;margin-top:16px}.sample-stage>p:not(.eyebrow){font-size:13px;margin-top:15px}.example-note{padding-left:16px;margin-top:23px}.example-note p{font-size:12px}.practice-levels li{padding:16px 0}.practice-levels h4{font-size:14px}.practice-levels p{font-size:12px}.edition-section{grid-template-columns:1fr;gap:30px;padding-block:42px 55px}.edition-section h2{font-size:27px}.edition-section>div>p:not(.eyebrow){font-size:13px}.edition-offer{display:grid;grid-template-columns:1fr 150px;align-items:center;gap:0 20px}.edition-offer>strong{grid-column:1;grid-row:1;font-size:34px}.edition-offer>span{grid-column:1;grid-row:2;margin-top:9px}.edition-offer>button{grid-column:2;grid-row:1/3;margin:0}.edition-offer>p{grid-column:1/-1}.header-product{font-size:11px}.preview-header{padding:12px;gap:12px}.preview-header h2{font-size:10px}.preview-header button{font-size:10px;gap:6px}.preview-scroll{padding:8px;max-height:calc(100svh - 100px)}}
@media(max-width:380px){.shell{width:calc(100% - 36px)}.commerce-header{padding-inline:15px}.commerce-back{font-size:9px}.commerce-actions{gap:10px}.header-product{font-size:10px}.hero-copy h1{font-size:33px}.product-facts{gap:8px 11px;font-size:9px}.price-row{gap:12px}.price-row>span{font-size:6px}.gallery-heading h2{font-size:21px}.gallery-caption{letter-spacing:0}.sample-topic{font-size:16px}.equation{font-size:22px}.edition-offer{grid-template-columns:1fr 135px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js-reveals .reveal{opacity:1;transform:none;transition:none}.gallery-book{will-change:auto}.sample-dots a::after,.header-product,.more-info>span:first-child>span{transition:none}}

/* The printed contents are the interface; the original 5.01 row is a real link. */
.gallery-caption{justify-content:flex-end}
.contents-viewer{max-width:880px;margin:42px auto 0}
.contents-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;margin-bottom:14px;font-family:var(--mono);font-size:10px;color:var(--sub)}
.contents-pagination{display:flex;align-items:center;gap:17px}.contents-pagination>span{min-width:60px;text-align:center;font-size:9px}
.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--fg);transition:background .2s,opacity .2s}
.icon-button:hover{background:var(--soft)}.icon-button:disabled{opacity:.25}.icon-button:disabled:hover{background:none}
.contents-page+.contents-page{margin-top:32px}.contents-page[hidden]+.contents-page{margin-top:0}.contents-sheet{position:relative;background:#fff;box-shadow:0 12px 40px #0002}.contents-sheet>img{width:100%}
.paper-expand{position:absolute;right:12px;top:12px;border-color:#d3d1c9;background:#f4f2ed;color:#1b1a18;box-shadow:0 2px 6px #0001}.paper-expand:hover{background:#e9e6dc}
.topic-hotspot{position:absolute;left:51.3%;top:21.74%;transform:translateY(-50%);width:40%;height:2.25%;min-height:32px;border:0;color:#514a35;z-index:1}.topic-hotspot::before{content:"";position:absolute;inset:0;border:1px solid #b4a880;border-radius:2px;background:#b4a88020;transition:background .2s,box-shadow .2s}
.topic-hotspot:hover::before,.topic-hotspot:focus-visible::before{background:#b4a88045;box-shadow:0 0 0 3px #b4a88025}.topic-hotspot:focus-visible{outline:2px solid #8e8057;outline-offset:3px}
.hotspot-arrow{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:24px}.hotspot-arrow svg{width:14px;height:14px}
.sample-entry{display:flex;justify-content:space-between;align-items:center;min-height:65px;border-bottom:1px solid var(--line);font-family:var(--mono);font-size:11px}.sample-entry>span{display:flex;gap:18px;align-items:baseline}.sample-entry>span>span{font-family:Archivo,sans-serif;font-size:12px;color:var(--sub)}.sample-entry>svg{transition:transform .25s}.sample-entry:hover>svg{transform:translateX(4px)}
.sample-page-button{position:relative}.sample-dots a{height:44px}.mobile-stage-page{display:none}
.preview-header{gap:12px;padding:12px 18px}.preview-actions{display:flex;align-items:center;gap:8px}.preview-actions .icon-button{width:40px;height:40px;padding:0;display:grid;border:1px solid var(--line)}.preview-actions form{display:flex}.preview-paper{position:relative;width:100%}.preview-scroll.is-zoomed .preview-paper{width:max(100%,1273px)}.preview-scroll img{width:100%;max-width:none}.preview-scroll{max-height:calc(100svh - 98px)}
a:focus-visible,button:focus-visible,.preview-scroll:focus-visible{outline:2px solid var(--fg);outline-offset:5px}#sample-title:focus{outline:none}#sample-title:focus-visible{outline:1px solid var(--line);outline-offset:8px}
@media(max-width:760px){.contents-viewer{margin-top:24px}.contents-toolbar{font-size:9px}.contents-pagination{gap:8px}.contents-pagination>span{font-size:8px;min-width:49px}.paper-expand{width:36px;height:36px;top:8px;right:8px}.contents-sheet .paper-expand{width:44px;height:44px}.topic-hotspot{min-height:44px}.contents-sheet .topic-hotspot::before{height:clamp(12px,2.5vw,19px);top:50%;transform:translateY(-50%)}.hotspot-arrow{left:100%;width:18px}.hotspot-arrow svg{width:12px}.sample-entry{font-size:10px;min-height:68px}.sample-entry>span{gap:14px}.sample-entry>span>span{font-size:11px}.mobile-stage-page{position:relative;display:block;margin:0 auto 36px;max-width:500px;box-shadow:0 10px 35px #0003}.sample-dots{margin-bottom:0}.preview-header{padding:10px;gap:8px}.preview-actions{gap:4px}.preview-actions .icon-button{width:36px;height:36px}.preview-header h2{font-size:10px}.preview-scroll{max-height:calc(100svh - 89px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Product details and cart use the same visual treatment as the Euclid sets. */
.included-label{margin-top:28px;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--sub)}
.product-features{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:13px;max-width:48ch}
.product-features li{display:flex;align-items:flex-start;gap:11px;font-size:14px;line-height:1.6;color:var(--sub)}.product-features svg{flex:none;margin-top:4px;opacity:.65}.product-features strong{font-weight:600;color:var(--fg)}
.purchase-row{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin-top:30px}.purchase-row>strong{font-size:36px;line-height:1;font-weight:700;letter-spacing:-.045em}
.add-cart-button,.edition-offer>.add-cart-button{display:inline-flex;justify-content:center;align-items:center;gap:11px;padding:17px 32px;border:1px solid var(--fg);background:var(--fg);color:var(--bg);font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;transition:opacity .25s}
.add-cart-button:hover{opacity:.82}.add-cart-button:disabled{opacity:.5;cursor:wait}.purchase-format{font-family:var(--mono);font-size:8px;letter-spacing:.07em;color:var(--sub);margin-top:16px;line-height:1.7}
.cart-link{display:flex;gap:8px;width:auto}.cart-count{min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;background:var(--fg);color:var(--bg);font-size:10px;letter-spacing:0}
#product-cart{margin:0 0 0 auto;width:min(420px,100vw);max-width:100vw;height:100svh;max-height:100svh;border:0;border-left:1px solid var(--line);padding:0;background:var(--bg);color:var(--fg);box-shadow:-15px 0 60px #0003}
#product-cart[open]{display:flex;flex-direction:column;animation:cart-enter .25s ease-out}@keyframes cart-enter{from{transform:translateX(35px);opacity:.5}to{transform:translateX(0);opacity:1}}
#product-cart::backdrop{background:#0006;backdrop-filter:none}.product-cart-header{padding:24px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.product-cart-header h2{font-family:var(--mono);font-size:12px;letter-spacing:.16em;font-weight:400;text-transform:uppercase}.product-cart-header form{margin:0}.cart-close{width:36px;height:36px;border:1px solid var(--line);background:none;color:var(--fg);font-size:23px;line-height:1}.cart-close:hover{background:var(--fg);color:var(--bg)}
.cart-items{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 28px}.cart-item{display:flex;justify-content:space-between;gap:22px;padding:20px 0;border-bottom:1px solid var(--line)}.cart-item>div{display:flex;flex-direction:column;gap:7px}.cart-item>div:first-child{min-width:0}.cart-item strong{font-size:15px;line-height:1.4}.cart-item>div:first-child>span{font-family:var(--mono);font-size:10px;line-height:1.6;color:var(--sub)}.cart-item>div:last-child{text-align:right;flex-shrink:0;font-family:var(--mono);font-size:14px}.cart-item button{font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:none;border:0;padding:3px 0;text-decoration:underline;text-underline-offset:3px;color:var(--sub)}
.cart-empty{padding:40px 28px;text-align:center;color:var(--sub);font-size:14px}.product-cart-footer{padding:22px 28px calc(26px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;flex-direction:column;gap:16px}.cart-total{display:flex;justify-content:space-between;align-items:baseline;font-family:var(--mono)}.cart-total>span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--sub)}.cart-total>strong{font-size:22px}.cart-checkout{display:flex;justify-content:center;gap:10px;padding:16px 20px;background:var(--fg);color:var(--bg);font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase}.cart-full{align-self:center;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;color:var(--sub)}
#cart-status:not(.sr-only),.cart-fallback{padding:18px 22px;font-size:13px;text-align:center;background:var(--bg);color:var(--fg)}
@media(max-width:760px){.included-label{margin-top:22px;font-size:9px}.product-features{gap:11px;margin-top:13px}.product-features li{font-size:13px}.purchase-row{gap:20px;margin-top:24px}.purchase-row>strong{font-size:32px}.add-cart-button,.edition-offer>.add-cart-button{padding:15px 23px;font-size:10px}.purchase-format{font-size:7px;margin-top:13px}.commerce-actions{gap:12px}}
@media(max-width:380px){.header-product{max-width:82px;text-align:center;line-height:1.3}.cart-link{gap:5px}.commerce-actions{gap:9px}.purchase-row{gap:18px}.product-cart-header{padding:20px}.cart-items{padding-inline:20px}.product-cart-footer{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){#product-cart[open]{animation:none}}

.preview-continuation{margin-top:22px}
/* The same four-across, horizontally scrolling preview strip used by the sets. */
.hero-cover{min-width:0}.hero-sheet{position:relative}.hero-preview{position:relative;display:block;aspect-ratio:1391/1800;background:#fff;box-shadow:0 15px 35px #0002;border:1px solid rgba(var(--ink),.2)}.hero-preview>img{width:100%;height:100%;object-fit:contain;object-position:top center}.hero-preview .paper-expand{width:36px;height:36px;top:10px;right:10px}
.hero-preview-strip{position:relative;display:flex;gap:8px;max-width:100%;margin-top:18px;padding:2px 2px 10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:rgba(var(--ink),.38) rgba(var(--ink),.08)}.hero-preview-strip::-webkit-scrollbar{height:6px}.hero-preview-strip::-webkit-scrollbar-track{background:rgba(var(--ink),.08)}.hero-preview-strip::-webkit-scrollbar-thumb{background:rgba(var(--ink),.38);border-radius:99px}
.hero-preview-thumb{position:relative;display:block;flex:0 0 calc((100% - 24px)/4);min-width:44px;aspect-ratio:3/4;overflow:hidden;background:#fff;border:1px solid rgba(var(--ink),.2);opacity:.58;scroll-snap-align:center;transition:opacity .18s,border-color .18s}.hero-preview-thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}.hero-preview-thumb>span{position:absolute;left:3px;right:3px;bottom:3px;padding:3px 2px;background:var(--fg);color:var(--bg);font-family:var(--mono);font-size:7px;line-height:1;letter-spacing:.07em;text-align:center}.hero-preview-thumb:hover{opacity:.84}.hero-preview-thumb[aria-current]{opacity:1;border-color:var(--fg)}.hero-preview-thumb:focus-visible{outline-offset:-3px}
.hero-preview-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}.hero-preview-tools>span{font-family:var(--mono);font-size:8px;letter-spacing:.08em;color:var(--sub)}.hero-page-nav{width:44px;height:36px;display:grid;place-items:center;border:0;background:none;color:var(--fg);padding:0}.hero-page-nav:disabled{opacity:.2}.hero-page-nav:not(:disabled):hover{background:var(--soft)}
@media(max-width:760px){.hero-cover{width:min(100%,300px)}.hero-preview-strip{margin-top:16px}.hero-page-nav{height:44px}}

/* The supplied letter assembly and perspective-card effects, in Euclid's theme. */
.feature-story{position:relative;background:var(--bg);border-top:1px solid var(--line)}
.feature-stage{padding:30px 0}
.feature-header,.feature-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;color:var(--sub)}
.feature-header h2{font-family:var(--mono);font-size:10px;font-weight:400;letter-spacing:.12em;text-transform:uppercase}
.feature-header>span{font-size:8px}
.feature-panel{padding:75px 0;text-align:center;border-bottom:1px solid var(--line)}
.feature-panel:last-child{border-bottom:0}
.feature-panel .eyebrow{font-size:9px;letter-spacing:.18em}
.feature-panel h3{margin-top:25px;font-size:clamp(28px,4.3vw,62px);font-weight:800;letter-spacing:-.045em;line-height:1.16;text-transform:uppercase}
.feature-line{display:block;perspective:900px}
.feature-letters{display:block;transform-style:preserve-3d}
.feature-word{display:inline-block;white-space:nowrap;transform-style:preserve-3d}
.feature-character{display:inline-block;white-space:pre;transform-origin:center;backface-visibility:hidden}
.feature-detail{max-width:47ch;margin:27px auto 0;font-size:14px;line-height:1.8;color:var(--sub);text-wrap:pretty}
.feature-footer{display:none;margin-top:25px;font-size:8px}
.feature-progress{display:flex;gap:6px;width:180px}
.feature-progress>span{height:2px;flex:1;background:var(--line);overflow:hidden}
.feature-progress i{display:block;height:100%;background:var(--fg);transform:scaleX(var(--segment,0));transform-origin:left}
.feature-scroll-arrow{display:inline-block;margin-left:12px;font-size:15px}
.js-motion .feature-story{height:850svh}
.js-motion .feature-stage{position:sticky;top:var(--header);height:calc(100svh - var(--header));min-height:390px;display:flex;flex-direction:column;overflow:clip}
.js-motion .feature-panels{position:relative;flex:1;min-height:0}
.js-motion .feature-panel{position:absolute;inset:0;padding:25px 0;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:var(--feature-opacity,0);transform:translateY(var(--feature-y,0px));pointer-events:none}
.js-motion .feature-panel h3{max-width:100%}
.js-motion .feature-footer{display:flex}
.purchase-finale{position:relative;border-top:1px solid var(--line);background:var(--bg)}
.finale-stage{padding:55px 22px 60px;display:flex;flex-direction:column;align-items:center;gap:28px;overflow:clip}
.finale-heading{text-align:center;position:relative;z-index:2}
.finale-heading h2{margin-top:12px;font-size:clamp(30px,3.4vw,46px);font-weight:800;letter-spacing:-.045em}
.finale-heading>p:last-child{margin-top:12px;font-size:13px;color:var(--sub);line-height:1.6}
.finale-perspective{perspective:1000px;width:100%;display:grid;place-items:center;flex:1;min-height:0;padding:14px 0 28px}
.finale-book{position:relative;width:min(350px,calc((100svh - 390px)*.7729));min-width:165px;max-width:72vw;aspect-ratio:1855/2400;transform-origin:50% 50%;transform-style:preserve-3d;background:white;box-shadow:1px 2px #c7c4bb,3px 5px #d6d3ca,5px 8px #b5b1a6,0 12px 20px #0002,0 35px 45px #0002,0 65px 70px #0001}
.finale-book>img{width:100%;height:100%;object-fit:contain;border:1px solid #d5d3ca}
.finale-purchase{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:40px;width:100%}
.finale-price{display:flex;flex-direction:column;gap:8px}
.finale-price strong{font-size:34px;letter-spacing:-.045em;line-height:1}
.finale-price span{font-family:var(--mono);font-size:7px;letter-spacing:.06em;color:var(--sub)}
.buy-return{min-width:150px;min-height:50px}
.js-motion .purchase-finale{height:175svh}
.js-motion .finale-stage{position:sticky;top:var(--header);height:calc(100svh - var(--header));min-height:510px;padding-block:48px 35px;gap:14px}
.js-motion .finale-heading{transform:translateY(var(--finale-title-y,0px))}
.js-motion .finale-book{transform:translateY(var(--finale-y,28px)) rotateX(var(--finale-rotate,20deg)) scale(var(--finale-scale,1.05));will-change:transform}
#purchase{scroll-margin-top:0}
@media(max-width:760px){
 .feature-stage{padding:24px 0}
 .feature-header h2{font-size:8px;letter-spacing:.07em}
 .feature-header>span{font-size:7px}
 .feature-panel{padding:60px 0}
 .feature-panel h3{font-size:clamp(22px,6.1vw,36px);letter-spacing:-.04em;line-height:1.25;margin-top:22px}
 .feature-panel .eyebrow{font-size:8px}
 .feature-detail{font-size:12px;line-height:1.8;max-width:34ch;margin-top:25px}
 .feature-footer{font-size:7px;gap:14px}
 .feature-footer>span:last-child{font-size:0}
 .feature-scroll-arrow{font-size:17px;margin:0}
 .feature-progress{width:140px}
 .js-motion .feature-story{height:800svh}
 .finale-stage{padding:45px 22px;gap:20px}
 .js-motion .finale-stage{padding-block:44px 30px;gap:12px}
 .finale-heading .eyebrow{font-size:8px}
 .finale-heading h2{font-size:32px}
 .finale-heading>p:last-child{font-size:12px}
 .finale-book{width:min(300px,72vw,calc((100svh - 355px)*.7729))}
 .finale-purchase{gap:24px}
 .finale-price strong{font-size:30px}
 .finale-price span{max-width:18ch;line-height:1.6;font-size:7px}
 .buy-return{min-width:135px}
}
@media(max-height:620px){
 .js-motion .feature-story,.js-motion .purchase-finale{height:auto}
 .js-motion .feature-stage,.js-motion .finale-stage{position:relative;top:auto;height:auto;min-height:0}
 .js-motion .feature-panel{position:relative;inset:auto;padding:65px 0;opacity:1;transform:none}
 .js-motion .feature-character{transform:none!important}
 .js-motion .feature-footer{display:none}
 .js-motion .finale-book{transform:none;will-change:auto}
 .finale-book{width:230px}
}

/* Prominent section names, with compact numbered markers alongside. */
.gallery-heading h2.numbered-heading,.section-heading h2.numbered-heading,.sample-heading h2.numbered-heading{display:flex;align-items:baseline;gap:18px;margin:0;font-family:Archivo,sans-serif;font-size:clamp(24px,2.65vw,30px);font-weight:600;line-height:1.25;letter-spacing:-.025em;color:var(--fg)}
.numbered-heading .section-number{flex:none;font-family:var(--mono);font-size:10px;font-weight:400;line-height:1.7;letter-spacing:.12em;color:var(--sub)}
.numbered-heading .section-name{min-width:0;text-wrap:balance}
.contents-section .section-heading{align-items:flex-start}
@media(max-width:760px){.gallery-heading h2.numbered-heading,.section-heading h2.numbered-heading,.sample-heading h2.numbered-heading{font-size:clamp(20px,5.4vw,24px);gap:12px}.numbered-heading .section-number{font-size:9px}}
