:root {
  --ink:#28382e; --forest:#213f37; --muted:#58615a; --berry:#833956;
  --gold:#ffd484; --paper:#fdf9f0; --rule:#d7cbb4; --serif:Georgia,"Times New Roman",serif;
  font-family:"Trebuchet MS","Segoe UI",sans-serif; color:var(--ink); background:var(--paper);
}
*{box-sizing:border-box}
body,figure,h1,h2,h3,p{margin:0}
body{line-height:1.55}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer}
a{color:var(--berry);text-underline-offset:.24em}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b04773;outline-offset:4px}
.wide{width:min(1264px,calc(100% - clamp(2.1rem,8vw,8rem)));margin-inline:auto}
.skip,.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus{width:auto;height:auto;clip-path:none;padding:1rem;z-index:20;background:white}
.mast{background:#fffaf0;border-bottom:1px solid var(--rule)}
.topbar,.topbar nav,.footer-inner,.footer-inner nav{display:flex;align-items:center}
.topbar,.footer-inner{justify-content:space-between}
.topbar{min-height:70px}.brand img{width:99px;height:58px;object-fit:contain}
.topbar nav{gap:clamp(1rem,3vw,2.6rem)}
.topbar nav a,.quiet-link,footer a,.pdf-link,.routes a{font-weight:700}
.topbar nav a{color:var(--ink);text-decoration:none;font-size:.96rem}
.topbar nav a:not(.pill):hover,footer a:hover{text-decoration:underline}
.pill{display:inline-flex;min-height:44px;align-items:center;justify-content:center;border-radius:5px;font-weight:700;text-decoration:none;padding:.75rem 1.2rem}
.pill.mini{color:white;background:var(--berry)}.pill.mini:hover{background:#642740}
.eyebrow,.paper-label{font-size:.8rem;letter-spacing:.105em;text-transform:uppercase;line-height:1.35;font-weight:700;color:var(--berry)}
h1,h2,h3,.age strong{font-family:var(--serif);font-weight:400}
h2{font-size:clamp(2.15rem,4.1vw,3.8rem);letter-spacing:-.055em;line-height:1.04}
h3{letter-spacing:-.026em;line-height:1.15}
section[id]{scroll-margin-top:1rem}
.hero{background:var(--forest);color:#fff6dd;border-bottom:5px solid #d6ab5d}
.spread{display:grid;grid-template-columns:0.76fr 1.24fr;align-items:center;gap:clamp(1.2rem,3.2vw,3rem);padding-block:clamp(2.4rem,4.6vw,4.3rem)}
.intro{padding-left:clamp(0px,.75vw,10px)}
.intro .eyebrow{color:#f8d89c}
h1{font-size:clamp(3.05rem,5.7vw,5.6rem);letter-spacing:-.067em;line-height:.98;margin:.75rem 0 1.12rem}
h1 em{color:#ffdb95;font-weight:400}
.lede{max-width:31rem;font-size:clamp(1rem,1.2vw,1.2rem);line-height:1.55;color:#f5efdf}
.hero-links{display:flex;flex-wrap:wrap;align-items:center;gap:1.15rem;margin-top:1.6rem}
.primary{background:var(--gold);color:#303326}.primary:hover{background:#ffe5ac}
.hero-links .quiet-link{color:#fff3d1}
.hero-art{position:relative;background:#fffae9;border:6px solid #fff8e9;box-shadow:5px 8px 0 #122b28;transform:rotate(.8deg)}
.hero-art img{width:100%;height:auto;aspect-ratio:5/3;object-fit:cover}
.hero-art figcaption{position:absolute;right:.6rem;bottom:.6rem;background:#fff4ca;color:#433421;padding:.27rem .65rem;transform:rotate(-3deg);font:.94rem var(--serif);box-shadow:1px 2px 3px #232a282e}
.hero-art figcaption span{font-family:"Trebuchet MS",sans-serif;font-size:.83rem}
.story-section{display:grid;grid-template-columns:.66fr 1.34fr;gap:clamp(2rem,6vw,6rem);align-items:center;padding-block:clamp(2.7rem,5.3vw,5rem)}
.story-section h2{margin:.65rem 0 .85rem}.story-section header>p:not(.eyebrow){max-width:28rem;color:var(--muted)}
.story-section header>a{display:inline-block;margin-top:1rem}
.contents-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.contents-list li{border-bottom:1px solid var(--rule)}
.contents-list a{display:grid;align-items:center;grid-template-columns:66px minmax(0,1fr) auto;gap:1rem;padding:.6rem .25rem;color:var(--ink);text-decoration:none}
.contents-list a:hover,.contents-list a:focus-visible{background:#f1ebda}
.contents-list img{width:66px;height:48px;object-fit:cover;border-radius:2px}
.contents-list strong{font:normal clamp(1.16rem,1.65vw,1.55rem)/1.17 var(--serif)}
.contents-list small{font-size:.86rem;white-space:nowrap;color:var(--muted)}
.shelf,.access{padding-block:clamp(2.6rem,5.1vw,4.8rem);border-top:1px solid var(--rule)}
.section-head,.lesson-intro{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.6rem}
.section-head>p{max-width:30rem;color:var(--muted)}.section-head .eyebrow,.lesson-intro .eyebrow,.author-copy .eyebrow{margin-bottom:.65rem}
.age-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.75rem,1.6vw,1.4rem)}
.age{position:relative;border:1px solid #bfb298;border-bottom-width:3px;padding:0;text-align:left;border-radius:3px;background:#fffaf0;min-width:0;transition:transform .15s ease}
.age:hover{transform:translateY(-3px)}
.age>img{width:100%;height:auto;aspect-ratio:650/460;object-fit:cover}
.age>span{display:block;padding:.85rem .9rem 1.07rem}
.age strong{display:block;font-size:clamp(1.4rem,2vw,2rem);line-height:1.08;letter-spacing:-.045em}
.age small{display:block;font-size:.91rem;line-height:1.4;margin-top:.3rem}
.age i{position:absolute;top:.55rem;right:.55rem;width:23px;height:23px;background:#fffcf4;border:1px solid #776b5e;border-radius:50%}
.age[aria-pressed=true]{outline:2px solid var(--berry);outline-offset:1px}
.age[aria-pressed=true] i{background:var(--berry);border-color:#fff}
.age[aria-pressed=true] i:after{content:"";position:absolute;top:4px;left:8px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(42deg)}
.lesson-band{background:#f0e4c7;border-block:1px solid #d7c295}
.lesson-area{padding-block:clamp(2.4rem,4.5vw,4.3rem)}
.topics,.view-switch{display:inline-flex;gap:.2rem;border:1px solid #9a8a72;border-radius:5px;padding:.2rem;background:#fffaf0}
.topics button,.view-switch button{min-height:42px;border:0;border-radius:3px;background:transparent;padding:.5rem 1rem;font-weight:600}
.topics [aria-pressed=true],.view-switch [aria-pressed=true]{color:#fffaf0;background:var(--forest)}
.open-book{display:grid;grid-template-columns:1fr 1fr;background:#fffcf3;box-shadow:0 3px 0 #dacfb8,0 5px 0 #f8f2e1,0 7px 0 #c1af92,0 12px 22px #70572d1f;border:1px solid #d9cdb2;border-radius:3px}
.picture-leaf{min-width:0;background:#f5efdd;border-right:1px solid #ccbea6;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:clamp(1rem,2.2vw,2rem);gap:1.1rem}
.lesson-image-wrap{width:100%;display:grid;place-items:center}
.lesson-image-wrap img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.lesson-image-wrap[data-view=page] img{height:clamp(280px,30vw,400px);aspect-ratio:unset}
.view-switch button{font-size:.88rem;min-height:38px;padding:.4rem .8rem}
.lesson-paper{padding:clamp(1.4rem,3vw,2.8rem);min-width:0}
.lesson-paper h3{margin:.55rem 0 .85rem;font-size:clamp(1.8rem,2.8vw,2.65rem)}
.lesson-paper p{line-height:1.53}
.question{font-weight:700;margin:.8rem 0}
#play-turn:not([hidden]){border-left:3px solid #bd9851;padding-left:.8rem;margin:1.1rem 0}
.turn-label{font-weight:700}
#play-options{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}
#play-turn button{min-height:40px;padding:.4rem .67rem;border:1px solid #aa9578;border-radius:4px;background:#fffcf5;font-size:.91rem}
#play-turn button[aria-pressed=true]{background:var(--forest);color:white}
.choice-card{display:inline-flex;align-items:center;gap:.25rem}
#play-feedback{font-size:.94rem}
details{border-block:1px solid var(--rule);margin:.95rem 0}summary{cursor:pointer;font-weight:700;padding:.7rem 0;color:var(--berry)}details p{padding-bottom:1rem}
.pdf-link span{font-size:.8rem;color:var(--muted);margin-left:.25rem}
.about{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,6vw,6rem);padding-block:clamp(3rem,6vw,5.5rem)}
.album{position:relative;min-height:clamp(230px,30vw,350px);max-width:525px;width:100%}
.album figure{position:absolute;width:50%;background:#fffefa;padding:.48rem .48rem .6rem;box-shadow:0 3px 11px #4235272a;border:1px solid #ddd1be}
.album figure img{width:100%;height:auto;aspect-ratio:1.04;object-fit:cover}
.album .service{top:2%;left:4%;transform:rotate(-6deg)}.album .service img{object-position:50% 45%}
.album .portrait{top:13%;left:45%;transform:rotate(5deg)}.album .portrait img{object-position:50% 32%}
.album figcaption{text-align:center;font:italic 1rem/1.4 var(--serif);margin-top:.4rem}
.author-copy p:not(.eyebrow){margin:.85rem 0;color:var(--muted)}
.access{padding-top:2.6rem}.routes{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.routes article{border-top:2px solid var(--forest);padding-top:1rem}
.routes h3{font-size:clamp(1.45rem,2vw,2rem)}.routes p{margin:.6rem 0 .8rem;color:var(--muted)}
footer{border-top:1px solid var(--rule);padding:1.4rem 0}.footer-inner,.footer-inner nav{flex-wrap:wrap;gap:1.1rem;font-size:.92rem}
.footer-inner b{color:var(--berry);margin:0 .4rem}
@media(max-width:820px){
 .spread{grid-template-columns:.82fr 1.18fr;gap:1.4rem}.hero-art figcaption{font-size:.8rem}
 .story-section{grid-template-columns:.8fr 1.2fr;gap:1.8rem}
 .section-head{align-items:start;flex-direction:column;gap:.65rem}
 .age-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .about{gap:1.8rem}.album{min-height:250px}
}
@media(max-width:640px){
 .wide{width:calc(100% - 2rem)}.topbar{min-height:60px}.brand img{width:67px;height:45px}
 .topbar nav{gap:.76rem}.topbar nav a{font-size:.87rem}.pill.mini{padding:.52rem .72rem}
 .spread{display:flex;flex-direction:column;align-items:stretch;gap:1.3rem;padding:1.65rem 0 2.3rem}
 h1{font-size:clamp(3.05rem,12.2vw,4.15rem);margin:.65rem 0 .7rem}
 .hero-links{margin-top:1rem}.hero-art{border-width:4px;transform:rotate(.45deg)}
 .hero-art figcaption{right:.3rem;bottom:.3rem}
 .story-section,.open-book,.about,.routes{grid-template-columns:1fr}
 .story-section{gap:1rem}.story-section header>a{margin-top:.5rem}
 .contents-list a{grid-template-columns:55px minmax(0,1fr) auto;gap:.6rem}.contents-list img{width:55px;height:43px}
 .age-grid{gap:.8rem}.age>span{padding:.7rem}.age small{font-size:.88rem}
 .lesson-intro{align-items:start;flex-direction:column;gap:1rem}
 .picture-leaf{border-right:0;border-bottom:1px solid var(--rule);padding:1rem;gap:.6rem}
 .lesson-image-wrap img{max-height:310px}.lesson-image-wrap[data-view=page] img{height:310px}
 .about{gap:1.2rem}.album{max-width:410px;min-height:clamp(205px,58vw,275px);margin-inline:auto}
 .routes{gap:1.4rem}.footer-inner{align-items:start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
