/* In Session — homepage */
:root {
  --bg: #F5F0E8;
  --speech: #F7D1E4;
  --ot: #5F6F42;
  --ot-soft: #6E7C53;
  --accent-speech: #D9BDC8;
  --speech-text: #955975;
  --doodle-pink: #B8889E;
  --charcoal: #2D3142;
  --gray: #5A6264;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(45, 49, 66, 0.06);
  --shadow-hover: 0 10px 32px rgba(45, 49, 66, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ----- Background doodles (per section — scroll naturally, no flicker) ----- */
.doodle-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section-doodles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.doodle {
  position: absolute;
  opacity: 0.26;
  filter: drop-shadow(0 2px 4px rgba(45, 49, 66, 0.06));
}

.doodle--pink { color: var(--doodle-pink); }
.doodle--olive { color: var(--ot); }

.doodle--sm { opacity: 0.36; }

/* Hero — spread across full width */
.hero .doodle--teddy {
  width: 68px;
  height: 76px;
  top: 0.5%;
  animation: doodle-bob 7s ease-in-out infinite;
  --gutter-inset: 48px;
}

.hero .doodle--blocks {
  width: 64px;
  height: 56px;
  top: 58%;
  animation: doodle-sway 9s ease-in-out infinite 0.5s;
  --gutter-inset: 28px;
}

.hero .doodle--ball {
  width: 48px;
  height: 48px;
  top: 1%;
  animation: doodle-bob 6s ease-in-out infinite 1s;
  --gutter-inset: 2px;
}

.hero .doodle--rings {
  width: 52px;
  height: 66px;
  top: 42%;
  animation: doodle-bob 8s ease-in-out infinite 0.3s;
  --gutter-inset: 13px;
}

.hero .doodle--car {
  width: 70px;
  height: 46px;
  bottom: -2%;
  animation: doodle-drive 12s ease-in-out infinite;
  --gutter-inset: 13px;
}

.hero .doodle--brush {
  width: 44px;
  height: 58px;
  top: 14%;
  animation: doodle-sway 7s ease-in-out infinite 0.8s;
  --gutter-inset: 46px;
}

.platforms .section__title {
  z-index: 0;
}

.platforms .doodle--ball {
  width: 54px;
  height: 54px;
  top: 14%;
  animation: doodle-bob 7s ease-in-out infinite 0.6s;
  --gutter-inset: 37px;
}

.platforms .doodle--blocks {
  width: 58px;
  height: 52px;
  top: 6%;
  animation: doodle-sway 11s ease-in-out infinite 1s;
  --gutter-inset: 50px;
}

.platforms .doodle--car {
  width: 68px;
  height: 44px;
  bottom: 14%;
  animation: doodle-drive 11s ease-in-out infinite 0.5s;
  --gutter-inset: 39px;
}

.platforms .doodle--crayons {
  width: 64px;
  height: 56px;
  bottom: 10%;
  animation: doodle-sway 8s ease-in-out infinite;
  --gutter-inset: 19px;
}

.platforms .doodle--rings {
  width: 48px;
  height: 62px;
  top: 22%;
  animation: doodle-bob 9s ease-in-out infinite 0.3s;
  --gutter-inset: 50px;
}


/* ---------------------------------------------------------------------------
   Doodles live in the gutters, never behind the reading column.

   `max()` is doing the work: the first term is the viewport edge, the second is
   the outside of the content column. Whichever is further in wins, so a doodle
   can never drift over a paragraph as the window narrows - which is exactly how
   the old percentage positions ended up behind text.
   --------------------------------------------------------------------------- */
.doodle {
  --gutter-inset: 0px;
}

.doodle[data-side="left"],
.section-doodles .doodle:not([data-side="right"]) {
  left: max(0.5rem, calc(50% - 700px - 96px + var(--gutter-inset)));
  right: auto;
}

.section-doodles .doodle[data-side="right"] {
  right: max(0.5rem, calc(50% - 700px - 96px + var(--gutter-inset)));
  left: auto;
}

/* No gutters at this width, so there is nowhere safe to put them. */
@media (max-width: 1180px) {
  .section-doodles {
    display: none;
  }
}

/* Footer */
.footer .doodle--teddy {
  width: 52px;
  height: 56px;
  top: 18%;
  animation: doodle-bob 8s ease-in-out infinite;
  --gutter-inset: 33px;
}

.footer .doodle--puzzle {
  width: 44px;
  height: 44px;
  top: 12%;
  animation: doodle-sway 9s ease-in-out infinite 0.5s;
  --gutter-inset: 0px;
}

.footer .doodle--car {
  width: 60px;
  height: 40px;
  top: 22%;
  animation: doodle-drive 10s ease-in-out infinite;
  --gutter-inset: 35px;
}

@keyframes doodle-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes doodle-sway {
  0%, 100% { transform: translateX(0) rotate(-4deg); }
  50% { transform: translateX(8px) rotate(4deg); }
}

@keyframes doodle-drive {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

.nav,
.hero,
.intro-band,
.platforms,
.milestones,
.footer {
  position: relative;
  z-index: 1;
}

.hero__copy,
.hero__hosts,
.about__card,
.platform-card,
.milestone-card,
.section__title,
.footer > p,
.footer__links,
.site-version {
  position: relative;
  z-index: 2;
}

h1, h2, h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
}

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 2.5rem;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(95, 111, 66, 0.12);
}

.nav__brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--charcoal);
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--ot);
}

