/* Pootie Family — parent site
   Brand colors sampled from the show art:
   Sunshine Yellow #FDE25C, Berry Pink #D1467D, Title Blue #3B8DD8,
   Night Plum #2A154D, Collins Mint #B3D2A9, Vince Yellow #F5B646,
   Carmen Pink #F18F8E, Callie Gold #EDA766, Bow Blue #78A5CF,
   Cream Wall #F6D6BA, Denim #4B5A74.
   Link blue is darkened from Title Blue so body-size text passes WCAG AA. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
}

:root {
  --yellow: #fde25c;
  --pink: #d1467d;
  --blue: #3b8dd8;
  --link: #16457a;
  --plum: #2a154d;
  --mint: #b3d2a9;
  --vince: #f5b646;
  --carmen: #f18f8e;
  --callie: #eda766;
  --bow: #78a5cf;
  --cream: #f6d6ba;
  --denim: #4b5a74;
  --paper: #fff9f3;
  --white: #ffffff;
  --sky: #b7e3fb;
  --shadow: 0 14px 36px rgba(42, 21, 77, 0.1);
  --radius: 1.75rem;
  --max: 72rem;
  --header: 4.75rem;
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  --focus: 3px solid var(--plum);
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--denim);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color-scheme: light;
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
.button,
.logo,
.nav-list a,
.kicker,
.role,
.card-action,
.contact-mail {
  font-family: var(--font-display);
  color: var(--plum);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--plum);
}

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

::selection {
  background: var(--yellow);
  color: var(--plum);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  background: var(--yellow);
  color: var(--plum);
  font-family: var(--font-display);
  font-weight: 650;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 243, 0.94);
  border-bottom: 1px solid rgba(42, 21, 77, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav nav";
  align-items: center;
  gap: 0.35rem 0.75rem;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  padding: 0.7rem 0 0.45rem;
}

.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: 9.6rem;
  height: auto;
}

.header-cta {
  grid-area: cta;
  justify-self: end;
}

.nav {
  grid-area: nav;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  color: var(--plum);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
}

.nav-list a:hover {
  background: rgba(42, 21, 77, 0.06);
  text-decoration: underline;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 3px solid var(--pink);
  background: var(--yellow);
  color: var(--plum);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--plum);
}

.button:hover {
  background: #ffe978;
  color: var(--plum);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--plum);
}

.button-small {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 0.98rem;
  box-shadow: 0 3px 0 var(--plum);
  white-space: nowrap;
}

.cta-short {
  display: none;
}

.button-on-dark {
  border-color: var(--yellow);
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 16rem 7rem at 8% 18%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(ellipse 20rem 8rem at 92% 0%, rgba(255, 255, 255, 0.75), transparent 72%),
    linear-gradient(180deg, var(--sky) 0%, #e8f6ff 48%, var(--paper) 100%);
  padding: 1.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.45rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
}

.mark {
  background: var(--yellow);
  border-radius: 0.35em;
  padding: 0 0.12em;
  box-decoration-break: clone;
}

.subline {
  margin: 0 0 0.85rem;
  color: var(--link);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.12rem;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #d7f0ff;
  box-shadow: 0 18px 46px rgba(42, 21, 77, 0.16);
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}

.section-head p {
  font-size: 1.08rem;
}

.band {
  background: var(--cream);
}

.band-sky {
  background: #e7f5fd;
}

.band-soft {
  background:
    linear-gradient(180deg, #fff4c4 0%, #fff9f3 100%);
}

section[id] {
  scroll-margin-top: 6.25rem;
}

/* Family */

.family-photo {
  margin: 0 auto 1.75rem;
  width: min(100%, 18rem);
  text-align: center;
}

.family-photo img {
  width: min(100%, 16.5rem);
  height: auto;
  border-radius: 50%;
  background: #c5e8fb;
  box-shadow: 0 12px 32px rgba(42, 21, 77, 0.14);
}

.family-photo figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum);
}

