:root{color-scheme:light;--ink:#35213f;--plum:#5e3b76;--rose:#a45c77;--line:#b9a7c5;--tint:#e8d8f2}*{box-sizing:border-box}body{margin:0;padding:24px;background:#f8f0f4;font:14px Manrope,system-ui,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit;color:inherit}button,a{cursor:pointer}button{padding:10px 14px;border:1px solid #d7c9d9;background:#fffdfa;border-radius:9px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a45c77;outline-offset:3px}.primary{background:var(--plum);color:white}.learning-app{display:grid;grid-template-columns:190px minmax(0,1fr);max-width:1400px;margin:auto;border-radius:22px;overflow:hidden;background:#fff9f1;border:1px solid #e0d2e7}aside{padding:24px 16px;background:linear-gradient(#fffdfa,#f4eaf6);border-right:1px solid #e0d2e7}.brand{display:flex;flex-direction:column;align-items:center;text-decoration:none}.brand img{width:76px;height:90px;object-fit:contain}.brand b{font-weight:800;font-size:22px;color:var(--plum);margin-top:-12px}.brand span{font-weight:600;font-size:17px;color:var(--rose)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.4px;color:var(--rose)}aside .eyebrow{margin-top:30px}#collections{display:grid;gap:8px}#collections button{text-align:left;border:0;background:transparent;font-size:12px;line-height:1.6}#collections button[aria-pressed=true]{background:var(--tint);font-weight:800}.back{display:block;margin-top:30px;color:var(--rose);font-size:12px}main{padding:28px;min-width:0}header{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}h1{font-size:28px;color:var(--plum);margin:8px 0}header p{color:#594760}.actions{display:flex;gap:8px;flex-wrap:wrap}.controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:24px 0;padding:18px;border-radius:14px;background:#f2e9f7}.controls label{display:grid;gap:7px;font-size:11px;font-weight:600}.controls input,.controls select{max-width:190px;background:#fffdfa;border:1px solid #b9a7c5;padding:9px;border-radius:8px}.controls .answer-option{display:flex;align-items:center;padding:10px 0}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.collection-heading h2{font-size:20px;color:var(--plum);margin:8px 0}.collection-heading p,#save-status{font-size:12px;color:#594760}#activities{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}#activities button[aria-pressed=true]{background:#d8eee2;font-weight:800}.worksheet-stage{padding:22px;background:#e8d8f2;border-radius:16px;overflow:auto}#worksheet,.print-sheet{background:white;max-width:770px;margin:auto;min-height:850px;padding:36px;border:1px solid #dfd0e3;border-radius:5px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:2px solid var(--line)}.sheet-head img{width:44px;height:58px;object-fit:contain}.sheet-head h2{margin:0;font-size:27px;font-weight:800;color:#43264f}.sheet-head p{font-size:11px;color:#594760;margin:8px 0}.sheet-name{display:flex;justify-content:space-between;gap:20px;margin:18px 0;font-size:12px}.instruction{padding:12px 16px;background:#f8d6e0;border-radius:8px;line-height:1.7;font-size:13px}.exercise{margin:20px 0;padding:14px;border:1px solid #b9a7c5;border-radius:10px}.exercise h3{font-size:14px;margin:0 0 12px}.trace-svg{display:block;width:100%;height:75px;margin:10px 0}.writing-line{width:100%;border:0;border-bottom:1px solid #999;background:repeating-linear-gradient(transparent,transparent 31px,#b9a7c5 32px);line-height:32px;min-height:64px;resize:vertical;padding:0 4px}.writing-line::placeholder{color:#736179}.answer-box{width:65px;height:45px;border:1px solid #999;border-radius:7px;text-align:center;background:white}.worksheet-row{display:flex;align-items:center;gap:18px;margin:18px 0;flex-wrap:wrap;font-size:20px}.counting-dots{display:flex;gap:10px;flex-wrap:wrap;max-width:440px}.counting-dots i{width:28px;height:28px;background:#d8eee2;border:2px solid #5e3b76;border-radius:50%}.shape{display:inline-block;width:38px;height:38px;border:2px solid #5e3b76;background:white;vertical-align:middle;margin:0 12px}.shape.circle{border-radius:50%}.shape.triangle{border:0;background:transparent}.word-options{display:flex;gap:22px;flex-wrap:wrap;font-size:20px}.word-options label{display:flex;align-items:center;gap:8px}.word-options input{accent-color:#a45c77;width:19px;height:19px}.story{font-size:20px;line-height:2;background:#f0f7f1;padding:20px;border-radius:12px}.sheet-footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#594760;margin-top:28px;padding-top:12px;border-top:1px solid #b9a7c5}.answer-guide{background:#fff0c9;padding:16px;border-radius:10px;font-size:12px;line-height:1.8}.footnote{font-size:11px;line-height:1.7;color:#594760}.ink .instruction,.ink .story,.ink .answer-guide{background:white;border:1px solid #999}.ink .counting-dots i,.ink .shape{background:white;border-color:#222}.ink .shape.triangle{background:transparent;border:0}.ink .shape polygon{stroke:#222}.ink .sheet-head img{filter:grayscale(1)}.ink .sheet-head h2,.ink .sheet-head p,.ink .sheet-footer{color:#222}#print-pages{display:none}@media(max-width:800px){body{padding:8px}.learning-app{display:block}aside{border-right:0;border-bottom:1px solid #e0d2e7}.brand{flex-direction:row;gap:5px}.brand b{margin:0}.brand img{height:65px;width:55px}.brand span{margin-left:4px}aside .eyebrow{margin:15px 0}#collections{display:flex;flex-wrap:wrap}main{padding:16px}#worksheet{padding:20px;min-width:450px}.worksheet-stage{padding:10px}.collection-heading{flex-wrap:wrap}.sheet-head h2{font-size:23px}}@media print{body{margin:0;padding:0;background:white}.learning-app{display:block;border:0}.learning-app aside,header,.controls,.collection-heading,#activities,.worksheet-stage,.footnote{display:none!important}main{padding:0}#print-pages{display:block}.print-sheet{width:auto;max-width:none;min-height:0;padding:0;border:0;break-after:page;page-break-after:always}.print-sheet:last-child{break-after:auto;page-break-after:auto}.writing-line{resize:none;overflow:hidden}.exercise,.story,.answer-guide{break-inside:avoid}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

@media print{.exercise{margin:12px 0;padding:10px}.trace-svg{height:65px;margin:6px 0}.sheet-head{padding-bottom:12px}.sheet-name{margin:12px 0}.sheet-footer{margin-top:16px}.worksheet-row{margin:12px 0}.sheet-head h2{font-size:24px}.instruction{margin:12px 0;padding:10px 12px}}

/* Colorful accents keep writing spaces white and labels dark. */

.cut-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.cut-card{min-height:145px;border:1px dashed #736179;border-radius:10px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;background:#f4eaf8}
.cut-card:nth-child(3n+2){background:#e5f4ed}.cut-card:nth-child(3n){background:#fff4d7}
.cut-card strong{font-size:18px;color:#35213f}.flash-letter{font-size:42px;font-weight:800;color:#43264f}.cut-card .counting-dots{justify-content:center;gap:7px}.cut-card .counting-dots i{width:19px;height:19px}.learning-art{width:72px;height:72px;flex-shrink:0}
.matching-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.matching-cards .cut-card{min-height:110px}
.routine-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.routine-cards label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px;background:#e5f4ed;border:1px solid #999;border-radius:10px}.routine-cards input{height:22px;width:22px;accent-color:#5e3b76}.routine-cards strong{font-size:13px}
.cut-path{display:block;width:100%;height:85px;color:#5e3b76}.dough-letter,.dough-shapes{width:100%;display:block;color:#35213f}.dough-letter{height:220px}.dough-shapes{height:140px}.discovery-box{border:1px solid #999;border-radius:8px;background:white}.experiment-table{border-collapse:collapse;width:100%;margin:20px 0;font-size:12px}.experiment-table th,.experiment-table td{border:1px solid #999;padding:12px;text-align:left}.experiment-table thead{background:#d8eee2}.experiment-table .answer-box{width:100%;min-width:70px}.garden-flowers{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.garden-flowers .learning-art{width:50px;height:50px}.visual-answer{display:flex;gap:14px;align-items:center}.visual-answer .writing-line{min-width:0}
.ink{--art-green:white;--art-pink:white;--art-yellow:white;--art-blue:white}.ink .cut-card,.ink .routine-cards label,.ink .experiment-table thead{background:white}
@media print{.cut-card{min-height:130px}.matching-cards .cut-card{min-height:105px}.routine-cards label{padding:12px}.cut-path{height:75px}.learning-art{width:65px;height:65px}.visual-answer .learning-art{width:48px;height:48px}}
/* Bright style: primary red, yellow and blue, with white writing areas. */
body.bright-theme{background:#fffefa}
.bright-theme .learning-app{background:#fffefa;border-color:#1455e8}
.bright-theme aside{background:linear-gradient(white,#fff6be);border-color:#1455e8}
.bright-theme .controls{background:#ffd600}
.bright-theme #collections button[aria-pressed=true]{background:#1455e8;color:white}
.bright-theme #activities button[aria-pressed=true]{background:#ffd600;color:#17233d;border-color:#1455e8}
.bright-theme .worksheet-stage{background:#1455e8}
.bright-theme .primary{background:#1455e8;color:white}
.bright-theme h1,.bright-theme .collection-heading h2{color:#163c94}
.bright{--line:#1455e8;--art-green:#1455e8;--art-pink:#e53935;--art-yellow:#ffd600;--art-blue:#1455e8;border-color:#1455e8}
.bright .sheet-head{border-bottom:4px solid #1455e8}
.bright .sheet-head h2,.bright .trace-svg text{color:#163c94;stroke:#163c94}
.bright .instruction{background:#ffd600;color:#17233d;border-left:6px solid #e53935}
.bright .exercise{border:2px solid #1455e8}
.bright .exercise:nth-of-type(3n+2){border-color:#e53935}
.bright .exercise:nth-of-type(3n){border-color:#c7a600}
.bright .exercise h3{color:#17233d}
.bright .counting-dots i{background:#ffd600;border-color:#17233d}
.bright .counting-dots i:nth-child(3n+2){background:#1455e8;border-color:#17233d}
.bright .counting-dots i:nth-child(3n){background:#e53935;border-color:#17233d}
.bright .story{background:white;border:2px solid #1455e8;border-left:6px solid #e53935;color:#17233d}
.bright .answer-guide{background:#ffd600;color:#17233d}
.bright .word-options input,.bright .routine-cards input{accent-color:#1455e8}
.bright .sheet-footer{border-color:#1455e8;color:#17233d}
.bright .shape{border-color:#1455e8}.bright .shape polygon{stroke:#1455e8}
.bright .cut-card{background:white;border-top:8px solid #e53935}
.bright .cut-card:nth-child(3n+2){background:white;border-top-color:#1455e8}
.bright .cut-card:nth-child(3n){background:white;border-top-color:#ffd600}
.bright .cut-card strong,.bright .flash-letter{color:#17233d}
.bright .routine-cards label{background:#ffd600;color:#17233d;border-color:#1455e8}
.bright .experiment-table thead{background:#ffd600;color:#17233d}
.letter-detective{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:center;font-size:34px;font-weight:800}.letter-detective span{border:1px solid #999;border-radius:8px;padding:8px}
.shape-token{font-size:46px;line-height:1.3;color:#35213f}
.color-token{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:48px;border:1px solid #333;border-radius:8px;font-size:13px;font-weight:800}.color-token.red{background:#e53935;color:white}.color-token.blue{background:#1455e8;color:white}.color-token.yellow{background:#ffd600;color:#17233d}
.word-bank{display:flex;flex-wrap:wrap;gap:12px}.word-bank span{padding:12px 16px;border:1px solid #999;border-radius:8px;font-size:22px;font-weight:800}
.ten-frame{display:grid;grid-template-columns:repeat(5,1fr);width:100%;max-width:175px;border-top:1px solid #333;border-left:1px solid #333}.ten-frame span{height:28px;border-right:1px solid #333;border-bottom:1px solid #333;display:grid;place-items:center}.ten-frame i{width:16px;height:16px;border-radius:50%;background:#5e3b76}.bright .ten-frame i{background:#1455e8}.ink .ten-frame i{background:#222}.frame-cards .cut-card{min-height:140px}
.season-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.season-grid .exercise{margin:8px 0}.season-grid .answer-box{width:100%;margin-top:8px}
.ink .color-token{background:white;color:#222}
@media print{.letter-detective{font-size:28px;gap:10px}.letter-detective span{padding:5px}.season-grid{gap:10px}.color-token{min-width:65px}}

#card-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 0 18px;font-size:12px}#card-controls[hidden]{display:none}#card-controls select{padding:9px;border:1px solid #999;border-radius:8px;background:white}#card-controls span{font-weight:600;color:#35213f}
#worksheet.a5-card{max-width:560px;min-height:794px;display:flex;flex-direction:column}#worksheet.a5-card .sheet-head h2{font-size:22px}.flashcard-face{flex:1;min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;text-align:center}.flashcard-face .flash-letter{font-size:100px;line-height:1.2}.flashcard-face>strong{font-size:32px}.flashcard-face .learning-art{height:230px;width:230px}.flashcard-face .counting-dots{max-width:290px;justify-content:center;gap:18px}.flashcard-face .counting-dots i{width:50px;height:50px}.flashcard-face .ten-frame{max-width:350px}.flashcard-face .ten-frame span{height:60px}.flashcard-face .ten-frame i{height:36px;width:36px}
@media print{#card-controls{display:none!important}.print-sheet.a5-card{page:flashcard;display:flex;flex-direction:column;min-height:175mm}.print-sheet.a5-card .sheet-head h2{font-size:20px}.flashcard-face{min-height:110mm}.flashcard-face .flash-letter{font-size:90px}.flashcard-face .learning-art{height:190px;width:190px}.flashcard-face>strong{font-size:26px}.flashcard-face .ten-frame{max-width:300px}.flashcard-face .ten-frame span{height:48px}.flashcard-face .ten-frame i{height:30px;width:30px}body.bright-theme{background:white}}

/* A5 landscape: one spacious card on each page. */
#worksheet.a5-card{max-width:770px;min-height:543px}
#worksheet.a5-card .flashcard-face{min-height:325px;gap:18px}
.flashcard-face .animal-flash-art{width:240px;height:240px}
.flashcard-face .color-flash-swatch{display:block;width:250px;height:185px;border:2px solid #35213f;border-radius:20px}
.flashcard-face .animal-flash-art+strong,.flashcard-face .color-flash-swatch+strong{font-size:38px}
.ink .animal-flash-art{filter:grayscale(1)}
@media print{.print-sheet.a5-card{min-height:120mm;max-height:124mm}.print-sheet.a5-card .flashcard-face{min-height:75mm;gap:12px}.flashcard-face .animal-flash-art{width:200px;height:200px}.flashcard-face .color-flash-swatch{width:220px;height:150px}.flashcard-face .animal-flash-art+strong,.flashcard-face .color-flash-swatch+strong{font-size:30px}}

#worksheet.a5-card{padding:0;min-height:0;aspect-ratio:210/148;overflow:hidden;border:0;border-radius:22px;box-shadow:0 12px 30px #35213f18}
.boutique-card{position:relative;isolation:isolate;background:var(--card-bg);color:var(--card-ink);height:100%;min-height:543px;padding:24px 30px;overflow:hidden;display:flex;flex-direction:column;border:8px solid white;border-radius:22px}
.boutique-card:after{content:'';position:absolute;inset:13px;border:1px solid color-mix(in srgb,var(--card-ink) 18%,transparent);border-radius:14px;pointer-events:none;z-index:-1}
.boutique-top,.boutique-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:2}.mini-peanut-brand{display:flex;align-items:center;gap:8px;font-size:12px}.mini-peanut-brand img{width:31px;height:39px;object-fit:contain}.mini-peanut-brand b{font-weight:800}.deck-pill{font-size:9px;letter-spacing:1px;font-weight:800;padding:9px 12px;background:white;border-radius:30px;color:var(--card-ink)}
.boutique-content{flex:1;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:16px;z-index:1}.boutique-type{padding-left:14px}.hero-letter{font-size:112px;font-weight:800;letter-spacing:-7px;line-height:1.05}.hero-letter small{font-size:58px;letter-spacing:-3px;margin-left:8px}.boutique-type h2{font-size:38px;font-weight:800;margin:12px 0;line-height:1.15;letter-spacing:-1px;color:var(--card-ink)}.boutique-type p{font-size:13px;line-height:1.6;font-weight:600;margin:10px 0;max-width:230px}
.illustration-island{position:relative;display:grid;place-items:center;min-width:0;height:310px}.illustration-island:before{content:'';position:absolute;width:94%;aspect-ratio:1;background:#ffffffa8;border-radius:45% 55% 55% 45% / 52% 38% 62% 48%;transform:rotate(-10deg);z-index:-1}.storybook-sprite{width:280px;height:280px;background-image:url('assets/flashcard-storybook-atlas.png');background-size:600% 600%;background-repeat:no-repeat;filter:drop-shadow(0 8px 5px #35213f12)}
.island-star{position:absolute;top:10px;right:15px;color:var(--card-accent);font-size:40px;transform:rotate(12deg)}.island-dot{position:absolute;bottom:8px;left:5px;height:14px;width:14px;background:var(--card-accent);border-radius:50%}.boutique-bottom{font-size:9px;font-weight:800;letter-spacing:.4px;padding-top:12px}.boutique-bottom>span:last-child{background:white;border-radius:20px;padding:7px 12px}
.card-confetti{position:absolute;z-index:-1;pointer-events:none}.confetti-one{width:180px;height:180px;border:30px solid var(--card-accent);border-radius:50%;top:-110px;left:35%}.confetti-two{width:200px;height:200px;background:var(--card-accent);border-radius:50%;right:-110px;bottom:-130px;opacity:.6}
.paint-splash{position:relative;width:220px;height:220px}.paint-splash span{display:block;width:190px;height:190px;background:var(--paint);border:2px solid #35213f33;border-radius:45% 55% 36% 64% / 54% 37% 63% 46%;transform:rotate(-12deg);box-shadow:inset 10px 10px 0 #ffffff30,0 12px 0 #35213f0b}.paint-splash i,.paint-splash b{position:absolute;background:var(--paint);border:1px solid #35213f33;border-radius:50%;height:25px;width:25px;right:0;bottom:10px}.paint-splash b{width:15px;height:15px;right:30px;bottom:-6px}
.premium-dots{display:grid;grid-template-columns:repeat(3,55px);gap:18px}.premium-dots i{height:55px;width:55px;background:var(--card-ink);border:4px solid white;border-radius:50%;box-shadow:0 4px 0 #35213f15}.illustration-island .learning-art{width:220px;height:220px}.illustration-island .ten-frame{max-width:280px;background:white}.illustration-island .ten-frame span{height:45px}.illustration-island .ten-frame i{height:27px;width:27px;background:var(--card-ink)}
.a5-card.ink .boutique-card{--card-bg:white!important;--card-ink:#222!important;--card-accent:#ddd!important}.a5-card.ink .storybook-sprite{filter:grayscale(1)}
@media print{.print-sheet.a5-card{padding:0;min-height:0;height:124mm;max-height:124mm;overflow:hidden}.print-sheet.a5-card .boutique-card{height:124mm;min-height:0;border-width:4px;padding:17px 24px;border-radius:18px}.boutique-content{gap:12px}.hero-letter{font-size:100px}.hero-letter small{font-size:52px}.boutique-type h2{font-size:34px}.boutique-type p{font-size:12px}.illustration-island{height:270px}.storybook-sprite{height:250px;width:250px}.boutique-bottom{padding-top:8px}.deck-pill{font-size:8px;padding:7px 10px}.mini-peanut-brand{font-size:10px}.paint-splash{transform:scale(.9)}.illustration-island .learning-art{height:200px;width:200px}}

/* Large, clear reading words for young learners. */
.boutique-type h2{font-size:58px;line-height:1.12;letter-spacing:-1.4px;overflow-wrap:normal}
.boutique-type p{font-size:20px;line-height:1.45;max-width:290px}
.color-deck .boutique-type h2{font-size:72px}
.boutique-type h2.long-word{font-size:49px}
.boutique-type h2.very-long-word{font-size:43px}
@media print{.boutique-type h2{font-size:52px}.boutique-type p{font-size:18px;max-width:265px}.color-deck .boutique-type h2{font-size:64px}.boutique-type h2.long-word{font-size:45px}.boutique-type h2.very-long-word{font-size:39px}}

/* Give the reading word priority beside the illustration. */
.boutique-content{grid-template-columns:1.12fr 1fr;gap:10px}
.boutique-type{padding-left:8px}
.boutique-type h2{font-size:76px;letter-spacing:-2px}
.color-deck .boutique-type h2{font-size:96px}
.boutique-type h2.long-word{font-size:63px}
.boutique-type h2.very-long-word{font-size:57px}
.boutique-type p{font-size:23px;max-width:310px}
.hero-letter{font-size:120px}
@media print{.boutique-type h2{font-size:68px}.color-deck .boutique-type h2{font-size:86px}.boutique-type h2.long-word{font-size:57px}.boutique-type h2.very-long-word{font-size:51px}.boutique-type p{font-size:20px}.hero-letter{font-size:108px}}

.alphabet-object-sprite{background-image:url('assets/alphabet-objects-atlas.png');background-size:600% 500%}
