:root{color-scheme:light;--paper:#f8f1e7;--white:#fffaf3;--ink:#39271f;--muted:#705849;--brown:#78452e;--rust:#a45635;--line:#decbbc;--shade:#f1e4d7;font-family:Inter,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--paper);scroll-behavior:smooth;scroll-padding-block-start:92px}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;margin:0;line-height:1.65}
body > main{flex:1 0 auto;min-width:0}
a{color:var(--brown);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.28em}
button,input,textarea,select{font:inherit;color:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:.47rem .9rem;border:1px solid var(--line);border-radius:8px;background:var(--white);cursor:pointer;font-weight:650;text-decoration:none!important;line-height:1.35}
button:hover,.button:hover{border-color:var(--rust);background:var(--shade)}
button:disabled{opacity:.48;cursor:default}
.primary,.primary:hover{background:var(--brown);border-color:var(--brown);color:#fff9f1}
.primary:hover{background:#5f3423}
:focus-visible{outline:2px solid var(--rust);outline-offset:3px}
.shell{width:min(1090px,calc(100% - 44px));margin-inline:auto}
.mast{position:sticky;inset-block-start:0;z-index:10;background:var(--paper);border-bottom:1px solid var(--line)}
.top{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;flex-shrink:0;align-items:center;gap:10px;color:var(--ink);font-size:19px;font-weight:750;line-height:1.18}
.brand small{display:block;letter-spacing:.18em;font-size:9px;margin-top:4px}
nav{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(13px,3vw,32px);font-size:14px}
.top nav{justify-content:flex-end}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;min-height:337px;gap:35px;padding:45px 0 42px}
.eyebrow{font-size:13px;color:var(--rust);font-weight:750;letter-spacing:.16em;margin:0 0 12px}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:"Noto Serif TC","Songti TC",PMingLiU,Georgia,serif}
h1{font-size:clamp(38px,6.6vw,76px);line-height:1.14;letter-spacing:.025em;margin:0 0 17px}
h2{font-size:clamp(22px,3vw,34px);line-height:1.3;margin-bottom:12px}
.lede{color:var(--muted);max-width:36ch;margin:0}
.book{position:relative;justify-self:center;transform:rotate(-13deg);width:194px;height:223px;background:#945637;border-radius:10px 15px 16px 8px;box-shadow:14px 20px 0 #e6ceb9,22px 30px 42px #673a2524}
.book-paper{position:absolute;inset:11px 10px 15px 15px;border-radius:3px 10px 10px 4px;background:#fff2dc;padding:40px 20px 20px}
.book-paper i{display:block;height:4px;background:#d6b295;margin-bottom:13px;border-radius:2px}
.book-paper i:nth-child(2){width:72%}.book-paper i:nth-child(3){background:#e3a76e}.book-paper i:nth-child(5){width:64%}.book-paper i:nth-child(6){width:82%}
.book-tab{position:absolute;right:27px;top:0;width:20px;height:52px;background:#b76842;clip-path:polygon(0 0,100% 0,100% 100%,50% 81%,0 100%)}
.surface{border:1px solid var(--line);border-radius:17px;background:var(--white);box-shadow:0 11px 30px #6c39200b}
.upload{padding:15px}
.drop{text-align:center;border:1.5px dashed #b99179;border-radius:11px;padding:33px 15px 22px;background:#fcf5ea}
.drop.drag{background:#f0dcc7;border-color:var(--brown)}
.drop h2{margin:10px 0 5px;font-size:26px}.drop p{color:var(--muted);margin-bottom:15px}
.drop .formats{font-size:13px;margin:15px 0 0}
.under{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 5px 0;font-size:14px;color:var(--muted)}
.text-button{border:0;background:transparent;min-height:32px;color:var(--brown)}
.visually-hidden{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}
.drop:focus-within .button{outline:2px solid var(--rust);outline-offset:3px}
.status{margin:9px 0 0;color:var(--muted);white-space:pre-line}
.status:empty{display:none}.status.error{color:#8d2820}
.guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.75fr);gap:32px;padding:53px 0}
.faq details{border-bottom:1px solid var(--line);padding:12px 0}.faq details:first-child{border-top:1px solid var(--line)}
summary{cursor:pointer;font-weight:700}.faq p{margin:8px 0 0;color:var(--muted)}
.support{border-block:1px solid var(--line);display:grid;grid-template-columns:1.5fr 1fr;gap:25px;padding:29px 0}.support h3{margin:4px 0 8px}.support p{margin-bottom:12px;color:var(--muted)}
.secondary{font-size:14px;color:var(--muted)}.foot{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;padding:19px 0;color:var(--muted);text-align:center;overflow-wrap:anywhere}
.editor-top,.settings,.reading-bar,.pagebar,.side-title,.controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.editor-top{justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line)}
.editor-top > div{min-width:0}
.editor-top .eyebrow{display:block;margin:0}.editor-top strong{overflow-wrap:anywhere}
.settings{padding:13px 18px;align-items:end}.settings label{flex:1 1 120px;min-width:0;font-size:14px}.settings label:first-child{flex:2 1 180px}
input:not([type=checkbox]),textarea,select{background:var(--white);border:1px solid #c9ab95;border-radius:6px;padding:6px 8px;min-width:0}.settings input,.settings select{display:block;width:100%}
.notice{margin:0 18px 12px;padding:8px 11px;background:var(--shade);border-radius:6px;font-size:14px}
.workgrid{display:grid;grid-template-columns:minmax(225px,.72fr) minmax(0,2fr);border-top:1px solid var(--line)}
.sidebar,.reading{min-width:0}
.sidebar{padding:12px;border-right:1px solid var(--line);background:#f9efe3;border-radius:0 0 0 16px}
.side-title{justify-content:space-between;margin:5px 0 8px}.side-title h2{font-size:18px;margin:0}
.small{min-height:30px;font-size:13px;padding:3px 7px}
.item{display:flex;gap:5px;align-items:center;margin:6px 0}.item .label{word-break:break-word;display:block;font-size:13px;min-width:0;flex:1;min-height:30px;text-align:left;padding:4px 6px}.item .remove{font-size:14px;padding:3px 8px;min-height:30px}
#toc,#annotations{max-height:215px;overflow:auto;margin-bottom:12px}
.checkbox{font-size:14px;display:flex;align-items:center;gap:5px}
.reading-bar,.pagebar{padding:8px 12px;background:#fcf4e9;border-bottom:1px solid var(--line);justify-content:space-between}
.reading-bar button,.pagebar button{min-height:32px;font-size:14px;padding:4px 8px}
[aria-pressed=true]{background:var(--shade);border-color:#b3866c}
.reading-bar label{font-size:13px}.reading-bar select{padding:2px 4px}.pagebar input{width:4.5rem}
.preview{height:clamp(220px,60dvh,650px);overflow:auto;padding:20px clamp(12px,4vw,40px);font-family:Georgia,"Noto Serif TC","Songti TC",serif;font-size:19px;line-height:1.85;overflow-wrap:anywhere;scroll-padding-top:15px}
.preview p{margin:0 0 .85em;white-space:pre-wrap}.preview h3{font-size:1.2em;margin:1em 0 .45em;white-space:pre-wrap}
.preview canvas,.preview img{display:block;max-width:100%;height:auto;margin:0 auto 12px;background:white}.preview .block{border-left:2px solid transparent;padding-left:8px}.preview .active{border-left-color:#b27b57}.preview mark{background:#f8d77f;color:inherit;text-decoration:underline;text-decoration-color:#9d6a32;text-decoration-thickness:.09em;text-underline-offset:.17em}
.notebadge{font:600 12px/1.4 sans-serif;color:var(--brown);white-space:normal}.illustration{padding:8px}
dialog{border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);width:min(92vw,450px);padding:23px}dialog::backdrop{background:#39271f72}dialog label,dialog textarea,dialog select{display:block;width:100%;margin-bottom:8px}dialog .controls{justify-content:flex-end}
@media(max-width:720px){
  :root{scroll-padding-block-start:128px}
  .shell{width:calc(100% - 28px)}
  .top{min-height:63px;padding-block:10px;gap:.45rem 1rem;flex-wrap:wrap}
  .top nav{justify-content:flex-start;gap:.25rem .85rem;font-size:.875rem}
  .top nav a{display:flex;align-items:center;min-height:36px}
  .hero{grid-template-columns:minmax(0,1fr) auto;gap:14px;min-height:0;padding:30px 0}
  .hero h1{font-size:clamp(2rem,7vw,3.1rem)}
  .book{width:70px;height:98px;margin-inline:0 10px;box-shadow:7px 10px 0 #e6ceb9}
  .book-paper{inset:6px;padding:22px 8px 3px}
  .book-paper i{height:2px;margin-bottom:5px}
  .book-tab{width:9px;height:22px;right:12px}
  .guide,.workgrid{grid-template-columns:minmax(0,1fr);gap:14px}
  .guide{padding:34px 0}
  .workgrid .sidebar{order:2;border:0;border-top:1px solid var(--line);border-radius:0 0 16px 16px}
  .preview{height:clamp(220px,54dvh,480px)}
  .settings,.editor-top{padding-inline:11px}
  .controls button,.pagebar button,.side-title button,.item button{min-height:40px}
  .reading-bar select{min-height:40px}
  .settings input,.settings select,.pagebar input,.newsletter input[type=email]{font-size:1rem}
}
@media(max-width:400px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero .book{display:none}
  .settings label:first-child{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}

.image-option{margin:0 18px 12px}

.guide-links{display:flex;flex-wrap:wrap;gap:.4rem 1rem}
.guide-links a,.policy-link,.policy a{text-decoration:underline;text-underline-offset:.2em}
.support{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,5vw,60px)}
.sponsorship{border-left:1px solid var(--line);padding-left:clamp(12px,4vw,44px)}
.newsletter fieldset,.pledge-options{border:0;margin:0;padding:0;min-width:0}
.newsletter label[for]{display:block;font-weight:650;font-size:14px;margin-bottom:.25em}
.email-row{display:flex;flex-wrap:wrap;gap:8px}
.email-row input{flex:1 1 170px}
.consent{align-items:start;gap:.55em;margin:.7em 0}
.consent input{margin:.3em 0 0;accent-color:var(--brown)}
#newsletterStatus,#sponsorPending{margin:.6em 0 .2em}
.pledge-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.pledge{position:relative;display:grid;justify-items:center;align-content:center;gap:5px;min-height:130px;padding:.55rem .35rem;text-align:center;background:var(--white);border:1px solid var(--line);border-radius:10px;cursor:pointer}
.pledge span{font-size:.9rem;line-height:1.3}
.pledge strong{color:var(--brown)}
.pledge:hover,.pledge:has(input:checked){border-color:var(--brown);background:var(--shade)}
.pledge:has(input:focus-visible){outline:2px solid var(--rust);outline-offset:3px}
.foot nav{justify-content:center;gap:.35rem .9rem}
.guide-list{margin:1rem 0 0;padding-inline-start:1.2rem}
.guide-list a{text-decoration:underline;text-underline-offset:.2em}
.policy{max-width:760px;padding-block:clamp(32px,6vw,64px)}
.policy h1{font-size:clamp(34px,6vw,53px)}
.policy h2{font-size:clamp(20px,3vw,26px);margin:1.35em 0 .4em}
.policy p,.policy li{max-width:65ch}
.policy .secondary{margin-bottom:1.5rem}
@media(max-width:720px){.support{grid-template-columns:1fr;gap:24px}.sponsorship{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}}

.hero h1{font-size:clamp(2.2rem,5.2vw,4rem);text-wrap:balance}
.hero-subtitle{font-weight:650;margin:0 0 8px}
.hero-access{font-size:.9rem;font-weight:700;color:var(--brown);margin:0 0 16px}
.hero .lede{max-width:42ch}
.faq p a{text-decoration:underline;text-underline-offset:.2em}
@media(max-width:720px){.hero h1{font-size:clamp(2rem,7vw,3.3rem)}}
