@font-face{font-family:Poppins;src:url(poppins-black-latin.woff2) format("woff2");font-weight:900;font-display:swap}
:root{--navy:#174A7E;--ink:#17324D;--paper:#FFF2D9;--wood:#A85623;accent-color:var(--navy);scroll-behavior:smooth;scroll-padding-top:16px}
*{box-sizing:border-box}body{margin:0;background:var(--wood);color:var(--ink);font-family:Fredoka,system-ui,sans-serif;font-size:20px;line-height:1.5}::selection{background:#D2F9F6;color:var(--navy)}a{color:var(--navy);text-underline-offset:.22em}a:hover{text-decoration-thickness:2px}:focus-visible{outline:3px solid var(--navy);outline-offset:4px}img{display:block;max-width:100%;height:auto}h1,h2{font-family:Poppins,sans-serif;font-weight:900;color:var(--navy);line-height:1.06;letter-spacing:-.035em;text-wrap:balance;margin:0}h3{font-size:25px;font-weight:600;line-height:1.2;color:var(--navy);margin:30px 0 12px}p{margin:0 0 18px;max-width:68ch}.skip-link{position:absolute;left:20px;top:-100px;z-index:30;background:white;padding:12px}.skip-link:focus{top:12px}
.valentine-hero,.chapter-scene{position:relative;width:100%}.hero-art,.chapter-scene picture{display:block}.hero-art img,.chapter-scene picture img{width:100%;height:auto;border-radius:0}.hero-copy{position:absolute;left:6%;top:11%;width:40%;color:var(--navy)}.hero-copy h1{font-size:clamp(36px,5.3vw,88px)}.hero-subtitle{font-size:clamp(20px,2.2vw,36px);font-weight:600;line-height:1.2;margin:18px 0}.hero-description{font-size:clamp(17px,1.6vw,26px);line-height:1.3;margin-bottom:16px}.activity-links{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4%;width:87%;margin:-9.3% auto 0;padding:0 0 1.5%;scroll-margin-top:16px}.activity-links a{display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:3/1;padding:6% 10%;text-align:center;background:url(valentines/cottage-sign.webp) center/100% 100% no-repeat;font-size:clamp(18px,1.9vw,31px);font-weight:600;line-height:1.15;color:var(--navy);text-decoration:none;transition:transform .18s ease-out}.activity-links a:hover{transform:translateY(-3px)}.activity-links a:active{transform:translateY(1px)}
.play-guide{scroll-margin-top:16px}.scene-title,.scene-invitation,.math-example{position:absolute;z-index:1}.scene-title{font-size:clamp(24px,3vw,50px);line-height:1.1}.scene-invitation{font-size:clamp(16px,1.85vw,31px);line-height:1.25;color:var(--navy)}.scene-invitation p{margin-bottom:16px}.scene-invitation a{display:inline-flex;align-items:center;min-height:44px;font-size:clamp(15px,1.45vw,24px);font-weight:600}.math-example{margin:0;color:var(--navy)}.math-example figcaption{font-size:clamp(13px,1.15vw,19px);line-height:1.3;margin:14px auto 0;text-align:center;max-width:38ch}.post-chapter .scene-title{left:15%;top:20%;width:28%}.post-chapter .scene-invitation{left:15%;top:34%;width:27%}.post-chapter .math-example{left:53%;top:43%;width:36%}.sort-chapter .scene-title{left:20%;top:16%;width:30%;text-align:center;font-size:clamp(24px,2.7vw,45px)}.sort-chapter .scene-invitation{left:65%;top:34%;width:23%}.sort-chapter .math-example{left:11%;top:43%;width:43%}.fold-chapter .scene-title{left:27%;top:16%;width:45%;text-align:center;font-size:clamp(24px,2.7vw,45px)}.fold-chapter .scene-invitation{left:54%;top:45%;width:24%;font-size:clamp(21px,2.2vw,34px);line-height:1.25}.fold-chapter .math-example{left:18%;top:42%;width:28%}.fold-chapter .halves-example{height:13.5vw;max-height:210px}.fold-chapter .math-example figcaption{font-size:clamp(15px,1.25vw,21px);margin-top:8px;max-width:25ch}
.match-example{display:flex;justify-content:space-around;gap:14px}.match-example>div{display:flex;align-items:center;flex-direction:column;gap:16px}.recipient{font-size:clamp(17px,1.5vw,25px);font-weight:600}.paper-card{width:clamp(45px,5.5vw,92px);height:clamp(58px,7vw,118px);display:flex;align-items:center;justify-content:center;border:2px solid var(--navy);border-radius:5px;background:#FFF6F9}.paper-card svg{width:65%;fill:#C7405D}.sort-example{display:grid;grid-template-columns:1fr 1fr;gap:24px;text-align:center;font-size:clamp(17px,1.55vw,26px);font-weight:600}.sort-example>div{border:2px solid var(--navy);border-radius:12px;padding:15px 8px;background:#FFF0D4}.sort-example>div>div{display:flex;justify-content:center;gap:12px;margin-top:14px}.sort-example img{display:block;width:clamp(72px,6.5vw,96px);max-width:calc((100% - 12px)/2);height:auto;aspect-ratio:1;object-fit:contain;image-rendering:auto}.halves-example{display:block;width:100%;height:auto;fill:var(--navy);font-size:15px}
.guide-surround{position:relative;z-index:2;margin-top:-6%;padding:0 6% 0;background:transparent}.guide-surround:has(details[open]){padding-bottom:24px;background:url(valentines/cottage-fold.webp) center bottom/cover no-repeat}.activity-details{width:100%}.activity-details,.materials-details{max-width:1100px;margin-inline:auto}.activity-details>summary,.materials-details>summary{display:flex;align-items:center;justify-content:center;gap:14px;width:min(440px,100%);min-height:60px;margin:auto;cursor:pointer;background:var(--paper);border-radius:12px;padding:14px 24px;color:var(--navy);font-size:21px;font-weight:600;line-height:1.2;list-style:none}.activity-details>summary::-webkit-details-marker,.materials-details>summary::-webkit-details-marker{display:none}.activity-details>summary::marker,.materials-details>summary::marker{content:""}.chevron{width:24px;height:24px;flex:0 0 auto}.activity-details[open]>summary .chevron,.materials-details[open]>summary .chevron{transform:rotate(180deg)}.guide-content,.materials-content{background:var(--paper);border-radius:16px;padding:36px clamp(22px,4vw,64px);margin:12px 0 22px}.guide-content>p,.guide-content .steps{max-width:70ch}.guide-subtitle{font-size:27px;line-height:1.25;color:var(--navy)}.math-note{font-size:17px;margin-block:24px}.steps{padding-left:27px}.steps li{padding-left:8px;margin-bottom:16px}.steps li::marker{color:var(--navy);font-weight:600}.try-options{display:grid;grid-template-columns:1fr 1fr;gap:40px}.parent-prompt .question{font-size:25px;color:var(--navy);line-height:1.3}.back-link{display:inline-flex;min-height:44px;align-items:center}.fold-chapter .guide-surround{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.fold-chapter .guide-surround details{min-width:0;width:100%}.fold-chapter .guide-surround details[open]{grid-column:1/-1}.materials-details{margin-top:0;width:100%}.materials-details>summary{width:min(440px,100%)}.supply-list{border:1px solid var(--navy);border-radius:12px;padding:20px 26px;margin:28px 0;min-width:0}.supply-list legend{padding-inline:10px;color:var(--navy);font-weight:600;font-size:24px}.supply-list label{display:flex;align-items:center;gap:14px;min-height:48px;padding-block:9px;cursor:pointer}.supply-list input{width:23px;height:23px;flex:0 0 auto;margin:0}.supply-list p{font-size:17px;margin-top:18px;color:var(--navy)}
@media(max-width:1050px) and (orientation:landscape){.hero-copy{top:9%}.hero-subtitle{margin-block:12px}.hero-description{margin-bottom:10px}.scene-invitation p{margin-bottom:5px}.scene-invitation a{min-height:36px}.post-chapter .scene-invitation{top:36%}.math-example figcaption{margin-top:8px}.sort-example>div{padding:10px 5px}.sort-example>div>div{margin-top:8px}.match-example>div{gap:8px}}
@media(max-width:700px),(max-width:900px) and (orientation:portrait){.hero-copy{left:7%;top:5%;width:86%;text-align:center}.hero-copy h1{font-size:clamp(34px,9.2vw,68px)}.hero-subtitle{font-size:clamp(18px,4.6vw,34px);line-height:1.15;margin:12px 0}.hero-description{font-size:clamp(16px,4.1vw,29px);line-height:1.22;margin:0 0 10px}.activity-links{width:100%;margin:0;padding:10px 7% 18px;grid-template-columns:1fr;gap:0;background:var(--wood)}.activity-links a{width:min(420px,100%);aspect-ratio:3.5/1;margin:auto;padding:6% 12%;font-size:clamp(22px,5.6vw,28px)}.scene-title{font-size:clamp(24px,5.7vw,44px);line-height:1.12}.scene-invitation{font-size:clamp(17px,4.2vw,32px);line-height:1.2;text-align:center}.scene-invitation p{margin-bottom:8px}.scene-invitation a{display:none}.post-chapter .scene-title{left:18%;top:21%;width:65%;text-align:center}.post-chapter .scene-invitation{left:20%;top:30%;width:62%}.post-chapter .math-example{left:12%;top:50%;width:76%}.sort-chapter .scene-title{left:17%;top:19%;width:67%;font-size:clamp(23px,5.6vw,43px)}.sort-chapter .scene-invitation{left:18%;top:31%;width:64%}.sort-chapter .math-example{left:12%;top:52%;width:76%}.sort-chapter .math-example figcaption{margin-top:6px}.fold-chapter .scene-title{left:20%;top:12%;width:61%;font-size:clamp(24px,6.1vw,47px)}.fold-chapter .scene-invitation{left:22%;top:27%;width:55%;font-size:clamp(17px,4.2vw,32px)}.fold-chapter .math-example{left:14%;top:51%;width:61%}.fold-chapter .halves-example{height:24vw;max-height:190px}.fold-chapter .math-example figcaption{font-size:clamp(13px,3.4vw,23px);margin-top:6px;max-width:26ch}.math-example figcaption{font-size:clamp(13px,3.4vw,23px);line-height:1.25;margin-top:12px}.recipient{font-size:clamp(17px,4.2vw,30px)}.match-example{gap:10px}.match-example>div{gap:12px}.paper-card{width:clamp(45px,12vw,86px);height:clamp(58px,15.5vw,111px)}.sort-example{gap:15px;font-size:clamp(16px,4vw,28px)}.sort-example>div{padding:8px 6px}.sort-example>div>div{margin-top:10px}.sort-example>div>div{gap:8px;margin-top:8px}.sort-example img{width:clamp(55px,10vw,90px);max-width:calc((100% - 8px)/2)}.guide-surround{margin-top:-13%;padding:0 5% 0}.fold-chapter .guide-surround{grid-template-columns:1fr;gap:8px}.guide-surround:has(details[open]){background-image:url(valentines/cottage-fold-phone.webp)}.activity-details>summary,.materials-details>summary{font-size:19px;min-height:54px;padding:12px 18px;gap:12px}.guide-content,.materials-content{font-size:19px;padding:25px 22px}.try-options{grid-template-columns:1fr;gap:0}.guide-subtitle{font-size:24px}.parent-prompt .question{font-size:23px}.supply-list{padding:16px}.halves-example{font-size:15px;max-height:100px}}
@media(max-width:360px){.hero-copy{top:4%}.hero-copy h1{font-size:33px}.hero-subtitle{font-size:17px;margin-block:9px}.hero-description{font-size:15px}.scene-invitation{font-size:16px}.scene-invitation a{font-size:15px;min-height:34px}.post-chapter .scene-title{font-size:22px}.post-chapter .scene-invitation{top:30%}.sort-example{gap:10px}.sort-example>div{padding:9px 4px}.math-example figcaption{font-size:13px}.activity-details>summary,.materials-details>summary{font-size:19px}.guide-content,.materials-content{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.activity-links a{transition:none}.activity-links a:hover,.activity-links a:active{transform:none}}
.fold-chapter .guide-surround{background-image:url(valentines/cottage-fold.webp);background-position:center bottom;background-size:100% auto;background-repeat:no-repeat}@media(max-width:700px),(max-width:900px) and (orientation:portrait){.fold-chapter .guide-surround{background-image:url(valentines/cottage-fold-phone.webp)}}