.card-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.character {
  background: var(--white);
  border: 1px solid rgba(42, 21, 77, 0.06);
  border-radius: 1.5rem;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.swatch {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.8rem;
  border-radius: 1rem;
  color: var(--plum);
}

.swatch svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.swatch-carmen { background: var(--carmen); }
.swatch-collins { background: var(--mint); }
.swatch-vince { background: var(--vince); }
.swatch-callie { background: var(--callie); }
.swatch-mom { background: var(--cream); }
.swatch-dad { background: var(--bow); }

.character h3 {
  margin: 0 0 0.15rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.role {
  margin: 0 0 0.4rem;
  color: var(--link);
  font-size: 1.02rem;
  font-weight: 600;
}

.character p:last-child {
  margin: 0;
}

/* Parents */

.parents-lead {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  text-align: center;
  font-size: 1.12rem;
  color: var(--plum);
}

.talking-points {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tip;
}

.talking-points li {
  counter-increment: tip;
  background: var(--white);
  border-radius: 1.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.talking-points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.talking-points h3::before {
  content: counter(tip) ". ";
}

.talking-points p {
  margin: 0;
}

/* Episodes */

.episode-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.episode-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(42, 21, 77, 0.06);
  border-radius: 1.5rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.episode-card:hover {
  color: inherit;
  transform: translateY(-2px);
}

.episode-ribbon {
  height: 0.7rem;
  background: linear-gradient(90deg, var(--carmen), var(--yellow), var(--mint), var(--bow), var(--pink));
}

.episode-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.3rem;
}

.kicker {
  margin: 0;
  color: var(--plum);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episode-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.episode-card p {
  margin: 0;
}

.card-action {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--link);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

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

/* Follow */

.follow-grid {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.follow-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--white);
  border: 1px solid rgba(42, 21, 77, 0.06);
  border-radius: 1.4rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.follow-card:hover {
  transform: translateY(-2px);
}

.follow-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--plum);
}

.follow-card span {
  color: var(--denim);
}

.follow-card .card-action {
  padding-top: 0.65rem;
}

.follow-card-soon {
  box-shadow: none;
  border-style: dashed;
  border-color: rgba(42, 21, 77, 0.2);
  background: rgba(255, 255, 255, 0.6);
}

.follow-card-soon:hover {
  transform: none;
}

/* About and contact */

#about .wrap-narrow,
#contact .wrap-narrow {
  text-align: center;
}

.about p + p {
  margin-top: 0.8rem;
}

.contact-mail {
  margin: 0.4rem 0 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-mail a {
  color: var(--link);
  font-weight: 700;
}

/* Footer */

.site-footer {
  background: var(--plum);
  color: var(--cream);
  padding: 2.25rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-logo img {
  width: 11rem;
  height: auto;
}

.site-footer p {
  margin: 0;
  max-width: 36rem;
  color: var(--cream);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.copyright {
  font-size: 0.98rem;
}

/* Missing page */

.missing {
  padding: 2.5rem 0 3.5rem;
}

.missing h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 700;
}

.missing p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-quiet {
  background: var(--white);
  box-shadow: 0 4px 0 var(--bow);
}

/* Watch: video cards and player pages */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.watch-hero {
  background: linear-gradient(180deg, #e7f5fd 0%, var(--paper) 22rem);
}

.section-head h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(42, 21, 77, 0.06);
  border-radius: 1.5rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.video-card:hover {
  color: inherit;
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--sky);
  border-bottom: 0.45rem solid var(--yellow);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: rgba(253, 226, 92, 0.95);
  border: 3px solid var(--pink);
  color: var(--plum);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 0 var(--plum);
}

.video-play svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.2rem;
}

.video-duration {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(42, 21, 77, 0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.video-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 1rem 1.15rem 1.2rem;
}

.video-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.video-blurb {
  display: block;
}

.video-card .card-action {
  padding-top: 0.6rem;
}

.watch-more {
  margin-top: 1.75rem;
  text-align: center;
}

.player-section {
  padding-top: 1.5rem;
}

.player-wrap {
  max-width: 60rem;
}

.crumbs {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.player-frame {
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--plum);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--plum);
}

.player-info {
  padding: 1.25rem 0.25rem 0;
}

.player-info h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
}

.player-yt {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Layout from tablet up */

@media (min-width: 36rem) {
  .cta-short {
    display: none;
  }

  .cta-long {
    display: inline;
  }
}

@media (max-width: 35.99rem) {
  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }
}

@media (min-width: 40rem) {
  .card-grid,
  .episode-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 52rem) {
  :root {
    --header: 5rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.65rem 0;
  }

  .logo img {
    width: 11rem;
  }

  .nav {
    margin-right: auto;
  }

  .nav-list {
    flex-wrap: nowrap;
    padding: 0;
  }

  .hero {
    padding: 2.5rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .talking-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 1.5rem 2rem;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:active,
  .episode-card:hover,
  .video-card:hover,
  .follow-card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .skip {
    position: static;
  }

  .button {
    box-shadow: none;
  }

  body {
    background: white;
    color: black;
  }
}
