/* Sample christening: lively, cartoony, bouncy. A storybook journey layout. */
:root {
  --sky: #8ed6ff; --sky-2: #cdeeff; --sun: #ffd23f; --sun-deep: #e8a913; --coral: #ff7a6b; --mint: #5fd3a8;
  --lilac: #b69cff; --cream: #fffaf0; --navy: #25385c; --round: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--navy); font: 400 1.05rem/1.6 var(--body); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.sample-banner { position: relative; z-index: 5; background: var(--navy); color: #fff; text-align: center; font: 600 .78rem var(--round); padding: 9px 14px; white-space: nowrap; }
.sample-banner a { color: var(--sun); margin-left: 10px; }

/* ---------- hero sky ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 36px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 70px 18px 150px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 75%, #e9f8ff 100%); }
.cloud { position: absolute; width: 140px; height: 76px; filter: drop-shadow(0 6px 0 rgba(37, 56, 92, .06)); animation: drift 28s linear infinite; }
.c1 { top: 8%; left: -160px; }
.c2 { top: 26%; left: -160px; width: 100px; height: 54px; animation-duration: 36s; animation-delay: -12s; }
.c3 { top: 54%; left: -160px; width: 170px; height: 92px; animation-duration: 44s; animation-delay: -26s; opacity: .9; }
@keyframes drift { to { transform: translateX(calc(100vw + 340px)); } }
.sun { position: absolute; top: 18px; right: -10px; width: 120px; height: 120px; }
@media (min-width: 760px) { .sun { right: 8%; top: 40px; width: 150px; height: 150px; } }
.sun svg { width: 100%; height: 100%; }
.rays { transform-origin: 60px 60px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.balloon { position: absolute; width: 44px; height: 100px; animation: bob 4s ease-in-out infinite; }
.b1 { left: 6%; top: 34%; fill: var(--coral); }
.b2 { left: 15%; top: 44%; fill: var(--lilac); width: 36px; height: 82px; animation-delay: -1.3s; }
.b3 { right: 8%; top: 52%; fill: var(--mint); animation-delay: -2.6s; }
@media (max-width: 520px) { .b1 { left: 2%; top: 58%; } .b2 { display: none; } .b3 { right: 2%; top: 66%; } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(4deg); } }
.hero__text { position: relative; z-index: 2; }
.kicker { display: inline-block; font: 600 .95rem var(--round); background: #fff; padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 0 rgba(37, 56, 92, .12); }
.name { margin-top: 16px; font-family: var(--round); line-height: 1; }
.name .small { display: block; font-size: 1.7rem; font-weight: 600; color: var(--navy); position: relative; z-index: 2; }
.letters { display: inline-flex; gap: 2px; font-size: clamp(4.6rem, 26vw, 9rem); font-weight: 600; }
.letters b { display: inline-block; color: var(--sun); -webkit-text-stroke: 4px var(--navy); paint-order: stroke fill; text-shadow: 0 7px 0 var(--navy); animation: hop 2.4s ease-in-out infinite; }
.letters b:nth-child(2) { color: var(--coral); animation-delay: .15s; }
.letters b:nth-child(3) { color: var(--mint); animation-delay: .3s; }
.letters b:nth-child(4) { color: var(--lilac); animation-delay: .45s; }
.letters b:nth-child(5) { color: #fff; animation-delay: .6s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-4deg); } }
.sub { font: 600 clamp(1.4rem, 6vw, 2rem) var(--round); margin-top: 8px; }
.pill { display: inline-block; margin-top: 20px; font: 600 1rem var(--round); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; }
.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.countdown div { background: #fff; border: 3px solid var(--navy); border-radius: 18px; padding: 6px 14px; font: 600 .8rem var(--round); box-shadow: 0 4px 0 var(--navy); }
.countdown b { display: block; font-size: 1.5rem; color: var(--coral); }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; }
.wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; }
.duck { position: absolute; bottom: 52px; width: 70px; height: 56px; animation: float 3s ease-in-out infinite; z-index: 1; }
.d1 { left: 18%; } .d2 { left: 64%; width: 52px; height: 42px; bottom: 48px; animation-delay: -1.5s; transform: scaleX(-1); }
@keyframes float { 50% { translate: 0 -8px; rotate: -6deg; } }

/* ---------- shared ---------- */
section { padding: 64px 18px; }
.title { text-align: center; font: 600 clamp(2rem, 8vw, 2.8rem)/1.1 var(--round); margin-bottom: 14px; }
.btn-map { display: inline-block; margin-top: 10px; font: 600 .9rem var(--round); color: var(--navy); background: var(--sun); border: 3px solid var(--navy); border-radius: 999px; padding: 6px 16px; text-decoration: none; box-shadow: 0 3px 0 var(--navy); }
.btn-map:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }

