:root {
  --ivory: #fff5d8;
  --ivory-deep: #f5e5b5;
  --ink: #002d53;
  --ink-soft: #24506e;
  --blue: #0676d8;
  --blue-bright: #22bcf0;
  --paper-width: 46rem;
  color-scheme: light;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  background: var(--ivory);
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #062d4c;
}

body {
  min-width: 20rem;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #00182e;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.experience {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.intentions {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 105%, rgba(27, 170, 230, 0.43), transparent 38%),
    radial-gradient(circle at 4% 36%, rgba(20, 112, 164, 0.24), transparent 26%),
    linear-gradient(180deg, #00182e 0%, #002d50 58%, #064b70 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

.intentions::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 15% 28%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 73% 19%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 46%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 88% 59%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 24% 73%, #fff 0 0.8px, transparent 1.4px);
  background-size: 19rem 23rem, 23rem 29rem, 27rem 24rem, 21rem 30rem, 30rem 26rem;
}

.moon-backdrop {
  position: absolute;
  z-index: 0;
  top: 18%;
  left: 50%;
  width: min(108vw, 40rem);
  aspect-ratio: 1 / 0.98;
  opacity: 0.86;
  background-image:
    linear-gradient(rgba(0, 18, 62, 0.08), rgba(0, 18, 62, 0.08)),
    url("./moon-reference.png");
  background-position: center, center 44%;
  background-size: cover, 129.3% auto;
  background-repeat: no-repeat;
  filter: saturate(0.94) contrast(1.04) drop-shadow(0 0 2rem rgba(119, 211, 255, 0.22));
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 67%, transparent 97%);
  mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 67%, transparent 97%);
}

.section-copy {
  position: relative;
  z-index: 3;
  max-width: 28rem;
  margin: 0 auto;
  padding: max(3.25rem, calc(env(safe-area-inset-top) + 1.5rem)) 0.75rem 0;
  text-align: center;
}

.section-copy h2 {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.35rem, 21.5vw, 8rem);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.section-copy h2 span {
  display: block;
}

.title-light {
  color: #fff;
}

.title-grows {
  margin-top: 0.18em;
  color: #65cfff;
}

.section-copy p {
  max-width: 20rem;
  margin: 1.35rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.45;
}

.sky {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-heart {
  --heart-size: 58px;
  --birth-x: 50vw;
  --drift: 26px;
  --sway: 7.8s;
  --rise: 1200s;
  position: absolute;
  bottom: var(--heart-launch-bottom, 8rem);
  left: calc(var(--birth-x) - var(--heart-size) / 2);
  width: var(--heart-size);
  height: var(--heart-size);
  opacity: 0;
  animation: rise var(--rise) linear forwards;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.floating-heart__sway {
  display: block;
  width: 100%;
  height: 100%;
  animation: sway var(--sway) ease-in-out infinite alternate;
  filter: drop-shadow(0 0.4rem 0.5rem rgba(0, 0, 0, 0.22));
}

.floating-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.floating-heart .heart-core {
  fill: var(--heart-color, #078dcc);
  stroke: rgba(184, 235, 255, 0.42);
  stroke-width: 1.5;
}

.floating-heart .heart-light {
  fill: rgba(121, 225, 255, 0.5);
}

.floating-heart .heart-shadow {
  fill: rgba(0, 34, 75, 0.34);
}

.composer {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1rem max(0.75rem, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #064b70 70%, transparent);
}

.composer label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.input-shell {
  display: flex;
  padding: 0.35rem;
  gap: 0.35rem;
  border: 1px solid rgba(178, 224, 243, 0.35);
  border-radius: 999px;
  background: rgba(0, 22, 42, 0.78);
  box-shadow: 0 1rem 3rem rgba(0, 12, 25, 0.32);
  backdrop-filter: blur(1rem);
}

.input-shell:focus-within {
  border-color: rgba(178, 224, 243, 0.75);
  box-shadow: 0 0 0 3px rgba(104, 201, 242, 0.15), 0 1rem 3rem rgba(0, 12, 25, 0.32);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.4rem 0.7rem 0.9rem;
  border: 0;
  outline: 0;
  color: var(--ivory);
  background: transparent;
  font-size: 1rem;
}

.input-shell input::placeholder {
  color: rgba(255, 245, 216, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
}

.input-shell button {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #00355a;
  background: var(--ivory);
  box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.input-shell button:active {
  transform: scale(0.95);
}

.input-shell button svg {
  width: 1.8rem;
  fill: var(--blue);
  stroke: var(--ivory);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.privacy-note {
  margin: 0.55rem 0 0;
  color: rgba(255, 245, 216, 0.64);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.67rem;
  line-height: 1.35;
  text-align: center;
}

.signature {
  margin: 0.42rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-align: center;
}

.announcement {
  position: fixed;
  z-index: 20;
  bottom: max(7.6rem, calc(6.8rem + env(safe-area-inset-bottom)));
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  opacity: 0;
  color: white;
  background: rgba(0, 25, 47, 0.86);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  transform: translate(-50%, 0.7rem);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  backdrop-filter: blur(0.8rem);
}

.announcement.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise {
  0% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0) rotate(-3deg) scale(0.55);
  }

  0.28% {
    opacity: 0.94;
    transform: translate3d(0, -4.5rem, 0) rotate(2deg) scale(1);
  }

  94% {
    opacity: 0.88;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), calc(-100svh - 8rem), 0) rotate(8deg) scale(0.92);
  }
}

@keyframes sway {
  from {
    transform: translateX(calc(var(--drift) * -0.55)) rotate(-6deg);
  }

  to {
    transform: translateX(calc(var(--drift) * 0.55)) rotate(5deg);
  }
}

@media (min-width: 48rem) {
  .composer {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-heart,
  .floating-heart__sway {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  .announcement {
    transition: none;
  }
}

