/* =========================================================
   Melie Williams — Audiobook Narrator & Voice Actor
   Beachy, sunshiny theme · pinks + teals + cool tones
   ========================================================= */

:root {
  /* Palette */
  --cream:      #FFF7F1;
  --cream-2:    #FFEFE6;
  --pink:       #FF7DA8;
  --pink-deep:  #F2588B;
  --pink-soft:  #FFD7E4;
  --teal:       #19BFB6;
  --teal-deep:  #0E9AA3;
  --teal-soft:  #C5F0EC;
  --ocean:      #2BA6C9;
  --sky:        #BFE9F2;
  --sky-2:      #DFF4FA;
  --sand:       #FCE3CC;
  --sun:        #FFCB52;
  --sun-soft:   #FFE6A8;
  --ink:        #284049;
  --ink-soft:   #5A727B;
  --white:      #ffffff;

  --shadow-sm: 0 4px 14px rgba(40, 64, 73, .08);
  --shadow-md: 0 14px 34px rgba(40, 64, 73, .12);
  --shadow-pink: 0 12px 26px rgba(242, 88, 139, .28);
  --shadow-teal: 0 12px 26px rgba(14, 154, 163, .26);

  --radius: 22px;
  --radius-lg: 32px;
  --maxw: 1140px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-script: 'Pacifico', cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn--pink  { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn--pink:hover { background: var(--pink-deep); }
.btn--teal  { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn--teal:hover { background: var(--teal-deep); }
.btn--white { background: #fff; color: var(--pink-deep); box-shadow: var(--shadow-md); }
.btn--white:hover { color: var(--pink-deep); }
.btn--ghost { background: rgba(255,255,255,.65); color: var(--ink); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; }
.btn--lg { font-size: 1.12rem; padding: 1.05rem 2.2rem; }

/* ---------- Shared headings ---------- */
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--teal-deep);
  margin-bottom: .6rem;
}
.kicker--light { color: rgba(255,255,255,.9); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; padding: 0 1.2rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-sub { color: var(--ink-soft); margin-top: .9rem; font-size: 1.05rem; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 247, 241, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(40,64,73,.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.nav__brand-name { color: var(--ink); }
.nav__brand-accent { color: var(--pink); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); transition: color .2s; }
.nav__links a:hover { color: var(--pink-deep); }
.nav__cta {
  background: var(--teal);
  color: #fff !important;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-teal);
}
.nav__cta:hover { background: var(--teal-deep); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 2rem;
  padding: 7rem 6vw 8rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 30%, #FFE9DC 70%, var(--cream) 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sun {
  position: absolute;
  top: 12%; right: 16%;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #FFE9A8 0%, var(--sun) 55%, #FFB84d 100%);
  box-shadow: 0 0 70px 24px rgba(255, 203, 82, .5);
  animation: float 7s ease-in-out infinite;
}
.cloud {
  position: absolute;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  filter: blur(.3px);
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud--1 { width: 120px; height: 34px; top: 22%; left: 8%; animation: drift 26s linear infinite; }
.cloud--2 { width: 90px; height: 26px; top: 40%; left: 30%; opacity: .8; animation: drift 34s linear infinite; }
.cloud--3 { width: 150px; height: 40px; top: 14%; left: 48%; opacity: .7; animation: drift 44s linear infinite; }
.cloud::before { width: 55%; height: 160%; top: -55%; left: 12%; }
.cloud::after  { width: 45%; height: 150%; top: -50%; right: 14%; }

.hero__content { position: relative; z-index: 2; max-width: 560px; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--teal-deep);
  margin-bottom: .8rem;
}
.hero__title { font-size: clamp(3rem, 8vw, 5.4rem); font-weight: 800; color: var(--ink); }
.hero__script {
  font-family: var(--font-script);
  color: var(--pink-deep);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: .2rem 0 1.2rem;
  transform: rotate(-2deg);
}
.hero__lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__photo { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero__photo-frame {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: 30px 30px 30px 90px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft), var(--teal-soft));
  box-shadow: var(--shadow-md);
  border: 8px solid #fff;
  transform: rotate(2deg);
  transition: transform .4s ease;
}
.hero__photo-frame:hover { transform: rotate(0deg); }
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
/* favor the pink car + legs when cropping the landscape hero shot to portrait */
.hero__photo-frame[data-photo="hero"] img { object-position: 38% 50%; }
/* keep the face comfortably framed in the about headshot */
.hero__photo-frame[data-photo="headshot"] img { object-position: center 20%; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: .6rem;
  color: var(--ink-soft);
  padding: 1rem;
}
.photo-placeholder span { font-size: 3rem; }
.photo-placeholder small { color: var(--ink-soft); opacity: .7; }
.hero__photo-frame.is-empty .photo-placeholder { display: flex; }

/* wave divider */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.wave svg { width: 100%; height: 110px; display: block; }
.wave path { fill: var(--cream); }

/* =========================================================
   FAST FACTS
   ========================================================= */
.facts { background: var(--cream); padding: 1rem 6vw 4rem; }
.facts__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.fact {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(40,64,73,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fact:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fact__icon { font-size: 2.1rem; display: block; margin-bottom: .6rem; }
.fact h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.fact p { font-size: .92rem; color: var(--ink-soft); }

/* =========================================================
   LISTEN / SAMPLES
   ========================================================= */
.listen { padding: 4.5rem 6vw 5rem; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.players {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.player {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(40,64,73,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.player:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.player__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.tag--pink  { background: var(--pink-soft); color: var(--pink-deep); }
.tag--teal  { background: var(--teal-soft); color: var(--teal-deep); }
.tag--sun   { background: var(--sun-soft); color: #B5790A; }
.tag--ocean { background: #D2ECF5; color: var(--ocean); }
.player__title { font-size: 1.32rem; margin-bottom: .2rem; }
.player__meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.2rem; }

/* custom audio player */
.audio {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: linear-gradient(120deg, var(--sky-2), var(--cream));
  border-radius: 999px;
  padding: .5rem .5rem .5rem .55rem;
}
.audio__btn {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: transform .15s ease, background .2s ease;
  display: grid; place-items: center;
}
.audio__btn:hover { transform: scale(1.08); }
.audio.is-playing .audio__btn { background: var(--teal); box-shadow: var(--shadow-teal); }
.audio__bar {
  flex: 1;
  height: 7px;
  background: rgba(40,64,73,.12);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
.audio__progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pink), var(--teal)); border-radius: 999px; transition: width .1s linear; }
.audio__time { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink-soft); min-width: 38px; text-align: right; padding-right: .4rem; }
.audio.is-missing { opacity: .55; }
.audio.is-missing .audio__btn { background: var(--ink-soft); box-shadow: none; cursor: not-allowed; }

.listen__note { text-align: center; margin-top: 2.4rem; color: var(--ink-soft); font-size: 1.05rem; }
.listen__note a { color: var(--pink-deep); font-weight: 700; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 5rem 6vw; background: var(--cream); }
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about__frame { transform: rotate(-2deg); border-radius: 90px 30px 30px 30px; width: min(380px, 85vw); }
.about__frame:hover { transform: rotate(0); }
.about__copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.1rem; }
.about__copy p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.about__copy strong { color: var(--ink); }
.about__copy .btn { margin-top: .8rem; }

/* =========================================================
   GENRES
   ========================================================= */
.genres { padding: 5rem 6vw; background: linear-gradient(180deg, var(--cream-2), var(--sky-2)); }
.genres__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.genre-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(40,64,73,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.genre-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.genre-card span { font-size: 2rem; display: block; margin-bottom: .7rem; }
.genre-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.genre-card p { color: var(--ink-soft); font-size: .96rem; }

/* =========================================================
   CONNECT / CTA
   ========================================================= */
.connect { padding: 5rem 6vw 6rem; background: var(--sky-2); }
.connect__card {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 40%, var(--teal) 110%);
  box-shadow: var(--shadow-md);
}
.connect__sun { position: absolute; top: -40px; right: -30px; opacity: .35; animation: float 8s ease-in-out infinite; }
.connect__card h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); position: relative; z-index: 2; }
.connect__sub { max-width: 30em; margin: 1rem auto 2rem; opacity: .95; position: relative; z-index: 2; font-size: 1.08rem; }
.connect__card .btn { position: relative; z-index: 2; }
.connect__email { margin-top: 1.2rem; position: relative; z-index: 2; }
.connect__email a { font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 2rem; position: relative; z-index: 2; }
.socials a { font-family: var(--font-display); font-weight: 600; opacity: .92; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { text-align: center; padding: 3rem 1.5rem; background: var(--ink); color: rgba(255,255,255,.8); }
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: .4rem; }
.footer__brand span { color: var(--pink); }
.footer p { font-size: .95rem; }
.footer__copy { margin-top: 1rem; font-size: .85rem; opacity: .6; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(80vw); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; min-height: auto; }
  .hero__content { margin: 0 auto; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__photo { margin-top: 2.5rem; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .players { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about__photo { display: flex; justify-content: center; }
  .about__copy .btn { display: inline-flex; }
  .genres__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 1.1rem;
    background: rgba(255,247,241,.98);
    backdrop-filter: blur(10px);
    padding: 1.6rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .facts__grid { grid-template-columns: 1fr; }
  .genres__grid { grid-template-columns: 1fr; }
  .connect__card { padding: 3rem 1.4rem; }
}
