@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fredoka-1.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/lexend-1.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --page: #fffaf0;
  --card: #ffffff;
  --felt-cream: #fbf3e2;
  --line: #ecdcb8;
  --ink: #2a2420;
  --muted: #5a4f47;
  --stitch: #f0b23c;
  --brown: #8a5f2a;
  --display: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--board); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--stitch); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 20px; }

/* Header */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: 14px max(24px, env(safe-area-inset-right)) 6px max(24px, env(safe-area-inset-left));
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--board); text-decoration: none; font: 600 1.3rem var(--display); white-space: nowrap; }
.brand img { border-radius: 10px; }
.bar nav { display: flex; align-items: center; gap: 4px 22px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: var(--board); }
.bar nav a.pill { padding: 0 18px; border-radius: 999px; background: var(--board); color: #fff; font-family: var(--display); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-rows: 1fr auto 1fr;
  grid-template-areas: "title art" "lead art" "stores art"; column-gap: 52px;
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px;
}
.hero h1 { grid-area: title; align-self: end; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--board); letter-spacing: -.01em; }
.lead { grid-area: lead; max-width: 30rem; margin: 20px 0 26px; font-size: 1.16rem; color: var(--muted); }
.hero .stores { grid-area: stores; align-self: start; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 22px;
  border-radius: 14px; background: var(--ink); color: #fff;
  font: 600 1.02rem var(--display); text-decoration: none;
}
.store.soon { min-height: 44px; padding: 6px 15px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; font-size: .93rem; white-space: nowrap; cursor: default; }

/* The felt board: pieces drop into place one by one, then keep a slow idle motion. */
.board {
  grid-area: art; align-self: center; width: 110%;
  position: relative; transform: rotate(2deg); padding: 12px; border-radius: 30px; background: var(--felt-cream);
  box-shadow: 0 26px 54px rgba(42, 36, 32, .22), 0 2px 6px rgba(42, 36, 32, .12);
}
.board::before { content: ""; position: absolute; inset: 5px; border: 2px dashed var(--brown); border-radius: 26px; opacity: .5; pointer-events: none; }
.scene-wrap { position: relative; }
.scene { width: 100%; border-radius: 20px; }
.p {
  position: absolute; max-width: none; filter: drop-shadow(0 5px 5px rgba(42, 36, 32, .28));
  animation: place .75s cubic-bezier(.2, 1.5, .4, 1) both, bob var(--t, 5s) ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .8s);
}
@keyframes place {
  0% { opacity: 0; scale: .35; rotate: -16deg; translate: 0 -54px; }
  55% { opacity: 1; }
  100% { opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes fly { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: -22px -12px; rotate: 5deg; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: -14px 0; } }
@keyframes turn { from { rotate: 0deg; } to { rotate: 360deg; } }

.rainbow { width: 60%; left: 20%; top: 9%; --t: 7s; }
.ark { width: 45%; left: 27.5%; top: 31%; --t: 6s; }
.sun { width: 17%; left: -7%; top: -13%; animation-name: place, turn; animation-duration: .75s, 70s; animation-timing-function: cubic-bezier(.2, 1.5, .4, 1), linear; }
.cloud { width: 20%; right: -7%; top: 4%; animation-name: place, drift; animation-duration: .75s, 9s; }
.noah { width: 8.6%; left: 18.5%; top: 50%; --t: 5.5s; }
.giraffe { width: 14%; left: 79%; top: 36%; --t: 6.5s; }
.elephant { width: 21%; left: 60%; top: 64%; --t: 5s; }
.lion { width: 15.5%; left: 2%; top: 64%; --t: 4.6s; }
.lioness { width: 16.5%; left: 15%; top: 73%; --t: 5.2s; }
.ram { width: 12.5%; left: 41%; top: 75%; --t: 4.8s; }
.dove { width: 9.5%; left: 63%; top: 9%; animation-name: place, fly; animation-duration: .75s, 4.5s; }

/* Facts row */
.facts ul {
  list-style: none; max-width: 1040px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center;
}
.facts li {
  padding: 18px 10px 16px; border: 2px dashed var(--brown); border-radius: 18px; background: var(--felt-cream);
  outline: 5px solid var(--felt-cream); box-shadow: 0 12px 20px rgba(42, 36, 32, .14);
}
.facts li:nth-child(odd) { rotate: -1.3deg; }
.facts li:nth-child(even) { rotate: 1.1deg; }
.facts b { display: block; font: 600 2.3rem/1.1 var(--display); color: var(--board); }
.facts span { color: var(--muted); font: 500 1rem var(--display); }

/* Sections */
.block { max-width: 1120px; margin: 0 auto; padding: 72px 24px 0; }
.block.narrow { max-width: 760px; }
.block > h2 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); text-align: center; color: var(--ink); }
.sub { max-width: 40rem; margin: 14px auto 0; text-align: center; color: var(--muted); }
.sub.after { margin-top: 34px; }

