:root {
  --ink: #1f2a2e;
  --muted: #4a5c63;
  --paper: #f7fbff;
  --sky-top: #b9e0f2;
  --sky-mid: #dff1fa;
  --sky-bottom: #fff8ef;
  --accent: #f2a7b8;
  --accent-deep: #e07a90;
  --shadow: rgba(31, 42, 46, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  background: var(--sky-bottom);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #ffffffaa, transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  z-index: 0;
}

.soft-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 1;
  animation: drift 12s ease-in-out infinite;
}

.soft-orb--one {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  top: 12%;
  left: 8%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #cfe9f7 70%);
}

.soft-orb--two {
  width: min(46vw, 340px);
  height: min(46vw, 340px);
  right: 4%;
  bottom: 10%;
  background: radial-gradient(circle at 40% 40%, #ffe8ef, #f7d3de 75%);
  animation-delay: -4s;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 34rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(4.5rem, 16vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lede {
  margin: 1rem auto 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform 180ms ease, background 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.gif-stage {
  position: relative;
  z-index: 2;
  margin: 2.5rem 0 0;
  text-align: center;
  animation: rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.miffy-gif {
  display: block;
  width: min(72vw, 320px);
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px var(--shadow);
  animation: bob 3.6s ease-in-out infinite;
}

.gif-stage figcaption {
  margin-top: 0.85rem;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -16px);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding-inline: clamp(2rem, 8vw, 6rem);
  }

  .content {
    text-align: left;
    justify-self: end;
  }

  .lede {
    margin-left: 0;
  }

  .gif-stage {
    margin-top: 0;
    justify-self: start;
  }
}
