/* Pipaloo Pals — draft website
   Colors and fonts follow /workspace/kidschannel/brand/brand-guide.md
   No third-party requests, no trackers, no cookie banners. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/LuckiestGuy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --pip-orange: #FA8B24;
  --teal: #2A7C8B;
  --star-yellow: #FFBF04;
  --sky: #63C2FC;
  --soft-sky: #AED8F1;
  --grass: #849C23;
  --cream: #F8E3CE;
  --page: #FFF8F0;
  --ink: #1E2A2E;
  --white: #FFFFFF;
  --bree-fur: #D9CACF;
  --bree-sweater: #EEB85C;
  --bree-bow: #F2A3A7;
  --tuck-green: #95A936;
  --tuck-belly: #F4C772;
  --tuck-backpack: #AD3219;
  --dot-red: #BA2216;
  --dot-face: #FEE6E0;
  --shadow: 0 10px 30px rgba(30, 42, 46, 0.10);
  --shadow-sm: 0 4px 14px rgba(30, 42, 46, 0.08);
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --max: 68rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Nunito, "Nunito Sans", "Segoe UI", Trebuchet MS, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--pip-orange); }

:focus-visible {
  outline: 3px solid var(--pip-orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--white); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid color-mix(in srgb, var(--soft-sky) 70%, var(--cream));
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pip-orange);
  min-width: 0;
}
.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--soft-sky);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--star-yellow);
  flex-shrink: 0;
}
.brand span {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--pip-orange);
  padding-top: 0.2rem;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--pip-orange); outline-offset: 3px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--page);
  border-bottom: 3px solid var(--soft-sky);
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem 1rem;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--teal);
  font-weight: 800;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--soft-sky) 55%, var(--page));
  color: var(--teal);
}
.site-nav a.nav-yt {
  background: var(--pip-orange);
  color: var(--white);
  justify-content: center;
  margin-top: 0.35rem;
}
.site-nav a.nav-yt:hover { background: color-mix(in srgb, var(--pip-orange) 86%, black); color: var(--white); }

@media (min-width: 840px) {
  .nav-burger { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.35rem 0.8rem; }
  .site-nav a.nav-yt { margin-top: 0; margin-left: 0.4rem; padding-inline: 1.1rem; }
  .brand span { font-size: 1.45rem; }
}

/* ----- Layout ----- */
main { flex: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.hero-wrap { padding-top: 1rem; }

.page-hero {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
}
.page-hero h1 {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 7vw, 3rem);
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.lede {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 88%, var(--teal));
}

/* ----- Hero banner ----- */
.banner-frame {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
  outline: 3px solid var(--star-yellow);
  background: var(--soft-sky);
}
.banner-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 58%;
}

.catchphrase {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 7.2vw, 2.7rem);
  line-height: 1.2;
  text-align: center;
  color: var(--pip-orange);
  margin: 0.4rem 0 0.85rem;
}

.intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  margin: 0 auto 2rem;
  max-width: 22rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--pip-orange);
  color: var(--white);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--pip-orange) 72%, #8a4508);
}
.btn-primary:hover { color: var(--white); filter: brightness(1.05); }
.btn-secondary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--teal) 75%, black);
}
.btn-secondary:hover { color: var(--white); filter: brightness(1.08); }
.btn-ghost {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal);
}
.btn-ghost:hover { background: var(--soft-sky); color: var(--teal); }
.btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ----- Sections ----- */
.section { margin: 2.25rem 0 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.section-head h2,
.card-name,
.product-name {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  line-height: 1.2;
  color: var(--teal);
  margin: 0;
}
.section-head p { margin: 0; max-width: 36rem; }

/* Pal grid */
.pal-grid,
.color-grid,
.shop-grid,
.learn-grid {
  display: grid;
  gap: 1rem;
}

.pal-grid { grid-template-columns: 1fr 1fr; }

.pal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--white);
  outline: 2px solid color-mix(in srgb, var(--soft-sky) 80%, var(--teal));
  transition: transform 0.15s ease;
}
a.pal-card:hover { transform: translateY(-3px); color: inherit; }

.pal-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--soft-sky);
}
.pal-card .pal-info,
.pal-full .pal-info { padding: 0.7rem 0.75rem 0.95rem; }
.pal-card h3,
.pal-full h2 {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  color: var(--teal);
  line-height: 1.15;
}
.pal-card p,
.role { margin: 0; font-size: 0.92rem; font-weight: 700; color: color-mix(in srgb, var(--ink) 80%, var(--teal)); }

.pal-card.pip { outline-color: var(--pip-orange); }
.pal-card.bree { outline-color: var(--bree-bow); }
.pal-card.tuck { outline-color: var(--tuck-green); }
.pal-card.dot { outline-color: var(--dot-red); }

/* Featured episode */
.feature {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 35%, var(--page)), var(--white));
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
  outline: 3px solid var(--star-yellow);
}
.eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--teal);
  margin: 0 0 0.3rem;
}
.feature h2 { margin-bottom: 0.4rem; }
.feature p { margin: 0 0 0.5rem; }
.vroom {
  font-weight: 800;
  color: var(--pip-orange);
}