.nav__link--beth:hover {
  color: var(--speech-text);
}

.nav__link--steph:hover {
  color: var(--ot);
}

/* ----- Layout ----- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 2.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ot);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: visible;
  padding: 3.5rem 2.5rem 2rem;
  background: var(--bg);
  isolation: isolate;
}

.hero .section-doodles {
  z-index: -1;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: clamp(2.125rem, 5.2vw, 3.125rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__brand,
.hero__with,
.hero__and {
  color: var(--charcoal);
}

.hero__names {
  display: block;
  line-height: 1.15;
}

.hero__beth,
.hero__steph {
  display: inline-block;
  padding: 0.06em 0.4em;
  border-radius: 10px;
  margin: 0 0.08em;
  font-weight: 600;
}

.hero__beth {
  color: var(--charcoal);
  background: var(--speech);
}

.hero__steph {
  color: var(--white);
  background: var(--ot);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__intro p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  font-weight: 500;
}

.hero__intro .hero__lead {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero__tagline {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--charcoal);
  font-weight: 500;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__tagline strong {
  font-weight: 600;
  color: var(--charcoal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--primary {
  background: var(--ot);
  color: var(--white);
}

.btn--primary:hover {
  background: #4d5a38;
}

.btn--outline {
  background: var(--speech);
  color: var(--charcoal);
  border-color: transparent;
}

.btn--outline:hover {
  background: #f0c4d8;
  color: var(--charcoal);
}

/* Hero — host polaroids + short bios */
.hero__hosts {
  position: relative;
  padding-top: clamp(4.5rem, 11vw, 6.5rem);
  overflow: visible;
}

.hero__hosts-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
  align-items: start;
  overflow: visible;
}

.hero__host-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  overflow: visible;
}

.hero__host-card:hover .hero__host-link {
  text-decoration: underline;
}

.hero__host-bio {
  margin: 0.85rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray);
  max-width: 20rem;
}

.hero__host-link {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ot);
}

.hero__host-card--beth .hero__host-link {
  color: var(--speech-text);
}

.hero__host-link:hover {
  text-decoration: underline;
}

.polaroid {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 0.85rem 0.85rem 2.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
}

.polaroid--beth {
  background: var(--speech);
  transform: rotate(-5deg);
  animation: float-a 6s ease-in-out infinite;
}

.polaroid--steph {
  background: #c5ceb4;
  transform: rotate(4deg);
  animation: float-b 6s ease-in-out infinite 0.5s;
}

.polaroid__frame {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 4px;
  overflow: visible;
  display: block;
}

.polaroid__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background-color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(45, 49, 66, 0.06);
  z-index: 0;
}

.polaroid--beth .polaroid__frame::before {
  background-color: #fdf0f6;
  background-image: radial-gradient(
    circle,
    rgba(184, 136, 158, 0.5) 3px,
    transparent 3px
  );
  background-size: 16px 16px;
}

.polaroid--steph .polaroid__frame::before {
  background-color: #f0f5ea;
  background-image: radial-gradient(
    circle,
    rgba(95, 111, 66, 0.45) 3px,
    transparent 3px
  );
  background-size: 16px 16px;
}

.polaroid__frame img {
  position: absolute;
  left: 50%;
  bottom: -22%;
  z-index: 2;
  display: block;
  width: 118%;
  height: auto;
  max-height: 142%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.polaroid__label {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  z-index: 3;
  display: inline-block;
  transform: translateX(-50%);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35em 0.85em;
  border-radius: 10px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.polaroid--beth .polaroid__label {
  color: var(--charcoal);
  background: var(--speech);
}

.polaroid--steph .polaroid__label {
  color: var(--white);
  background: var(--ot);
}

@keyframes float-a {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-8px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}

/* ----- Intro band — about bubble left, hosts right ----- */
.intro-band {
  position: relative;
  padding: 2.5rem 2.5rem 4.5rem;
  background: var(--bg);
  overflow: visible;
}

.about__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 1.85rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  text-align: left;
  transform: rotate(-1deg);
}

.about__card h2 {
  font-size: 1.5rem;
  color: var(--ot);
  margin-bottom: 0.85rem;
}

.about__card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
}

