@font-face{font-family:ProofHand;src:url('art/proof-hand.woff2') format('woff2');font-display:optional}
@font-face{font-family:ProofNarrow;src:url('art/proof-narrow.woff2') format('woff2');font-display:swap}
@font-face{font-family:ProofRound;src:url('art/proof-round.woff2') format('woff2');font-display:swap}
[data-font=hand]{--display:ProofHand;--face:LetterKai}
[data-font=narrow]{--display:ProofNarrow;--face:LetterSong}
[data-font=round]{--display:ProofRound;--face:LetterHei}
/* Two separate planes: contact shadow stays on the cloth when the paper lifts. */
.cover .tabletop picture{isolation:auto;perspective:1000px;filter:none}
.cover .tabletop picture:before{mask:none;background:radial-gradient(ellipse 48% 36% at 52% 61%,#210d18 12%,#210d18d9 52%,transparent 100%);inset:2% -3% -6%;transform-origin:40% 80%;animation:note-shadow 12s ease-in-out infinite alternate}
.cover .tabletop picture img{transform-origin:30% 75%;animation:note-rock 12s cubic-bezier(.42,0,.56,1) infinite alternate;filter:drop-shadow(0 1px 0 #dac5a0) drop-shadow(0 1px 0 #ac9473) drop-shadow(.3px 1px .35px #8b745a) drop-shadow(2px 4px 3px #200a1459)}
@keyframes note-rock{0%{transform:translate3d(0,1px,0) rotateX(.3deg) rotateY(-1deg) rotateZ(-.35deg)}100%{transform:translate3d(1px,-3px,5px) rotateX(3.7deg) rotateY(2.6deg) rotateZ(.45deg)}}
@keyframes note-shadow{from{transform:translate(2px,3px) scale(.98);opacity:.62}to{transform:translate(7px,9px) scale(1.02);opacity:.4}}
/* A soft crest crosses the broad value bands, below the stationary nap lines. */
.cover .weft{background:linear-gradient(114deg,transparent 24%,#ffa9960e 37%,transparent 48%,#2209190f 65%,transparent 80%);inset:-5%;width:110%;height:110%;animation:pile-light 19s ease-in-out infinite alternate}
@keyframes pile-light{from{transform:translateX(-3%);opacity:.48}to{transform:translateX(4%);opacity:.98}}
html:not(.fitting) body:not([data-phase="rest"]) .cover .weft,.cover[data-asleep] .weft,.cover[data-asleep] picture:before{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.cover .weft,.cover .tabletop picture:before,.cover .tabletop picture img{animation:none!important}}
/* A handwritten dedication; a short upright title-block; a buoyant offset pair. */
[data-font=hand] .cover .greeting{display:flex;flex-direction:column;align-items:flex-start}
[data-font=hand] .greeting .salute{order:2;align-self:flex-end;margin-top:.95em;letter-spacing:.16em}
[data-font=hand] .cover .greeting h1{font-family:ProofHand,var(--serif);font-size:clamp(4.2rem,6.6vw,7.2rem);margin:0;line-height:.98;letter-spacing:.005em;transform:rotate(-2deg)}
[data-font=hand] .greeting h1 b+b{margin-left:.08em;transform:translateY(-.08em)}
[data-font=hand] h1 em,[data-font=narrow] h1 em,[data-font=round] h1 em{display:none}
[data-font=narrow] .cover .greeting h1{display:flex;align-items:center;gap:.12em;letter-spacing:.045em;margin:.17em 0 0}
[data-font=narrow] h1 b:first-child{writing-mode:vertical-rl;text-orientation:upright;font-size:.39em;letter-spacing:.16em}
[data-font=narrow] h1 b+b{margin:0}
[data-font=round] .cover .greeting h1{letter-spacing:.025em;margin:.18em 0 0}
[data-font=round] h1 b+b{margin-left:.12em;transform:translateY(-.08em) rotate(1.1deg)}
#fitting .archive-faces{font-size:.8rem}.archive-faces summary{cursor:pointer;padding:6px 3px}.archive-faces fieldset{margin-top:4px}
@media(max-aspect-ratio:1/1){[data-font=hand] .cover .greeting h1{font-size:clamp(3.1rem,14vw,5.4rem)}[data-font=hand] .cover .greeting{max-width:max-content}}
@media(max-width:890px){#fitting .fitting-body{grid-template-columns:1fr auto}#fitting .archive-faces{grid-column:1;grid-row:2}#fitting .archive-faces[open]{grid-column:1/-1}.archive-faces[open]+.full{grid-row:3!important}#fitting .full{grid-column:2;grid-row:2}#fitting .archive-faces fieldset{width:100%}.fitting .cover{min-height:calc(100svh - 100px)}}

@media(max-width:890px){#fitting .fitting-body fieldset{padding-left:46px}#fitting legend{font-size:11px}}
