:root {
  --paper:#f7f3e9;
  --ink:#302b26;
  --muted:#655d50;
  --rose:#a24d3b;
  --ribbon:#a85243;
  --hand:OtoInk,"Hiragino Maru Gothic ProN","Yu Mincho",serif;
  --body:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font:16px/1.8 var(--body);
}
:root[data-ribbon=sage] {--ribbon:#537962}
* {box-sizing:border-box}
body {margin:0}
img {max-width:100%}
a {color:inherit}
button {font:inherit; color:inherit; cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {outline:3px solid #27647a;outline-offset:5px}
[hidden] {display:none!important}
.skip {position:fixed; left:1rem; top:-8rem; z-index:16; padding:.6rem 1rem; background:white}
.skip:focus {top:1rem}
.mast {position:absolute; inset:0 0 auto; pointer-events:none; z-index:8; display:flex; justify-content:space-between; align-items:flex-start; padding:clamp(18px,2.55vw,44px) 4.4vw}
.mast>* {pointer-events:auto}
.shop {display:inline-flex; align-items:center; gap:.65em; text-decoration:none; font:400 clamp(16px,1.35vw,22px)/1.3 var(--hand); letter-spacing:.15em}
.shop img {width:1.7em; height:1.7em}
.toc {position:relative}
.toc summary {list-style:none; display:flex; gap:13px; align-items:center; min-height:38px; cursor:pointer; font:400 15px/1 var(--hand); letter-spacing:.13em}
.toc summary::-webkit-details-marker {display:none}
.toc i {width:24px; height:13px; border-block:1.5px solid currentColor; transform:rotate(-5deg); position:relative}
.toc i::after {content:""; border-top:1.5px solid; position:absolute; inset:4px 0 auto 4px}
.toc nav {position:absolute; top:calc(100% + 9px); right:0; width:max-content; padding:9px 22px; background:#fffcf3; box-shadow:2px 5px 20px #51453024; border:1px solid #cbbfa9}
.toc nav a {display:block; text-decoration:none; padding:.62em .3em; font:15px/1.6 var(--hand)}
.toc nav a+a {border-top:1px dotted #cfc4af}
.toc nav a:hover,.quiet:hover,.colophon a:hover {color:var(--rose)}
.score-passage {position:relative}
.is-score .score-passage {height:220vh; height:220svh}
.score-cover {position:sticky; top:0; isolation:isolate; height:100vh; height:100svh; min-height:400px; width:100%; overflow:hidden; background-color:var(--paper); background-image:radial-gradient(ellipse at 45% 32%,#fffdf370,transparent 65%),linear-gradient(112deg,#e6dfcb22,transparent 34%,#e5decb30)}
.score-cover::after {content:""; position:absolute; inset:0; pointer-events:none; z-index:5; opacity:.21; background-image:url(assets/stock-grain.png); mix-blend-mode:multiply}
.stage,.staff {inset:0; height:100%; width:100%; position:absolute}
.stage {z-index:2; pointer-events:none}
.staff {overflow:visible}
.staff.tall {display:none}
.five-lines,.read-ink {fill:none;stroke-width:1.4;stroke:#aa9b7c;opacity:.68}
.five-lines use:nth-child(even) {stroke:#9b947c;stroke-width:1.1}
.five-lines use:nth-child(4) {stroke:#ab9a83}
.read-ink {stroke:#b15c49; stroke-width:2.1;stroke-dasharray:1;stroke-dashoffset:1;opacity:.87}
.read-point {display:none; fill:#a85142;stroke:#a85142;stroke-width:2.2}
.is-score .read-point {display:block}
.score-note {position:absolute; top:var(--y); left:var(--x); width:var(--nw); max-width:132px; aspect-ratio:1; transform:translate(-50%,-54%) translateY(var(--lift,0px)); pointer-events:none}
.score-note .note-stamp {height:100%; scale:var(--strike-zoom,1); transform:rotate(var(--lean)); transform-origin:50% 72%}
.note-stamp img {width:100%;height:100%;object-fit:contain;display:block}
.is-score:not([data-motion=off]) .note-stamp img {animation:rustle 5.8s ease-in-out infinite alternate; animation-delay:calc(0s - var(--delay)*5); transform-origin:48% 80%}
@keyframes rustle {0%,16% {transform:rotate(-3deg)} 84%,100% {transform:rotate(4deg)}}
.cover-title {position:absolute; z-index:4; left:35.35%; top:12.8%; height:37%; display:flex; align-items:flex-start; flex-direction:row-reverse; gap:clamp(9px,1.1vw,19px)}
.cover-title h1 {margin:0; height:100%; line-height:0}
.cover-title h1 img {height:100%; width:auto; max-width:none; mix-blend-mode:multiply}
.cover-title p {writing-mode:vertical-rl; margin:1.2em 0 0; font:400 clamp(13px,1.1vw,19px)/1.2 var(--hand); letter-spacing:.19em}
.grove {position:absolute; z-index:1; width:min(31vw,600px); height:auto; left:-3.5%; bottom:2.2%; transform:translateY(var(--forest-shift,0px)); pointer-events:none}
.soloist {position:absolute; z-index:3; width:min(29.8vw,43vh,490px); width:min(29.8vw,43svh,490px); right:17.5%; bottom:4.9%; transform:translateY(var(--child-shift,0px))}
.soloist img {width:100%; height:auto; display:block}
.sound-word {position:absolute; z-index:3; right:12.5%; bottom:32%; margin:0; color:#805f42; font:400 clamp(14px,1.35vw,23px)/1.3 var(--hand); letter-spacing:.14em; transform:rotate(-11deg)}
.cover-bottom {position:absolute; inset:auto 4.4% 2.7%; display:flex; align-items:center; gap:18px; z-index:6; pointer-events:none}
.cover-bottom>* {pointer-events:auto}
.scroll-link {margin-left:29%; display:inline-flex;align-items:center;gap:12px; color:#595144; text-decoration:none; font:13px/1.4 var(--hand);letter-spacing:.13em}
.scroll-link i {display:grid;place-items:center; width:30px; height:33px; border-left:1px solid #a99a7d; font:16px/1 var(--body)}
.quiet {background:none; border:0; padding:9px 0; font:13px/1.6 var(--body); letter-spacing:.07em}
.animation-skip {color:var(--muted); font-size:12px}
.motion-toggle {margin-left:auto; display:inline-flex; align-items:center;gap:.65em;color:#584e43;font-size:12px}
.motion-toggle i {width:8px; height:11px; border-inline:2px solid currentColor}
[data-motion=off] .motion-toggle i {width:0;height:0;border:5px solid transparent;border-left:8px solid currentColor;border-right:0}
.is-opening .five-lines use {stroke-dasharray:1;animation:draw-lines 1.55s cubic-bezier(.19,.65,.35,1) both}
.is-opening .score-note .note-stamp {animation:print-stamp .8s var(--delay) cubic-bezier(.2,.8,.29,1) both}
.is-opening .soloist img {animation:photo-enter 1.25s .18s ease-out both}
@keyframes draw-lines {from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes print-stamp {from{opacity:0;transform:translateY(16px) scale(.64) rotate(-17deg)} 70%{opacity:1;transform:translateY(-4px) scale(1.04) rotate(var(--lean))}to{transform:translateY(0) scale(1) rotate(var(--lean))}}
@keyframes photo-enter {from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:translateY(0)}}
.story {padding:clamp(76px,9vw,165px) max(8vw,calc((100vw - 1260px)/2)); display:grid; grid-template-columns:1.08fr 1fr; gap:clamp(34px,6.5vw,120px); align-items:center; background:#e7e8dc}
.story-photo {margin:0; position:relative; transform:rotate(-2deg); padding:9px 9px clamp(13px,1.6vw,26px); background:#f9f6ee; box-shadow:3px 6px 12px #554b3b21}
.story-photo::before {content:"";position:absolute; top:-8px;left:44%;width:17%;height:17px;transform:rotate(5deg);background:#bdad78a1}
.story-photo img {display:block;width:100%;height:auto;aspect-ratio:1.27;object-fit:cover}
.paper-label {font:600 12px/1.6 var(--body);letter-spacing:.18em;color:var(--rose); display:flex; align-items:center;gap:1em;margin:0 0 16px}
.paper-label::before {content:"";width:28px;height:6px;border-block:1px solid currentColor;transform:skewX(-14deg)}
.story h2,.gift h2 {margin:0 0 .38em;font:400 clamp(38px,4.15vw,73px)/1.45 var(--hand);letter-spacing:.04em}
.story-copy>p:not(.paper-label),.gift-copy>p:not(.paper-label,.price) {margin:1em 0 0;font-size:clamp(14px,1.05vw,18px);line-height:2.2;letter-spacing:.04em}
.gift {overflow:hidden;background:var(--paper);padding:clamp(64px,8vw,140px) 0 clamp(85px,10vw,175px)}
.gift-inner {max-width:1480px; width:85%; margin:auto;display:grid;grid-template-columns:.82fr 1.2fr;gap:3%;align-items:center}
.gift-art {position:relative;isolation:isolate;aspect-ratio:1.5;min-width:0}
.gift-box {position:absolute;z-index:1;inset:auto 3% -4% auto;width:68%;height:auto;transform:rotate(3deg)}
.ties {position:absolute;inset:0;width:100%;height:100%;z-index:3;overflow:visible}
.arrival {fill:none;stroke:#a45d4a;stroke-width:1.7;opacity:.83}
.arrival:nth-child(2) {stroke:#557c79}
.arrival:nth-child(3) {stroke:#ac873d}
.tie-beads {fill:#ac5a48}
.tie-beads ellipse:nth-child(2) {fill:#567e7b}
.tie-beads ellipse:nth-child(3) {fill:#a8873e}
.tie-beads {display:none}
.is-score .tie-beads {display:inline}
.ribbon-knot {stroke:var(--ribbon);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:var(--knot,0)}
.parcel-tag {position:absolute;left:63.5%;top:16.5%;width:26%;height:13%;background:#e6cc98;clip-path:polygon(10% 0,100% 0,100% 100%,10% 100%,0 50%);z-index:2;display:grid;place-items:center;transform:rotate(12deg);transform-origin:0 0;color:#56432a;font:clamp(10px,1vw,17px)/1.4 var(--hand);letter-spacing:.1em}
.price {font:400 clamp(25px,2.15vw,38px)/1.5 var(--hand);margin:.7em 0 .4em;letter-spacing:.055em}
.price span {font:400 .47em/1.5 var(--body)}
.gift-trigger,.wrap-done {background:var(--ink);color:#fff9e9;border:1px solid var(--ink);padding:14px 24px;line-height:1.55;font-size:15px;letter-spacing:.07em}
.gift-trigger span {margin-left:1.15em}
.gift-trigger:hover,.wrap-done:hover {background:#564735}
.foot {padding:clamp(34px,4.5vw,80px) 7.5%;border-top:1px solid #c9bdab;display:flex;align-items:center;justify-content:space-between;gap:30px;background:#f0ece0}
.foot p {font-size:12px;color:#61594c;line-height:1.9}
.colophon {display:grid; justify-items:end;gap:8px}
.colophon a {font:14px/1.5 var(--hand);text-underline-offset:4px}
.wrap-dialog {width:min(450px,calc(100% - 32px));padding:clamp(22px,4vw,38px);max-height:90vh;max-height:90svh;overflow:auto;border:1px solid #b1a18c;color:var(--ink);background:#fcf8ec;box-shadow:0 14px 65px #30251f4d}
.wrap-dialog::backdrop {background:#332c2490}
.wrap-head {display:flex; align-items:center;justify-content:space-between;gap:12px}
.wrap-head h2 {font:30px/1.4 var(--hand);margin:0}
.wrap-dialog p,.ribbons {font-size:14px}
.wrap-close {border:0;background:none;font-size:28px;width:38px;height:38px;line-height:1.1}
.wrap-sample {padding:28px 15px;background:#eee6d6;margin:18px 0}
.wrapped-box {background:linear-gradient(160deg,#debd8d,#ceae76);box-shadow:3px 4px 0 #b69967,5px 8px 12px #61513940; transform:rotate(-5deg);width:145px;height:93px;margin:auto;position:relative}
.wrapped-box::before,.wrapped-box::after {content:"";position:absolute;background:var(--ribbon)}
.wrapped-box::before {width:10px; height:100%;left:32%;top:0}
.wrapped-box::after {width:100%;height:8px;left:0;top:43%}
.wrapped-box i,.wrapped-box b {position:absolute; width:30px;height:18px;border:4px solid var(--ribbon);border-radius:65% 60% 5% 60%;left:16%;top:28%;z-index:1;transform:rotate(17deg)}
.wrapped-box b {left:33%;transform:scaleX(-1) rotate(17deg)}
.wrapped-box span {position:absolute;bottom:8%;right:8%;font:12px var(--hand)}
.ribbons {border:0;padding:0;margin:0 0 20px;display:flex;gap:1em;flex-wrap:wrap}
.ribbons legend {font-weight:bold;padding:0;margin-bottom:7px}
.ribbons label {cursor:pointer}
.ribbons input {accent-color:var(--ribbon)}
@media(min-aspect-ratio:21/10) and (min-width:721px) {.cover-title {height:43%;top:9%}.grove {width:26vw;bottom:-5%}.soloist{right:17%;bottom:2%}}
@media(max-width:720px) {
 .mast {padding:17px 5.4vw}.shop{font-size:16px}.toc summary {min-height:30px;font-size:14px}
 .is-score .score-passage{height:202vh;height:202svh}
 .staff.wide{display:none}.staff.tall{display:block}
 .cover-title {left:auto;right:14%;top:13.4%;height:30.5%;gap:10px}
 .cover-title p {font-size:13px;letter-spacing:.15em;margin-top:.7em}
 .score-note {width:var(--nm);max-width:87px}
 .grove {width:47%;left:-10.5%;bottom:7.2%}
 .soloist {width:min(55vw,31svh);bottom:8.5%;right:6.5%}
 .sound-word {right:8%;bottom:47.5%;font-size:14px}
 .cover-bottom {inset:auto 5.4% 2.7%;gap:10px}
 .scroll-link {margin:0;font-size:12px;gap:6px}.scroll-link i{width:20px;height:25px}
 .motion-toggle {letter-spacing:.02em;font-size:11px}.animation-skip{font-size:11px}
 .story {padding:72px 8% 60px;grid-template-columns:minmax(0,1fr);gap:36px}.story-photo {width:91%;margin:0 auto;max-width:440px}.story-photo img {aspect-ratio:1.5}
 .story-copy {width:max-content;min-width:0;max-width:100%;margin:auto}.story h2,.gift h2 {font-size:clamp(34px,8.4vw,50px)}
 .gift {padding:65px 0 45px}.gift-inner {grid-template-columns:1fr;width:84%;gap:22px}.gift-art {width:105%;margin-left:-2%;margin-bottom:16px}
 .foot {display:block;padding:32px 7%}.colophon {display:flex;justify-content:space-between;align-items:center;margin-top:20px}
}
@media(max-height:500px) and (min-aspect-ratio:1/1) {.score-cover {min-height:300px}.mast {padding-block:10px}.cover-title{height:49%;top:9%}.soloist{width:40svh}.grove{width:26%}.cover-bottom{bottom:2%}.scroll-link{margin-left:26%}}
@media(prefers-reduced-motion:reduce) {.is-opening *,.is-score .note-stamp img {animation:none!important}}
[data-motion=off] .score-passage {height:auto}
[data-motion=off] .score-cover {position:relative}
[data-motion=off] .read-point,[data-motion=off] .tie-beads {display:none}

@media(max-width:360px) {.story h2 {font-size:clamp(26px,8.7vw,31px)}}

.barlines {stroke:#a3977e;stroke-width:1.3;fill:none;opacity:.62}
.is-opening .barlines {animation:photo-enter 1s .5s both}
html:not(.is-score) .score-note {left:var(--wx);top:var(--wy)}
@media(max-width:720px) {html:not(.is-score) .score-note {left:var(--tx);top:var(--ty)}}

.tie-guides {opacity:.28}
.arrival {stroke-dasharray:1;stroke-dashoffset:var(--thread,0)}

/* Print the echo behind the original score, leaving an uninked patch for its title. */
.sound-field,.wave-sheet,.big-impressions,.echo-prints {position:absolute; inset:0; width:100%; height:100%; pointer-events:none}
.sound-field {display:none; isolation:isolate; z-index:0; overflow:hidden; mask-image:radial-gradient(ellipse 28% 47% at 40% 30%, transparent 0%, #0002 29%, #000e 66%, #000 85%)}
.is-score[data-motion=on] .sound-field {display:block}
.echo-imprint {position:absolute;top:0;left:0;height:auto;max-width:none;opacity:0;filter:saturate(.9);transform-origin:50% 50%}
.wave-sheet {overflow:visible}
.read-ink {stroke:#a9483a;stroke-width:2.65;opacity:.93}
.score-cover .mast,.score-cover .cover-bottom,.sound-word {text-shadow:0 0 4px var(--paper),0 1px 7px var(--paper)}
.score-cover .toc summary,.score-cover .shop,.cover-bottom button,.cover-bottom a {position:relative;isolation:isolate}
.score-cover .toc summary::before,.score-cover .shop::before,.cover-bottom button::before,.cover-bottom a::before {content:"";pointer-events:none;position:absolute;z-index:-1;inset:-4px -9px;background:var(--paper);opacity:var(--label-paper,0);border-radius:55% 44% 48% 37% / 43% 54% 42% 49%;filter:blur(3px)}
@media(max-width:720px) {.sound-field {mask-image:radial-gradient(ellipse 40% 36% at 76% 28%,transparent 0%,#0002 29%,#000e 78%,#000 98%)}}
@media(prefers-reduced-motion:reduce) {.sound-field {display:none!important}}
