:root{color-scheme:light;--ink:#282c3b;--muted:#60616a;--soft:#77756f;--green:#2c3342;--desk:#fffaf0;--ivory:#fffaf0;--red:#cf4937;--rule:rgba(76,56,50,.15);--sans:"Avenir Next","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;--serif:"Iowan Old Style","Songti SC","Noto Serif CJK SC","STSong","KaiTi",Georgia,serif;--mono:"SFMono-Regular","Roboto Mono",Consolas,monospace}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%;background:var(--desk)}
body{min-height:100vh;min-height:100svh;position:relative;isolation:isolate;display:flex;flex-direction:column;margin:0;color:var(--ink);font:16px/1.55 var(--sans);background:radial-gradient(ellipse at 50% 34%,#fffcf5 0%,#fffaf0 62%,#fbf4e6 100%)}
body::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.047;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 132 132' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");mix-blend-mode:multiply}
button,input,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit}
button:disabled{cursor:default}
button:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #8f372f;outline-offset:4px}
.svg-bank{position:absolute;width:0;height:0;overflow:hidden}
button svg,.mode-line svg,.pencil,.sheet-brand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.site-head{display:flex;align-items:center;justify-content:space-between;position:relative;padding:clamp(15px,2.8vh,30px) 0;margin:0 clamp(21px,5vw,80px);border-bottom:1px solid var(--rule)}
.wordmark,.brand-names,.site-head nav,.work-head,.mode-line,.choice,.dialog-head,.pair-tools,.action-row{display:flex;align-items:center}
.wordmark{gap:11px;line-height:1}
.brand-mark{display:grid;place-items:center;width:46px;height:42px;color:var(--red)}
.brand-mark svg{width:46px;height:42px;overflow:visible}
.brand-names{flex-direction:column;align-items:flex-start;gap:5px}
.brand-names b{font:700 21px/1 var(--serif);letter-spacing:.05em}
.brand-names span{font:600 9px/1 var(--mono);letter-spacing:.16em;color:#6c6370}
.site-head nav{gap:7px}
.icon-btn{display:inline-grid;place-items:center;padding:0;width:40px;height:40px;background:transparent;border:1px solid transparent;border-radius:50%}
.icon-btn:hover{background:#fff1df;border-color:#cfbbae}
.icon-btn:active{transform:scale(.95)}
.workspace{width:min(100%,610px);margin:auto;align-self:center;padding:clamp(30px,5.7vh,70px) 27px clamp(23px,3.2vh,48px);position:relative}
.work-head{min-height:54px;justify-content:space-between;gap:8px;margin:0 0 20px 2px}
h1{font:650 clamp(31px,4.2vw,46px)/1.23 var(--serif);letter-spacing:-.035em;margin:0;color:var(--ink)}
h1:focus{outline:0}
.back,.text-btn{background:none;border:0;padding:7px 0;color:var(--muted);font-size:14px;display:inline-flex;align-items:center;gap:5px}
.back svg{height:15px;width:15px}
.back:hover,.text-btn:hover{text-decoration:underline}
.desk{position:relative;isolation:isolate;margin-top:6px}
.note-stack{position:relative;margin:0 3px 0 1px;transform:rotate(-1.45deg);transform-origin:55% 60%;filter:drop-shadow(1px 13px 12px #6d4a3520)}
.note-stack::before,.note-stack::after{content:"";position:absolute;inset:3px 3px -1px 1px;background:var(--paper-far);border:1px solid #5f5a5024;box-shadow:0 2px 4px #5d3f2e19;z-index:-1;transform:rotate(3.4deg) translate(2px,8px)}
.note-stack::after{transform:rotate(-1.9deg) translate(-1px,5px);background:var(--paper-back)}
.sheet{position:relative;isolation:isolate;display:flex;flex-direction:column;padding:22px 30px 14px 48px;height:clamp(275px,34vw,330px);border:1px solid var(--paper-edge);border-radius:2px 3px 5px 2px;background-color:var(--paper-sheet,#ffccbf);background-image:linear-gradient(to right,transparent 30px,#ac596a66 30px,#ac596a66 31px,transparent 31px),linear-gradient(106deg,#fffffa35,#fffffa00 67%,#ad735d08 100%);box-shadow:0 2px 5px #513c331a,inset 0 0 32px #fff7ed1a}
.sheet::after{position:absolute;right:0;bottom:0;content:"";width:26px;height:26px;background:linear-gradient(135deg,transparent 42%,var(--paper-edge) 49%,var(--orig-light) 53%,var(--orig-mid) 96%);clip-path:polygon(100% 0,100% 100%,0 100%);pointer-events:none;opacity:.78}
.sheet-meta,.sheet-foot{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}
.sheet-meta{color:#625c64;line-height:18px;min-height:18px;gap:6px}
.sheet-meta .pencil{color:#625965;width:17px;height:17px}
.sheet-meta time,.counter,.sheet-meta span{font:500 12px/18px var(--mono);letter-spacing:.07em}
#note-text,#read-body{--line:36px;flex:1;width:100%;min-height:0;padding:0 1px;resize:none;border:0;border-radius:0;margin:13px 0 7px;color:var(--ink);font:400 21px/var(--line) var(--serif);outline:none!important;letter-spacing:.035em;background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--line) - 1px),var(--paper-rule) calc(var(--line) - 1px) var(--line)) local;scrollbar-width:thin;scrollbar-color:var(--paper-edge) transparent}
#note-text::placeholder{color:#6f6167;opacity:1}
.sheet-foot{min-height:23px;color:#665964;gap:8px}
.sheet-brand{display:grid;place-items:center;width:26px;height:20px;color:#934c49;transform:rotate(-10deg);border:1px solid #a45d58;border-radius:40%;opacity:.86}
.sheet-brand svg{width:16px;height:16px}
.counter{font-size:11px}
.controls{margin-top:32px;display:grid;justify-items:center;gap:11px;min-height:83px}
.primary,.secondary{border-radius:9px;padding:11px 18px;min-height:44px;line-height:1.25;font-weight:600;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .15s,transform .15s}
.primary{background:var(--red);color:white;border:1px solid #b74635;box-shadow:0 3px 0 #b3433180,0 5px 9px #b53f2711}
.primary:disabled{opacity:.84}
.primary:not(:disabled):hover{background:#ba3f2e;transform:translateY(-1px)}
.secondary{background:#fff9ed;color:var(--ink);border:1px solid #c9bbb0}
.secondary:hover{background:#fff2e3}
.primary:active,.secondary:active{transform:translateY(1px)}
.hint{margin:0;color:var(--muted);font-size:14px;line-height:1.5;text-align:center}
.hint:empty{display:none}
.action-row{justify-content:center;gap:11px;flex-wrap:wrap}
.site-foot{padding:0 clamp(20px,5vw,80px) max(18px,env(safe-area-inset-bottom));text-align:center}
.mode-line{display:inline-flex;gap:7px;color:var(--muted);font-size:13px}
.mode-line svg{width:15px;height:15px}
.fold-space{height:clamp(275px,34vw,330px);position:relative;display:grid;place-items:center;isolation:isolate}
.fold-space::before{content:"";position:absolute;width:81%;height:74%;border:1px dashed #a48f7a55;border-radius:50%;transform:rotate(-8deg) scaleY(.70);pointer-events:none}
.fold-space::after{content:"";width:6px;height:6px;position:absolute;left:13%;top:65%;border-radius:50%;background:#c28e7b;pointer-events:none}
#shadow{position:absolute;bottom:15%;width:40%;height:8%;background:#75523e33;border-radius:50%;filter:blur(14px);pointer-events:none;transition:opacity .35s}
.paper-object{border:0;padding:0;border-radius:12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:none;width:min(65%,310px);aspect-ratio:200/140;z-index:1;display:grid;place-items:center;outline-offset:8px;cursor:grab;transform-origin:50% 55%}
.paper-object:disabled{opacity:1}
.paper-object:active{cursor:grabbing}
#paper-art,#paper-art svg{width:100%;height:100%;display:block;overflow:visible}
#paper-art{filter:drop-shadow(0 9px 6px #4a473622)}
#shapes{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.shape-choice{border-radius:9px;border:1px solid #cfbfb0;background:#fffaf0;display:flex;align-items:center;gap:6px;padding:6px 12px;font:550 14px/1.3 var(--sans);min-height:42px}
.shape-choice svg{width:32px;height:25px;stroke:unset;overflow:visible}
.shape-choice[aria-pressed="true"]{background:#fff1df;border-color:#b74734;box-shadow:inset 0 0 0 1px #b74734}
.reading{transform:rotate(1deg)}
#read-body{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:14px}
.read-crease{position:absolute;inset:0;z-index:-1;background:linear-gradient(150deg,transparent 49.7%,#bead8726 50%,#fffdfa7a 50.5%,transparent 51%)}
.incoming-bar{margin:-6px 0 16px}
.incoming-bar button{border:1px solid #ddab96;border-radius:7px;background:#ffead9;color:var(--green);min-height:42px;padding:6px 13px;font-size:14px}
dialog{position:fixed;border:1px solid #d8c7b2;background:#fffaf0;color:var(--ink);width:min(420px,calc(100vw - 30px));max-height:calc(100dvh - 42px);overflow-y:auto;border-radius:15px;padding:20px 23px;box-shadow:0 18px 80px #2231284d}
dialog::backdrop{background:#44323755;backdrop-filter:blur(3px)}
.dialog-head,.choice{justify-content:space-between;gap:16px}
h2,h3{font-family:var(--serif);margin:0}
h2{font-size:24px}h3{font-size:20px}
.preferences{margin:15px 0 19px}
.choice{border-top:1px solid var(--rule);min-height:47px;padding:10px 0;cursor:pointer;font-size:15px}
.choice small{display:block;color:var(--muted);font-size:13px}
.choice input{accent-color:var(--red);width:19px;height:19px;cursor:pointer;flex-shrink:0}
.pair-box{border-top:1px solid var(--rule);padding-top:15px}
.pair-box p{color:var(--muted);font-size:14px;line-height:1.55;margin:8px 0 13px}
.pair-box .pair-status{font-weight:650;color:var(--ink)}
.pair-tools{gap:15px;flex-wrap:wrap;margin-bottom:14px}
#manual-link{width:100%;padding:8px;font-size:14px;margin:0 0 12px}
#settings-status:empty{display:none}
@media(max-width:580px){.site-head{padding-top:max(16px,env(safe-area-inset-top))}.workspace{padding-left:24px;padding-right:24px}.sheet{padding:18px 21px 12px 36px;background-image:linear-gradient(to right,transparent 22px,#ac596a66 22px,#ac596a66 23px,transparent 23px)}.sheet-meta .pencil{width:15px;height:15px}.work-head{min-height:45px;margin-bottom:17px}.controls{margin-top:29px}.sheet,.fold-space{height:clamp(270px,37svh,350px)}#note-text,#read-body{--line:33px;font-size:20px}.shape-choice{padding:6px 9px}.shape-choice svg{width:26px}.site-foot{padding-bottom:max(22px,env(safe-area-inset-bottom))}}
@media(max-height:590px){.workspace{padding-top:18px;padding-bottom:10px}.site-head{padding-block:8px}.sheet,.fold-space{height:205px}.controls{margin-top:19px;min-height:49px}.site-foot{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*::after,*::before{scroll-behavior:auto!important;transition:none!important}}
.sponsor{text-align:center;font-size:13px;margin:13px 0 -11px;color:var(--muted)}
.sponsor a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.pair-box .stats-note{margin:18px 0 0;border-top:1px solid var(--rule);padding-top:10px;color:#706867;font-size:12px}
#crease-sheet{position:absolute;width:min(62%,260px);aspect-ratio:1.48;z-index:3;pointer-events:none;perspective:700px;transform:rotate(-6deg);filter:drop-shadow(0 7px 7px #49452b2c);--fold-bg:repeating-linear-gradient(0deg,var(--paper-sheet) 0 18px,var(--paper-rule) 18px 19px)}
.crease-center,.crease-left,.crease-right,.crease-upper{position:absolute;inset:0;background:var(--fold-bg);border:1px solid var(--paper-edge);transform-style:preserve-3d}
.crease-center{overflow:hidden}
#crease-text{display:block;margin:11% 13%;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font:16px/19px var(--serif);max-height:60%;overflow:hidden}
.crease-left,.crease-right,.crease-upper{opacity:0;background:linear-gradient(120deg,var(--orig-mid),var(--orig-light))}
.is-folding{animation:compress-sheet .62s both}
.is-folding .crease-left{clip-path:polygon(0 0,50% 0,50% 100%,0 100%);transform-origin:50% 50%;animation:fold-left .36s ease-in-out both}
.is-folding .crease-right{clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%);transform-origin:50% 50%;animation:fold-right .35s .1s ease-in-out both}
.is-folding .crease-upper{clip-path:polygon(0 0,100% 0,100% 50%,0 50%);animation:fold-down .32s .19s ease-in-out both}
.is-folding[data-form="plane"] .crease-left{clip-path:polygon(0 0,100% 0,22% 74%);animation-name:fold-wing}
.is-folding[data-form="plane"] .crease-right{clip-path:polygon(16% 100%,100% 0,100% 100%);animation-name:fold-tail}
.is-folding[data-form="crane"] .crease-left{clip-path:polygon(0 0,50% 48%,0 100%);animation-name:fold-wing}
.is-folding[data-form="crane"] .crease-right{clip-path:polygon(100% 0,50% 48%,100% 100%);animation-name:fold-tail}
.is-folding[data-form="crane"] .crease-upper{clip-path:polygon(0 0,100% 0,50% 49%)}
@keyframes fold-left{from{opacity:.94;transform:rotateY(0)}to{opacity:1;transform:rotateY(151deg)}}
@keyframes fold-right{from{opacity:.94;transform:rotateY(0)}to{opacity:1;transform:rotateY(-157deg)}}
@keyframes fold-down{from{opacity:.8;transform:rotateX(0)}to{opacity:1;transform:rotateX(-148deg)}}
@keyframes fold-wing{from{opacity:1;transform:rotate3d(.8,-.6,0,0)}to{opacity:1;transform:rotate3d(.8,-.6,0,162deg)}}
@keyframes fold-tail{from{opacity:1;transform:rotate3d(.8,-.6,0,0)}to{opacity:1;transform:rotate3d(.8,-.6,0,-160deg)}}
@keyframes compress-sheet{0%,30%{transform:rotate(-6deg) scale(1);opacity:1}73%{transform:rotate(-3deg) scale(.68,.72);opacity:.87}100%{transform:rotate(1deg) scale(.54,.59);opacity:0}}
@media(prefers-reduced-motion:no-preference){
  .read-stack:not([hidden]) .reading::before,.read-stack:not([hidden]) .read-crease::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,var(--orig-mid),var(--paper-sheet));pointer-events:none;z-index:2;transform-origin:center;animation:unfold-left .47s ease-out both;clip-path:polygon(0 0,50% 0,50% 100%,0 100%)}
  .read-stack:not([hidden]) .read-crease{z-index:1;pointer-events:none}
  .read-stack:not([hidden]) .read-crease::after{clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%);animation-name:unfold-right}
  .read-stack[data-unfold="plane"] .reading::before,.read-stack[data-unfold="crane"] .reading::before{clip-path:polygon(0 0,100% 0,0 100%)}
  .read-stack[data-unfold="plane"] .read-crease::after,.read-stack[data-unfold="crane"] .read-crease::after{clip-path:polygon(100% 0,100% 100%,0 100%)}
  @keyframes unfold-left{0%{transform:perspective(660px) rotateY(160deg);opacity:1}85%{opacity:.65}100%{transform:perspective(660px) rotateY(0);opacity:0}}
  @keyframes unfold-right{0%{transform:perspective(660px) rotateY(-158deg);opacity:1}85%{opacity:.65}100%{transform:perspective(660px) rotateY(0);opacity:0}}
}

#write-actions{display:flex;flex-direction:column;align-items:center;gap:15px}
.color-bar,.swatches{display:flex;align-items:center;justify-content:center}
.color-bar{min-height:42px;gap:10px}
.color-label{font-weight:550;font-size:14px;letter-spacing:.06em;color:#59555b}
.swatches{gap:3px}
.swatch{width:43px;height:43px;padding:0;border:0;border-radius:50%;background:transparent;position:relative;isolation:isolate;display:grid;place-items:center}
.swatch::before{content:"";position:absolute;inset:9px;z-index:-1;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 1px #493b361f}
.swatch[aria-pressed="true"]::after{content:"";position:absolute;inset:4px;border:1.5px solid var(--ink);border-radius:50%}
.swatch-check{width:11px;height:6px;transform:translateY(-1px) rotate(-45deg);border:solid var(--ink);border-width:0 0 2px 2px;visibility:hidden}
.swatch[aria-pressed="true"] .swatch-check{visibility:visible}
.swatch:hover::before{box-shadow:inset 0 0 0 1px #443c3a68}
#finish{min-width:202px;min-height:47px;font-size:16px;letter-spacing:.035em;border-radius:12px}
@media(max-width:580px){.controls{margin-top:24px}#write-actions{gap:12px}.workspace{padding-top:clamp(22px,4svh,40px)}}

/* The working sheet sits on a deckle-edged page. All visible text stays live. */
:root{
  --ink:#3e2d27;--muted:#66574e;--red:#cb3929;--desk:#f9eddc;
  --brush:"Kaiti SC","STKaiti","KaiTi","Songti SC","Noto Serif CJK SC",serif;
  --pulp-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='171' height='173' viewBox='0 0 171 173'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62 .79' numOctaves='3' seed='18' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23847362' filter='url(%23p)' opacity='.2' d='M0 0h171v173H0z'/%3E%3C/svg%3E");
  --long-fibres:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='163' height='147' viewBox='0 0 163 147' fill='none'%3E%3Cg stroke='%238c7162' opacity='.13' stroke-width='.7'%3E%3Cpath d='m4 16 2-3m15 24 3-1m28-26 .8-2M36 88l2.6 1M80 20l3 1m-6 33 3-4m33-13 1-2m-13 48 4 1m25 20 2.5-4m12-25 2.6-.7m-136 39 2-1m73 12 1-3m50 8 1.8 1.3'/%3E%3C/g%3E%3Cg stroke='%23fffef8' opacity='.44' stroke-width='1'%3E%3Cpath d='m12 26 4-2m28 17 2-3m41 7 1.3-3m40 17 3 1m-70 32 2-3m-39 28 2-1m106 20 2.5-3m15-39 2-2m-84 33-2 2'/%3E%3C/g%3E%3C/svg%3E");
}
body{background-color:var(--desk);background-image:var(--pulp-grain),radial-gradient(ellipse at 48% 25%,#fff5e6,#f6e7d1);align-items:center}
body::before{display:none}
.stationery{position:relative;isolation:isolate;display:flex;flex-direction:column;width:min(600px,calc(100% - 38px));min-height:min(950px,calc(100svh - 46px));margin:23px auto;filter:drop-shadow(2px 7px 9px #8e6a422e)}
.stationery::before{content:"";position:absolute;inset:0;z-index:-1;background-color:#fff8eb;background-image:var(--long-fibres),var(--pulp-grain),linear-gradient(105deg,#fffaf0,#fff5e6);clip-path:polygon(0.4% 1.7%,2% .8%,4.8% 1.2%,7.3% .4%,10% .9%,13% .5%,16% 1%,18.5% .3%,22% .85%,25% .45%,28% 1.1%,31.5% .36%,35% .8%,38% .3%,41% .94%,45% .48%,49% 1%,52% .28%,55.5% .9%,59% .34%,63% .85%,66.5% .2%,70% .86%,73.3% .36%,77% .8%,80% .37%,84% .98%,87% .42%,91% .87%,94% .5%,97% .8%,99.7% 1.7%,99.3% 10%,99.8% 18%,99.4% 29%,99.7% 42%,99.3% 54%,99.8% 67%,99.4% 83%,99.7% 98%,98% 99.4%,95% 98.9%,92.6% 99.7%,89.7% 99.1%,86.7% 99.7%,83.2% 99%,80% 99.6%,77% 98.9%,73% 99.7%,69% 99.2%,65% 99.7%,61% 99.1%,57% 99.6%,53% 99.15%,49% 99.7%,45% 99.1%,41% 99.7%,37% 99.1%,33% 99.65%,29% 99.1%,25% 99.7%,21% 99.1%,18% 99.7%,15% 99.1%,12% 99.6%,9% 99%,6.2% 99.55%,3.6% 98.95%,1.4% 99.25%,.3% 98%,.6% 87%,.28% 73%,.64% 61%,.22% 44%,.53% 33%,.17% 18%,.55% 8%)}
.site-head{margin:0 clamp(22px,6%,37px);padding:25px 0 12px;border-bottom:2px solid #d65443}
.wordmark{gap:5px}
.brand-mark{width:40px;height:31px;color:#4d352b}.brand-mark svg{width:40px;height:33px}
.brand-names b{font:750 26px/1 var(--brush);letter-spacing:.03em;color:#432e26}
.site-head nav{gap:5px}
.site-head nav::after{content:"";order:1;width:1px;height:21px;background:#997d69;margin:0 2px}
#settings-toggle{order:2}
.icon-btn{color:#503a2f}
.workspace{margin:auto 0;padding:21px clamp(31px,7.5%,48px) 9px;max-width:100%}
.work-head{position:relative;margin:0 0 29px;min-height:66px;gap:6px}
.stage-heading{min-width:0;display:flex;align-items:flex-start;flex-direction:column;position:relative}
h1{font:850 clamp(34px,5vw,51px)/1.22 var(--brush);letter-spacing:.035em;color:var(--red);transform:skew(-3deg) rotate(-1deg);transform-origin:left center;text-shadow:.4px .4px 0 #c43825}
.brush-line{display:block;width:clamp(92px,23vw,155px);height:13px;color:var(--red);margin:1px 0 0 22px}
.flower-stamp{width:clamp(40px,5vw,59px);height:clamp(42px,5.3vw,62px);color:#db7c69;transform:rotate(9deg);flex-shrink:0;opacity:.93}
.work-head .back{position:absolute;bottom:-18px;right:0;font-size:12px;line-height:1;padding:3px 0}
.desk{margin-top:0}
.note-stack{transform:rotate(-1.1deg);filter:drop-shadow(1px 8px 6px #7a4a342c)}
.note-stack::before,.note-stack::after,.third-sheet{border-radius:6px;background-image:var(--long-fibres),var(--pulp-grain)}
.note-stack::before{inset:-5px 5px 4px 0;transform:translate(-7px,-6px) rotate(-4deg)}
.note-stack::after{inset:0 1px 0 0;transform:translate(8px,-2px) rotate(3.2deg)}
.third-sheet{background-color:var(--paper-third,#badfc8);display:block;position:absolute;inset:3px 0 -1px 0;z-index:-2;transform:translate(11px,6px) rotate(3.8deg);box-shadow:0 1px 3px #73574633}
.sheet{--line:36px;--margin:34px;height:clamp(267px,36vh,370px);padding:clamp(21px,4vh,37px) 23px 9px calc(var(--margin) + 15px);border-radius:6px 8px 6px 7px;background-image:var(--long-fibres),var(--pulp-grain),linear-gradient(to right,transparent var(--margin),#c86a6b9c var(--margin),#c86a6b9c calc(var(--margin) + 1px),transparent calc(var(--margin) + 1px)),repeating-linear-gradient(to bottom,transparent 0 calc(var(--line) - 1px),var(--paper-rule) calc(var(--line) - 1px) var(--line));background-blend-mode:normal,soft-light,normal,normal;background-position:0 0,0 0,0 0,0 7px;box-shadow:inset 0 2px 2px #fffaf04d,0 2px 3px #6a43371e}
.sheet::after{opacity:.46}
#note-text,#read-body{font-family:var(--brush);font-weight:550;font-size:clamp(21px,3.2vw,27px);line-height:var(--line);background:none;letter-spacing:.04em;margin:0 0 4px}
#note-text::placeholder{color:#735950;opacity:.85}
.sheet-foot{justify-content:flex-end;min-height:18px}
.counter{color:#6c4f47;font-size:11px}
.write-sheet:not(:focus-within) .counter{opacity:.7}
.controls{margin-top:22px;min-height:46px;gap:8px}
#write-actions{width:100%;gap:12px}
.color-bar{gap:0;min-height:42px}
.color-label{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.swatches{gap:clamp(9px,2.6vw,17px)}
.swatch{width:clamp(45px,7vw,57px);height:clamp(45px,7vw,56px);border-radius:13px}
.swatch::before{inset:5px;border-radius:11px;background-color:var(--chip);background-image:var(--long-fibres),var(--pulp-grain);box-shadow:inset 0 1px 1px #fffaf194,0 2px 3px #75543b33}
.swatch[aria-pressed="true"]::after{inset:2px;border:1.8px solid var(--red);border-radius:13px}
.swatch-check{width:15px;height:8px;border-color:#b73b2d}
#finish{width:100%;min-height:50px;border-radius:17px;font:760 22px/1.22 var(--brush);letter-spacing:.07em;background-image:var(--pulp-grain);background-blend-mode:soft-light}
#finish svg{display:none}
.primary:disabled{opacity:.86}
.site-foot{padding:6px 10px 16px}
.mode-line{color:#776554;font-size:12px;gap:5px}
.mode-line svg{width:13px;height:13px}
#shape-actions{width:100%}
#shapes{justify-content:center;flex-wrap:nowrap;gap:8px}
.shape-choice{display:flex;flex-direction:column;gap:0;justify-content:center;width:31%;padding:3px 4px 8px;border:1.5px solid transparent;border-radius:12px;background:transparent;color:#4a3429;font:690 17px/1.2 var(--brush)}
.shape-choice svg{width:65px;height:46px;filter:drop-shadow(0 3px 2px #77523d26)}
.shape-choice[aria-pressed="true"]{background:#fff8ec;border-color:var(--red);box-shadow:none}
.fold-space{height:clamp(267px,36vh,370px)}
.fold-space::after,.fold-space::before{display:none}
.flight-trail{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;visibility:hidden}
.workspace[data-stage="ready"] .flight-trail,.workspace[data-stage="flying"] .flight-trail{visibility:visible}
.paper-object{width:min(87%,365px)}
#paper-art svg>g{filter:url(#pulp)}
#shadow{bottom:12%;width:49%;height:14%;transform:rotate(-12deg)}
.workspace[data-stage="ready"] .hint{grid-row:1;color:#49362a;font:650 17px/1.6 var(--brush)}
.workspace[data-stage="ready"] .controls{gap:12px}
#crease-sheet{background-image:var(--pulp-grain)}
.crease-center,.crease-left,.crease-right,.crease-upper{background-image:var(--long-fibres),var(--pulp-grain),var(--fold-bg)}
@media(min-width:750px) and (min-height:880px){.stationery{margin:34px auto}.workspace{padding-top:29px;padding-bottom:15px}.work-head{margin-bottom:34px}.sheet,.fold-space{height:clamp(340px,39vh,400px)}}
@media(max-width:580px){
  .stationery{width:calc(100% - 14px);margin:5px auto;min-height:calc(100svh - 10px)}
  .site-head{padding-top:max(18px,env(safe-area-inset-top))}
  .workspace{padding:18px 26px 9px}.work-head{min-height:59px;margin-bottom:24px}
  .sheet{--line:33px;--margin:24px;padding-left:calc(var(--margin) + 10px)}
  .sheet,.fold-space{height:clamp(250px,37svh,355px)}
  #note-text,#read-body{line-height:var(--line);font-size:21px}
  .controls{margin-top:17px}.site-foot{padding-bottom:max(13px,env(safe-area-inset-bottom))}
}
@media(max-height:620px){
  .stationery{margin:5px auto;min-height:calc(100svh - 10px)}
  .site-head{padding:11px 0 7px}.workspace{padding-top:11px}.work-head{margin-bottom:15px;min-height:45px}
  .sheet,.fold-space{height:205px}.controls{margin-top:13px}
}

/* Paper prints taper away in the writing area and stay visible along the edges. */
.paper-print{position:absolute;inset:0;pointer-events:none;z-index:-1;border-radius:inherit;background:var(--paper-pattern,none) 0 0/44px 44px repeat;opacity:.64;mask-image:linear-gradient(110deg,#000 0%,#0002 19%,#0001 52%,#0008 80%,#000 100%)}
.paper-picker{width:100%;display:flex;flex-direction:column;gap:2px}
.paper-picker .color-bar,.pattern-bar{display:flex;align-items:center;justify-content:center;gap:12px}
.paper-picker .color-label,.picker-label{position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible;color:#785b4e;font:600 13px/1.3 var(--sans);letter-spacing:.06em}
.paper-picker .swatches{gap:9px}
.paper-picker .swatch{width:45px;height:43px}
#patterns{display:flex;gap:3px;align-items:center;justify-content:center}
.pattern-choice{border:0;border-radius:9px;min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:51px;padding:3px 2px;color:#6e5649;background:transparent;font:550 12px/1.25 var(--sans)}
.pattern-tile{display:block;width:36px;height:18px;border:1px solid #b99c84;border-radius:4px;background-color:var(--paper-sheet);background-image:var(--paper-pattern,none),var(--long-fibres);background-position:0 0;background-size:25px 25px,100% 100%;box-shadow:0 1px 1px #734c321c}
.pattern-choice[aria-pressed="true"]{color:#a23629;background:#fff0df}
.pattern-choice[aria-pressed="true"] .pattern-tile{outline:1.5px solid #bf4b38;outline-offset:1px}
#shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.shape-choice{width:100%;padding:3px 1px 7px;font-size:clamp(14px,3.6vw,17px)}
.shape-choice svg{max-width:100%}
.workspace[data-stage="read"] .sheet-meta{justify-content:flex-start;gap:6px}
.workspace[data-stage="read"] #read-body{margin-top:10px}
#read-actions,.route-choices,#reply-actions{width:100%}
.route-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.paper-route{border:0;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:11px 8px;background:none;font:750 clamp(16px,3.9vw,23px)/1.4 var(--brush);letter-spacing:.015em;filter:drop-shadow(0 2px 1px #835d3d40);transition:transform .16s}
.paper-route::before,.sponsor-trigger::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:12px;background-image:var(--long-fibres),var(--pulp-grain),linear-gradient(115deg,#fff7 0%,transparent 60%);background-color:var(--route-fill,#ffded1);background-blend-mode:normal,soft-light,normal;clip-path:polygon(.3% 12%,3% 5%,7% 6%,11% 2%,18% 4%,24% 1%,29% 3%,38% 1%,49% 3%,60% 1%,68% 4%,77% 1%,85% 4%,92% 2%,98% 7%,100% 17%,99% 40%,100% 62%,99% 87%,96% 95%,90% 94%,83% 98%,75% 96%,68% 99%,58% 97%,47% 100%,39% 97%,29% 99%,23% 97%,13% 99%,7% 96%,2% 97%,0 85%,1% 61%,0 42%)}
.paper-route svg{width:28px;height:28px;filter:drop-shadow(1px 1px 0 #fff6e7)}
.paper-route span{white-space:nowrap}
.route-reply{--route-fill:#f9b7a7;color:#9f3027;transform:rotate(-.9deg)}
.route-onward{--route-fill:#baddeb;color:#205977;transform:rotate(.8deg)}
.paper-route:hover{transform:translateY(-2px)}
.paper-route:active{transform:translateY(1px)}
.reading-tools{display:flex;align-items:center;justify-content:center;gap:19px;margin-top:5px}
.reading-tools .text-btn,#leave-onward{font-size:13px;min-height:40px;color:#735c50}
.reply-to{display:inline-flex;align-items:center;align-self:flex-start;gap:6px;margin:0 0 12px;font:600 13px/1.5 var(--sans);color:#844739}
.reply-to svg{height:20px;width:20px}
#reply-text{flex:1;min-height:0;resize:none;background:transparent;border:0;outline:none;padding:0;color:var(--ink);font:550 clamp(21px,3.2vw,27px)/var(--line) var(--brush);letter-spacing:.04em}
#reply-text::placeholder{color:#735950}
#send-reply{width:100%;min-height:50px;border-radius:16px;font:700 21px/1.25 var(--brush)}
#send-reply svg{width:25px;height:25px}
#send-reply:disabled{filter:saturate(.65)}
.crease-center::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--paper-pattern,none) 0 0/35px 35px repeat;opacity:.25}
.is-folding[data-form="ball"]{animation:crumple-sheet .62s both;perspective:360px}
.is-folding[data-form="ball"] .crease-center{background-image:repeating-conic-gradient(from 17deg at 58% 52%,transparent 0deg 16deg,#75514530 17deg,transparent 33deg),var(--pulp-grain),var(--fold-bg)}
.is-folding[data-form="ball"] .crease-upper{clip-path:polygon(0 0,100% 0,100% 32%,76% 41%,58% 70%,28% 29%,0 39%)}
@keyframes crumple-sheet{0%{transform:rotate(-6deg) scale(1);opacity:1}30%{transform:rotate(-13deg) scale(.85,.77);border-radius:12%}58%{transform:rotate(8deg) scale(.52,.55);border-radius:27%}90%,100%{transform:rotate(-7deg) scale(.28,.34);border-radius:43%;opacity:0}}
.sponsor{isolation:isolate}
#cover-sponsor{margin:12px 0 0}
.sponsor-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;isolation:isolate;position:relative;border:0;min-height:40px;padding:7px 14px;border-radius:11px;font:560 13px/1.4 var(--sans);color:#6f4336;background:transparent;filter:drop-shadow(0 1px 1px #946c5030)}
#cover-sponsor .sponsor-trigger{--route-fill:#fbe5d8}
.sponsor-kicker{font-size:12px;color:#824939}
#cover-sponsor .sponsor-label{border-left:1px solid #bb9381;padding-left:9px}
#read-sponsor{margin:21px 0 -5px}
#read-sponsor .sponsor-trigger{--route-fill:#f8e4cb;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;padding:11px 13px 12px;width:100%;min-height:63px}
#read-sponsor .sponsor-trigger[data-has-city="true"]::after{content:"";position:absolute;right:0;bottom:0;width:38%;height:100%;background:url('./icons/toronto.svg') right bottom/100% auto no-repeat;pointer-events:none;opacity:.84}
#read-sponsor .sponsor-kicker{background:#b74b38;color:#fff9eb;padding:1px 5px;border-radius:3px}
#read-sponsor .sponsor-label{font:670 clamp(15px,3.6vw,19px)/1.4 var(--brush);max-width:73%;z-index:1;text-shadow:0 1px 2px #fff8e6}
.sponsor-sheet{inset:auto 0 0;margin:0 auto;width:min(100%,476px);padding:11px 25px max(24px,env(safe-area-inset-bottom));border:1px solid #e5c3a5;border-radius:27px 27px 0 0;text-align:center;background-color:#fff2de;background-image:var(--long-fibres),var(--pulp-grain),linear-gradient(145deg,#fff8e8,#ffead5);background-blend-mode:normal,soft-light,normal}
.sponsor-sheet .sheet-handle{width:40px;height:4px;background:#caa98d;border-radius:6px;margin:0 auto 14px}
.sheet-close{position:absolute;right:10px;top:8px}
.modal-kicker{color:#83543d;font:600 12px/1.5 var(--sans)}
.sponsor-sheet h2{color:#b6382a;margin:5px auto 2px;font:780 clamp(28px,6vw,36px)/1.3 var(--brush)}
.sponsor-sheet p{display:inline-block;margin:5px 0 0;background:#ffd5c4;color:#783b30;padding:3px 15px;border-radius:5px 11px;font:650 18px/1.5 var(--brush);transform:rotate(-1deg)}
.city-illustration img{width:100%;max-width:360px;height:auto;display:block;margin:5px auto 0}
#sponsor-cta{display:inline-flex;min-width:60%;border-radius:15px;text-decoration:none;margin-top:4px}
dialog:not([open]),.sponsor-sheet:not([data-has-city="true"]) .city-illustration{display:none}
@media(max-width:350px){.route-choices{grid-template-columns:1fr;gap:5px}.paper-route{min-height:45px}.paper-picker .color-bar,.pattern-bar{gap:5px}#read-sponsor .sponsor-label{max-width:82%}}
@media(prefers-reduced-motion:no-preference){.sponsor-sheet[open]{animation:slide-sponsor-in .22s ease-out}@keyframes slide-sponsor-in{from{transform:translateY(35%);opacity:.35}to{transform:translateY(0);opacity:1}}}

/* The paired-device status belongs only to the founder's two-device trial. */
.trial-strip{--trial-bg:#fff0ce;display:flex;align-items:center;gap:10px;background:var(--trial-bg);border:1px solid #d8bc85;border-radius:9px;padding:10px 12px;margin:-7px 0 23px;transform:rotate(-.3deg);color:#5b472c}
.trial-strip[data-ready="true"]{--trial-bg:#e6f0dc;border-color:#afc4a5;color:#34533f}
.trial-mark{width:29px;flex:none;align-self:flex-start;margin-top:2px}
.trial-mark svg{display:block;width:100%;height:auto}
.trial-copy{flex:1;min-width:0;line-height:1.45}
.trial-copy strong{display:block;font-size:15px}
.trial-copy span{display:block;font-size:13px;margin-top:2px}
.trial-action{flex:none;padding:9px 1px;color:inherit;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13px}
.trial-entry{display:inline-flex;align-items:center;text-decoration:none;min-height:42px}
@media(max-width:430px){.trial-strip{gap:7px;padding:8px 9px}.trial-mark{width:22px}.trial-copy strong{font-size:14px}}

.language-switch{font:650 14px/1.2 var(--sans);flex:none;min-height:40px;min-width:42px;padding:6px 8px;color:var(--ink);background:transparent;border:1px solid var(--rule);border-radius:9px}
.site-head .language-switch{order:-1;margin-right:3px}
.dialog-tools{display:flex;align-items:center;gap:6px}
.sponsor-sheet .language-switch{position:absolute;left:16px;top:14px;min-height:35px}
html[lang="en"] h1{font-size:clamp(28px,5.3vw,44px);letter-spacing:-.035em}
html[lang="en"] #trial-strip{flex-wrap:wrap}
html[lang="en"] .trial-action{max-width:84px;line-height:1.25}
html[lang="en"] .paper-route{font-size:clamp(15px,3.5vw,20px);letter-spacing:0}
html[lang="en"] .shape-choice{font-size:15px;min-width:0}
html[lang="en"] .brand-names b{letter-spacing:-.035em;white-space:nowrap}
@media(max-width:430px){html[lang="en"] .paper-picker{gap:6px;flex-wrap:wrap}html[lang="en"] .pattern-choice{font-size:12px}html[lang="en"] .stage-heading{max-width:82%}}
