/* =========================================================
   MY MOM NEVER WANTED ME — main stylesheet
   One file for the whole site. Every page uses it.
   ========================================================= */

/* 1. COLORS & SETTINGS
   "Variables" let us name a color once and reuse it everywhere.
   Change a value here and the whole site updates. */
:root {
  --yellow: #FEE353;   /* matched to the logo (brief had #FFE95B) */
  --plum:   #330C29;
  --coral:  #FF6659;
  --cream:  #FFF9E8;

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-heading: "Tilt Warp", "DM Sans", sans-serif;

  --shadow: 5px 5px 0 var(--coral);   /* the solid offset shadow from the logo */
  --shadow-plum: 6px 6px 0 var(--plum);
  --radius: 14px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);   /* a springy "boing" for animations */
}

/* 2. BASICS */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }   /* menu links glide down the page */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* = 18px, the brief's minimum */
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  overflow-x: clip;     /* stops the tilted banners making the page scroll sideways */
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;             /* these fonts are already chunky */
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 7vw, 3.75rem); }   /* grows with screen size */
h3 { font-size: 1.6rem; }

img { max-width: 100%; display: block; }
main { overflow-x: clip; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

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

/* Small label above section headings */
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--plum); color: var(--yellow);
  padding: 0.25rem 0.8rem; border-radius: 999px;
  margin: 0 0 1rem;
  transform: rotate(-2deg);
}
.section-head { margin-bottom: 2rem; }

/* Visible focus ring for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--plum); color: var(--cream);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* 3. BUTTONS & LINKS
   Plum text on coral: passes contrast. White on coral would not. */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--plum);
  background: var(--coral);
  border: 3px solid var(--plum);
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--plum);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce), background-color 0.2s;
}
.btn:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--plum); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--plum); }  /* "pressed" */
.btn-outline { background: var(--cream); }
.btn-outline:hover { background: var(--yellow); }
.btn-small { font-size: 1.05rem; padding: 0.35rem 1.1rem; box-shadow: 3px 3px 0 var(--plum); }

.text-link { color: var(--plum); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { background: var(--yellow); }

/* 4. HEADER: sticks to the top, shrinks a little once you scroll */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 3px solid transparent;
  transition: padding 0.25s, border-color 0.25s;
}
.site-header.is-scrolled { padding-top: 0.45rem; padding-bottom: 0.45rem; border-bottom-color: var(--plum); }
.header-logo img {
  width: 64px; height: 64px; border-radius: 8px;
  transition: transform 0.3s var(--bounce), width 0.25s, height 0.25s;
}
.is-scrolled .header-logo img { width: 48px; height: 48px; }
.header-logo:hover img { transform: rotate(-8deg) scale(1.08); }
.site-header ul { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; }
.site-header nav a:not(.btn) {
  color: var(--plum); font-weight: 700; text-decoration: none;
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.25s;
  padding-bottom: 2px;
}
.site-header nav a:not(.btn):hover,
.site-header nav a[aria-current="page"] { background-size: 100% 3px; }
.nav-listen { display: none; }

/* 5. HERO */
.hero {
  position: relative; overflow: hidden;
  background: var(--yellow);
  text-align: center;
  padding: 1rem 1.25rem 4.5rem;
}
.hero-inner { position: relative; max-width: 620px; margin: 0 auto 1.5rem; }
.hero-logo {
  margin: 0;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.2s ease-out;
}
.hero-logo img { width: 100%; height: auto; animation: pop-in 0.9s var(--bounce) both; }
.tagline {
  position: relative;
  max-width: 34ch; margin: 0 auto 2rem;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 500; line-height: 1.4;
}
/* Hand-drawn underline that "draws itself" under part of the tagline */
.scribble {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c40-6 80-6 120-3s60 2 76-2' fill='none' stroke='%23FF6659' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 0% 0.45em;
  padding-bottom: 0.15em;
  transition: background-size 1.1s ease 0.4s;
}
.is-visible .scribble { background-size: 100% 0.45em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Floating decorations behind the logo */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shapes > * { position: absolute; transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 0.3s ease-out; }
.drop { width: 46px; fill: var(--plum); }
.drop-1 { top: 12%; left: 7%; rotate: -25deg; }
.drop-2 { top: 58%; right: 6%; width: 34px; fill: var(--coral); }
.drop-3 { bottom: 8%; left: 14%; width: 26px; }
.squiggle { width: 160px; fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; }
.squiggle-1 { top: 8%; right: 10%; }
.squiggle-2 { bottom: 16%; right: 22%; stroke: var(--plum); width: 120px; }
.star { font-size: 2.4rem; line-height: 1; color: var(--coral); animation: spin 9s linear infinite; }
.star-1 { top: 35%; left: 3%; }
.star-2 { top: 22%; right: 3%; color: var(--plum); font-size: 1.8rem; animation-direction: reverse; }
.hero-shapes .drop, .hero-shapes .squiggle { animation: bob 7s ease-in-out infinite; }
.hero-shapes .drop-2, .hero-shapes .squiggle-2 { animation-delay: -3s; }

/* Spinning "Listen now" sticker */
.sticker {
  position: absolute; right: 0; bottom: 2%;
  width: clamp(96px, 22vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--coral); color: var(--plum);
  border: 3px solid var(--plum); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--plum);
  text-decoration: none;
  transition: transform 0.3s var(--bounce);
}
.sticker:hover { transform: scale(1.12) rotate(-6deg); }
.sticker-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker-ring text { font-family: var(--font-body); font-weight: 700; font-size: 17px; letter-spacing: 2px; fill: var(--plum); }
.sticker:hover .sticker-ring { animation-duration: 4s; }
.sticker-play {
  width: 42%; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--plum); color: var(--yellow); border-radius: 50%;
  font-size: clamp(1rem, 3vw, 1.5rem); padding-left: 4px;
}

