/* Melissa Bergen, melissabergen.com
   Soft neutrals, mobile-first, no framework. */

:root {
  --cream: #f6f0e8;
  --paper: #fffbf7;
  --ink: #2c241e;
  --ink-soft: #5c534c;
  --blush: #b97a6a;
  --blush-deep: #9a5f52;
  --sand: #eadccb;
  --gold: #c4a882;
  --line: #e4d8cb;
  --shadow: 0 10px 30px rgba(44, 36, 30, 0.08);
  --radius: 22px;
  --max: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

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

a {
  color: var(--blush-deep);
  text-underline-offset: 0.15em;
}

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wordmark {
  font-family: Fraunces, "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.wordmark:hover { color: var(--blush-deep); }

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-link:hover { color: var(--blush-deep); }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 20% 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  background: var(--sand);
}

h1, h2 {
  font-family: Fraunces, "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  max-width: 34rem;
}

.section {
  margin: 0 0 2.25rem;
  padding-top: 0.25rem;
}

h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  margin-bottom: 0.7rem;
}

.section p + p { margin-top: 0.7rem; }

.section p { color: var(--ink); }

.maths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0 1rem;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 0.9rem 0.85rem;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: Fraunces, Palatino, Georgia, serif;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 650;
  color: var(--blush-deep);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat span {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.bullets {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.bullets li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  line-height: 1.4;
}

.video-block {
  background: var(--paper);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.3rem;
  text-align: center;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background-color: #3a312b;
  background-image:
    linear-gradient(180deg, rgba(44, 36, 30, 0.18), rgba(44, 36, 30, 0.5)),
    var(--video-photo);
  background-position: center, center 25%;
  background-size: cover, cover;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
}

.play {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(255, 251, 247, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(44, 36, 30, 0.18);
  padding-left: 0.2rem;
}

.script-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: 0.45rem;
}

.script {
  font-family: Fraunces, Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto;
}

.contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
}

.contact p { margin-top: 0.55rem; }

.contact .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

.home-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--blush-deep);
  color: #fffaf6;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
}

.btn:hover { background: var(--ink); color: #fffaf6; }

.foot {
  margin-top: 2.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (min-width: 720px) {
  body { font-size: 1.1875rem; }
  .wrap { padding-top: 2.25rem; }
  .hero-photo { aspect-ratio: 16 / 10; margin-bottom: 2rem; }
  .maths { grid-template-columns: repeat(4, 1fr); }
  .stat { text-align: center; }
}


/* Theme song and floating player */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.5rem 0 2rem;
  background: var(--ink);
  color: #fffaf6;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.theme-btn:hover,
.theme-btn:focus-visible {
  background: var(--blush-deep);
  outline: none;
}

.story {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  margin-top: 0.65rem;
  box-shadow: var(--shadow);
}
.story p + p { margin-top: 0.7rem; }

.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}
.then-now .stat strong {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
}

.dancer {
  position: fixed;
  left: 0.35rem;
  bottom: 0.9rem;
  z-index: 40;
  font-size: 2.5rem;
  line-height: 1;
  transform: translateX(-160%);
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(44, 36, 30, 0.18));
}
.dancer.in {
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: wiggle 0.65s ease-in-out 0.7s infinite;
}
@keyframes wiggle {
  0%, 100% { transform: translateX(0) rotate(-10deg); }
  50% { transform: translateX(0) rotate(12deg) translateY(-5px); }
}

.peeker {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 35;
  transform: translateX(85%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.peeker.visible { transform: translateX(18%); }
.peeker-face {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50% 8px 50% 50%;
  font-size: 1.7rem;
  box-shadow: var(--shadow);
}

.mini-player {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 50;
  width: min(18.5rem, calc(100vw - 1.6rem));
  background: var(--ink);
  color: #fffaf6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(44, 36, 30, 0.28);
}
.mini-player[hidden] { display: none; }
.mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.mini-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
}
.mini-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.mini-frame iframe { width: 100%; height: 100%; display: block; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dancer,
  .dancer.in,
  .peeker {
    animation: none;
    transition: none;
    transform: none;
  }
}

.reply-btns { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.reply-btns .reply-btn { text-align: center; text-decoration: none; }
.highlight {background:#f3e1d9;border-left:5px solid var(--blush);border-radius:16px;padding:16px 18px;margin:14px 0 18px;box-shadow:var(--shadow)}
.highlight p {margin:0 0 10px;font-weight:600}
.highlight p:last-child {margin-bottom:0}
.highlight .easy-out {font-weight:800;text-transform:uppercase;letter-spacing:.02em;color:var(--blush-deep);font-size:.95em}
.highlight .easy-out {text-transform:none;letter-spacing:0;font-size:1em}
.hook {margin:0 0 20px}
.dare-intro {margin-top:18px}
.dare-btn {margin-top:4px}
.moon-quote{margin:14px 0 16px;padding:14px 18px;border-left:5px solid var(--blush);background:#f3e1d9;border-radius:16px;font-family:inherit;font-style:italic;font-size:1.1em;font-weight:600;line-height:1.45}
.moon-quote span{display:block;margin-top:6px;font-style:normal;font-size:.8em;font-weight:500;opacity:.75}
.moon-quote span::before{content:"- "}
.ai-note p{font-size:.85em;opacity:.8;font-style:italic}
.ai-note{border:3px dashed var(--blush);border-radius:18px;padding:10px 14px;text-align:center}
.robot-row{font-size:1.2em;letter-spacing:1px;white-space:nowrap;overflow:hidden;text-align:center}
.robot-row{animation:robodance .6s ease-in-out infinite alternate}
@keyframes robodance{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-4px) rotate(2deg)}}
.fart-board{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin:10px 0 6px}
.cushion{position:relative;border:none;cursor:pointer;height:96px;border-radius:50% 50% 46% 46%/55% 55% 45% 45%;
  background:radial-gradient(circle at 35% 30%,#ff9db5 0%,#f2507b 45%,#c2185b 100%);
  box-shadow:inset -6px -8px 14px rgba(0,0,0,.18),0 6px 12px rgba(194,24,91,.25);color:#fff;font:inherit;font-weight:700;font-size:.85em;padding:0 10px;transition:transform .15s}
.cushion::after{content:"";position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);width:22px;height:20px;
  background:linear-gradient(#c2185b,#a3124c);border-radius:4px 4px 8px 8px}
.cushion span{position:relative;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.cushion.squish{animation:squish .45s ease}
@keyframes squish{0%{transform:scale(1,1)}30%{transform:scale(1.15,.7)}60%{transform:scale(.95,1.08)}100%{transform:scale(1,1)}}
