:root{color-scheme:light;font-family:system-ui,"Yu Gothic",sans-serif;color:#253b36;background:#f5f2e7;font-size:18px;line-height:1.75}*{box-sizing:border-box}body{margin:0}header,main,footer{width:min(100% - 2rem,62rem);margin:auto}header{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;padding:1rem 0;border-bottom:2px solid #bacbbe}a{color:#195d4c;text-underline-offset:.2em}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;border:2px solid #49695d;border-radius:.8rem;background:white;color:inherit;padding:.65rem 1rem;min-height:48px;max-width:100%;white-space:normal;overflow-wrap:anywhere}button:disabled{cursor:default;color:#52665d;background:#e7eee7}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8c4700;outline-offset:3px}button[aria-pressed=true]{background:#fbe7a1;border-color:#785515;box-shadow:inset 0 0 0 2px #785515}.primary{background:#245849;color:white}.prototype{font-size:.8rem}main{padding:1.5rem 0 2rem}h1{font-size:clamp(1.7rem,4vw,2.3rem);line-height:1.5;margin:.35rem 0 1rem}h2{font-size:1.2rem}h3{font-size:1.05rem}p{margin:.6rem 0 1rem}rt{font-size:.55em}.eyebrow{letter-spacing:.08em;color:#486157;font-size:.9rem}.chapter-hero,.panel{background:#fffdf7;border:2px solid #bdcdbb;border-radius:1.2rem;padding:clamp(.8rem,3vw,1.5rem);min-width:0}.chapter-hero{border-top:6px solid #dfb957}.layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,25rem),1fr));gap:1rem}.layout>*{min-width:0}.actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}.story-diagram{margin:1rem 0;padding:.8rem;background:#eaf3ec;border-radius:.8rem;min-width:0}.story-diagram figcaption{font-weight:700;margin-bottom:.6rem}.shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;list-style:none;padding:0;margin:.5rem 0}.shelf li{display:grid;align-content:start;text-align:center;background:white;border:1px solid #708979;border-radius:.4rem;padding:.35rem;min-width:0;overflow-wrap:anywhere}.shelf small{display:block;font-size:.75rem}.shelf-symbol{font-size:1.5rem;line-height:1.3}.matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;max-width:14rem;margin:.6rem auto}.matrix span{display:grid;place-items:center;aspect-ratio:1;border:2px solid #38564c;background:white;color:#253b36;font-weight:700}.matrix .black{background:#253b36;color:white}.diagram-pair,.candidate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.8rem}.visual-text{font-size:.9rem;margin:.6rem 0}.steps{padding-left:1.8rem}.steps li{padding:.2rem 0}.answers{border:0;padding:0;margin:1rem 0}.answers legend{font-weight:700}.choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.65rem;margin-top:.6rem}.choice{width:100%;text-align:left}.choice ol{margin:.3rem 0;padding-left:1.6rem}.choice strong{display:block}.person{border:1px solid #a5b9ad;border-radius:.8rem;padding:.8rem;background:white}.person h3{margin:.1rem 0 .5rem}.person dl{margin:0}.person dl div{display:grid;grid-template-columns:5rem minmax(0,1fr);gap:.3rem}.person dt{color:#40574e}.person dd{margin:0;overflow-wrap:anywhere}.notebook{border:2px solid #c7ad69;border-radius:.8rem;background:#fff8dc;padding:.8rem;margin-top:1rem}.notebook ol{padding-left:1.4rem}.status{min-height:2rem;font-weight:700}.success{border-left:5px solid #287351;background:#edf7ed;padding:.8rem}.award{border:3px double #8e691f;border-radius:1rem;background:#fff5cb;padding:1rem;text-align:center}.progress{display:flex;flex-wrap:wrap;gap:.4rem;padding:0;list-style:none}.progress a,.progress span{display:block;padding:.35rem .65rem;border:1px solid #9aafa0;border-radius:.5rem}.progress [aria-current=step]{background:#d5ebdb;font-weight:700}.muted{color:#4c6359;font-size:.9rem}details{margin:1rem 0}summary{cursor:pointer;min-height:44px}footer{border-top:1px solid #bacbbe;padding:1rem 0 2rem}footer p{font-size:.9rem}[hidden]{display:none!important}@media(max-width:430px){header,main,footer{width:calc(100% - 1rem)}.story-diagram{padding:.5rem}.shelf{gap:.25rem}.shelf li{padding:.25rem}.actions>*{flex:1 1 10rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
:root .order-line{display:block;margin-top:.2rem}

.scene{margin:1rem 0;background:#e8efdc;border:1px solid #9eaf97;border-radius:1rem;overflow:hidden}.scene img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.scene figcaption,.scene>p{padding:0 .8rem}.scene figcaption{font-weight:700}.version-note{background:#fff2c6;border-left:4px solid #987021;padding:.7rem}.matrix span{font-size:1rem;line-height:1.3}.shelf-symbol{color:#253b36}

.scene-fallback{padding:1rem;background:#edf2e8;overflow-wrap:anywhere}
