/* ET Labs Junior paper-world mock — original work, 24 Nov 2026.
   Not derived from andrewwoan/aimee-xus-papercraft-world or any paid texture kit. */

@font-face{
  font-family:"Fredoka";
  src:url("fonts/Fredoka-Variable.woff2") format("woff2");
  font-weight:300 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Nunito";
  src:url("fonts/Nunito-Variable.woff2") format("woff2");
  font-weight:200 1000;
  font-style:normal;
  font-display:swap;
}

:root{
  --paper:#FBF4E4;
  --ink:#2B2620;
  --clay:#E8896B;
  --sun:#F6C445;
  --sea:#BFDCD6;
  --sea2:#8FC1B8;
  --grass:#C9DC9A;
  --sand:#F2D79A;
  --berry:#C2557A;
  --leaf:#5F8D4E;
  --sky:#DCE8E4;
  --pine:#1F4D3F;
  --mute:#5E625F;
  --shadow:rgba(43,38,32,.16);
  --shadow-deep:rgba(43,38,32,.22);
  --focus:#E8896B;
  --nav-h:5.5rem;
  --font-display:"Fredoka","Nunito",system-ui,sans-serif;
  --font-body:"Nunito","Segoe UI",system-ui,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{background:var(--paper);color:var(--ink);-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-body);
  font-size:1.125rem;
  line-height:1.55;
  font-weight:500;
  background:var(--paper);
  color:var(--ink);
  min-height:100dvh;
}

:focus{outline:none}
:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:10px;
}

.skip{
  position:absolute;
  left:1rem;top:-3.5rem;
  z-index:100;
  background:var(--paper);
  color:var(--ink);
  padding:.6rem 1rem;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 4px 0 var(--shadow);
}
.skip:focus{top:1rem}