/* 6. MOVING BANNER (marquee) */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 3px solid var(--plum);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  padding: 0.6rem 0;
  transform: rotate(-1.5deg) scale(1.03);
  position: relative; z-index: 2;
}
.marquee-plum { background: var(--plum); color: var(--yellow); margin-top: -1.5rem; }
.marquee-coral { background: var(--coral); color: var(--plum); transform: rotate(1.5deg) scale(1.03); }
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-track span { padding-right: 0.3em; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 7. EPISODES (Spotify player in a frame that matches our cards) */
.episodes { padding: 5rem 0 4rem; }
.player-card {
  border: 3px solid var(--plum);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--coral);
  overflow: hidden;
  background: var(--plum);
  line-height: 0;               /* removes a tiny gap under the player */
}
.player-card iframe { border: 0; display: block; }
.player-fallback { margin: 1.25rem 0 0; }

/* 8. TOPICS: cards that tilt toward your mouse */
.topics { padding: 2rem 0 5rem; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.topic-card {
  background: #fff;
  border: 3px solid var(--plum); border-radius: var(--radius);
  box-shadow: var(--shadow-plum);
  padding: 1.5rem;
  transition: transform 0.25s ease-out, box-shadow 0.25s, background-color 0.25s;
}
.topic-card:nth-child(odd):hover { background: var(--yellow); }
.topic-card:nth-child(even):hover { background: var(--coral); }
.topic-card:hover { box-shadow: 10px 10px 0 var(--plum); }
.topic-card h3 { margin: 0.6rem 0 0.4rem; }
.topic-card p { margin: 0; }
.topic-emoji {
  display: inline-grid; place-items: center;
  width: 3.2rem; height: 3.2rem; font-size: 1.7rem;
  background: var(--cream); border: 3px solid var(--plum); border-radius: 50%;
  transition: transform 0.4s var(--bounce);
}
.topic-card:hover .topic-emoji { transform: rotate(-14deg) scale(1.15); }

/* 9. NUMBERS */
.numbers { background: var(--plum); color: var(--cream); padding: 4rem 0; }
.number-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; text-align: center; }
.number-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--coral);
}
.number p { margin: 0.6rem auto 0; max-width: 18ch; }

/* 10. ABOUT THE HOST (homepage) and intro (About page) */
.host { background: var(--yellow); padding: 5rem 0; }
.host-inner { display: grid; gap: 2rem; align-items: center; }
.host-photo { max-width: 420px; width: 100%; height: auto; transition: transform 0.5s var(--bounce); }
.host-photo-wrap:hover .host-photo, .host-inner > .host-photo:hover { transform: rotate(-3deg) scale(1.03); }
.about-intro { padding: 2rem 0 3rem; }
.lead { font-size: clamp(1.3rem, 3.5vw, 1.6rem); font-weight: 500; line-height: 1.45; }

/* 11. QUOTES */
.quotes { padding: 5rem 0 4.5rem; text-align: center; }
.quote-stage { display: grid; min-height: 9em; align-items: center; }
.quote {
  grid-area: 1 / 1;            /* all quotes sit on top of each other; only one shows */
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.12;
  opacity: 0; transform: translateY(24px) rotate(-1deg);
  transition: opacity 0.5s, transform 0.6s var(--bounce), visibility 0.5s;
  visibility: hidden;
}
.quote p { margin: 0; }
.quote.is-active { opacity: 1; transform: none; visibility: visible; }
.quote-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.quote-btn {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 3px solid var(--plum); background: var(--cream); color: var(--plum);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--plum);
  transition: transform 0.2s var(--bounce), background-color 0.2s;
}
.quote-btn:hover { background: var(--yellow); transform: scale(1.1); }
.quote-btn:active { transform: scale(0.92); }
.quote-dots { display: flex; gap: 0.5rem; }
.quote-dots span {
  width: 0.7rem; height: 0.7rem; border-radius: 999px;
  background: var(--plum); opacity: 0.25;
  transition: width 0.3s, opacity 0.3s;
}
.quote-dots span.is-active { width: 2rem; opacity: 1; background: var(--coral); }