/* Coloring grid */
.color-grid { grid-template-columns: 1fr; }
@media (min-width: 540px) {
  .color-grid { grid-template-columns: 1fr 1fr; }
  .cta-row { max-width: none; flex-direction: row; justify-content: center; }
  .cta-row .btn { min-width: 11.5rem; }
}

.color-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--white);
  outline: 2px solid var(--soft-sky);
}
.color-card .thumb {
  background: var(--page);
  padding: 0.7rem 0.7rem 0.2rem;
}
.color-card .thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--white);
  border-radius: 0.8rem;
}
.color-card .body { padding: 0.85rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.color-card h3 {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  margin: 0;
  font-size: 1.2rem;
  color: var(--teal);
  line-height: 1.2;
}
.color-card .body p { margin: 0; font-size: 0.95rem; }

/* Pals full page */
.pal-list { display: grid; gap: 1.5rem; }
.pal-full {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  border: 3px solid var(--white);
  outline: 3px solid var(--soft-sky);
}
.pal-full img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12%;
  background: var(--soft-sky);
}
.pal-full .pal-info { padding: 1rem 1.05rem 1.25rem; }
.pal-full h2 { font-size: 1.6rem; }
.pal-full .tag {
  display: inline-block;
  background: var(--star-yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.pal-full p { margin: 0.35rem 0 0; }
.pip-full { outline-color: var(--pip-orange); }
.bree-full { outline-color: var(--bree-bow); }
.tuck-full { outline-color: var(--tuck-green); }
.dot-full { outline-color: var(--dot-red); }

@media (min-width: 700px) {
  .pal-full {
    grid-template-columns: 16.5rem 1fr;
    align-items: stretch;
  }
  .pal-full img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 16.5rem;
  }
  .color-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Learn / parents */
.learn-grid { grid-template-columns: 1fr; }
.learn-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--teal);
}
.learn-card.orange { border-top-color: var(--pip-orange); }
.learn-card.pink { border-top-color: var(--bree-bow); }
.learn-card.green { border-top-color: var(--tuck-green); }
.learn-card.red { border-top-color: var(--dot-red); }
.learn-card.yellow { border-top-color: var(--star-yellow); }
.learn-card h2, .learn-card h3 {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--teal);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.learn-card p, .learn-card ul { margin: 0; }
.learn-card ul { padding-left: 1.15rem; }
.learn-card li { margin: 0.25rem 0; }

.note {
  background: color-mix(in srgb, var(--soft-sky) 55%, var(--page));
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.25rem;
  border: 3px solid var(--white);
  outline: 2px solid var(--teal);
  margin-top: 1.25rem;
}
.note h2 { margin-top: 0; }

@media (min-width: 700px) {
  .learn-grid { grid-template-columns: 1fr 1fr; }
}

/* Shop */
.soon-banner {
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--star-yellow) 45%, var(--page)), var(--white));
  border-radius: var(--radius);
  padding: 1.2rem 1rem 1.4rem;
  outline: 3px solid var(--star-yellow);
  border: 3px solid var(--white);
  margin-bottom: 1.5rem;
}
.soon-banner .badge {
  display: inline-block;
  background: var(--pip-orange);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.soon-banner h1 { margin-bottom: 0.4rem; }
.soon-banner p { margin: 0 auto; max-width: 36rem; }

.shop-grid { grid-template-columns: 1fr; }
@media (min-width: 540px) { .shop-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 3px solid var(--white);
  outline: 2px solid var(--soft-sky);
  display: flex;
  flex-direction: column;
}
.product-art {
  height: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-sky);
  position: relative;
}
.product-art svg { width: 7.5rem; height: 7.5rem; }
.coming-pill {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--star-yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.product-card .body { padding: 0.95rem 1rem 1.15rem; }
.product-card h2 {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--teal);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.product-card p { margin: 0; }
.art-shirt { background: color-mix(in srgb, var(--pip-orange) 22%, var(--soft-sky)); }
.art-coloring { background: color-mix(in srgb, var(--bree-bow) 30%, var(--soft-sky)); }
.art-story { background: color-mix(in srgb, var(--tuck-green) 25%, var(--soft-sky)); }
.art-plush { background: color-mix(in srgb, var(--dot-red) 16%, var(--soft-sky)); }

/* Footer */
.site-footer {
  margin-top: 1rem;
  background: var(--teal);
  color: var(--white);
  position: relative;
  padding: 2.5rem 1rem 1.75rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -28px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 0, var(--teal) 70%, transparent 71%);
  background-size: 50px 30px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: "Luckiest Guy", "Baloo 2", sans-serif;
  font-size: 1.45rem;
  color: var(--star-yellow);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--star-yellow); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: 0.9rem 0 0.7rem;
  padding: 0;
  list-style: none;
}
.footer-links a { text-decoration: none; font-weight: 800; }
.tiny {
  font-size: 0.88rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .pal-grid { grid-template-columns: repeat(4, 1fr); }
  .wrap { padding: 1.5rem 1.5rem 3rem; }
}
