/* Japanese typesetting and token structure adapted from html-design/assets/base.css. */
:root{--ink:#262925;--ink-sub:#62655e;--ink-faint:#797b72;--paper:#faf9f5;--paper-warm:#efeee7;--line:#d6d7cd;--line-soft:#e7e7df;--accent:#536049;--accent-soft:#e8ebdf;--ok:#375e4b;--ok-soft:#e4eee7;--font-jp:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;--sp-1:8px;--sp-2:16px;--sp-3:24px;--sp-4:32px;--sp-6:48px;--sp-8:64px;--radius:4px;--ease:cubic-bezier(.22,1,.36,1)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:26px}body{margin:0;font-family:var(--font-jp);font-feature-settings:"palt";line-height:1.8;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{border:0;background:none}h1,h2,h3,.card-title,.card-text{text-wrap:balance}p,li,td{text-wrap:pretty}h1,h2,h3,p{margin:0}.u{display:inline-block}[hidden]{display:none!important}.wrap{width:min(1280px,calc(100% - 96px));margin-inline:auto}.eyebrow{font:11px/1.6 var(--font-mono);letter-spacing:.15em;color:var(--ink-sub)}.skip{position:fixed;left:20px;top:-70px;background:var(--ink);color:var(--paper);padding:10px 20px;z-index:100}.skip:focus{top:16px}.masthead{height:105px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{display:flex;gap:11px;align-items:center;font-size:13px;font-weight:650;letter-spacing:.12em;text-decoration:none}.edition{font:10px var(--font-mono);letter-spacing:.04em;color:var(--ink-faint);margin-left:12px}.mark{width:22px;height:23px;display:flex;gap:3px;align-items:center;transform:skewY(-12deg)}.mark i{width:4px;height:22px;background:var(--ink);display:block}.mark i:nth-child(2){height:15px}.reference{font-size:12px;color:var(--ink-sub);text-decoration:none}.reference span{margin-left:10px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:72px;padding-block:70px 90px}.hero-copy{padding-top:18px}.hero h1{font-size:clamp(44px,4.6vw,68px);font-weight:750;letter-spacing:-.06em;line-height:1.35;margin-top:24px}.hero-description{font-size:14px;line-height:2;color:var(--ink-sub);margin-top:26px}.hero-link{display:inline-flex;gap:55px;align-items:center;font-size:12px;font-weight:600;text-decoration:none;margin-top:30px;border-bottom:1px solid var(--ink);padding:0 0 9px}.hero-link span{transition:transform .4s var(--ease)}.hero-link:hover span{transform:translateY(4px)}.hero-art{position:relative;min-height:380px;overflow:hidden;background:#eceee5;display:flex;flex-direction:column;justify-content:space-between;padding:24px}.art-label,.art-caption{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;font:9px/1.6 var(--font-mono);letter-spacing:.09em;color:#5e6657}.art-caption{align-items:flex-end}.tiny-cross{font-size:28px;font-weight:300;line-height:1}.art-caption>span:nth-child(2){margin-left:auto;margin-right:35px}.art-coordinate{font-size:9px}.sculpture{position:absolute;inset:20px;perspective:900px;display:grid;place-items:center}.sculpture-body{position:relative;width:220px;height:220px;transform-style:preserve-3d;animation:sculpture 16s ease-in-out infinite}.sculpture-body i{display:block;position:absolute;inset:0;border:1px solid #526049;border-radius:48%;background:linear-gradient(125deg,#cad2bd20,#6e7d5830);transform:rotateY(calc(var(--i)*15deg));backface-visibility:visible}.sculpture-shadow{position:absolute;bottom:26px;width:170px;height:14px;border-radius:50%;background:#505d391b;filter:blur(10px);animation:sculpture-shadow 8s ease-in-out infinite}.collection{scroll-margin-top:30px}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 0 27px;border-top:1px solid var(--line)}.section-heading h2{font-size:22px;font-weight:650;letter-spacing:-.03em;margin-top:7px}.total-count{font:38px/1 Georgia,serif;letter-spacing:-.08em}.total-count span{font:10px var(--font-mono);letter-spacing:.07em;margin-left:9px;color:var(--ink-sub)}.collection-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 0;border-block:1px solid var(--line)}.filters{display:flex;gap:4px;overflow:auto;scrollbar-width:none}.filters button{white-space:nowrap;padding:8px 13px;font-size:12px;border-radius:2px;transition:background .2s}.filters button:hover{background:var(--paper-warm)}.filters button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.filters button span{font:9px var(--font-mono);opacity:.6;margin-left:5px}.utility{display:flex;gap:20px;align-items:center}.search-label{display:flex;align-items:center;gap:8px}.search-label svg{width:15px;height:15px;stroke:var(--ink-sub);fill:none;stroke-width:1.5}.search-label input{border:0;background:none;min-width:0;width:120px;font-size:12px;color:var(--ink);padding:6px 0;border-bottom:1px solid transparent}.search-label input:focus{outline:none;border-bottom-color:var(--ink)}.icon-control{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px}.pause-icon{font-size:14px;line-height:1}.sub-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:19px 0 21px;font-size:10px;color:var(--ink-sub)}.sub-toolbar p{font-size:11px}.toolbar-divider{margin-inline:10px;color:var(--line)}.view-options{display:flex;gap:22px;align-items:center;font-size:11px}.view-options button{padding:0;color:var(--ink-sub)}.view-options button[aria-pressed=true]{color:var(--ink);text-decoration:underline;text-underline-offset:4px}.view-options button span{margin-left:7px;font:10px var(--font-mono)}.reduce-label{display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.reduce-label input{accent-color:var(--accent);width:12px;height:12px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}.study{min-width:0;position:relative}.preview{height:246px;position:relative;overflow:hidden;background:var(--paper-warm);border-radius:var(--radius);isolation:isolate}.preview-open{position:absolute;inset:0;width:100%;z-index:4;text-align:left}.preview-open:focus-visible{outline-offset:-5px}.study[data-mode=hover] .preview-open{inset:auto 0 0 auto;width:100%;height:36px;background:linear-gradient(transparent,#0000000d);color:transparent}.study[data-mode=scroll] .preview-open{inset:auto 0 0 auto;width:34px;height:34px}.preview-open::after{content:"↗";position:absolute;right:13px;bottom:10px;color:var(--ink-sub);font-size:15px;opacity:0;transform:translate(-3px,3px);transition:opacity .25s,transform .25s}.preview:hover .preview-open::after,.preview-open:focus-visible::after{opacity:1;transform:none}.stage{width:100%;height:100%;position:relative}.card-meta{display:flex;justify-content:space-between;align-items:flex-start;padding-top:14px;gap:10px}.card-number{font:10px var(--font-mono);color:var(--ink-faint);margin-right:8px;letter-spacing:.02em}.card-title{font-size:14px;font-weight:650}.card-title button{padding:0;line-height:1.6;text-align:left}.card-technique{font:11px/1.7 var(--font-jp);color:var(--ink-sub);margin-top:5px}.favorite-button{padding:0 2px;min-width:28px;min-height:28px;display:grid;place-items:center}.favorite-button svg{width:17px;height:17px;stroke:var(--ink-sub);fill:none;stroke-width:1.2}.favorite-button[aria-pressed=true] svg{fill:var(--accent);stroke:var(--accent)}.card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:9px;font-size:11px;color:var(--ink-sub)}.mode-label{display:flex;align-items:center;gap:5px}.mode-dot{width:4px;height:4px;border-radius:50%;background:#899473}.cost-marker{font:9px var(--font-mono);letter-spacing:.03em;display:flex;gap:4px;align-items:center}.cost-marker i{display:inline-block;width:3px;height:7px;border-radius:1px;background:var(--line)}.cost-marker i.on{background:var(--ink-faint)}.empty{text-align:center;padding-block:70px;color:var(--ink-sub)}.empty button{border-bottom:1px solid var(--ink-sub);padding:7px 0;margin-top:12px;font-size:12px}.notes{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:32px;margin-top:80px;padding:42px 0 58px;border-top:1px solid var(--line)}.notes h2{font-size:23px;line-height:1.55;letter-spacing:-.04em;margin-top:15px}.note-number{font:10px var(--font-mono);color:var(--ink-faint)}.note h3{font-size:14px;font-weight:650;margin-top:14px;margin-bottom:12px}.note p{font-size:12px;color:var(--ink-sub);line-height:1.95}.footer{display:flex;gap:20px;justify-content:space-between;border-top:1px solid var(--line);padding-block:25px 35px;font:10px/1.7 var(--font-mono);letter-spacing:.03em}.footer-soft{color:var(--ink-faint)}.footer>a{font:11px var(--font-jp);text-decoration:none}.footer>span:nth-child(2){color:var(--ink-sub)}
dialog{width:min(1060px,calc(100vw - 64px));max-height:calc(100dvh - 56px);padding:25px 30px 30px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);overflow-y:auto}dialog::backdrop{background:#19201988;backdrop-filter:blur(7px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.close-button{font:26px/1 var(--font-jp);padding:0 4px;min-height:32px;min-width:32px}.dialog-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:30px}.detail-left{min-width:0}.detail-preview{height:285px;background:var(--paper-warm);border-radius:var(--radius);overflow:hidden;position:relative}.detail-preview-controls{display:flex;justify-content:space-between;align-items:center;padding-top:9px;font-size:10px;color:var(--ink-sub)}.detail-preview-controls button{font-size:11px;border-bottom:1px solid var(--line)}.detail-left h2{font-size:24px;line-height:1.5;margin-top:20px;font-weight:650;letter-spacing:-.03em}.detail-left>p{font-size:13px;line-height:1.95;color:var(--ink-sub);margin-top:10px}.detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.detail-tags span{font:10px var(--font-mono);padding:3px 7px;background:var(--paper-warm);border-radius:2px;color:var(--ink-sub)}.detail-facts{margin:22px 0 0;font-size:11px;line-height:1.8;border-top:1px solid var(--line)}.detail-facts>div{display:grid;grid-template-columns:100px 1fr;gap:10px;border-bottom:1px solid var(--line-soft);padding:9px 0}.detail-facts dt{color:var(--ink-sub)}.detail-facts dd{margin:0}.detail-left>.compat-note{font-size:10px;line-height:1.9;margin-top:12px}.download-button{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:18px;padding:10px 14px;background:var(--ink);color:var(--paper);font-size:12px;border-radius:2px}.detail-right{min-width:0}.code-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.code-tabs{display:flex;gap:16px}.code-tabs button{padding:11px 0;font-size:11px;color:var(--ink-sub);position:relative;white-space:nowrap}.code-tabs button[aria-selected=true]{color:var(--ink);font-weight:650}.code-tabs button[aria-selected=true]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}#copy-code{font-size:11px;padding:5px 9px;border:1px solid var(--line);border-radius:2px}#copy-code.is-done{color:var(--ok);border-color:var(--ok)}#code-panel{height:570px;overflow:auto;background:#efeee8;margin-top:14px;border-radius:4px;scrollbar-width:thin}pre{margin:0;padding:20px;font:11px/1.85 var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere;color:#3e4c43}.code-caption{font-size:10px;color:var(--ink-sub);line-height:1.9;margin-top:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,14px);background:var(--ink);color:var(--paper);padding:10px 20px;font-size:12px;border-radius:4px;opacity:0;pointer-events:none;z-index:20;transition:opacity .25s,transform .25s;max-width:calc(100% - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
/* Gallery controllers affect pseudo-elements as well as ordinary descendants. */
.stage.is-offscreen *,.stage.is-offscreen *::before,.stage.is-offscreen *::after,body.is-paused .stage *,body.is-paused .stage *::before,body.is-paused .stage *::after,body.is-paused .sculpture-body,body.is-paused .sculpture-shadow{animation-play-state:paused!important}body.is-paused .stage *,body.is-paused .stage *::before,body.is-paused .stage *::after{transition:none!important}body.is-reduced .sculpture-body,body.is-reduced .sculpture-shadow{animation:none!important}body.is-reduced .motion *,body.is-reduced .motion *::before,body.is-reduced .motion *::after{animation:none!important;transition:none!important}body.is-reduced{scroll-behavior:auto}body.modal-open{overflow:hidden}body.modal-open .grid .stage *,body.modal-open .grid .stage *::before,body.modal-open .grid .stage *::after{animation-play-state:paused!important}
@keyframes sculpture{0%,100%{transform:rotateX(12deg) rotateY(-20deg) rotateZ(-15deg)}50%{transform:rotateX(-9deg) rotateY(160deg) rotateZ(12deg)}}@keyframes sculpture-shadow{50%{transform:scale(.82);opacity:.6}}
@media(min-width:1500px){.preview{height:270px}}@media(max-width:1100px){.wrap{width:calc(100% - 64px)}.hero{gap:35px;padding-block:55px 65px}.hero-art{min-height:350px}.collection-toolbar{flex-wrap:wrap}.utility{margin-left:auto}.filters{flex:1}.notes{gap:20px}.grid{gap:28px 20px}.preview{height:218px}.edition{display:none}}
@media(max-width:850px){.wrap{width:calc(100% - 40px)}.masthead{height:80px}.hero{gap:22px;padding-block:40px 60px}.hero h1{font-size:46px}.hero-art{min-height:320px;padding:18px}.sculpture-body{width:170px;height:170px}.hero-description{font-size:12px}.filters{flex-basis:100%}.collection-toolbar{gap:12px}.utility{width:100%;justify-content:space-between}.search-label input{width:190px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview{height:245px}.notes{grid-template-columns:repeat(2,1fr)}.footer>span:nth-child(2){display:none}.dialog-layout{gap:20px}.code-tabs{gap:12px}dialog{width:calc(100vw - 32px);padding:20px}.detail-facts>div{grid-template-columns:85px 1fr}#code-panel{height:590px}}
@media(max-width:580px){.hero{grid-template-columns:1fr;gap:34px;padding-block:32px 48px}.hero-copy{padding-top:0}.hero h1{font-size:49px;margin-top:18px}.hero-description{font-size:13px;margin-top:21px}.hero-art{min-height:290px}.sculpture-body{width:190px;height:190px}.hero-link{margin-top:22px}.wordmark{font-size:11px}.reference{font-size:10px}.section-heading h2{font-size:19px}.total-count{font-size:30px}.total-count span{font-size:8px;margin-left:5px}.sub-toolbar{flex-wrap:wrap;gap:12px;padding-block:16px}.view-options{width:100%;justify-content:space-between}.grid{gap:24px 14px}.preview{height:185px}.card-title{font-size:12px}.card-number{font-size:9px;margin-right:5px}.card-technique{font-size:11px}.card-footer{font-size:9px}.cost-marker{font-size:8px}.cost-marker i{width:2px}.favorite-button{min-width:23px;min-height:25px}.card-meta{gap:3px;padding-top:10px}.notes{margin-top:52px;padding-block:30px 40px;gap:26px}.note-intro{grid-column:1/-1}.notes h2{font-size:25px;margin-top:9px}.note h3{font-size:13px}.note p{font-size:11px}.footer{font-size:8px;gap:14px;padding-block:22px 30px}.footer>a{font-size:10px}.footer-soft{display:none}.dialog-layout{grid-template-columns:1fr;gap:26px}.detail-preview{height:260px}dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);padding:16px}.detail-left h2{font-size:23px}#code-panel{height:400px}.code-tabs{gap:20px}}
@media(max-width:380px){.wrap{width:calc(100% - 28px)}.grid{grid-template-columns:1fr}.preview{height:240px}.card-title{font-size:14px}.notes{grid-template-columns:1fr}.hero h1{font-size:43px}.section-heading h2{font-size:17px}}
/* Keep the studies large enough to inspect and operate on a phone. */
@media(max-width:580px){.grid{grid-template-columns:1fr;gap:28px}.preview{height:248px}.card-title{font-size:14px}.card-number{font-size:10px}.card-technique{font-size:11px}.card-footer{font-size:11px}.cost-marker{font-size:9px}.favorite-button{min-width:32px;min-height:32px}.favorite-button svg{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Vol. 02: more categories, with the same keyboard and touch controls. */
.total-count .count-value{font:inherit;letter-spacing:inherit;color:inherit;margin:0}.new-label{display:inline-block;vertical-align:middle;margin-left:7px;padding:1px 5px;border:1px solid #bdc9ad;border-radius:2px;color:#687b56;font:8px/1.6 var(--font-jp);white-space:nowrap}.study[data-mode=interact] .preview-open{inset:auto 0 0 auto;width:34px;height:30px}.collection-toolbar{flex-wrap:wrap}.filters{min-width:0}.utility{margin-left:auto}
.naming-note{margin:-8px 0 20px;color:var(--ink-sub);font-size:11px;line-height:1.9}
@media(min-width:851px){.filters{flex:1 1 700px;flex-wrap:wrap;overflow:visible}}

.detail-left>.detail-technique{font-size:12px;line-height:1.8;color:var(--ink-sub);margin-top:6px}
