@font-face {
  font-family: Nunito;
  src: url("/assets/2026/nunito.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #252448;
  --muted: #525067;
  --cobalt: #534bc4;
  --paper: #fffcf4;
  font: 100%/1.4 Nunito, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1, h2, button, .tile-action, .primary, .app-home, .back, .trail {
  font-family: "Trebuchet MS", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid #322a9c; outline-offset: 3px; }
h1:focus { outline: none; }
.learn-app { min-height: 100svh; background: var(--paper); }
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  min-height: 3.1rem; padding: 0 clamp(.95rem, 3.7vw, 2rem);
  background: #ece8ff; border-bottom: 1px solid #d9d2ec;
}
.app-home { display: inline-flex; align-items: center; min-height: 44px; gap: .2rem; font-size: 1.05rem; font-weight: 750; }
.app-home img { display: block; width: 5.1rem; height: auto; margin-left: -.45rem; }
.preview-label {
  font-size: .75rem; line-height: 1; font-weight: 700; padding: .38rem .55rem;
  color: #4f4769; border: 1px solid #c9c0e4; border-radius: 999px; white-space: nowrap;
}
main { max-width: 57rem; margin-inline: auto; padding: clamp(.9rem, 3.2vw, 1.75rem); }
.library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .85rem; }
h1 { font-weight: 800; font-size: clamp(1.4rem, 4.3vw, 2.15rem); line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.library-heading p { color: var(--muted); font-size: .94rem; }
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.topic-tile {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) 34%;
  border: 1px solid #3c385126; border-radius: 1rem; min-height: 6.6rem; overflow: hidden;
}
.topic-tile:hover .tile-copy h2 { text-decoration: underline; text-underline-offset: .15em; }
.tile-copy { position: relative; z-index: 1; padding: 1rem 0 1rem clamp(.95rem, 2.9vw, 1.6rem); }
.subject { display: block; font-weight: 750; font-size: .81rem; color: #4b4657; }
h2 { margin-top: .18rem; font-size: clamp(1.04rem, 2.8vw, 1.4rem); line-height: 1.13; font-weight: 800; letter-spacing: -.045em; }
.garden {
  grid-column: 1/-1; grid-template-columns: 52% 48%; min-height: 10rem;
  background: #d7ecda; color: #223e33; border-color: #b6d6bd;
}
.garden .subject { color: #365444; }
.garden h2 { font-size: clamp(1.45rem, 4.5vw, 2.2rem); max-width: 13ch; }
.tile-action, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  border-radius: 2rem; background: #285442; color: white;
  font-weight: 700; font-size: .875rem;
}
.tile-action { margin-top: .7rem; padding: .47rem .85rem; }
.chevron { display: inline-block; width: .46rem; height: .46rem; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.botany-art { display: grid; align-self: stretch; place-items: center; min-width: 0; position: relative; }
.botany-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% center; mask-image: linear-gradient(to right, transparent, black 16%); }
.geometry { background: #ffe1ce; border-color: #edc5af; }
.earth { background: #e5e1ff; border-color: #cfc8ef; }
.shape-art, .planet-art { position: relative; width: min(100%, 5.4rem); aspect-ratio: 1; justify-self: center; }
.shape-art i { position: absolute; display: block; }
.shape-art i:nth-child(1) { width: 45%; height: 45%; background: #e99862; clip-path: polygon(50% 0,100% 100%,0 100%); top: 8%; left: 6%; transform: rotate(-10deg); }
.shape-art i:nth-child(2) { width: 41%; aspect-ratio: 1; border-radius: 50%; background: #d97164; top: 29%; right: 6%; }
.shape-art i:nth-child(3) { width: 34%; aspect-ratio: 1; border-radius: 8%; background: #8877bf; bottom: 8%; left: 19%; transform: rotate(13deg); }
.planet-art .sun { position: absolute; top: 9%; left: 4%; width: 23%; aspect-ratio: 1; border-radius: 100%; background: #edba45; box-shadow: 0 0 0 .21em #fff0b0; }
.globe {
  position: absolute; top: 25%; left: 18%; width: 66%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #679cc6; transform: rotate(-18deg);
}
.globe::before {
  content: ""; position: absolute; inset: 0; background: #9cc7a4;
  clip-path: polygon(10% 5%,46% 4%,48% 17%,37% 23%,43% 34%,34% 45%,22% 37%,28% 49%,41% 54%,52% 69%,44% 81%,37% 89%,31% 64%,19% 56%,6% 29%,0% 24%);
}
.globe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 79% 38%, #a4c3a0 0 14%, transparent 15%);
  box-shadow: inset -.62em -.16em .02em #403d725e;
}
.work-nav { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin: -.42rem 0 .35rem; }
.back { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; font-size: .86rem; font-weight: 700; }
.back:hover, .app-home:hover { text-decoration: underline; }
.back .chevron { transform: rotate(-135deg); }
.trail { display: flex; align-items: center; gap: .36rem; font-size: .75rem; color: #625b73; }
.trail span { border-radius: 999px; padding: .3rem .55rem; }
.trail [aria-current="step"] { background: #e9e4fb; color: #48358e; font-weight: 750; }
.trail i { width: .7rem; height: 1px; background: #b3a9be; }
#study h1 { max-width: 35ch; }
.work-area { display: grid; grid-template-columns: 35% minmax(0, 1fr); gap: clamp(1rem, 3.4vw, 2rem); margin-top: 1rem; align-items: start; }
.study-art {
  position: relative; display: grid; place-items: center; align-self: stretch; min-height: 12rem; overflow: hidden;
  background: #d7ecda; border: 1px solid #bad7c2; border-radius: 1rem;
}
.study-art > * { display: none; }
.study-art .plant-illustration { width: 78%; height: auto; max-height: 13.5rem; object-fit: contain; }
#study[data-topic="plants"] .plant-illustration { display: block; }
#study[data-topic="shapes"] .study-art { background: #ffe4d3; border-color: #e9cbb9; }
#study[data-topic="shapes"] .study-art .shape-art,
#study[data-topic="earth"] .study-art .planet-art { display: block; width: 75%; font-size: 1.6rem; }
#study[data-topic="earth"] .study-art { background: #e4e2fa; border-color: #cec8ee; }
.workspace { min-width: 0; }
#lesson-instruction { color: #4b4858; font-size: 1rem; }
.activity-options { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .55rem; }
.activity-options button, .answers button {
  border: 1px solid #c9c3d1; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 600;
}
.activity-options button { min-height: 39px; padding: .35rem .65rem; border-radius: 999px; }
.activity-options button[aria-pressed="true"] { border-color: var(--cobalt); color: #3e358e; background: #efedff; box-shadow: inset 0 0 0 1px var(--cobalt); }
.observation { padding: .65rem .8rem; border-inline-start: 3px solid #ab9fda; background: #f0ecf8; color: #403952; font-size: .96rem; }
.primary { margin-top: .9rem; min-height: 42px; padding: .6rem 1rem; background: var(--cobalt); }
.primary:hover { background: #4238ab; }
.answers { display: grid; gap: .42rem; }
.answers button {
  position: relative; display: flex; align-items: center; gap: .7rem; min-height: 42px;
  padding: .51rem .7rem; border-radius: .7rem; text-align: left;
}
.answers button::before { content: ""; flex: 0 0 .75rem; width: .75rem; height: .75rem; background: #fff; border: 1px solid #817897; border-radius: 50%; }
.answers button[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 2px white; }
.answers button[data-result="correct"] { background: #e6f3e7; border-color: #638e69; color: #235134; }
.answers button[data-result="retry"] { background: #fff0e5; border-color: #ba866a; color: #72452c; }
#feedback:not(:empty) { margin-top: .6rem; font-size: .95rem; }
.no-script { padding: .7rem 1rem; text-align: center; }
@media (max-width: 490px) {
  main { padding: .85rem .95rem 1rem; }
  .app-bar { min-height: 2.8rem; }
  .library-heading { align-items: start; flex-direction: column; gap: .15rem; margin-bottom: .75rem; }
  .shelf { gap: .55rem; }
  .topic-tile { min-height: 6rem; }
  .garden { min-height: 9rem; }
  .tile-copy { padding: .8rem 0 .8rem .8rem; }
  .garden h2 { max-width: 11ch; }
  .work-area { grid-template-columns: 1fr; gap: .7rem; margin-top: .7rem; }
  .study-art { min-height: 0; height: 7.4rem; }
  .study-art .plant-illustration { height: 100%; width: auto; }
  #study[data-topic="shapes"] .study-art .shape-art,
  #study[data-topic="earth"] .study-art .planet-art { width: 6.4rem; }
  #study[data-view="quiz"] .study-art { height: 4.6rem; }
  #study[data-view="quiz"] .study-art .shape-art, #study[data-view="quiz"] .study-art .planet-art { width: 4.1rem; }
}
@media (max-width: 370px) {
  .shelf { grid-template-columns: 1fr; }
  .topic-tile:not(.garden) { min-height: 4.6rem; grid-template-columns: 1fr 32%; }
  .topic-tile:not(.garden) .shape-art, .topic-tile:not(.garden) .planet-art { width: 3.8rem; }
  .garden { grid-template-columns: 56% 44%; }
  .tile-action { gap: .42rem; font-size: .81rem; }
}
@media (min-width: 950px) {
  body { background: #efeaf6; padding: 2rem; }
  .learn-app { max-width: 57rem; min-height: min(39rem, 85svh); margin: 0 auto; overflow: hidden; border: 1px solid #d7cfdf; border-radius: 1.4rem; }
}
