@font-face{font-family:Kalam;src:url(/fonts/kalam.woff2?v=20261115a) format('woff2'),url(/fonts/kalam.ttf?v=20261115a) format('truetype');font-display:swap}
@font-face{font-family:'EB Garamond';src:url(/fonts/garamond.woff2?v=20261115a) format('woff2'),url(/fonts/garamond.ttf?v=20261115a) format('truetype');font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:'EB Garamond';src:url(/fonts/garamond-italic.woff2?v=20261115a) format('woff2');font-weight:400 800;font-style:italic;font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+2010-2027,U+2032-2033,U+20B9,U+2122}
html,body{margin:0;height:100%;background:#f7eedf}
body{overflow:hidden}
body.rec,body.rec *{cursor:none!important}
#stage{transform-origin:0 0}
button{font:inherit;color:inherit}
.ctl{position:absolute;border:none;background:transparent;padding:0;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.ctl .ring{position:absolute;inset:-6px;opacity:0;transition:opacity 150ms;pointer-events:none;overflow:visible}
.ctl:focus-visible .ring{opacity:1}
.ctl .wash{transition:opacity 420ms cubic-bezier(.2,.72,.24,1);opacity:0}
.ctl:hover .wash,.ctl.hov .wash{opacity:1}
.ctl:active .face{transform:translateY(1px) scale(.97)}
.ctl .face{transition:transform 120ms ease-out;position:relative}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* G5 diya, reused */
.sound-toggle{position:absolute;right:40px;top:24px;display:flex;align-items:center;gap:6px;min-width:44px;min-height:44px;height:60px;padding:0 14px 0 6px;border:none;background:transparent;cursor:pointer;z-index:50}
.sound-toggle .ring{position:absolute;inset:0;opacity:0;transition:opacity 150ms}
.sound-toggle:focus-visible{outline:none}.sound-toggle:focus-visible .ring{opacity:1}
.sound-toggle .diya{transition:filter 900ms cubic-bezier(.2,.72,.24,1)}
.sound-toggle .word{position:relative;font-family:Kalam,cursive;font-size:21px;color:#2e2a26;width:150px;height:32px}
.sound-toggle .word span{position:absolute;left:0;right:0;top:2px;text-align:left;white-space:nowrap;transition:opacity 300ms cubic-bezier(.45,.05,.3,1) 200ms,transform 300ms cubic-bezier(.45,.05,.3,1) 200ms}
.sound-toggle[data-lbl="off"] .w-on,.sound-toggle[data-lbl="on"] .w-off{opacity:0;transform:translateY(3px);transition:opacity 180ms cubic-bezier(.45,.05,.3,1),transform 180ms cubic-bezier(.45,.05,.3,1)}
.sound-toggle .help{position:absolute;left:66px;top:56px;width:120px;height:20px;font-family:Kalam,cursive;font-size:14px;color:#83531a;pointer-events:none}
.sound-toggle .help span{position:absolute;left:0;top:0;white-space:nowrap;text-align:left;opacity:0;transform:translateY(2px);transition:opacity 160ms,transform 160ms}
.sound-toggle:hover[data-lbl="on"] .h-on,.sound-toggle:hover[data-lbl="off"] .h-off{opacity:1;transform:none;transition:opacity 240ms 200ms,transform 240ms 200ms}
.sound-toggle .hwash{position:absolute;inset:4px 0;opacity:0;transition:opacity 420ms}.sound-toggle:hover .hwash{opacity:1}
/* C5 scroller, reused */
.scroller{position:absolute;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;outline:none;overscroll-behavior:contain}
.scroller::-webkit-scrollbar{display:none}
.thread{position:absolute;cursor:grab;touch-action:none;outline:none;z-index:6}
.thread.dragging{cursor:grabbing}
.thread .line{stroke-width:2.2;transition:stroke-width 160ms cubic-bezier(.2,.72,.24,1)}
.thread:hover .line,.thread.dragging .line{stroke-width:3.4}
.thread .knot{transition:r 160ms}.thread:hover .knot,.thread.dragging .knot{r:6.5}
.thread .ring{opacity:0;transition:opacity 150ms}.thread:focus-visible .ring{opacity:1}
/* forms */
.field{display:block;font-family:Kalam,cursive;font-size:14px;color:#5a534b;margin:0 0 6px}
.inp{width:100%;box-sizing:border-box;font-family:'EB Garamond',serif;font-size:19px;color:#2e2a26;background:#fbf7ef;border:1.5px solid #2e2a26;border-radius:3px 6px 4px 5px/5px 3px 6px 4px;padding:9px 12px;outline:none}
.inp:focus-visible{box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #2e2a26}
.inp.bad{border-color:#a4543a;background:#fbefe6}
.err{font-family:Kalam,cursive;color:#7a3a20;font-size:17px;min-height:24px;margin:4px 0 10px}
.hand{font-family:Kalam,cursive}
.btnp{font-family:Kalam,cursive;font-size:20px;color:#2e2a26;background:#e9c77a66;border:1.6px solid #2e2a26;border-radius:6px 3px 7px 4px/4px 7px 3px 6px;padding:6px 18px;cursor:pointer;outline:none;transition:background 300ms,transform 120ms}
.btnp:hover{background:#e9c77acc}.btnp:active{transform:translateY(1px) scale(.98)}
.btnp:focus-visible{box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #2e2a26}
.btnp[disabled]{opacity:.5;cursor:default}
.lnk{font-family:Kalam,cursive;color:#2e2a26;background:none;border:none;border-bottom:1.3px solid #2e2a26;padding:2px 0;cursor:pointer;outline:none;text-decoration:none;font-size:15px}
.lnk:hover{background:#e9c77a66}.lnk:focus-visible{box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #2e2a26}

/* rings only while the visitor is using the keyboard */
body:not(.kbd) .ring{opacity:0!important}
body:not(.kbd) .lnk:focus-visible,body:not(.kbd) .btnp:focus-visible{box-shadow:none}

/* skip link: first Tab stop, hidden until focused */
.skip{position:fixed;left:736px;top:14px;width:164px;box-sizing:border-box;text-align:center;z-index:1000;padding:6px 16px;font:18px Kalam,cursive;color:#2e2a26;background:#fbf7ef;border:1.6px solid #2e2a26;border-radius:255px 15px 225px 15px/15px 225px 15px 255px;text-decoration:none;transform:translateY(-140%);opacity:0;pointer-events:none}
.skip:focus{transform:none;opacity:1;outline:none;box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #83531a}

/* audit fixes: visually hidden live text (A22), taller hit area on the small player words (A17), print the text edition (10-04 rule 1) */
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hit{position:relative}.hit::after{content:'';position:absolute;left:-6px;right:-6px;top:-12px;bottom:-12px}
@media print{body>*:not(#plain):not(#print){display:none!important}#print{display:block!important;font:12pt/1.5 'EB Garamond',serif;color:#000}#print h1{font-size:20pt}#print .url{font:10pt Kalam,cursive;color:#333}}
#print{display:none}

/* rough inked controls: the border and wash are drawn in SVG by roughen() in core.js */
.btnp.roughed{border-color:transparent;background:transparent}
.btnp.roughed:hover{background:transparent}.btnp.roughed:hover .rb-wash{fill-opacity:.8}
.btnp.roughed .rb-wash{transition:fill-opacity 300ms}
.inp.roughed{border-color:transparent;background:transparent}
.inp.roughed.bad{background:#fbefe666}
.rough-wrap:has(.inp.bad) .rb-ink{stroke:#a4543a}
.inp.roughed:focus-visible{box-shadow:none}
.rough-wrap:focus-within .rb-ink{stroke-width:2.6}
.reel.spin{animation:reel 4s linear infinite}@keyframes reel{to{transform:rotate(360deg)}}
/* interface text is lowercase everywhere; written content (poems, essays, visitor notes, form input) keeps its own case */
#stage,#plain{text-transform:lowercase}
#stage .case,#stage .case *,#plain .case,#plain .case *,#stage input,#stage textarea{text-transform:none}
#stage button,#plain button,#stage select,#plain select{text-transform:inherit}#stage .case button{text-transform:none}
/* batch 4: leave-a-note wash fades in over 420ms and out over 0.3s; back link = the 'see all 33' link, wash eases in */
.ctl.nb .wash{transition:opacity 300ms ease}.ctl.nb:hover .wash,.ctl.nb.hov .wash,.ctl.nb:focus-visible .wash{opacity:1;transition:opacity 420ms cubic-bezier(.2,.72,.24,1)}
.lnk{transition:background-color 420ms cubic-bezier(.2,.72,.24,1)}
.backlnk{font-size:19px;white-space:nowrap}.backlnk .arr{display:inline-block;transition:transform 420ms cubic-bezier(.2,.72,.24,1)}.backlnk:hover .arr{transform:translateX(-3px)}
.sound-toggle{transition:right 600ms cubic-bezier(.2,.72,.24,1)}body.bookopen .sound-toggle{right:14px}

/* batch 5: contents links inside the open book */
.idxlink{position:absolute;display:block;background:transparent;border:0;padding:0;margin:0;cursor:pointer;border-radius:6px;pointer-events:auto;outline:none;transition:background-color 420ms cubic-bezier(.2,.72,.24,1)}
.idxlink:hover,.idxlink:focus-visible{background:#e9c77a55}
.idxlink:focus-visible{box-shadow:0 0 0 1.5px #2e2a26}

/* batch 7: every control gets at least a 44x44 css px hit area through an invisible centred box; --s is the stage scale, set in fit() */
.lnk::after,.ctl::after,.sound-toggle::after,.hit::after{content:'';position:absolute;left:50%;top:50%;width:max(100%,calc(44px / var(--s,1)));height:max(100%,calc(44px / var(--s,1)));transform:translate(-50%,-50%);background:transparent;clip-path:inset(var(--hct,0px) var(--hcr,0px) var(--hcb,0px) var(--hcl,0px))}
.lnk{position:relative}
/* touch screens: book titles stay visible beside the spine */
@media (hover:none){.spine-lab{opacity:1!important}}

/* batch 7: 44px text targets keep their look: the underline, hover tint and focus ring stay on the words */
.lnk.tap{border-bottom:none;background:none!important;box-shadow:none!important}.lnk.tap>span{display:inline-block;padding:2px 0;transition:background-color 420ms cubic-bezier(.2,.72,.24,1)}.lnk.tap:hover>span{background:#e9c77a66}body.kbd .lnk.tap:focus-visible>span{box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #2e2a26}

/* player buttons sit 41px apart: cap each tap box to that pitch and start it below the seek line, so neighbours never steal each other's taps */
.ctl.pctl::after{top:3px;width:min(max(100%,calc(44px / var(--s,1))),41px);height:min(max(calc(100% - 3px),calc(44px / var(--s,1))),46px);transform:translateX(-50%)}
.lnk.tap::after{display:none}

/* player title: clipped inside the tape window; long lines marquee with a hard clip, no edge fades */
.pname,.pname-layer,.pname-track,.pname-text,.pname-dup{background:transparent;box-shadow:none;filter:none;-webkit-mask-image:none;mask-image:none}
.pname{position:absolute;left:46px;top:11px;width:180px;height:18px;box-sizing:border-box;padding:0 10px;overflow:hidden;pointer-events:none;color:#2e2a26}
.pname-layer{position:absolute;left:10px;right:10px;top:0;height:18px;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-family:Kalam,cursive;font-size:14.5px;line-height:18px;color:inherit;transition:opacity 700ms cubic-bezier(.45,.05,.3,1)}
.pname-layer.is-long{justify-content:flex-start}
.pname-track{display:inline-flex;align-items:center;white-space:nowrap;will-change:transform}
.pname-text,.pname-dup{flex:none;white-space:nowrap}
.pname-layer.is-long.is-reduce .pname-track{max-width:100%;display:block;transform:none}
.pname-layer.is-long.is-reduce .pname-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pname-layer.is-long.is-reduce .pname-dup{display:none}
@media (prefers-reduced-motion: reduce){
 .pname-track{animation:none!important;transform:none!important}
 .pname-layer.is-long{justify-content:flex-start}
 .pname-layer.is-long .pname-track{max-width:100%;display:block}
 .pname-layer.is-long .pname-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .pname-dup{display:none!important}
}

/* QA fix batch: tap44 controls use the same centred 44px box as everything else, so hitcap.js can trim every box to half the gap to its neighbours */
.hit44{position:relative}
.hit44.hit44.hit44::after{display:block;content:'';position:absolute;left:50%;top:50%;width:max(100%,calc(44px / var(--s,1)));height:max(100%,calc(44px / var(--s,1)));transform:translate(-50%,-50%);background:transparent;clip-path:inset(var(--hct,0px) var(--hcr,0px) var(--hcb,0px) var(--hcl,0px))}
.hit44.down.down.down::after{top:0;transform:translateX(-50%)}
/* writing board: a card under the pointer or keyboard comes to the front; positions never change */
.card:hover,.card:focus-visible,.card.hov{z-index:40!important}
/* QA fix: 'see all' fades with the rest of the room while a piece is open */
.seeall{transition:opacity 400ms ease}body.pieceopen .seeall{opacity:0;pointer-events:none!important}
button svg,button svg *{pointer-events:none}
/* say hello popup (batch 8): same sheet as leave a note */
.hl-form .field{font-size:15px;color:#2e2a26;margin:0 0 8px;display:block}.hl-form .hl-sub{color:#5a534b;font-size:14px}.hl-form .hl-req{color:#7a3a20;font-size:13px}
.hl-form .inp{font-size:17px;padding:11px 12px;box-sizing:border-box;width:100%}.hl-form .err{font-size:14px;min-height:18px;margin:4px 0 14px}
.hl-row{display:grid;grid-template-columns:1fr 1fr;gap:24px}.hl-row>div{min-width:0}
.hl-about{border:0;padding:0;margin:0 0 4px;min-width:0}.hl-about legend{padding:0}
.hl-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
.hl-opt{position:relative;display:flex;align-items:center;gap:10px;font-family:'EB Garamond',serif;font-size:17px;color:#2e2a26;padding:6px 6px;margin:0 -6px;border-radius:4px;cursor:pointer;transition:background-color 420ms cubic-bezier(.2,.72,.24,1)}
.hl-opt:hover{background:#e9c77a66}.hl-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.hl-opt .dot{flex:none;width:20px;height:20px}.hl-opt .dot svg{display:block;overflow:visible}.hl-opt .fillp{opacity:0;transition:opacity 220ms}.hl-opt input:checked+.dot .fillp{opacity:1}
body.kbd .hl-opt input:focus-visible~.ot{box-shadow:0 0 0 3px #fbf7ef,0 0 0 5px #2e2a26;border-radius:2px}
.hl-about.bad .dot .ink{stroke:#a4543a}
.hl-acts{display:flex;align-items:center;gap:18px;margin:22px 0 8px}.hl-acts .err{margin:0;flex:1}
/* audit fix (16 nov): when cloudflare asks for a click on say hello, the check sits beside the send button and the intro steps aside */
.hl-acts{flex-wrap:wrap}
.hl-acts .ts-box{flex:1 1 300px;min-width:0;margin:0}
.hl-acts:has(.ts-box:not([hidden])){align-items:flex-end;row-gap:6px}
.hl-acts:has(.ts-box:not([hidden])) .err{flex-basis:100%}
.hl-acts .err:empty{min-height:0}
.hl-card.ts-on .hl-intro{visibility:hidden}

.hl-form{scrollbar-width:thin;scrollbar-color:#a89a82 transparent;scrollbar-gutter:stable}

/* autofill keeps the paper look: no browser yellow or blue, ink text. plain fields get an inset paper fill; drawn (roughed)
   fields stay transparent (the long transition holds off the autofill colour) so the paper and ink outline drawn behind them show */
.inp:-webkit-autofill,.inp:-webkit-autofill:hover,.inp:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #fbf7ef inset;box-shadow:0 0 0 1000px #fbf7ef inset;-webkit-text-fill-color:#2e2a26;caret-color:#2e2a26;transition:background-color 600000s 0s,color 600000s 0s}
.inp.roughed:-webkit-autofill,.inp.roughed:-webkit-autofill:hover,.inp.roughed:-webkit-autofill:focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent}
/* the say hello form scrolls under a soft top edge, so no sliver of a field or ring peeks out under the intro */
.hl-form{-webkit-mask-image:linear-gradient(transparent 0,#000 10px,#000 calc(100% - 6px),transparent 100%);mask-image:linear-gradient(transparent 0,#000 10px,#000 calc(100% - 6px),transparent 100%)}
/* the page's words as plain text, in the static html for readers and crawlers without javascript (tools/build-text.js).
   with javascript on, boot.js adds html.js, so it is never on screen, and main.js removes it once the rooms start */
html:not(.js) body{overflow:auto;height:auto}
#txt{box-sizing:border-box;max-width:760px;margin:0 auto;padding:28px 24px 64px;font:20px/1.55 'EB Garamond',serif;color:#2e2a26}
#txt nav ul{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px;font:17px Kalam,cursive}
#txt h2{font-weight:500;font-size:34px;line-height:1.2;margin:28px 0 8px}#txt h3{font-weight:500;font-size:24px;margin:24px 0 6px}
#txt a{color:#7a3a20}#txt blockquote{margin:14px 0;padding:10px 14px;border-left:2px solid #c9c0b3;font:17px/1.5 Kalam,cursive}#txt blockquote p{margin:0 0 4px}
html.js #txt{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* cloudflare turnstile on the forms: invisible unless a click is needed, then a quiet paper box */
.ts-box{margin:2px 0 12px;padding:8px 10px 6px;background:#fbf7ef;border:1.3px dashed #b9ad9c;border-radius:6px 3px 7px 4px}.ts-box[hidden]{display:none}.ts-cap{font:14px Kalam,cursive;color:#5a534b;margin:0 0 6px}/* in the small note card the check floats as a paper slip just above the button, only while cloudflare needs a click */
.ts-box.slip{position:absolute;left:0;right:0;bottom:54px;z-index:5;margin:0;border-style:solid;box-shadow:0 6px 18px rgba(46,42,38,.18)}
