html {scroll-padding-top:92px}
body {background:var(--paper,#f6f5f0);color:var(--ink,#24242b)}
body:has(dialog[open]) {overflow:hidden}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible {outline:3px solid #5943b6;outline-offset:4px}
.topbar {position:sticky;top:0;z-index:14;gap:26px;padding:16px 5%;background:#f6f5f0f5;backdrop-filter:blur(12px)}
.global-nav,.intro-ctas,.resource-bar nav {display:flex;align-items:center;gap:24px}
.global-nav {margin-right:auto;margin-left:36px;font-size:13px;font-weight:650}
.global-nav a,.resource-bar a,.text-action {color:inherit;text-decoration:none}
.global-nav a:hover,.resource-bar a:hover,.text-action:hover {text-decoration:underline;text-underline-offset:5px}
main {padding-inline:5%}
.shelf-intro {display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:center;gap:clamp(30px,5vw,86px);padding:clamp(32px,4.5vw,75px) 0}
.section-kicker {display:flex;align-items:center;gap:9px;font-size:10px;font-weight:750;letter-spacing:.16em;margin:0 0 16px}
.section-kicker i {width:8px;height:8px;border-radius:50%;background:#7255db}
.shelf-intro h1 {font-size:clamp(65px,6.4vw,104px);margin:0;line-height:1.05;letter-spacing:-.082em;font-weight:800;white-space:nowrap}
.shelf-intro h1 span {color:#7255db}
.hero-description {font-size:clamp(16px,1.4vw,22px);font-weight:460;line-height:1.65;margin:20px 0 28px;letter-spacing:-.04em}
.intro-ctas .pill {text-decoration:none}.text-action {font-size:13px;font-weight:700;background:none;padding:10px 0}
.display-shelf {position:relative;isolation:isolate;overflow:hidden;height:clamp(275px,25vw,400px);border:1px solid #d0ccd9;border-radius:18px;background:linear-gradient(120deg,#eeebf1 0%,#e4def2 62%,#cfc4e6 100%);box-shadow:inset 0 0 50px #ffffff33}
.shelf-heading {display:flex;align-items:center;justify-content:space-between;padding:20px 24px;font-size:13px;font-weight:750;position:relative;z-index:2}
.shelf-heading small {font-weight:500;color:#51495d;font-size:11px}
.shelf-books {position:absolute;bottom:15.5%;left:9%;right:9%;height:69%;display:flex;align-items:flex-end;justify-content:center;gap:2.6%;perspective:900px;z-index:1}
.book {--cover:#7860d5;--print:#f5edda;--tilt:-7deg;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;overflow:hidden;height:94%;width:30%;max-width:158px;min-width:0;padding:12px 9px 10px 15px;border-radius:2px 5px 4px 2px;color:var(--print);background:linear-gradient(90deg,#24242b4d,#ffffff22 3%,#24242b26 5%,transparent 8%),var(--cover);box-shadow:inset -2px 0 #0002,4px 3px 0 -1px #f1e8ce,5px 4px 0 0 #51455d,8px 7px 11px #31243e30;transform-origin:50% 100%;transform:rotate(var(--tilt));transition:transform .3s ease;cursor:pointer;text-align:left}
.book:hover,.book:focus-visible {z-index:2;transform:translateY(-13px) rotate(0deg)}
.book small,.book em {position:relative;font-style:normal;font-size:clamp(8px,.7vw,10px);font-weight:750;line-height:1.3;letter-spacing:.04em}
.book b {position:absolute;z-index:2;top:22%;left:10%;font:italic 650 clamp(24px,3vw,50px)/1 Georgia,serif;letter-spacing:-.065em}
.spring-book {--cover:#f67b59;--print:#302925;--tilt:-2deg;height:100%}
.stroke-book {--cover:#b8d6c6;--print:#2d483e;--tilt:7deg;height:89%}
.book-illustration {position:absolute;left:16%;right:10%;top:45%;height:34%;pointer-events:none}
.book-illustration i {display:block;position:absolute}
.layers i {width:67%;height:66%;border:2px solid #f3e9db;transform:skew(-14deg,-4deg);background:#7961c4;left:8%;top:0}
.layers i:nth-child(2) {left:15%;top:16%}.layers i:nth-child(3) {left:22%;top:32%;background:#c7b8e5}
.coil {transform:rotate(-16deg)}.coil i {width:79%;height:50%;border-radius:50%;border:2px solid #48372f;left:7%}
.coil i:nth-child(2) {top:12%}.coil i:nth-child(3) {top:24%}.coil i:nth-child(4) {top:36%}.coil i:nth-child(5) {top:48%}.coil i:nth-child(6) {top:60%}
.book-illustration.stroke {top:36%;left:23%;height:56%;color:transparent;-webkit-text-stroke:1.4px #2d5946;font:italic 700 clamp(78px,8vw,124px)/1 Georgia,serif;transform:rotate(12deg);text-shadow:3px 2px #bad7c8,4px 3px #3b6452}
.shelf-ledge {position:absolute;left:4%;right:4%;bottom:12%;height:4%;background:linear-gradient(#fff9eb 20%,#aaa0b0 23%,#c7becb 95%);transform:skewX(-12deg);box-shadow:1px 11px 12px #35233f3b;border-radius:1px}
.library-heading {align-items:center;padding-top:28px}.library-heading h2,.resource-bar h2 {margin:0;font-size:clamp(24px,2.1vw,38px);letter-spacing:-.06em}.library-controls {margin-top:18px;flex-wrap:wrap}
.results-line {margin:14px 0}.gallery {grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px}
.pattern-card {position:relative;overflow:visible;border-radius:10px;background:transparent;border:0;box-shadow:none}
.card-preview {height:clamp(155px,14.5vw,222px);border-radius:10px;border:1px solid #24242b0e}
.card-body {padding:12px 1px 10px}.card-title-row h3 {font-size:clamp(15px,1.15vw,19px);letter-spacing:-.04em}
.card-meaning {margin-top:8px;min-height:0}.card-english {min-height:0}.card-bottom {margin-top:12px}.card-title-row .heart {border:1px solid #d9d5cd;color:#24242b;border-radius:50%;height:32px;width:32px;font:500 20px/1 Inter,sans-serif;background:#fcfbf7}
.card-title-row .heart.chosen {color:white;background:#6248bd;border-color:transparent}
.ref-links {display:flex;flex-wrap:wrap;gap:9px 16px;margin:12px 0;font-size:12px}.ref-links a {color:#553e9f;text-underline-offset:3px}.ref-links[hidden],[hidden] {display:none!important}
.resource-bar {border-block:1px solid var(--line);margin:54px 0 0;padding:35px 0;display:flex;justify-content:space-between;align-items:center;gap:18px}
.resource-bar p {font-size:13px;color:#5b585f;margin:7px 0}.resource-bar nav {flex-wrap:wrap;font-size:12px;font-weight:650}
#collectionDialog {position:fixed;inset:0 0 0 auto;margin:0;width:min(100%,480px);max-width:none;height:100dvh;max-height:100dvh;border-radius:0;border:none;overscroll-behavior:contain;background:#f6f5f0}
#collectionDialog[open] {animation:drawer-in .30s ease-in-out both}
@keyframes drawer-in {from {transform:translateX(100%)} to {transform:translateX(0)}}
#collectionDialog .dialog-top {position:sticky;top:0;background:#f6f5f0;z-index:2;min-height:64px}
#collectionDialog>h2 {margin-top:24px}.collection-layout {grid-template-columns:1fr;gap:20px}.selected-list {max-height:none}
.request-output textarea {min-height:115px;height:135px}.output-actions {flex-wrap:wrap;gap:8px}
#downloadMarkdown {order:-1}.selection-dock {width:min(510px,calc(100% - 24px));padding:11px 14px}
.stage.embedded {height:clamp(390px,57vh,610px);background:#f6f5f0}.study-frame {display:block;width:100%;height:100%;border:0}
.study-art {width:350px;height:205px;display:flex;align-items:center;justify-content:center;gap:8px;color:#332c43;font-size:21px}
.study-art i,.study-art b {font-style:normal;padding:15px;border-radius:7px;background:#f8f7f3;border:1px solid #c8c3cc;font-weight:600}
.study-49 i {writing-mode:vertical-rl;background:#b1a0da;height:135px;transform:rotate(-5deg)}.study-49 i:nth-child(2){background:#f6a58c}.study-49 i:nth-child(3){background:#b5d4c3}
.study-50 {position:relative;background:linear-gradient(90deg,#b7b1d4 50%,#c5d9cc 50%);border-radius:8px}.study-50 i {height:100%;background:#fff;width:3px;padding:0}.study-50 b {position:absolute;border-radius:100%}
.study-51 i:first-child,.study-55 b {background:#6650ae;color:white}.study-52 i {font-size:26px;line-height:1.6}.study-53 strong {font-size:72px}.study-56 {flex-direction:column}
.reduced-motion *, .reduced-motion *::before,.reduced-motion *::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media(max-width:1050px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.global-nav{gap:16px;margin-left:4px}.library-controls{gap:12px}.shelf-books{left:6%;right:6%}}
@media(max-width:760px){.topbar{padding:10px 5%;gap:10px;flex-wrap:wrap}.global-nav{order:3;flex-basis:100%;margin:0;gap:20px;font-size:12px}.top-actions{margin-left:auto}.shelf-intro{grid-template-columns:1fr;gap:22px;padding:30px 0 23px}.shelf-intro h1{font-size:63px}.section-kicker{margin-bottom:12px}.hero-description{font-size:16px;margin:12px 0 16px}.intro-ctas{gap:17px}.display-shelf{height:255px}.shelf-heading{padding:15px 18px}.book b{font-size:29px}.book{padding-left:12px}.book-illustration.stroke{font-size:82px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.card-preview{height:150px}.resource-bar{align-items:flex-start;flex-direction:column}.resource-bar nav{gap:12px 18px}.stage.embedded{height:min(65dvh,530px)}.card-title-row .heart{flex-shrink:0}}
@media(max-width:420px){.card-preview{height:132px}.card-title-row h3{font-size:14px}.top-actions .quiet{font-size:10px}.global-nav{font-size:11px}.display-shelf{height:234px}.shelf-heading small{font-size:10px}.topbar .brand{gap:6px}}
@media(prefers-reduced-motion:reduce){body:not(.motion-enabled) *,body:not(.motion-enabled) *::before,body:not(.motion-enabled) *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Size cover lettering to the printable area of each book at every viewport. */
.book {container-type:inline-size}
.book b {font-size:clamp(15px,26cqw,41px)}
.card-title-row .heart {position:absolute;right:10px;top:10px;z-index:2;width:34px;height:34px;box-shadow:0 2px 5px #29233212}
@media(pointer:coarse){.card-title-row .heart{width:40px;height:40px}}
@media(max-width:420px){.card-title-row .heart{top:6px;right:6px}}
