:root{--ink:#252146;--paper:#fffaf0;--lav:#e2d7ff;--mint:#bceacb;--gold:#ffe16a;--peach:#ffc1b9;--sky:#b9e4fa;--line:#dbd5e1}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 system-ui,sans-serif}
a{color:#4b3192;text-underline-offset:.18em}a:hover{text-decoration-thickness:2px}:focus-visible{outline:3px solid #1d666b;outline-offset:4px}[hidden]{display:none!important}
.wrap{max-width:76rem;margin:auto;padding-inline:clamp(1rem,4vw,3rem)}header{border-bottom:1px solid var(--line);background:white}header .wrap,nav,.chips,.row,.filters{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}header .wrap{justify-content:space-between;padding-block:1rem}.brand{color:var(--ink);font-size:1.3rem;font-weight:900;text-decoration:none}.brand span{display:inline-grid;place-items:center;width:2rem;aspect-ratio:1;border-radius:.55rem;background:var(--gold);transform:rotate(-8deg)}
.skip{position:absolute;top:-6rem}.skip:focus{top:.5rem;background:white;padding:.55rem}main{padding-block:2rem 4rem}h1,h2,h3{line-height:1.12;letter-spacing:-.035em}h1{font-size:clamp(2.35rem,6vw,5rem);max-width:21ch;margin:.25em 0 .35em;font-weight:900}h2{font-size:clamp(1.65rem,3vw,2.45rem)}h3{font-size:1.2rem}.lead{font-size:1.2rem;max-width:55ch}
.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:1rem}.hero > *, .banner,.tile,.filters{border-radius:1.35rem;padding:clamp(1.2rem,4vw,2.5rem)}.hero-copy,.filters{background:var(--lav)}.hero-art{display:grid;place-items:center;background:var(--gold);min-height:16rem;overflow:hidden}.shapes{display:grid;grid-template-columns:1fr 1fr;gap:1rem;transform:rotate(-9deg)}.shapes span{width:clamp(3.6rem,9vw,7rem);aspect-ratio:1;display:grid;place-items:center;background:white;border-radius:27% 50% 31% 32%;box-shadow:.25rem .28rem 0 var(--ink);font-size:clamp(2rem,5vw,4rem);font-weight:900}.shapes span:nth-child(2){background:var(--peach)}.shapes span:nth-child(3){background:var(--mint)}.shapes span:nth-child(4){background:var(--sky)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}.tile{background:white;border:1px solid var(--line);padding:1.1rem}.tile img{width:100%;height:auto;border-radius:.75rem}.screen,.craft{background:var(--peach)}.music,.words{background:var(--gold)}.book,.out{background:var(--mint)}.games{background:var(--sky)}section{margin-block:2.1rem}.chip{background:white;border:1px solid var(--line);border-radius:99px;padding:.35rem .7rem}
label{display:grid;gap:.25rem;font-weight:700}input,select,button,.btn{max-width:100%;font:inherit;padding:.52rem .73rem;border:1px solid var(--ink);border-radius:.6rem;color:inherit;background:white}button,.btn{background:var(--ink);color:white;text-decoration:none;cursor:pointer;font-weight:750}.filters{align-items:end}.prose{max-width:70ch;font-size:1.08rem;line-height:1.75}.prose.large-type{font-size:1.34rem}.prose details{border:1px solid var(--line);border-radius:.6rem;padding:.65rem;background:white;margin:.7rem 0}.prose summary{cursor:pointer;font-weight:700}.prose figure,.cover{margin:1rem 0}.cover img,.prose img{max-width:100%;height:auto;border-radius:1rem}.secondary,figcaption{font-size:.93rem;color:#55536a}footer{background:var(--ink);color:white;padding:1.5rem 0}footer a{color:white}
@media(max-width:46rem){.hero{grid-template-columns:1fr}.hero-art{min-height:12rem}.filters label{flex:1 1 12rem}}

.category-card img{display:block;aspect-ratio:16/9;object-fit:cover}.topic-directory{margin-block:1.5rem}.filters label,.prose,.tile{min-width:0}.filters select{width:100%;min-width:0}.filter-note{margin-block:1rem}.prose{overflow-wrap:break-word}.cover img{display:block}.banner+.grid{margin-top:1.25rem}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.tile{overflow-wrap:anywhere}

.category-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(1rem,4vw,3rem);align-items:center;margin-bottom:1.3rem}
.category-hero img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:1.05rem;box-shadow:.35rem .35rem 0 var(--ink)}
.age-chips{margin-block:1rem}.age-chips .chip:nth-child(3n+1){background:var(--gold)}.age-chips .chip:nth-child(3n+2){background:var(--mint)}.age-chips .chip:nth-child(3n){background:var(--lav)}.season-panel{background:var(--sky)}
@media(max-width:46rem){.category-hero{grid-template-columns:1fr}.category-hero img{max-height:18rem}}