/* ---------- storybook journey ---------- */
.journey__intro { text-align: center; font: 600 1.1rem var(--round); color: var(--coral); margin-bottom: 26px; }
.path { position: relative; max-width: 760px; margin: 0 auto; display: grid; gap: 34px; }
.path__line { position: absolute; left: 0; top: -10px; width: 100%; height: calc(100% + 20px); z-index: 0; }
.stop { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 88%; }
.stop--right { margin-left: auto; flex-direction: row-reverse; }
@media (min-width: 720px) { .stop { width: 62%; } }
.stop__badge { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--navy); padding: 10px; box-shadow: 0 5px 0 var(--navy); }
.stop__badge svg { width: 100%; height: 100%; }
.stop__badge--blue { background: #e6f6ff; } .stop__badge--lilac { background: #efe8ff; } .stop__badge--pink { background: #ffece8; } .stop__badge--yellow { background: #fff3c4; }
.bubble { position: relative; flex: 1; background: #fff; border: 3px solid var(--navy); border-radius: 22px; padding: 14px 16px; box-shadow: 0 5px 0 var(--navy); }
.bubble::before { content: ''; position: absolute; top: 50%; left: -12px; width: 18px; height: 18px; background: #fff; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: translateY(-50%) rotate(45deg); }
.stop--right .bubble::before { left: auto; right: -12px; transform: translateY(-50%) rotate(-135deg); }
.stop__time { font: 600 .95rem var(--round); color: var(--coral); }
.bubble h3 { font: 600 1.35rem var(--round); line-height: 1.2; }
.bubble p:not(.stop__time) { font-size: .98rem; }

/* ---------- super team ---------- */
.team { background: #fff3c4; border-block: 3px dashed rgba(37, 56, 92, .2); }
.team__ring { position: relative; max-width: 520px; margin: 20px auto 0; display: grid; justify-items: center; }
.team__baby { width: 120px; height: 120px; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(-6deg) scale(1.05); } }
.team__list { list-style: none; margin: 18px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
.team__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 .98rem var(--round); text-align: center; }
.team__list span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--c); border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); font: 600 1.6rem var(--round); color: var(--navy); }
.gift { position: relative; max-width: 480px; margin: 34px auto 0; padding: 16px 20px 16px 44px; background: #fff; border: 3px solid var(--navy); border-radius: 10px 30px 30px 10px; box-shadow: 0 5px 0 var(--navy); font-size: .98rem; }
.gift::before { content: ''; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--navy); background: var(--cream); }