/* Paper grain generated with SVG turbulence — not a stock texture */
.grain{
  position:fixed;inset:0;
  pointer-events:none;
  z-index:60;
  opacity:.11;
  mix-blend-mode:multiply;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.15  0 0 0 0 0.13  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.sr-only{
  position:absolute;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Horizontal world (desktop, motion allowed) */
.world{
  height:100dvh;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.world::-webkit-scrollbar{display:none}
.track{
  display:flex;
  height:100dvh;
  width:max-content;
}
.room{
  --wall:#F3E6C4;
  --floor:#E2CD9A;
  position:relative;
  flex:0 0 100vw;
  width:100vw;
  height:100dvh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  overflow:hidden;
  padding:1.5rem 1.75rem calc(var(--nav-h) + 1.25rem);
}

.room--intro{--wall:#F3E6C4;--floor:#E4CE9C}
.room--teach{--wall:#C9DEE4;--floor:#8FC1B8}
.room--story{--wall:#F2D79A;--floor:#E2B86A}
.room--lessons{--wall:#C9DC9A;--floor:#A6C46A}
.room--parent{--wall:#DCE8E4;--floor:#B7C9C3}

.scene{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.wall{
  position:absolute;
  inset:0 0 28% 0;
  background:
    radial-gradient(ellipse 130% 90% at 50% 118%, rgba(43,38,32,.07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 42%),
    var(--wall);
}
.floor{
  position:absolute;
  left:-12%;
  right:-12%;
  bottom:-6%;
  height:42%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%),
    var(--floor);
  border-radius:50% 50% 0 0 / 34% 34% 0 0;
  box-shadow:0 -10px 24px rgba(43,38,32,.08);
}
.layer{
  position:absolute;
  overflow:visible;
}
.layer svg{display:block;width:100%;height:100%;overflow:visible}
.layer-back{inset:6% 4% 38% 4%;z-index:1}
.layer-mid{inset:auto 2% 8% 2%;height:58%;z-index:2}
.layer-front{inset:auto 1% 2% 1%;height:70%;z-index:3}

/* Die-cut paper shadows used on SVG groups */
.cut{filter:drop-shadow(2px 3px 0 rgba(43,38,32,.10)) drop-shadow(6px 14px 12px rgba(43,38,32,.16))}
.cut-soft{filter:drop-shadow(4px 10px 10px rgba(43,38,32,.14))}

/* Copy card */
.card{
  position:relative;
  z-index:10;
  max-width:36rem;
  background:var(--paper);
  color:var(--ink);
  border-radius:26px 20px 28px 18px;
  padding:1.5rem 1.65rem 1.6rem;
  box-shadow:
    3px 3px 0 rgba(43,38,32,.06),
    6px 12px 0 rgba(43,38,32,.10),
    0 22px 36px rgba(43,38,32,.12);
}
.card h1,.card h2{
  font-family:var(--font-display);
  font-weight:650;
  letter-spacing:-.03em;
  line-height:1.12;
  margin:0 0 .7rem;
  font-size:clamp(1.85rem, 3.2vw, 3rem);
}
.card p{margin:0 0 .75rem;color:var(--ink)}
.card p:last-child{margin-bottom:0}
.card .lede{font-size:1.12rem}
.note{
  margin-top:1rem;
  padding:.85rem 1rem;
  background:#fffdf8;
  border-radius:16px 14px 18px 12px;
  box-shadow:inset 0 0 0 1px rgba(43,38,32,.10);
  font-size:1rem;
}

.eyebrow{
  display:inline-block;
  margin:0 0 .55rem;
  font-family:var(--font-display);
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.04em;
  color:var(--pine);
}

.draft-badge{
  display:inline-block;
  margin:0 0 1rem;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-display);
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.01em;
  padding:.28rem .7rem .32rem;
  border-radius:999px;
}

/* Intro wordmark — each letter is a cut-paper tile */
.intro-layout{
  position:relative;
  z-index:10;
  display:grid;
  grid-template-columns:minmax(18rem,36rem) minmax(16rem,1fr);
  gap:2rem 3rem;
  align-items:end;
  height:100%;
}
.intro-stage{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:0;padding-bottom:1rem}

.wordmark{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  margin:0 0 1.1rem;
}
.wm-line{display:flex;flex-wrap:wrap;gap:.28rem;align-items:flex-end}
.ch{
  --r:0deg;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:700;
  color:var(--ink);
  background:#FFF8EC;
  padding:.12em .22em .16em;
  min-width:.85em;
  border-radius:14px 16px 12px 18px;
  transform:rotate(var(--r));
  box-shadow:
    2px 2px 0 rgba(43,38,32,.08),
    3px 6px 0 rgba(43,38,32,.12),
    0 12px 18px rgba(43,38,32,.10);
  line-height:1;
  font-size:clamp(2.1rem, 4.6vw, 4.4rem);
  z-index:1;
}
.ch.space{background:transparent;box-shadow:none;min-width:.35em;padding:0}
.ch.junior{
  background:#F8D7C8;
  color:#5A2E22;
  font-size:clamp(2.6rem, 6vw, 5.4rem);
  padding:.08em .2em .12em;
}

.stamp{
  display:inline-block;
  margin:0 0 1.25rem;
  padding:.45rem .85rem .4rem;
  font-family:var(--font-display);
  font-weight:650;
  font-size:.92rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#A9442C;
  border:3px solid currentColor;
  border-radius:10px;
  transform:rotate(-6deg);
  box-shadow:inset 0 0 0 2px var(--paper), 3px 5px 0 rgba(43,38,32,.12);
  background:var(--paper);
}

.robot-wrap{
  justify-self:end;
  align-self:end;
  width:min(280px, 34vw);
  filter:drop-shadow(3px 4px 0 rgba(43,38,32,.08)) drop-shadow(8px 18px 16px rgba(43,38,32,.16));
}
.robot-wrap svg{width:100%;height:auto;display:block}

.room-body{
  position:relative;
  z-index:10;
  display:grid;
  grid-template-columns:minmax(18rem,36rem) 1fr;
  gap:1.5rem;
  align-items:end;
  height:100%;
}
.room-body .card{align-self:center}

/* Floating room nav */
.room-nav{
  position:fixed;
  left:50%;
  bottom:1rem;
  transform:translateX(-50%);
  z-index:40;
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.4rem .45rem;
  background:var(--paper);
  border-radius:999px;
  box-shadow:3px 6px 0 rgba(43,38,32,.10), 0 14px 28px rgba(43,38,32,.14);
}
.nav-btn{
  appearance:none;
  border:0;
  background:#FFF8EC;
  color:var(--ink);
  width:2.7rem;height:2.7rem;
  border-radius:50%;
  display:grid;place-items:center;
  cursor:pointer;
  box-shadow:2px 3px 0 rgba(43,38,32,.12);
  font:inherit;
}
.nav-btn:hover{background:#fff}
.nav-btn:disabled{
  opacity:.38;
  cursor:not-allowed;
  box-shadow:none;
}
.nav-btn svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dots{
  display:flex;
  gap:.3rem;
  list-style:none;
  margin:0;
  padding:.15rem .2rem;
}
.dots button{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--ink);
  font-family:var(--font-display);
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.01em;
  padding:.35rem .65rem;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
}
.dots button[aria-current="true"]{
  background:var(--sun);
  box-shadow:2px 2px 0 rgba(43,38,32,.12);
}
.dots .short{display:none}
.dots button:hover{background:#FFF3D0}
.dots button[aria-current="true"]:hover{background:var(--sun)}
.room-status{
  position:fixed;
  right:1.1rem;
  bottom:1.35rem;
  z-index:40;
  font-family:var(--font-display);
  font-size:.85rem;
  font-weight:600;
  color:var(--ink);
  background:var(--paper);
  padding:.3rem .65rem;
  border-radius:999px;
  box-shadow:2px 3px 0 rgba(43,38,32,.10);
}

/* Stacked layout: mobile or reduced motion */
@media (max-width:759px),(prefers-reduced-motion:reduce){
  .world{
    height:auto;
    overflow:visible;
    scroll-snap-type:none;
    scroll-behavior:auto;
  }
  .track{
    display:block;
    height:auto;
    width:100%;
  }
  .room{
    flex:none;
    width:100%;
    height:auto;
    min-height:0;
    overflow:visible;
    padding:1.25rem 1.1rem 6.5rem;
  }
  .scene{position:relative;height:min(42vw, 220px);min-height:150px;inset:auto;margin:0 -1.1rem 1rem;border-radius:0 0 40% 40% / 0 0 18% 18%;overflow:hidden}
  .intro-layout,
  .room-body{
    display:block;
    height:auto;
  }
  .robot-wrap{width:min(200px,58vw);margin:1.1rem auto 0}
  .intro-stage{padding-bottom:0}
  .wordmark{margin-top:.2rem}
  .ch{font-size:clamp(1.7rem, 9vw, 2.6rem)}
  .ch.junior{font-size:clamp(2.1rem, 12vw, 3.3rem)}
  .card{max-width:none}
  .layer-back{inset:0 0 30% 0}
  .layer-mid{inset:auto 0 0 0;height:80%}
  .layer-front{display:none}
}

/* Mobile nav stays one row and scrolls; it must not wrap over the copy */
@media (max-width:759px){
  .scene{height:150px;min-height:150px}
  .room-nav{
    left:.5rem;right:.5rem;bottom:.5rem;
    transform:none;
    justify-content:space-between;
    flex-wrap:nowrap;
    max-width:none;
  }
  .dots{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .dots::-webkit-scrollbar{display:none}
  .dots button{font-size:.68rem;padding:.3rem .5rem;flex:0 0 auto}
  .dots .full{display:none}
  .dots .short{display:inline}
  .room-status{display:none}
  .nav-btn{width:2.4rem;height:2.4rem;flex:0 0 auto}
}

/* Wide reduced-motion: keep the compact pill and sit the robot beside the intro card */
@media (prefers-reduced-motion:reduce) and (min-width:760px){
  .scene{height:240px;min-height:240px;margin:0 0 1.25rem;border-radius:0 0 36% 36% / 0 0 20% 20%}
  .intro-layout{
    display:grid;
    grid-template-columns:minmax(18rem,40rem) minmax(12rem,1fr);
    gap:1.5rem 2rem;
    align-items:end;
  }
  .robot-wrap{width:min(240px,28vw);margin:0;justify-self:end;align-self:end}
  .room{padding:2rem 2.5rem 6.5rem}
  .card{max-width:40rem}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

@media (max-width:759px){
  .dots .label-wide{display:none}
}

@media (min-width:760px) and (max-width:1100px){
  .dots button{font-size:.72rem;padding:.3rem .5rem}
  .intro-layout,.room-body{grid-template-columns:1fr;align-items:stretch}
  .robot-wrap{width:200px;position:absolute;right:2rem;bottom:6.5rem}
  .card{max-width:34rem}
}

@media (min-width:1101px){
  .room{padding:2rem 2.5rem calc(var(--nav-h) + 1.5rem)}
}
