/* ForeverSprout public page. Warm off-white paper, ink-black slab headlines, crayon friends with handwritten
   name tags, a marigold highlighter, and motion that follows the reader's scroll. Calm mode = prefers-reduced-motion. */
@font-face { font-family: "Slab"; src: url("/welcome/zilla-slab-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Slab"; src: url("/welcome/zilla-slab-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Slab"; src: url("/welcome/zilla-slab-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hand"; src: url("/welcome/caveat-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/welcome/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #fbf8f1; --paper-2: #f4efe3; --card: #fffefa; --ink: #1c1d1a; --ink-2: #55574f; --ink-3: #8b8c83;
  --line: #e4dfd2; --line-2: #cfc8b7; --marigold: #f3c77a; --marigold-2: #fbe9c4; --terra: #a8412b; --forest: #1f4a36; --forest-2: #2f6b4d; --moss: #dcebd3;
  --slab: "Slab", "Rockwell", "Roboto Slab", Georgia, serif; --sans: "Manrope", "Segoe UI", system-ui, sans-serif; --hand: "Hand", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 3vw, 32px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
main, .foot { overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--slab); font-weight: 500; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* announcement bar */
.notice { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 9px var(--gutter); background: var(--ink); color: #f3efe6; font-size: 14.5px; }
.notice p { margin: 0; }
.notice a { color: #fff; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }

/* header: three framed boxes, like labels on a field notebook */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter); transition: background .3s ease, box-shadow .3s ease; }
.top.is-stuck { background: rgba(251,248,241,.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.box { display: flex; align-items: center; min-height: 46px; padding: 4px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.brand { gap: 9px; padding: 4px 14px 4px 8px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--forest); }
.brand__mark svg { width: 18px; height: 18px; fill: none; stroke: #f3c77a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__word { font: 500 21px/1 var(--slab); letter-spacing: -.01em; }
.top__links { gap: 2px; }
.top__links a { padding: 7px 14px; border-radius: 4px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.top__links a:hover { background: var(--paper-2); }
.top__acts { margin-left: auto; gap: 4px; }
.top__acts .btn { gap: 0; }
.top__signin { padding: 7px 14px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.top__signin:hover { text-decoration: underline; }
@media (max-width: 1000px) { .top__links { display: none; } }
@media (max-width: 520px) { .top { padding-inline: 10px; } .brand__word { font-size: 18px; } .top .wide { display: none; } .notice { font-size: 13px; gap: 10px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 6px; font: 600 17px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s ease, box-shadow .15s ease; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; box-shadow: 0 6px 0 -1px var(--marigold); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--card); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 4px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* the highlighter and the handwritten name tags */
.hl { padding: 0 .12em; background: linear-gradient(var(--marigold), var(--marigold)) no-repeat 0 85% / var(--hl, 100%) 88%; color: var(--terra); }
.tag { position: absolute; padding: 0 .3em; font: 600 clamp(20px, 2vw, 26px)/1.1 var(--hand); color: var(--terra); transform: rotate(-4deg); white-space: nowrap; }
.tag--pixel { background: var(--marigold-2); }
.tag--frog { background: var(--moss); color: var(--forest); }
.tag--squirrel { background: #f8dccd; }
.tag--bird { background: #d9e8f3; color: #22506e; }

/* hero */
.hero { position: relative; min-height: calc(100svh - 110px); padding: 6px var(--gutter) 30px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto minmax(180px, 1fr) auto auto; }
.hero__title { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); font-size: clamp(50px, 8.6vw, 136px); line-height: .9; letter-spacing: -.03em; pointer-events: none; }
.ln { display: block; white-space: nowrap; }
.ln--1 { grid-row: 1; }
.ln--2 { grid-row: 2; }
.ln--4 { grid-row: 4; justify-self: end; }
.ln--5 { grid-row: 5; justify-self: end; }
.rise { display: inline-block; }
.tile { display: inline-block; width: 1.3em; height: 1.65em; margin: 0 .1em 0 0; vertical-align: top; transform: translateY(.06em); overflow: hidden; border-radius: 4px; background: var(--marigold); }
.tile img { display: block; width: 100%; height: auto; transform: translateY(6%) scale(1.25); transform-origin: 50% 0; }
.hero__mid { grid-column: 3 / span 8; grid-row: 3; align-self: center; justify-self: center; text-align: center; padding: 24px 0; position: relative; z-index: 2; }
.hero__tag { margin: 0 0 18px; font: 400 clamp(19px, 1.8vw, 24px)/1.35 var(--slab); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__invited { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.hero__invited a { color: var(--terra); font-weight: 700; }
.ask { grid-column: 1 / span 4; grid-row: 4 / span 2; align-self: end; position: relative; z-index: 3; display: grid; justify-items: start; gap: 8px; width: min(380px, 100%); margin-bottom: 10px; text-decoration: none; }
.ask__label { color: var(--ink-2); font-size: 14px; }
.ask__label b { color: var(--terra); font-weight: 600; }
.ask__box { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 6px 6px 6px 14px; border: 1px solid var(--terra); border-radius: 4px; background: var(--card); font-size: 16px; box-shadow: 0 10px 30px -18px rgba(60,40,10,.4); }
.ask__text { white-space: nowrap; overflow: hidden; }
.ask__caret { width: 1.5px; height: 20px; margin-left: 2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.ask__go { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 1px solid var(--terra); border-radius: 50%; background: var(--marigold-2); color: var(--terra); font-weight: 800; }
@keyframes blink { 50% { opacity: 0; } }

/* Pixel's walk: an 8-frame sheet (4 × 2) stepped by motion.js; she stops and waves */
.walker { position: absolute; z-index: 2; bottom: 132px; left: 0; width: clamp(110px, 12vw, 170px); aspect-ratio: 384 / 512; transform: translateX(var(--wx, 70vw)); pointer-events: none; }
.walker__sprite { position: absolute; inset: 0; background: url("/welcome/art/pixel-walk.webp") 0 0 / 400% 200% no-repeat; }
.walker__wave { position: absolute; left: 6%; bottom: 0; width: 88%; height: auto; opacity: 0; }
.walker .tag { right: -34%; top: 18%; opacity: 0; }
.walker.is-here .walker__sprite { opacity: 0; }
.walker.is-here .walker__wave { opacity: 1; animation: wave-in .5s var(--ease) both; }
.walker.is-here .tag { opacity: 1; animation: tag-in .5s .25s var(--ease) both; }
@keyframes wave-in { from { transform: translateY(6px) rotate(-2deg); } }
@keyframes tag-in { from { opacity: 0; transform: rotate(-12deg) scale(.6); } }

@media (max-width: 860px) {
  .hero { min-height: 0; grid-template-rows: auto auto auto auto auto auto; padding-bottom: 28px; }
  .hero__title { grid-row: 1 / 6; font-size: clamp(40px, 11vw, 96px); }
  .ln--1 { white-space: normal; }
  .ln--2 .tile { width: .85em; height: 1.1em; }
  .ln--4 { margin-top: clamp(140px, 36vw, 230px); }
  .hero__mid { grid-column: 1 / -1; grid-row: 3; padding: 1.2em 0 0; }
  .ask { grid-column: 1 / -1; grid-row: 6; justify-self: center; justify-items: center; margin-top: 30px; }
  .walker { bottom: auto; top: calc(var(--wtop, 300px)); width: 92px; }
  .walker .tag { right: -48%; font-size: 18px; }
}

/* the illustrated world */
.world { padding: 30px var(--gutter) 10px; }
.world__frame { position: relative; overflow: hidden; height: clamp(380px, 52vw, 640px); max-width: 1180px; margin: 0 auto; border-radius: 6px; background: #eef0e2; }
.world__sky { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.world__frame .lyr { will-change: transform; }
.world__art { position: absolute; height: auto; filter: drop-shadow(0 6px 6px rgba(60,40,10,.12)); }
.world__art--sun { top: 5%; left: 6%; width: 11%; }
.world__art--rainbow { top: 12%; right: 7%; width: 18%; }
.world__art--slide { top: 38%; left: 55%; width: 14%; }
.world__art--balloon { top: 30%; left: 72%; width: 6%; animation: bob 6s ease-in-out infinite; }
.world__art--duck { top: 62%; left: 2%; width: 8%; }
.world__art--ball { top: 78%; left: 64%; width: 6%; }
.world__art--dog { top: 62%; left: 73%; width: 10%; }
.world__art--house { top: 44%; left: 14%; width: 17%; }
.world__art--tent { top: 50%; right: 4%; width: 15%; }
.world__art--tree { top: 30%; left: 33%; width: 19%; }
.world__art--kite { top: 4%; left: 64%; width: 8%; animation: bob 5s ease-in-out infinite; }
.world__art--bird { top: 22%; left: 24%; width: 7%; animation: bob 4s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -10px; rotate: 3deg; } }
.world__word { position: absolute; top: 15%; left: 50%; margin: 0; translate: -50% 0; font: 500 clamp(36px, 7vw, 92px)/1 var(--slab); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.world__pixel { position: absolute; bottom: 4%; left: 0; width: clamp(64px, 8vw, 110px); aspect-ratio: 384 / 512; transform: translateX(var(--px, 0px)) scaleX(var(--face, 1)); }

/* words that fill in as you read */
.say { max-width: 820px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gutter); }
.say p { margin: 0; font: 400 clamp(26px, 3.4vw, 42px)/1.22 var(--slab); letter-spacing: -.015em; }
.say__body { margin-top: .9em !important; }
.say .w { color: #8a8679; transition: color .25s linear; }
.say .w.on { color: var(--ink); }

/* section blocks */
.block { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--line); }
.pill { display: table; margin: 0 auto 28px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); font-size: 14.5px; font-weight: 600; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.block__head--split { align-items: flex-start; }
.block__lede { max-width: 46ch; margin: 18px 0 0; color: var(--ink-2); font: 400 21px/1.45 var(--slab); }
.split { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.03em; }
.split span { display: block; transform: translateX(calc(var(--sp, 0) * var(--dir, 1) * 1%)); will-change: transform; }
.split__a { --dir: -1; }
.split__b { --dir: 1; padding-left: clamp(0px, 8vw, 140px); }
.split--center { text-align: center; }
.split--center .split__b { padding-left: 0; }
.split--light { color: #f6efe0; }
.block__aside { flex: 0 0 min(300px, 40%); display: grid; gap: 14px; justify-items: start; }
.block__aside p { margin: 0; font: 400 20px/1.45 var(--slab); }

.mascot { position: relative; flex: none; width: clamp(130px, 16vw, 220px); margin: 0; }
.mascot img { display: block; width: 100%; height: auto; transform-origin: 50% 90%; }
.mascot .tag { right: -10%; top: 12%; }
.mascot.is-in img { animation: hello 1.4s var(--ease) both; }
@keyframes hello { 0% { transform: translateY(30px) rotate(-8deg); opacity: 0; } 50% { transform: translateY(0) rotate(5deg); opacity: 1; } 70% { transform: rotate(-4deg); } 85% { transform: rotate(2deg); } 100% { transform: none; } }

.cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 28px 26px 30px; border-left: 1px solid var(--line-2); }
.card:first-child { border-left: 0; }
.card__n { position: absolute; top: 22px; right: 24px; color: var(--ink-3); font: 400 15px var(--slab); }
.card img { width: 86px; height: 86px; object-fit: contain; }
.card h3 { margin: 14px 0 8px; font-size: 25px; line-height: 1.15; }
.card p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .block__head, .block__head--split { flex-direction: column; align-items: flex-start; }
  .mascot { align-self: flex-end; margin-top: -10px; width: 120px; }
  .block__aside { flex-basis: auto; width: 100%; }
  .block__aside .mascot { align-self: flex-end; }
  .cards--3 { grid-template-columns: 1fr; }
  .card { border-left: 0; border-top: 1px solid var(--line-2); }
  .card:first-child { border-top: 0; }
}

/* lessons shelf */
.shelf { margin-top: 44px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip-btn { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); color: var(--ink); font: 600 14.5px var(--sans); cursor: pointer; transition: background .15s ease, color .15s ease; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.shelf__track { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.shelf__track::-webkit-scrollbar { display: none; }
.lesson { flex: 0 0 clamp(240px, 26vw, 290px); scroll-snap-align: start; display: grid; align-content: start; gap: 8px; min-height: 300px; padding: 22px; border-right: 1px solid var(--line-2); transition: opacity .3s ease, background .2s ease; }
.lesson:hover { background: #fffcf2; }
.lesson img { width: 72px; height: 72px; object-fit: contain; transition: transform .3s var(--ease); }
.lesson:hover img { transform: rotate(-6deg) scale(1.08); }
.lesson h3 { font-size: 23px; line-height: 1.15; }
.lesson p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.lesson__tag { justify-self: start; margin-top: auto; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 13px; font-weight: 600; }
.lesson[hidden] { display: none; }
.shelf__bar { height: 2px; margin-top: 14px; background: var(--line); }
.shelf__bar span { display: block; height: 100%; width: 20%; background: var(--ink); transform: translateX(var(--bar, 0%)); transition: width .3s ease; }

/* the adventure map (a sheet from the journal) */
.map__sheet { margin-top: 44px; padding: 22px; border: 1px solid var(--line-2); border-radius: 6px; background:
  radial-gradient(circle at 20% 10%, rgba(255,255,255,.7), transparent 40%), #fbf3e2; }
.map__art { display: block; width: 100%; height: auto; }
.map__contour path { fill: none; stroke: #dccaa6; stroke-width: 1.4; }
.map__river { fill: none; stroke: #a9cfcf; stroke-width: 20; stroke-linecap: round; }
.map__pool { fill: #a9cfcf; }
.map__falls path { stroke: #8bbcbe; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 10 7; }
.map__route { fill: none; stroke: var(--terra); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 2 13; }
.map__route--side { opacity: .7; }
.map__tree circle { fill: var(--moss); stroke: var(--forest-2); stroke-width: 2; }
.map__tree path { stroke: #7a5532; stroke-width: 8; stroke-linecap: round; }
.map__tree rect { fill: #c99a5b; stroke: #7a5532; stroke-width: 2; }
.map__pin circle { fill: var(--forest); } .map__pin path { fill: var(--marigold); stroke: var(--forest); stroke-width: 3; stroke-linejoin: round; }
.map__badge circle { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.map__badge text { font-size: 26px; text-anchor: middle; }
.map__label { font: 500 22px var(--slab); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fbf3e2; stroke-width: 6px; stroke-linejoin: round; }
.map__compass circle { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.map__compass path { fill: var(--terra); } .map__compass text { font: 700 13px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.map__key { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; color: var(--ink-2); font-size: 15px; }
.map__key b { display: block; color: var(--ink); font: 500 20px var(--slab); margin-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .map__route { animation: march 30s linear infinite; }
  .map__falls path { animation: fall 1.4s linear infinite; }
}
@keyframes march { to { stroke-dashoffset: -300; } }
@keyframes fall { to { stroke-dashoffset: -34; } }
@media (max-width: 860px) { .map__key { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .map__sheet { padding: 10px; } .map__label { font-size: 30px; stroke-width: 8px; } .map__badge text { font-size: 30px; } .map__key { grid-template-columns: 1fr; gap: 12px; } }

/* grown-ups bento */
.bento { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bento li { position: relative; display: grid; align-content: space-between; gap: 30px; min-height: 200px; padding: 24px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); overflow: hidden; }
.bento b { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--slab); max-width: 22ch; }
.bento__k { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.bento__big { grid-row: span 2; background: var(--marigold-2) !important; }
.bento__big img { position: absolute; right: 14px; top: 14px; width: min(38%, 150px); height: auto; transform: rotate(10deg); }
.bento__wide { grid-column: span 2; background: var(--moss) !important; }
.note { display: grid; justify-items: center; gap: 14px; max-width: 720px; margin: 56px auto 0; padding: 0; text-align: center; }
.note h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.note p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.note .btn { margin-top: 6px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .bento__big { grid-row: auto; grid-column: span 2; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .bento__big, .bento__wide { grid-column: auto; } .bento li { min-height: 150px; } }

/* safety on the dark page */
.safe { margin: 0 var(--gutter); padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 70px); border-radius: 8px; background: var(--forest); color: #f6efe0; overflow: hidden; }
.safe__grid { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(246,239,224,.2); }
.safe__grid li { display: grid; align-content: start; gap: 8px; padding: 26px 22px 6px 0; }
.safe__grid li + li { padding-left: 22px; border-left: 1px solid rgba(246,239,224,.2); }
.safe__ico { font-size: 28px; }
.safe__grid b { font: 500 23px/1.2 var(--slab); }
.safe__grid span:last-child { color: rgba(246,239,224,.78); font-size: 15.5px; }
@media (max-width: 860px) { .safe__grid { grid-template-columns: 1fr 1fr; } .safe__grid li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .safe { margin: 0; border-radius: 0; } .safe__grid { grid-template-columns: 1fr; } .safe__grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(246,239,224,.2); } }

/* the waiting list */
.join { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.join__intro .pill { margin-left: 0; }
.join__intro h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.03em; }
.join__intro h2 em { font-style: italic; font-weight: 400; color: var(--terra); }
.join__intro > p:not(.pill) { max-width: 42ch; margin: 18px 0 0; color: var(--ink-2); font: 400 20px/1.45 var(--slab); }
.join__pixel { position: relative; width: 150px; margin-top: 28px; }
.join__pixel img { display: block; width: 100%; height: auto; }
.join__pixel .tag { left: 105%; top: 22%; }
.form { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); box-shadow: 0 30px 60px -40px rgba(60,40,10,.45); }
.form__body { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; font-weight: 800; font-size: 15.5px; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font: 500 16px var(--sans); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--marigold-2); }
.field [aria-invalid="true"] { border-color: var(--terra); }
.opt, .hint { color: var(--ink-2); font-weight: 500; }
.hint { font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; font-weight: 700; font-size: 15px; transition: all .15s ease; }
.chips--small span { min-height: 40px; padding: 0 13px; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.field__more { display: grid; gap: 6px; margin-top: 6px; }
.field__more label { font-weight: 700; font-size: 14.5px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 12px 14px; border-radius: 6px; background: #fbe3da; color: #8a2f1c; font-weight: 700; }
.fine { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.form__done { display: grid; justify-items: center; gap: 10px; padding: 30px 10px; text-align: center; outline: none; }
.form__done img { width: 110px; height: auto; }
.form__done h3 { font-size: 34px; }
.form__done p { max-width: 36ch; margin: 0; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .form__done:not([hidden]) img { animation: hello 1.2s var(--ease) both; } }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .join__pixel { display: none; } }

/* questions */
.faq__list { display: grid; gap: 0; max-width: 900px; margin: 44px auto 0; border-top: 1px solid var(--line-2); }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary { position: relative; padding: 22px 56px 22px 4px; font: 500 clamp(20px, 2vw, 24px)/1.3 var(--slab); list-style: none; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 22px/1 var(--sans); transition: transform .25s var(--ease), background .2s ease; }
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--marigold-2); }
.faq__list details p { margin: 0; padding: 0 4px 22px; max-width: 62ch; color: var(--ink-2); }

/* explorer pass */
.invite { max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter) 90px; }
.pass { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 30px 34px 30px 0; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); box-shadow: 8px 8px 0 var(--marigold); }
.pass::before, .pass::after { content: ""; position: absolute; left: 82px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.pass::before { top: -14px; clip-path: inset(50% 0 0 0); } .pass::after { bottom: -14px; clip-path: inset(0 0 50% 0); }
.pass__stub { align-self: stretch; display: grid; place-items: center; width: 95px; margin: -30px 0; border-right: 1.5px dashed var(--line-2); }
.pass__stub span { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--terra); font-size: 13px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.pill--on-pass { margin: 0 0 10px; }
.pass__body h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin-bottom: 8px; }
.pass__body p:not(.pill) { margin: 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 860px) { .pass { grid-template-columns: auto 1fr; padding-right: 26px; } .pass .btn { grid-column: 2; justify-self: start; } }
@media (max-width: 520px) { .pass { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; box-shadow: 5px 5px 0 var(--marigold); } .pass::before, .pass::after, .pass__stub { display: none; } .pass .btn { grid-column: 1; width: 100%; } }

/* footer with the big wordmark */

/* entrance + reveal motion (motion.js adds .is-ready to <html>) */
@media (prefers-reduced-motion: no-preference) {
  .is-ready .rise { opacity: 0; transform: translateY(40%); }
  .is-ready .tile { transform: translateY(.06em) scale(.3) rotate(-12deg); opacity: 0; }
  .is-ready .hero__mid, .is-ready .ask { opacity: 0; transform: translateY(16px); }
  .is-ready .hl { --hl: 0%; }
  .is-go .rise { opacity: 1; transform: none; transition: transform .9s var(--ease), opacity .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .is-go .tile { opacity: 1; transform: translateY(.06em); transition: transform .9s cubic-bezier(.3,1.4,.5,1) .35s, opacity .4s ease .35s; }
  .is-go .hero__mid { opacity: 1; transform: none; transition: all .8s var(--ease) .55s; }
  .is-go .ask { opacity: 1; transform: none; transition: all .8s var(--ease) .75s; }
  .is-go .hl { --hl: 100%; transition: --hl .7s ease 1.1s; background-size: var(--hl) 88%; }
  .is-ready .reveal { opacity: 0; transform: translateY(26px); }
  .is-ready .reveal.is-in { opacity: 1; transform: none; transition: transform .8s var(--ease), opacity .6s ease; transition-delay: calc(var(--d, 0) * 90ms); }
}
@property --hl { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
@media (prefers-reduced-motion: reduce) { .ask__caret { animation: none; } .world__art--kite, .world__art--bird, .world__art--balloon { animation: none; } }

/* ===================== round 2: helpers, calm switch, menu, progress, demo ===================== */
/* reading progress: a marigold line, with Pixel walking along its tip */
.progress { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.progress__fill { display: block; height: 100%; width: 100%; background: var(--marigold); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.progress__pixel { position: absolute; top: 3px; left: 0; width: 24px; height: 32px; transform: translateX(calc(var(--prog, 0) * (100vw - 30px))); opacity: 0; transition: opacity .3s ease; }
.progress__pixel .walker__sprite { inset: 0; }
.is-scrolled .progress__pixel { opacity: 1; }

/* calm switch */
.calm-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.calm-btn:hover { background: var(--paper-2); }
.calm-btn__dot { position: relative; width: 28px; height: 16px; border-radius: 99px; background: var(--line-2); transition: background .2s ease; }
.calm-btn__dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.calm-btn[aria-pressed="true"] .calm-btn__dot { background: var(--forest-2); }
.calm-btn[aria-pressed="true"] .calm-btn__dot::after { transform: translateX(12px); }
html.calm-on *, html.calm-on *::before, html.calm-on *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calm-on .rise, html.calm-on .tile, html.calm-on .hero__mid, html.calm-on .ask, html.calm-on .reveal { opacity: 1 !important; transform: none !important; }
html.calm-on .tile { transform: translateY(.06em) !important; }
html.calm-on .hl { --hl: 100% !important; background-size: 100% 88% !important; }
html.calm-on .split span { transform: none !important; }
html.calm-on .say .w { color: var(--ink) !important; }
html.calm-on .lyr { transform: none !important; }
html.calm-on .marquee__track { transform: none !important; }
html.calm-on .progress__pixel { display: none; }
@media (max-width: 520px) { .calm-btn__txt { display: none; } .calm-btn { padding: 0 8px; } .top__signin { display: none; } }

/* phone menu */
.menu-btn { display: none; place-items: center; width: 40px; height: 38px; margin-left: 2px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); cursor: pointer; }
.menu-btn__bars { display: grid; gap: 5px; width: 18px; }
.menu-btn__bars i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter); display: grid; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); box-shadow: 0 30px 60px -30px rgba(40,30,10,.45); }
.menu[hidden] { display: none; }
.menu > a { padding: 13px 12px; border-bottom: 1px solid var(--line); font: 500 22px var(--slab); text-decoration: none; }
.menu > a:hover { background: var(--paper-2); }
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
.menu__foot .btn { min-height: 46px; padding: 0 10px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) { .menu:not([hidden]) { animation: drop .3s var(--ease) both; } .menu:not([hidden]) > a { animation: rise-in .4s var(--ease) both; } .menu > a:nth-child(2) { animation-delay: .03s; } .menu > a:nth-child(3) { animation-delay: .06s; } .menu > a:nth-child(4) { animation-delay: .09s; } .menu > a:nth-child(5) { animation-delay: .12s; } .menu > a:nth-child(6) { animation-delay: .15s; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1000px) { .menu-btn { display: grid; } }

/* the section you're reading is underlined in the header */
.top__links a { position: relative; }
.top__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.top__links a[aria-current="true"] { color: var(--terra); }
.top__links a[aria-current="true"]::after { transform: scaleX(1); }

/* skills strip */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--card); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 44px; width: max-content; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font: 400 clamp(20px, 2.2vw, 28px) var(--slab); white-space: nowrap; }
.marquee img { width: 40px; height: 40px; object-fit: contain; }
.marquee span::after { content: "✦"; margin-left: 32px; color: var(--marigold); font-size: .8em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: slide 46s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 30px; } }

/* try a tiny lesson */
.try { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(70px, 9vw, 110px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.try__intro .pill { margin-left: 0; }
.try__intro h2 { font-size: clamp(42px, 5.6vw, 78px); line-height: .95; letter-spacing: -.03em; }
.try__intro h2 em { font-style: italic; font-weight: 400; color: var(--terra); }
.try__intro > p:not(.pill) { max-width: 40ch; margin: 18px 0 22px; color: var(--ink-2); font: 400 20px/1.45 var(--slab); }
.try__voice[aria-pressed="true"] { background: var(--moss); border-color: var(--forest); }
.board { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 30px); border: 1.5px solid var(--ink); border-radius: 10px; background:
  radial-gradient(120% 70% at 100% 0%, rgba(243,199,122,.25), transparent 60%), var(--card); box-shadow: 10px 10px 0 var(--moss); }
.board__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.board__dots { display: flex; gap: 6px; }
.board__dots i { width: 26px; height: 6px; border-radius: 99px; background: var(--line); transition: background .3s ease; }
.board__dots i.on { background: var(--forest-2); }
.board__ask { display: flex; align-items: flex-end; gap: 12px; min-height: 120px; }
.board__pixel { flex: none; width: 74px; height: auto; transform-origin: 50% 100%; }
.board__bubble { position: relative; margin: 0 0 22px; padding: 14px 18px; border: 1.5px solid var(--ink); border-radius: 16px 16px 16px 4px; background: #fff; font: 500 clamp(19px, 2vw, 24px)/1.3 var(--slab); }
.board__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.choice { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; transition: transform .2s var(--ease), border-color .15s ease, box-shadow .2s ease; }
.choice img { width: min(96px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .3s var(--ease); }
.choice:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 10px 20px -14px rgba(40,30,10,.5); }
.choice:hover img { transform: rotate(-5deg) scale(1.06); }
.choice.is-right { border-color: var(--forest-2); background: var(--moss); }
.choice.is-try { animation: nudge .45s ease; }
.choice:disabled { cursor: default; }
.choice:disabled:not(.is-right) { opacity: .45; }
@keyframes nudge { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.board__say { min-height: 1.6em; margin: 14px 0 0; color: var(--forest); font: 600 22px/1.3 var(--hand); }
.board__end { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; text-align: center; }
.board__end b { font: 500 30px var(--slab); }
.board__end span { max-width: 40ch; color: var(--ink-2); }
.board__end-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.board.is-cheer .board__pixel { animation: hop .7s var(--ease); }
@keyframes hop { 30% { transform: translateY(-14px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .board__choices { gap: 8px; } .choice { font-size: 13.5px; } .board { box-shadow: 6px 6px 0 var(--moss); } }

/* star burst (demo and waiting list) */
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; background: var(--c); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: star 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes star { from { transform: translate(0,0) scale(.4) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(220deg); opacity: 0; } }
.form { position: relative; }

/* lessons shelf arrows + drag */
.shelf { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.shelf__track, .shelf__bar { grid-column: 1 / -1; }
.chips-row { margin-bottom: 16px; }
.shelf__nav { display: flex; gap: 6px; margin-bottom: 16px; }
.arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; background: var(--card); font-size: 18px; cursor: pointer; transition: background .15s ease, transform .15s var(--ease); }
.arrow:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.06); }
.arrow:disabled { opacity: .3; cursor: default; }
.shelf__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shelf__track { cursor: grab; }
@media (max-width: 640px) { .shelf { grid-template-columns: 1fr; } .shelf__nav { display: none; } }

/* questions open smoothly where the browser can */
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq__list details[open]::details-content { height: auto; }
}

/* back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--marigold); color: var(--ink); font: 700 20px var(--sans); text-decoration: none; box-shadow: 0 10px 20px -10px rgba(40,30,10,.5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* hover lift on cards and bento */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .bento li, .safe__grid li { transition: transform .3s var(--ease), box-shadow .3s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -24px rgba(40,30,10,.5); z-index: 1; background: #fffcf2; }
  .bento li:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 30px -22px rgba(40,30,10,.45); }
  .btn--line:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--ink); }
}
.shelf__track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* the real Sprout's World map, with tappable places and Pixel walking the paths */
.atlas__lede { max-width: 52ch; margin: 18px auto 0; text-align: center; color: var(--ink-2); font: 400 20px/1.45 var(--slab); }
.atlas { margin-top: 34px; }
.atlas__scroll { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 12px; background: #f6e7cf; box-shadow: 10px 10px 0 var(--marigold-2); scrollbar-width: thin; }
.atlas__map { position: relative; min-width: 760px; }
.atlas__img { display: block; width: 100%; height: auto; }
.atlas__pixel { position: absolute; left: 0; top: 0; z-index: 2; width: 6.2%; aspect-ratio: 384 / 512; transform: translate(6%, -92%) scaleX(var(--face, 1)); pointer-events: none; }
.atlas__pixel .walker__sprite { inset: 0; }
.spot { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 7.4%; aspect-ratio: 1; translate: -50% -50%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.spot::after { content: ""; position: absolute; inset: -4px; border: 3px solid transparent; border-radius: 50%; transition: border-color .2s ease, transform .2s var(--ease); }
.spot:hover::after { border-color: rgba(28,29,26,.55); transform: scale(1.06); }
.spot[aria-pressed="true"]::after { border-color: var(--terra); animation: ring 1.6s ease-out infinite; }
.spot:focus-visible { outline: none; }
.spot:focus-visible::after { border-color: var(--ink); border-style: dashed; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(168,65,43,.45); } 100% { box-shadow: 0 0 0 16px rgba(168,65,43,0); } }
.atlas__swipe { display: none; margin: 10px 0 0; text-align: center; color: var(--ink-2); font: 600 20px var(--hand); }
.atlas__card { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 22px auto 0; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.atlas__card b { display: block; font: 500 24px/1.2 var(--slab); }
.atlas__card span:not(.atlas__emoji) { color: var(--ink-2); }
.atlas__emoji { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--marigold-2); font-size: 28px; }
.atlas__card.is-new { animation: rise-in .45s var(--ease); }
@media (max-width: 860px) { .atlas__swipe { display: block; } .atlas__scroll { box-shadow: 6px 6px 0 var(--marigold-2); } }

/* lessons shelf hugs its cards when a filter shows only a few */
.shelf__track { width: fit-content; max-width: 100%; }
.lesson:last-child { border-right: 0; }

/* promises on the forest page (replaces the plain columns) */
.safe { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 70px); align-items: center; isolation: isolate; }
.safe::before { content: ""; position: absolute; right: -10%; top: 50%; z-index: -1; width: min(780px, 70vw); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(243,199,122,.10) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.safe .split { font-size: clamp(42px, 5.6vw, 84px); }
.safe .split__b { padding-left: clamp(0px, 4vw, 70px); }
.pill--dark { margin-left: 0; border-color: rgba(246,239,224,.35); background: rgba(255,255,255,.06); color: #f6efe0; }
.safe__lede { max-width: 34ch; margin: 22px 0 0; color: rgba(246,239,224,.82); font: 400 21px/1.45 var(--slab); }
.safe__link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--marigold); font-weight: 700; text-underline-offset: 4px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise { display: grid; align-content: start; gap: 6px; padding: 20px 20px 22px; border-radius: 14px; background: #fbf6ea; color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 20px 30px -22px rgba(0,0,0,.6); transform: rotate(var(--tilt, -1.2deg)); transition: transform .35s var(--ease), box-shadow .35s ease; }
.promise:nth-child(2) { --tilt: 1.4deg; margin-top: 26px; }
.promise:nth-child(3) { --tilt: 1deg; }
.promise:nth-child(4) { --tilt: -1.6deg; margin-top: 26px; margin-bottom: -26px; }
.promise img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; transition: transform .35s var(--ease); }
.promise b { font: 500 22px/1.2 var(--slab); }
.promise span { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
@media (hover: hover) { .promise:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 30px 40px -24px rgba(0,0,0,.7); } .promise:hover img { transform: rotate(-8deg) scale(1.1); } }
.is-ready .promise.reveal { opacity: 0; transform: rotate(var(--tilt, 0deg)) translateY(30px) scale(.96); }
.is-ready .promise.reveal.is-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); transition: transform .8s cubic-bezier(.3,1.3,.5,1), opacity .5s ease; transition-delay: calc(var(--d, 0) * 110ms); }
@media (max-width: 960px) { .safe { grid-template-columns: 1fr; } .safe::before { right: -30%; top: 70%; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } .promise:nth-child(n) { margin-top: 0; } }

/* filtered shelf: a card never grows past its set width, so the shelf can hug the cards */
.lesson { max-width: clamp(240px, 26vw, 290px); margin-right: -1px; }
/* the tiny lesson has no empty strip under the answers until Pixel says something */
.board__say:empty { min-height: 0; margin: 0; }
@media (hover: hover) { .is-ready .promise.reveal.is-in:hover { transform: rotate(0) translateY(-6px); transition-delay: 0s; } }

/* promises, on paper (v3): four even cards with a tinted picture panel */
.promise-block__lede { max-width: 44ch; margin: 18px auto 0; text-align: center; color: var(--ink-2); font: 400 21px/1.45 var(--slab); }
.promise-block .promises { margin-top: 44px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.promise-block .promise { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); box-shadow: none; transform: none; margin: 0 !important; }
.promise__art { display: grid; place-items: center; height: 170px; background: var(--tint, var(--marigold-2)); border-bottom: 1px solid var(--line-2); }
.promise-block .promise img { width: 104px; height: 104px; margin: 0; }
.promise__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.promise-block .is-ready .promise.reveal, .is-ready .promise-block .promise.reveal { transform: translateY(26px); }
.is-ready .promise-block .promise.reveal.is-in { transform: none; transition: transform .8s var(--ease), opacity .5s ease, box-shadow .3s ease; transition-delay: calc(var(--d, 0) * 100ms); }
@media (hover: hover) {
  .is-ready .promise-block .promise.reveal.is-in:hover, .promise-block .promise:hover { transform: translateY(-6px); box-shadow: 0 22px 34px -26px rgba(40,30,10,.55); transition-delay: 0s; }
  .promise-block .promise:hover img { transform: rotate(-8deg) scale(1.1); }
}
.promise-block__more { margin: 30px 0 0; text-align: center; }
.promise-block__more a { color: var(--terra); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 960px) { .promise-block .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .promise-block .promises { grid-template-columns: 1fr; } .promise__art { height: 130px; } }

/* map v2: a game-board frame, bigger Pixel with a shadow, footprints, place chips, a clearer card */
.atlas__board { padding: 10px; border: 1.5px solid var(--ink); border-radius: 22px; background: linear-gradient(180deg, #fff8ea, #f3e3c4); box-shadow: 0 2px 0 #fff inset, 12px 12px 0 var(--marigold-2), 0 40px 60px -40px rgba(60,40,10,.55); }
.atlas__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 10px 12px; font-size: 15px; }
.atlas__bar-title { font: 500 22px var(--slab); }
.atlas__bar-here { color: var(--ink-2); }
.atlas__bar-here b { color: var(--terra); }
.atlas__board .atlas__scroll { border: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(28,29,26,.18), inset 0 0 40px rgba(60,40,10,.15); }
.atlas__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 14px; box-shadow: inset 0 0 70px rgba(120,80,20,.18); }
.atlas__pixel { width: 9.2%; transform: translate(4%, -90%) scaleX(var(--face, 1)); filter: drop-shadow(0 4px 3px rgba(40,30,10,.25)); }
.atlas__shadow { position: absolute; left: 18%; right: 18%; bottom: -2%; height: 8%; border-radius: 50%; background: rgba(30,40,20,.28); filter: blur(2px); }
.atlas__steps { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.atlas__steps i { position: absolute; width: .9%; aspect-ratio: 1.4; border-radius: 50%; background: rgba(120,80,40,.45); translate: -50% -50%; animation: step-fade 2.4s ease-out forwards; }
@keyframes step-fade { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: .6; } }
.spot { width: 8.4%; }
.atlas__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.place-chip { min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 14.5px var(--sans); cursor: pointer; transition: transform .2s var(--ease), background .15s ease, border-color .15s ease; }
.place-chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.place-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.atlas__card { max-width: 720px; padding: 18px 22px; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--moss); }
.atlas__emoji { width: 64px; height: 64px; font-size: 32px; border: 1.5px solid var(--ink); }
.atlas__card b { font-size: 26px; }
.atlas .burst i { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .atlas__board { padding: 6px; border-radius: 16px; box-shadow: 6px 6px 0 var(--marigold-2); }
  .atlas__bar { padding: 2px 6px 8px; font-size: 13px; }
  .atlas__bar-title { font-size: 18px; }
  .atlas__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .place-chip { flex: none; }
}

/* a bigger Pixel everywhere she walks */
.walker { width: clamp(130px, 15vw, 220px); }
.world__pixel { width: clamp(84px, 10.5vw, 150px); }
@media (max-width: 860px) { .walker { width: 112px; } }

/* the 30-second film (where the crayon world panel used to be) */
.film { position: relative; max-width: 1180px; margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; border: 1.5px solid var(--ink); border-radius: 12px; background: #f6ecd8 url("/welcome/video/small-steps-hd.jpg") center / cover; box-shadow: 12px 12px 0 var(--marigold-2), 0 40px 60px -40px rgba(60,40,10,.5); }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__btn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(255,254,250,.92); color: var(--ink); font: 700 14px var(--sans); cursor: pointer; backdrop-filter: blur(6px); }
.film__btn:hover { background: #fff; }
.film__icon { width: 12px; height: 12px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film__btn[aria-pressed="true"] .film__icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
@media (max-width: 860px) { .film { box-shadow: 6px 6px 0 var(--marigold-2); border-radius: 10px; } .film__btn { right: 8px; bottom: 8px; min-height: 36px; } }

/* ---- footer: the end of the trail (a hillside, Pixel strolling, then the night-green ground) ---- */
.foot { --hill: clamp(70px, 9vw, 120px); position: relative; margin-top: clamp(24px, 4vw, 56px); background: linear-gradient(transparent calc(var(--hill) - 2px), var(--forest) calc(var(--hill) - 2px)); color: #f3efe6; }
.foot__hill { position: relative; height: var(--hill); pointer-events: none; }
.foot__hill svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot__flowers i { position: absolute; bottom: 38%; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.foot__flowers i:nth-child(1) { left: 8%; } .foot__flowers i:nth-child(2) { left: 23%; bottom: 48%; background: #f6b6c8; } .foot__flowers i:nth-child(3) { left: 61%; bottom: 52%; background: #fff; }
.foot__flowers i:nth-child(4) { left: 79%; bottom: 44%; } .foot__flowers i:nth-child(5) { left: 93%; bottom: 58%; background: #f6b6c8; }
.foot__walker { position: absolute; left: 0; bottom: 40%; width: clamp(54px, 5vw, 76px); aspect-ratio: 192 / 256; animation: foot-stroll 46s linear infinite; }
.foot__sprite { display: block; width: 100%; height: 100%; background: url("/welcome/art/pixel-walk.webp") 0 0 / 400% 200% no-repeat; animation: foot-step .9s steps(4) infinite; }
@keyframes foot-step { to { background-position-x: 133.333%; } }
@keyframes foot-stroll { 0% { transform: translateX(-12vw); } 100% { transform: translateX(110vw); } }
html.calm-on .foot__walker, html.calm-on .foot__sprite { animation: none; } html.calm-on .foot__walker { transform: translateX(12vw); }
@media (prefers-reduced-motion: reduce) { .foot__walker, .foot__sprite { animation: none; } .foot__walker { transform: translateX(12vw); } }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px clamp(30px, 6vw, 90px); max-width: 1240px; margin: 0 auto; padding: clamp(36px, 5vw, 60px) var(--gutter) clamp(30px, 4vw, 48px); }
.foot__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 500 30px/1 var(--slab); letter-spacing: -.02em; text-decoration: none; }
.foot__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--marigold); }
.foot__mark svg { width: 26px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.foot__tag { margin: 14px 0 0; color: rgba(243,239,230,.82); font: 600 26px/1.15 var(--hand); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__h { margin: 0 0 12px; color: var(--marigold); font: 800 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.foot__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot__cols a { color: #f3efe6; font-size: 15.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.foot__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter) 26px; border-top: 1px solid rgba(243,239,230,.16); color: rgba(243,239,230,.78); font-size: 14px; }
@media (max-width: 860px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__tag { font-size: 23px; }
}
@media (max-width: 340px) { .foot__cols { grid-template-columns: 1fr; } }

/* ---- Pixel's friend (a boy) has his own places: the crayon path, the waiting list, the footer hill ---- */
.world__pixel--friend .walker__sprite { background-image: url("/welcome/art/friend-walk.webp"); }
.join__pixel { width: 130px; }
.join__pixel img.join__friend { display: block; width: 100%; height: auto; }
.join__pixel .tag { left: 105%; }
.foot__sprite--friend { background-image: url("/welcome/art/friend-walk.webp"); }

/* Accessibility (2026-11-17): touch targets at least 24 px tall (WCAG 2.2, 2.5.8), and the film's written description */
.notice a, .foot__cols a, .promise-block__more a { display: inline-block; padding-block: 3px; }
.film__desc { max-width: 760px; margin: 14px auto 0; font-size: 15.5px; color: var(--ink-2); }
.film__desc summary { cursor: pointer; font-weight: 700; color: var(--ink); padding-block: 4px; }
.film__desc p { margin: 8px 0 0; line-height: 1.55; }
/* Very narrow screens (or 400% zoom): the header fits without sideways scrolling */
@media (max-width: 380px) { .top { gap: 6px; padding-inline: 8px; } .brand__word { font-size: 15px; } .top__acts { gap: 2px; } .calm-btn { padding: 0 6px; } }
@media (max-width: 340px) { .brand__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* ===== Accessibility menu (a11y.js) ===== */
.a11y-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--paper-2); }
@media (max-width: 1180px) { .a11y-btn__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .a11y-btn { padding: 0 8px; } }
.a11y { position: absolute; top: calc(100% - 4px); right: var(--gutter); z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow: auto;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px; box-shadow: 0 18px 50px -18px rgba(28,29,26,.45); }
@media (max-width: 520px) { .a11y { right: 12px; left: 12px; width: auto; } }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.a11y__head h2 { margin: 0; font: 600 19px/1.25 var(--slab); }
.a11y__close { min-width: 40px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.a11y__label { font-weight: 700; font-size: 15px; }
.a11y__seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.a11y__seg button { min-width: 50px; min-height: 40px; border: 0; border-left: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.a11y__seg button:first-child { border-left: 0; } .a11y__seg button:nth-child(2) { font-size: 17px; } .a11y__seg button:nth-child(3) { font-size: 19px; }
.a11y__seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y .a11y__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); text-align: left; font: 500 15px/1.35 var(--sans); cursor: pointer; }
.a11y .a11y__toggle:hover { background: var(--paper-2); }
.a11y__toggle b { display: block; font-weight: 700; } .a11y__toggle small { display: block; color: var(--ink-2); font-size: 13.5px; }
.a11y__toggle .calm-btn__dot { flex: none; }
.a11y__toggle[aria-pressed="true"] .calm-btn__dot { background: var(--forest-2); }
.a11y__toggle[aria-pressed="true"] .calm-btn__dot::after { transform: translateX(12px); }
.a11y__listen { display: grid; gap: 6px; padding: 14px 0 6px; }
.a11y__listen .btn { min-height: 48px; width: 100%; }
.a11y__listen small { color: var(--ink-2); font-size: 13.5px; text-align: center; }
.a11y__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; }
.a11y__foot a { color: var(--terra); font-weight: 700; display: inline-block; padding-block: 6px; }
.a11y__reset { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }

/* ===== Listen to this page: player + the part being read ===== */
.listen { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: min(640px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); }
.listen__now { flex: 1 1 220px; font-weight: 700; font-size: 15px; }
.listen__btns { display: inline-flex; gap: 6px; }
.listen button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid #fff; border-radius: 10px; background: transparent; color: #fff; font: 700 15px var(--sans); cursor: pointer; }
.listen button:hover { background: rgba(255,255,255,.12); }
.listen button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.fs-reading { outline: 4px solid var(--marigold) !important; outline-offset: 6px; border-radius: 14px; }

/* ===== The short version, in plain words ===== */
.easy { width: min(980px, calc(100% - 2 * var(--gutter))); margin: 8px auto 28px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--card); }
.easy summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; cursor: pointer; font-size: 17px; list-style: none; }
.easy summary::-webkit-details-marker { display: none; }
.easy summary::after { content: "+"; margin-left: auto; font: 700 24px var(--sans); color: var(--ink-2); }
.easy[open] summary::after { content: "−"; }
.easy summary img { width: 44px; height: 44px; object-fit: contain; }
.easy__list { list-style: none; margin: 0; padding: 4px 16px 18px; display: grid; gap: 12px; }
.easy__list li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; background: var(--paper); }
.easy__list img { width: 64px; height: 64px; object-fit: contain; }
.easy__list p { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 600; }
.easy__list .btn { grid-column: 2; justify-self: start; min-height: 48px; }

/* ===== Modes ===== */
/* Text size: everything inside the page grows together (the header stays put) */
html.fs-size-1 :is(main, footer, .notice) { zoom: 1.15; }
html.fs-size-2 :is(main, footer, .notice) { zoom: 1.3; }
/* the giant hero headline is already big: it keeps its size so it never runs off the screen */
html.fs-size-1 .hero__title { zoom: calc(1 / 1.15); } html.fs-size-2 .hero__title { zoom: calc(1 / 1.3); }
/* Easier reading: dyslexia-friendly spacing, plain letters, left-aligned lines */
html.fs-read { --slab: var(--sans); }
html.fs-read :is(main, footer) :is(p, li, summary, label, small, dd), html.fs-read :is(main, footer) :is(p, li, summary, label, small, dd) * { letter-spacing: .04em; word-spacing: .14em; }
html.fs-read :is(main, footer) :is(p, li, summary, label) { line-height: 1.85 !important; }
html.fs-read main p { text-align: left; }
html.fs-read :is(main, footer) :is(em, i) { font-style: normal; }
/* High contrast */
html.fs-contrast { --paper: #fff; --paper-2: #fff; --card: #fff; --ink: #000; --ink-2: #111; --ink-3: #222; --line: #000; --line-2: #000; --terra: #8a2410; --forest: #0b3320; --forest-2: #0b3320; --marigold: #ffd34d; --moss: #fff; }
html.fs-contrast body { background: #fff; color: #000; }
html.fs-contrast :is(main, footer) :is(p, li, small, span, label) { color: inherit; }
html.fs-contrast .btn, html.fs-contrast .box, html.fs-contrast .easy, html.fs-contrast .lesson { border-width: 2px; border-color: #000; }
html.fs-contrast :focus-visible { outline: 4px solid #000 !important; outline-offset: 3px; box-shadow: 0 0 0 7px #ffd34d; }
/* Underline links */
html.fs-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
