:root{--ink:#29392f;--green:#284e42;--paper:#faf7ee;--line:#cfcab7;--gold:#785d36;color:var(--ink);background:#f5f1e6;font:17px/1.6 system-ui,"Apple SD Gothic Neo","Malgun Gothic",sans-serif}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}
main{max-width:1140px;margin:auto;padding:0 clamp(16px,4vw,56px) 32px}
h1,h2,p,figure{margin:0}h1,h2,.book strong,.folio{font-family:"AppleMyungjo","Batang",Georgia,serif;word-break:keep-all;overflow-wrap:anywhere}
button,a,input{font:inherit}button,a{touch-action:manipulation}button{min-height:46px;padding:8px 16px;border:1px solid var(--line);border-radius:7px;background:#fffdf7;color:var(--ink);font-weight:650;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:hover:enabled{border-color:var(--green)}button.primary{color:white;background:var(--green);border-color:var(--green)}
:focus-visible{outline:3px solid #897331;outline-offset:3px}
.mast,.book-nav,.shelf-head,.reader-tools,.reader-tools>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mast,.book-nav{min-height:68px;border-bottom:1px solid var(--line)}.mast a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-size:.92rem;font-weight:700;text-decoration:none}.mast span,.book-nav span{color:#536052;font-size:.88rem}
.intro{margin:clamp(24px,4vw,46px) 0 24px}.intro h1{font-size:clamp(31px,5.5vw,59px);font-weight:800;line-height:1.2;letter-spacing:-.065em}.intro p{margin-top:10px;color:#526054;word-break:keep-all}
.feature{display:grid;grid-template-columns:1.18fr 1fr;border:1px solid #c6c2ae;border-radius:9px;overflow:hidden;background:#fffdf6}.feature img{object-fit:cover;width:100%;height:100%;min-height:230px}.feature>div{padding:clamp(20px,4.2vw,52px);align-self:center}.feature h2{font-size:clamp(25px,3.8vw,45px);line-height:1.35;margin:.14em 0 .3em}.section-label{font-size:.8rem;font-weight:750;letter-spacing:.04em;color:var(--gold)}#feature-excerpt{font-family:"AppleMyungjo","Batang",serif;margin-bottom:16px;font-size:1.05rem}
.shelf-head{margin:32px 0 18px}.shelf-head h2{font-size:clamp(24px,3.2vw,32px)}input{width: min(200px,38vw);min-height:44px;padding:7px 11px;border:1px solid var(--line);border-radius:6px;background:#fffdf8;color:var(--ink)}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:24px 15px}.book{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;overflow:hidden;border:1px solid #cec8b4;border-radius:4px 9px 9px 4px;background:var(--paper);box-shadow:2px 3px 0 #dfdacb}.book img{width:100%;height:auto;aspect-ratio:11/7;object-fit:cover}.book div{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:5px;padding:10px 12px 13px;border-left:4px solid #9aa990}.book strong{font-size:1.13rem;line-height:1.45}.book small{font-weight:450;color:#596254}
.spread{display:grid;grid-template-columns:1.05fr 1fr;margin:24px auto 20px;min-height:370px;overflow:hidden;border:1px solid var(--line);border-radius:7px 14px 14px 7px;background:var(--paper);box-shadow:0 4px 0 -1px #e5e0cf,0 6px 0 -1px #cec9b7}
.spread figure{min-width:0;background:#ebe7d8;display:flex;align-items:center}.spread img{width:100%;height:100%;object-fit:contain}.leaf{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(20px,3.3vw,43px);background:linear-gradient(to right,#e8e4d7 0,#faf7ee 4%)}.leaf h1{font-size:clamp(1.15rem,2.6vw,1.7rem);color:var(--gold);margin-bottom:.7em}.leaf p{font:clamp(21px,2.35vw,29px)/1.85 "AppleMyungjo","Batang",Georgia,serif;letter-spacing:-.035em;word-break:keep-all;overflow-wrap:anywhere;white-space:pre-line}.folio{align-self:center;margin-top:17px;font-size:.85rem;color:#6c705e}.reader-tools{flex-wrap:wrap}.reader-tools>div{flex-wrap:wrap}
.paper{max-width:750px;background:var(--paper);border:1px solid var(--line);border-radius:13px;margin:24px auto;padding:clamp(18px,4vw,36px)}.quiz h1{color:var(--gold);font-size:1rem}.quiz h2{font-size:clamp(22px,3.4vw,34px);line-height:1.5;margin:12px 0 14px}.quiz #answers{display:grid;gap:10px;margin-top:20px}.answer-row{display:grid;grid-template-columns:1fr auto;gap:8px}.answer-row button:first-child{text-align:left}.answer-row button[aria-pressed=true]{border-color:var(--green);background:#e3eedf}.answer-row button:disabled{opacity:1}.answer-row button:last-child{font-size:.84rem}.quiz #feedback{min-height:1.6em;margin:14px 0}.finish{text-align:center}.finish img{width:min(100%,400px);height:auto;border-radius:7px}.finish p{margin:.7em 0 1em}#sound-note,#storage-note{margin:10px auto;color:#505c50;font-size:.92rem}.sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media(max-width:650px){main{padding-inline:14px}.mast,.book-nav{min-height:60px}.feature,.spread{grid-template-columns:1fr}.feature img{min-height:0;height:auto}.feature>div{padding:16px 20px}.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}.shelf-head{gap:6px}.shelf-head input{font-size:.86rem}.book strong{font-size:1.02rem}.spread{margin:14px 0;min-height:0}.spread figure{justify-content:center}.spread img{height:auto;max-height:32vh;object-fit:contain}.leaf{padding:16px 20px 12px;background:var(--paper)}.leaf h1{margin-bottom:6px}.leaf p{font-size:20px;line-height:1.8}.folio{margin-top:8px}.reader-tools{gap:7px}.reader-tools>div{gap:5px}.reader-tools button,.answer-row button{padding:8px 9px}.book-nav span{font-size:.82rem}.paper{margin:15px auto}.answer-row{gap:6px}}
@media(max-width:380px){.reader-tools{align-items:stretch}.reader-tools>div{flex:1 1 100%}.reader-tools button{flex:1}.shelf-head input{width:128px}.book div{padding:8px}.intro p{font-size:.94rem}}
#finish-results{list-style:none;padding:0;margin:0 auto 1.4rem;display:grid;gap:.4rem;justify-content:center;font-weight:650}