/* Platforms — portrait link cards */
.platforms {
  /* was 2rem: the hero-to-platforms seam ran 64px while every other seam on
     this page runs 120px. The old value was tuned around .intro-band, which
     sat between them and has since been removed. */
  padding: 4rem 2.5rem 3rem;
  background: var(--bg);
  isolation: isolate;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
  max-width: 815px;
  margin: 0 auto;
}

/* wide: spread out */
@media (min-width: 1200px) {
  .platforms__grid {
    max-width: 1000px;
    gap: 3.5rem;
  }
}


.platform-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 26px rgba(45, 49, 66, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* the tilt is what makes it read as a sticker rather than a tile */
.platform-card--spotify   { transform: rotate(-2.2deg); }
.platform-card--youtube   { transform: rotate(1.7deg); }
.platform-card--instagram { transform: rotate(-1.2deg); }

.platform-card:hover,
.platform-card:focus-visible {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 16px 38px rgba(45, 49, 66, 0.22);
  outline: none;
}

.platform-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
}

.platform-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.platform-card__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(45, 49, 66, 0.26);
}

.platform-card__badge svg {
  display: block;
  width: 49px;
  height: 49px;
}

/* platform brand colours, not the site palette - these marks are recognised
   by their colour before their shape */
.platform-card--spotify .platform-card__badge svg { color: #1DB954; }
.platform-card--youtube .platform-card__badge svg { color: #FF0000; }
/* instagram carries its own gradient, see the mark's <defs> */

/* tablet and half-window: stay three across, but close up */
@media (max-width: 1000px) {
  .platforms__grid {
    max-width: 645px;
    gap: 1.4rem;
  }

  .platform-card {
    padding: 9px;
    border-radius: 16px;
  }

  .platform-card__badge {
    width: 62px;
    height: 62px;
    right: 2px;
    bottom: 2px;
  }

  .platform-card__badge svg {
    width: 38px;
    height: 38px;
  }
}

/* ----- What we are up to ----- */
.milestones {
  padding-bottom: 4.5rem;
  background: var(--bg);
}

.milestones .doodle--speech {
  width: 70px;
  height: 54px;
  top: 10%;
  animation: doodle-sway 8s ease-in-out infinite;
  --gutter-inset: 46px;
}

.milestones .doodle--puzzle {
  width: 46px;
  height: 46px;
  top: 6%;
  animation: doodle-bob 7s ease-in-out infinite 0.5s;
  --gutter-inset: 41px;
}

.milestones .doodle--brush {
  width: 40px;
  height: 54px;
  bottom: 12%;
  animation: doodle-sway 9s ease-in-out infinite 0.8s;
  --gutter-inset: 35px;
}

.milestones__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

.milestone-card {
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(95, 111, 66, 0.18);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.milestone-card--beth {
  border-color: rgba(184, 136, 158, 0.35);
  background: linear-gradient(180deg, rgba(184, 136, 158, 0.1) 0%, var(--white) 55%);
}

.milestone-card__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ot);
  margin-bottom: 0.4rem;
}

.milestone-card--beth .milestone-card__date {
  color: var(--speech-text);
}

.milestone-card__title {
  margin: 0 0 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.milestone-card__desc {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
}

.milestone-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ot);
  text-decoration: none;
}

.milestone-card__link:hover {
  text-decoration: underline;
}

.milestone-card--beth .milestone-card__link {
  color: var(--speech-text);
}

/* ----- Footer ----- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 35%, rgba(110, 124, 83, 0.12) 100%);
  color: var(--gray);
  font-size: 0.9rem;
}

.footer a {
  color: var(--ot);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__link--youtube {
  color: var(--speech-text);
}

.footer__link--youtube:hover {
  color: var(--speech);
}

.footer__links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-version {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.55;
  color: var(--gray);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .doodle {
    opacity: 0.38;
  }

  .about__card {
    max-width: none;
    transform: none;
    text-align: center;
  }

  .hero__hosts-pair {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__hosts {
    order: -1;
    margin-bottom: 1.5rem;
    padding-top: 0;
  }

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

  .nav__links {
    gap: 0.75rem;
  }

  .nav__link {
    font-size: 0.8rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .polaroid--beth,
  .polaroid--steph {
    animation: none;
  }

  .doodle {
    animation: none !important;
    transform: none;
  }

  .btn:hover,
  .milestone-card:hover {
    transform: none;
  }

  .platform-card,
  .platform-card:hover,
  .platform-card:focus-visible {
    transform: none;
  }
}
