/* base.css — Base reset, typography, background fabric, buttons, cursor FX, layout helpers, chrome */

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-1);
  overflow-x: hidden;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
}

/* Display font */
.font-display {
  font-family: var(--font-display);
}
.font-script {
  font-family: var(--font-script);
}

/* ---------- Background fabric ---------- */
.bg-fabric {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, var(--bg-3) 0%, transparent 65%),
    radial-gradient(60% 50% at 90% 30%, var(--peach) 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 110%, var(--pink-soft) 0%, transparent 60%),
    var(--bg-1);
}
.bg-fabric::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 12% 30%,
      rgba(255, 255, 255, 0.6) 0 1.5px,
      transparent 2px
    ),
    radial-gradient(
      circle at 38% 70%,
      rgba(255, 255, 255, 0.5) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 75% 20%,
      rgba(255, 255, 255, 0.55) 0 1.5px,
      transparent 2px
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(255, 255, 255, 0.45) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 55% 45%,
      rgba(255, 255, 255, 0.4) 0 1px,
      transparent 1.5px
    );
  background-size: 220px 220px;
  opacity: 0.8;
}

/* ---------- Buttons ---------- */
.btn-soft {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose);
  box-shadow:
    0 4px 12px -4px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1.5px var(--pink-soft);
  transition:
    transform 0.15s,
    background 0.2s;
}
.btn-soft:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ---------- Hearts pop animation ---------- */
@keyframes heartFloat {
  0% {
    transform: translate(-50%, 0) scale(0.4);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -20px) scale(1.1);
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), -120px) scale(0.6);
    opacity: 0;
  }
}
.heart-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 20px;
  height: 20px;
  animation: heartFloat 1.1s ease-out forwards;
}
.heart-pop svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(217, 122, 138, 0.4));
}

/* ---------- Glitter trail ---------- */
@keyframes glitterFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(180deg);
  }
}
.glitter {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 12px;
  height: 12px;
  animation: glitterFade 0.8s ease-out forwards;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Card ---------- */
.soft-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid color-mix(in oklab, var(--pink-soft) 50%, white);
}

/* ---------- Section helpers ---------- */
.section {
  padding: 72px 20px;
  position: relative;
}
@media (min-width: 720px) {
  .section {
    padding: 96px 32px;
  }
}
.container {
  max-width: 760px;
  margin: 0 auto;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  color: var(--rose);
  font-size: 18px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1.5px;
  background: color-mix(in oklab, var(--rose) 60%, white);
  border-radius: 2px;
}
.h-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.15;
  color: var(--ink);
  margin: 10px 0 6px;
  text-wrap: balance;
}
.h-sub {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  text-wrap: pretty;
}
.center {
  text-align: center;
}

/* ---------- Audio toggle (top-right) ---------- */
.audio-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklab, var(--pink-soft) 60%, white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--rose);
  transition: transform 0.2s;
}
.audio-toggle:hover {
  transform: scale(1.08);
}

/* ---------- No-tap-highlight ---------- */
a,
button {
  -webkit-tap-highlight-color: transparent;
}