/* ---------- postcard RSVP ---------- */
.rsvp { background: linear-gradient(180deg, var(--cream), #e6f6ff); padding-bottom: 80px; }
.postcard { position: relative; max-width: 860px; margin: 0 auto; display: grid; background: #fffdf6; border-radius: 8px; padding: 28px 20px 26px;
  box-shadow: 0 0 0 10px #fff, 0 0 0 13px var(--navy), 0 18px 0 13px var(--navy); background-image: repeating-linear-gradient(-45deg, rgba(255, 122, 107, .9) 0 10px, transparent 10px 20px, rgba(142, 214, 255, .9) 20px 30px, transparent 30px 40px); background-size: 100% 10px; background-repeat: no-repeat; }
@media (min-width: 760px) { .postcard { grid-template-columns: 1fr 1.15fr; gap: 0; padding: 40px 34px 34px; } .postcard__note { border-right: 3px dashed rgba(37, 56, 92, .25); padding-right: 30px; } .postcard__form { padding-left: 30px; } }
.postcard__stamp { position: absolute; top: 18px; right: 18px; width: 70px; height: 84px; padding: 8px; background: var(--sky-2); border: 3px solid var(--navy); transform: rotate(6deg);
  -webkit-mask: radial-gradient(circle 4px, transparent 97%, #000) -4px -4px / 12px 12px; mask: radial-gradient(circle 4px, transparent 97%, #000) -4px -4px / 12px 12px; }
.postcard__stamp svg { width: 100%; height: 100%; }
.postcard__mark { position: absolute; top: 34px; right: 76px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(37, 56, 92, .35); display: grid; place-items: center; text-align: center;
  font: 600 .55rem/1.3 var(--round); color: rgba(37, 56, 92, .5); padding: 14px; transform: rotate(-14deg); }
.postcard__note { padding-top: 70px; margin-bottom: 20px; }
@media (min-width: 760px) { .postcard__note { padding-top: 20px; } }
.postcard__note h2 { font: 600 1.6rem var(--round); margin-bottom: 10px; }
.postcard__note p { background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(37, 56, 92, .15) 31px 32px); line-height: 32px; }
.postcard__note b { color: var(--coral); }
.sign { font: 600 1.3rem var(--round); margin-top: 8px; }
.form, .more { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
label, legend { display: block; padding: 0; margin-bottom: 6px; font: 600 1rem var(--round); }
small { font-weight: 400; color: #6b7a96; }
input[type=text], select, textarea { width: 100%; font: 400 1rem var(--body); font-size: max(16px, 1rem); color: var(--navy); background: #f6fbff; border: 3px solid var(--navy); border-radius: 16px; padding: 10px 14px; min-height: 50px; }
textarea { resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; background-color: #fffbe6; border-color: var(--coral); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px; background: #f6fbff; border: 3px solid var(--navy); border-radius: 18px; font: 600 1.05rem var(--round); transition: transform .15s; }
.choice input:checked + span { background: var(--sun); transform: translateY(-2px); box-shadow: 0 4px 0 var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.has-error input, .has-error select, .has-error textarea, .has-error .choice span { border-color: #e2453a; }
.rsvp-field-error { color: #d0362b; font: 600 .95rem var(--round); margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.btn { width: 100%; min-height: 56px; font: 600 1.15rem var(--round); color: #fff; background: var(--coral); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 6px 0 var(--navy); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.btn:disabled { opacity: .7; }
.link { background: none; border: 0; font: 600 1rem var(--round); color: var(--coral); text-decoration: underline; cursor: pointer; }
.msg { text-align: center; }
.msg__duck { width: 90px; height: 72px; animation: float 3s ease-in-out infinite; }
.msg h3 { font: 600 2rem var(--round); margin: 6px 0; }
.msg p { margin-bottom: 12px; }
.demo-note { font-size: .9rem; color: #6b7a96; }

.foot { text-align: center; padding: 40px 18px calc(48px + env(safe-area-inset-bottom)); background: #e6f6ff; }
.rainbow { width: 160px; height: 80px; }
.foot p { font: 600 1.4rem var(--round); margin-top: 6px; }

/* ---------- effects ---------- */
/* soap bubbles */
.soap { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.soap i { position: absolute; bottom: -50px; border-radius: 50%; animation: soap var(--dur) linear var(--delay) infinite;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 12%, transparent 14%), radial-gradient(circle, transparent 55%, rgba(182, 156, 255, .35) 70%, rgba(142, 214, 255, .5) 85%, rgba(255, 255, 255, .7) 100%); }
@keyframes soap { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--sway), -50vh) scale(1); } 100% { transform: translate(0, -110vh) scale(1.1); opacity: .2; } }
/* duck walking the path */
.walker { position: absolute; left: 0; top: 0; z-index: 2; width: 52px; height: 42px; pointer-events: none; transition: transform .25s linear; filter: drop-shadow(0 3px 0 rgba(37, 56, 92, .2)); }
.walker use { animation: waddle .5s ease-in-out infinite alternate; transform-origin: 50% 90%; transform-box: fill-box; }
@keyframes waddle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
/* tappable stop icons */
.stop__badge { cursor: pointer; transition: transform .2s; }
.stop__badge:active { transform: scale(.9); }
.boing { animation: boing .7s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes boing { 0% { transform: scale(.7) rotate(-12deg); } 50% { transform: scale(1.18) rotate(8deg); } 100% { transform: none; } }
.js .stop.in .stop__badge { animation: wobble 1s ease .3s; }
@keyframes wobble { 25% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
/* confetti & hearts */
.confetti { position: absolute; z-index: 50; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; }
.confetti--heart { width: auto; height: auto; font: 700 22px/1 var(--round); }
/* countdown pop */
.pop { display: inline-block; animation: popnum .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes popnum { from { transform: scale(1.5); } to { transform: none; } }
/* godparents bounce */
.team__list li span { transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.team__list li:hover span, .team__list li:active span { transform: translateY(-8px) rotate(-6deg) scale(1.08); }
.js .team__list li.in span { animation: hopin .6s cubic-bezier(.3, 1.8, .5, 1) both; }
.team__list li:nth-child(2) span { animation-delay: .08s; } .team__list li:nth-child(3) span { animation-delay: .16s; } .team__list li:nth-child(4) span { animation-delay: .24s; } .team__list li:nth-child(5) span { animation-delay: .32s; } .team__list li:nth-child(6) span { animation-delay: .4s; }
@keyframes hopin { 0% { transform: translateY(20px) scale(.6); } 60% { transform: translateY(-10px) scale(1.1); } 100% { transform: none; } }
/* postcard stamp wiggles in */
.postcard__stamp { animation: stampwig 3s ease-in-out infinite; }
@keyframes stampwig { 50% { transform: rotate(10deg) scale(1.04); } }

/* reveal: a playful pop; stops swing in from their side */
.js .rv { opacity: 0; transform: translateY(26px) scale(.9); transition: opacity .6s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.js .stop--left.rv { transform: translateX(-40px) rotate(-4deg); } .js .stop--right.rv { transform: translateX(40px) rotate(4deg); }
.js .rv.in { opacity: 1; transform: none; }
.team__list li.rv:nth-child(2) { transition-delay: .08s; } .team__list li.rv:nth-child(3) { transition-delay: .16s; } .team__list li.rv:nth-child(4) { transition-delay: .24s; } .team__list li.rv:nth-child(5) { transition-delay: .32s; } .team__list li.rv:nth-child(6) { transition-delay: .4s; }
.journey, .team { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .js .rv { opacity: 1; transform: none; transition: none; } }