/* 12. SHARE YOUR STORY */
.share { padding: 5rem 1.25rem; }
.share-inner {
  max-width: 46rem; text-align: center;
  background: var(--yellow);
  border: 3px solid var(--plum); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--plum);
  padding: 3rem 1.5rem;
}
.share-inner p { font-size: 1.25rem; margin: 0 0 1.75rem; }

/* 13. ABOUT PAGE STORY: one comfortable reading column */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60;
  background: var(--coral);
  transform-origin: 0 50%; transform: scaleX(0);
}
.story {
  max-width: 40rem;             /* about 65 characters per line: easy to read */
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}
.story p { margin: 0 0 1.1em; }
.story h2 { margin-top: 2.5rem; }
.big-line {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
}
.story-cta { margin: 2.5rem 0; }
.support-note {
  border-top: 2px solid var(--plum);
  padding-top: 1.25rem;
  font-size: 1.125rem;          /* stays at the 18px minimum */
}
.support-note a { color: var(--plum); font-weight: 700; }

/* 14. CONTACT FORM */
.contact { padding: 3.5rem 1.25rem 4.5rem; }
.contact-inner { max-width: 36rem; margin: 0 auto; }
.contact-form {
  display: grid; gap: 0.4rem;
  margin-top: 2rem; padding: 1.75rem;
  border: 3px solid var(--plum); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--cream);
}
.contact-form label { font-weight: 700; margin-top: 0.8rem; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  font: inherit;                /* keeps the 18px size and DM Sans */
  color: var(--plum); background: #fff;
  border: 2px solid var(--plum); border-radius: 10px;
  padding: 0.7rem 0.85rem; width: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 4px 4px 0 var(--coral); transform: translate(-2px, -2px); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px;
}
.contact-form .btn { justify-self: start; margin-top: 1.5rem; cursor: pointer; }
.hidden-field { position: absolute; left: -9999px; }

/* 15. SOCIAL */
.social { padding: 2rem 0 5rem; text-align: center; }
.social-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* 16. FOOTER */
.site-footer { background: var(--plum); color: var(--cream); padding: 3rem 0 2.5rem; text-align: center; }
.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--yellow); font-weight: 700; }
.footer-big {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1;
  color: var(--yellow); margin-bottom: 1.5rem !important;
}
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-small { margin-top: 1rem !important; opacity: 0.85; }

/* 17. SCROLL ANIMATIONS
   Things marked "reveal" start a little lower and see-through,
   then slide into place when they scroll onto the screen.
   Only switched on when the script runs (the "js" class), so
   nothing is ever hidden if the script doesn't load. */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity 0.7s ease, translate 0.8s var(--bounce), transform 0.25s ease-out, box-shadow 0.25s, background-color 0.25s; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.topic-grid .reveal:nth-child(2), .number-grid .reveal:nth-child(2) { transition-delay: 0.1s, 0.1s, 0s, 0s, 0s; }
.topic-grid .reveal:nth-child(3), .number-grid .reveal:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s, 0s, 0s; }
.topic-grid .reveal:nth-child(4), .number-grid .reveal:nth-child(4) { transition-delay: 0.3s, 0.3s, 0s, 0s, 0s; }

@keyframes float   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bob     { 0%, 100% { translate: 0 0; } 50% { translate: 0 14px; } }
@keyframes spin    { to { rotate: 360deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop-in  { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* Respect people who turn off motion in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .scribble { background-size: 100% 0.45em; }
  .btn:hover, .sticker:hover { transform: none; }
}

/* 18. BIGGER SCREENS
   "Mobile-first": everything above is for phones.
   These rules only kick in when the screen is wide enough. */
@media (min-width: 600px) {
  .nav-listen { display: block; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .host-inner { grid-template-columns: 2fr 3fr; gap: 3rem; }
  .site-header { padding: 1rem 2rem; }
  .sticker { right: -10%; }
}
@media (min-width: 960px) {
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
  .number-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Phones: fewer decorations so nothing covers the text */
@media (max-width: 599px) {
  .drop-2, .squiggle-2, .drop-3 { display: none; }
}