.badges { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.badges li { text-align: center; }
.badges img { width: 100%; max-width: 156px; margin: 0 auto 10px; filter: drop-shadow(0 8px 8px rgba(42, 36, 32, .2)); transition: rotate .3s ease, scale .3s ease; }
.badges li:hover img { rotate: -6deg; scale: 1.06; }
.badges span { font: 500 1.02rem/1.25 var(--display); display: block; }

.shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; width: fit-content; max-width: 100%; margin: 54px auto 0; padding: 0 34px 14px; }
.shelf img { height: 176px; width: auto; filter: drop-shadow(0 6px 6px rgba(42, 36, 32, .25)); }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 6px; background: linear-gradient(#9a6a3a, #7a4f26); box-shadow: 0 8px 12px rgba(42, 36, 32, .22); }

.band { margin-top: 80px; padding-bottom: 76px; background: var(--soft); }
.pair { font-size: clamp(2rem, 5.4vw, 3.1rem); text-align: center; }
.pair span { display: block; }
.pair .accent { color: var(--board); }
.cards { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards li { padding: 26px 24px 12px; border-radius: 24px; background: var(--card); box-shadow: 0 10px 22px rgba(42, 36, 32, .08); }
.cards img { height: 84px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 5px 4px rgba(42, 36, 32, .2)); transition: rotate .3s ease, scale .3s ease; }
.cards li:hover img { rotate: 6deg; scale: 1.08; }
.cards h3 { font-size: 1.32rem; margin-bottom: 8px; }
.cards p { color: var(--muted); }

.faq { margin-top: 34px; }
.faq details { margin-bottom: 12px; padding: 0 20px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 2px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 10px 0; cursor: pointer; list-style: none; font: 600 1.1rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--board); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }
.more { text-align: center; margin: 22px 0 0; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.08rem var(--display); }

.cta { position: relative; margin-top: 30px; padding: 74px 28px 38px; border-radius: 30px; text-align: center; background: var(--board); color: var(--felt-cream); box-shadow: 0 18px 36px rgba(42, 36, 32, .2); }
.cta::before { content: ""; position: absolute; inset: 12px; border: 3px dashed var(--stitch); border-radius: 20px; opacity: .9; pointer-events: none; }
.bunting { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: min(78%, 620px); filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .3)); }
.cta h2 { font-size: clamp(1.8rem, 4.8vw, 2.5rem); margin-bottom: 26px; }
.cta .stores { justify-content: center; margin-bottom: 22px; }
.cta .store { background: var(--felt-cream); border-color: var(--felt-cream); color: var(--ink); }
.cta .store.soon { background: rgba(255, 255, 255, .14); color: var(--felt-cream); }
.cta p { margin: 0; }
.cta a:not(.store) { display: inline-block; padding: 10px 4px; color: var(--felt-cream); }

/* Footer */
.foot { max-width: 1120px; margin: 76px auto 0; padding: 26px 24px max(34px, env(safe-area-inset-bottom)); border-top: 2px dashed var(--line); text-align: center; color: var(--muted); font-size: .94rem; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 24px; margin-bottom: 8px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot p { margin: 0 0 4px; }

/* Text pages */
.page { max-width: 720px; margin: 0 auto; padding: 40px 24px 0; }
.page h1 { font-size: clamp(2rem, 6vw, 2.7rem); color: var(--board); margin-bottom: 14px; }
.page h2 { font-size: 1.32rem; color: var(--board); margin: 1.7em 0 .5em; }
.page ul { padding-left: 1.3em; margin: 0 0 1em; }
.small { color: var(--muted); font-size: .92rem; }
.page.wide { max-width: 980px; }
.book { margin-top: 40px; padding-top: 30px; border-top: 2px dashed var(--line); }
.book-head { display: flex; align-items: center; gap: 18px; }
.book-head img { height: 96px; width: auto; filter: drop-shadow(0 5px 5px rgba(42, 36, 32, .25)); }
.page .book-head h2 { margin: 0 0 4px; font-size: 1.7rem; }
.book-head p { margin: 0; }
.groups { columns: 3 210px; column-gap: 32px; margin-top: 24px; }
.group { break-inside: avoid; margin-bottom: 22px; }
.group h3 { font-size: 1.12rem; color: var(--board); margin-bottom: 6px; }
.page .group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 3px 0; color: var(--ink); }
.mail { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.15rem var(--display); overflow-wrap: anywhere; }

/* Reveal on scroll. Content stays visible when scripts do not run. */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .8, .2, 1), scale .6s cubic-bezier(.2, 1.4, .4, 1); transition-delay: var(--d, 0s); }
.js .badges [data-reveal] { scale: .7; }
.js [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p { animation: none; }
  .js [data-reveal], .js .badges [data-reveal] { opacity: 1; translate: 0 0; scale: 1; transition: none; }
  .badges img, .cards img { transition: none; }
}
@media print {
  .js [data-reveal], .js .badges [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "title" "art" "lead" "stores"; padding: 22px 24px 52px; text-align: center; }
  .board { width: min(100%, 560px); margin: 30px auto 6px; }
  .lead { margin: 26px auto 22px; }
  .stores { justify-content: center; }
  .badges { grid-template-columns: repeat(3, 1fr); gap: 26px 14px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .cards li { padding: 22px 22px 8px; }
  .cards img { height: 66px; margin-bottom: 12px; }
  .shelf img { height: 112px; }
  .shelf { gap: 10px; padding: 0 16px 12px; }
}
@media (max-width: 560px) {
  .bar nav { gap: 4px 16px; }
  .bar nav a.pill { display: none; }
  .brand { font-size: 1.18rem; }
  .facts ul { grid-template-columns: repeat(2, 1fr); gap: 24px 22px; }
  .block { padding-top: 60px; }
  .band { margin-top: 64px; padding-bottom: 60px; }
  .shelf img { height: 78px; }
  .shelf { gap: 7px; padding: 0 10px 10px; }
}
