/* ZuPoppi — official site styles. Self-hosted fonts (SIL OFL 1.1), no third parties. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #2B1B5A;
  --ink-soft: #4A3C7A;
  --sky-top: #9FE0FF;
  --sky-bottom: #FFF3D1;
  --card: #ffffff;
  --coral: #FF4F6D;
  --sun: #FFD23F;
  --grape: #8B5CF6;
  --mint: #22C58B;
  --youtube: #FF0033;
  --youtube-dark: #C4002A;
  --radius: 28px;
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, #CDEFFF 45%, var(--sky-bottom) 100%);
  background-color: #CDEFFF;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }
.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;
}

/* ---------- Cartoon sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deco { position: absolute; }
.cloud { width: 180px; opacity: .95; filter: drop-shadow(0 6px 0 rgba(43,27,90,.06)); }
.c1 { top: 6%; left: -30px; width: 200px; animation: drift 26s ease-in-out infinite alternate; }
.c2 { top: 18%; right: -20px; width: 160px; animation: drift 32s ease-in-out infinite alternate-reverse; }
.c3 { top: 58%; left: 4%; width: 120px; opacity: .8; animation: drift 38s ease-in-out infinite alternate; }
.star { width: 44px; animation: twinkle 4.5s ease-in-out infinite; }
.s1 { top: 9%; right: 16%; }
.s2 { top: 44%; left: 7%; width: 30px; animation-delay: -1.5s; }
.s3 { top: 70%; right: 8%; width: 36px; animation-delay: -3s; }
.bubble { border-radius: 50%; opacity: .55; animation: bob 7s ease-in-out infinite; }
.b1 { width: 90px; height: 90px; background: var(--sun); top: 30%; right: -30px; }
.b2 { width: 54px; height: 54px; background: #FF8FB1; top: 80%; left: 12%; animation-delay: -2s; }
.b3 { width: 38px; height: 38px; background: var(--grape); top: 14%; left: 22%; opacity: .35; animation-delay: -4s; }
.b4 { width: 70px; height: 70px; background: var(--mint); top: 62%; right: 22%; opacity: .3; animation-delay: -1s; }
.hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 140px; }

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }

/* ---------- Layout ---------- */
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) 16px 24px;
  flex: 1 0 auto;
  display: flex; flex-direction: column; gap: 22px;
}
.hero { text-align: center; animation: pop-in .6s ease-out both; }
.logo { margin: 0 auto; width: min(100%, 480px); }
.logo img { width: 100%; height: auto; animation: wiggle 6s ease-in-out 1.2s infinite; transform-origin: 50% 60%; }
.tagline {
  margin: 6px auto 0; max-width: 30ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 4.6vw, 1.65rem); line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.links { display: grid; gap: 14px; animation: pop-in .6s ease-out .12s both; }
.btn {
  --bg: #fff; --fg: var(--ink); --edge: var(--ink);
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 22px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 4px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--edge); filter: saturate(1.1); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; box-shadow: 0 6px 0 var(--edge), 0 0 0 10px var(--ink); }
.ico { width: 34px; height: auto; flex: none; }
.btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-sub { font-family: var(--body); font-weight: 800; font-size: .85rem; opacity: .9; }

.btn-youtube {
  --bg: var(--youtube); --fg: #fff; --edge: var(--ink);
  min-height: 84px; padding: 18px 26px; font-size: 1.5rem;
  justify-content: center;
}
.btn-youtube .ico { width: 46px; }
.btn-instagram { --bg: #fff; }
.btn-tiktok { --bg: #fff; }
.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secondary .btn { justify-content: center; font-size: 1.1rem; padding: 12px 16px; }

/* ---------- Content cards ---------- */
.about, .parents {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 20px 22px;
  animation: pop-in .6s ease-out .24s both;
}
.about h2, .parents h2 {
  margin: 0 0 6px; font-family: var(--display); font-weight: 700;
  font-size: 1.35rem; line-height: 1.2;
}
.about p, .parents p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.parents { background: #FFF6D8; }
.parents h2 span { color: var(--coral); }

.foot {
  position: relative; z-index: 1; text-align: center;
  padding: 12px 16px 26px; font-size: .9rem; color: var(--ink);
}
.foot p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .b1 { top: 58%; }
  .s2 { display: none; }
  .c2 { top: 30%; }
}
@media (max-width: 400px) {
  .secondary { grid-template-columns: 1fr; }
  .btn-youtube { font-size: 1.3rem; padding: 16px 18px; gap: 12px; }
  .about, .parents { padding: 18px; }
}
@media (min-width: 900px) {
  .page { max-width: 680px; padding-top: 56px; }
  .cloud.c1 { width: 280px; left: 4%; }
  .cloud.c2 { width: 220px; right: 6%; }
  .cloud.c3 { width: 170px; left: 10%; }
  .star { width: 60px; }
  .hills { height: 200px; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
}
