:root {
  color-scheme: light;
  --ink: #493820;
  --muted: #6e5b3d;
  --gold: #a66c14;
  --cream: #fffaf0;
  --line: #e8d7a9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, #fff9da 0, transparent 38%), linear-gradient(135deg, #fff0ba, #fffaf0 58%, #f8e5a1);
}
.hero::before, .hero::after { content: ""; position: absolute; width: 34rem; height: 34rem; border: 1px solid #e9d18a; border-radius: 50%; pointer-events: none; }
.hero::before { left: -20rem; top: -18rem; }
.hero::after { right: -21rem; bottom: -22rem; }
.hero__glow { position: absolute; width: 36rem; height: 36rem; right: 11%; top: 7%; background: #ffe28b; border-radius: 50%; filter: blur(90px); opacity: .38; pointer-events: none; }
.sunflower { position: absolute; z-index: 0; height: auto; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(118, 83, 24, .12)); }
.sunflower--hero-left { left: -3rem; bottom: -5rem; width: clamp(9rem, 15vw, 13rem); transform: rotate(-17deg); }
.sunflower--hero-right { right: 0; top: -3.5rem; width: clamp(6rem, 9vw, 9rem); transform: rotate(19deg); opacity: .8; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); width: min(1160px, calc(100% - 4rem)); margin: auto; padding: clamp(5rem, 8vw, 8rem) 0 clamp(4rem, 6vw, 6rem); }
.hero__copy { text-align: left; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { position: relative; margin: 0; font-size: clamp(4rem, 7vw, 7.5rem); line-height: .94; letter-spacing: -.065em; }
h1 em, h2 em { font-weight: 400; color: var(--gold); }
.title-star { position: absolute; right: -.18em; top: -.22em; color: #d7a632; font-size: .28em; letter-spacing: 0; }
.hero__intro { max-width: 28rem; margin: 2rem 0 2.5rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero__link { display: inline-flex; align-items: center; gap: 1.3rem; padding: .85rem 0; border-bottom: 1px solid var(--gold); color: var(--ink); font-size: .88rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; transition: gap .2s ease; }
.hero__link:hover, .hero__link:focus-visible { gap: 1.7rem; }
.hero__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.baby-photo { width: min(100%, 28rem); justify-self: center; transform: rotate(3deg); }
.baby-photo__frame { padding: .85rem .85rem 3.3rem; background: #fffdf7; box-shadow: 0 22px 60px rgba(91, 67, 26, .16), 0 4px 10px rgba(91, 67, 26, .08); }
.baby-photo img { width: 100%; height: auto; aspect-ratio: 468 / 403; object-fit: contain; background: #d7cebf; }
.baby-photo figcaption { margin-top: -2.55rem; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .95rem; font-style: italic; text-align: center; }
.baby-photo figcaption span { color: var(--gold); }
.letter-section { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 1.5rem; background: var(--cream); }
.sunflower--letter { right: max(0px, calc((100vw - 1280px) / 2)); top: 1rem; width: clamp(8rem, 12vw, 11rem); transform: rotate(14deg); opacity: .76; }
.message-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); width: min(1180px, 100%); margin: auto; }
.letter { position: relative; width: 100%; padding: clamp(2.3rem, 4vw, 4.5rem); border: 1px solid var(--line); background: #fffef8; box-shadow: 12px 14px 0 #f8edc8; text-align: left; }
.letter::before, .letter::after { content: "✦"; position: absolute; color: #d6aa3b; font-size: 1.2rem; }
.letter::before { top: 1.2rem; left: 1.4rem; }
.letter::after { bottom: 1.2rem; right: 1.4rem; }
.letter h2 { margin: 0 0 1.7rem; font-size: clamp(2.7rem, 4.5vw, 4.2rem); line-height: 1.1; letter-spacing: -.05em; }
.letter p:not(.eyebrow) { max-width: 34rem; margin: 0 0 1.3rem; color: #625139; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.75; }
.letter__sign { display: block; margin-top: .5rem; color: var(--gold); font-size: 2rem; text-align: right; }

.message-photos { position: relative; padding: 0 1rem 2rem 0; }
.message-photo { background: #fffdf7; box-shadow: 0 18px 45px rgba(91, 67, 26, .16); }
.message-photo--dress { padding: .8rem; transform: rotate(2deg); }
.message-photo--dress img { width: 100%; height: auto; }
.message-photo--paint { position: relative; width: 40%; margin: -4.2rem -1rem 0 auto; padding: .45rem; transform: rotate(-5deg); }
.message-photo--paint img { width: 100%; height: auto; }

.celebration { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .8rem; margin: 3.5rem auto 0; text-align: center; }
.celebration__sticker { width: clamp(7rem, 20vw, 10rem); height: auto; }
.celebration__button { padding: 1rem 1.6rem; border: 0; border-radius: 999px; background: #b77a1c; box-shadow: 0 8px 18px rgba(130, 83, 12, .2); color: #fff; cursor: pointer; font: 700 1rem Arial, Helvetica, sans-serif; transition: transform .2s ease, background .2s ease; }
.celebration__button:hover { background: #935d0f; transform: translateY(-2px); }
.celebration__button:focus-visible { outline: 3px solid #493820; outline-offset: 4px; }
.celebration__hint { margin: 0; color: var(--muted); font-size: .85rem; }
.confetti-layer { position: fixed; z-index: 20; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -3rem; left: var(--left); font-size: var(--size); line-height: 1; animation: confetti-fall var(--duration) var(--delay) ease-in forwards; }
.confetti-piece--paper { width: .65em; height: 1em; border-radius: 2px; background: var(--color); }
@keyframes confetti-fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--rotation)); opacity: .8; } }

.footer { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 1.5rem 3rem; background: var(--cream); text-align: center; }
.footer__flower { width: 4.5rem; height: auto; }
.footer span { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; width: min(100% - 2.5rem, 540px); gap: 2.4rem; padding: 4.5rem 0 3rem; }
  .hero__copy { text-align: center; }
  h1 { font-size: clamp(3.9rem, 14vw, 6rem); }
  .title-star { right: -.1em; }
  .hero__intro { margin: 1.5rem auto 1.6rem; }
  .baby-photo { width: min(88%, 370px); }
  .sunflower--hero-left { left: -3.2rem; bottom: -3.8rem; width: 9rem; }
  .sunflower--hero-right { right: -2rem; top: -2.5rem; width: 6rem; }
  .sunflower--letter { right: -2rem; top: 0; width: 7rem; opacity: .6; }
  .message-layout { display: flex; flex-direction: column; gap: 2.6rem; max-width: 540px; }
  .message-photos { order: -1; width: min(88%, 390px); padding-bottom: 1rem; }
}

@media (max-width: 480px) {
  .hero__inner { padding-top: 3.4rem; }
  .baby-photo { width: min(90%, 340px); }
  .baby-photo__frame { padding: .7rem .7rem 2.9rem; }
  .baby-photo figcaption { margin-top: -2.25rem; font-size: .85rem; }
  .letter-section { padding: 3.5rem 1.2rem; }
  .letter { padding: 3.4rem 1.5rem 2.6rem; }
  .message-photos { width: min(92%, 370px); }
  .message-photo--paint { width: 36%; margin-top: -3.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__link { transition: none; }
  .celebration__button { transition: none; }
}

/* Birthday collage */
:root { --coral: #df7f93; --mint: #8abfa5; --lilac: #b6a0d2; }
body { font-family: Nunito, "Trebuchet MS", sans-serif; background: #fffaf0; }
h1, h2 { font-family: Fraunces, Georgia, serif; }
.hero { background: radial-gradient(circle at 74% 22%, #fff9e6 0, transparent 40%), linear-gradient(135deg, #fff0c2 0%, #fffaf0 58%, #fbe8b1 100%); }
.hero::after { display: none; }
.hero::before { opacity: .5; }
.hero__inner { padding-bottom: clamp(6rem, 9vw, 9rem); }
.hero h1 { font-weight: 600; }
.hero h1 span:not(.title-star), .hero h1 em { display: inline-block; animation: title-enter .8s both; }
.hero h1 em { color: #b86f82; font-family: Caveat, cursive; font-size: 1.2em; line-height: .8; letter-spacing: -.035em; animation-delay: .16s; }
.hero h1 em { text-decoration: underline wavy #e5b747; text-decoration-thickness: .035em; text-underline-offset: .11em; }
.hero h1 span:nth-of-type(2) { margin-top: .16em; animation-delay: .32s; }
.title-star { animation: twinkle 2.8s ease-in-out infinite; }
.hero__intro { font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero__intro { min-height: 3.5em; }
.intro-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 4px; background: var(--coral); vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.hero__link { min-height: 48px; }
.section-wave { position: absolute; z-index: 2; bottom: -1px; left: 0; width: 100%; height: clamp(36px, 6vw, 82px); max-width: none; }
.sunflower--hero-left { animation: sunflower-sway 7s ease-in-out infinite alternate; }
.sunflower--hero-right { animation: sunflower-sway 9s ease-in-out -2s infinite alternate-reverse; }
.sparkle { position: absolute; z-index: 1; color: #d99591; font-size: 2rem; animation: twinkle 2.8s ease-in-out infinite; }
.sparkle--one { left: 44%; top: 15%; }
.sparkle--two { right: 10%; bottom: 23%; color: #a68abe; animation-delay: 1s; }
.balloon { position: absolute; z-index: 0; width: 72px; height: 90px; border-radius: 49% 49% 46% 46%; box-shadow: inset -12px -12px 0 rgba(112, 66, 66, .1), inset 10px 8px 0 rgba(255, 255, 255, .25); animation: balloon-float 6s ease-in-out infinite; }
.balloon::before { content: ""; position: absolute; left: 50%; top: calc(100% - 1px); border: 6px solid transparent; border-top-color: currentColor; transform: translateX(-50%); }
.balloon::after { content: ""; position: absolute; left: 50%; top: calc(100% + 6px); width: 1px; height: 84px; background: #ad9770; transform: translateX(-50%); }
.balloon--left { left: 2%; top: 16%; color: #e795a8; background: #e795a8; transform: rotate(-9deg); }
.balloon--right { right: 3%; top: 42%; color: #a9ccaa; background: #a9ccaa; animation-delay: -2s; }
.hero-confetti i { position: absolute; width: 8px; height: 13px; border-radius: 2px; background: var(--coral); opacity: .75; transform: rotate(26deg); }
.hero-confetti i:nth-child(1) { left: 9%; top: 14%; }.hero-confetti i:nth-child(2) { left: 17%; top: 43%; background: var(--mint); }.hero-confetti i:nth-child(3) { left: 34%; top: 10%; background: #e9b849; }.hero-confetti i:nth-child(4) { left: 57%; top: 31%; background: var(--lilac); }.hero-confetti i:nth-child(5) { right: 9%; top: 12%; background: #e9b849; }.hero-confetti i:nth-child(6) { right: 17%; top: 66%; background: var(--coral); }.hero-confetti i:nth-child(7) { left: 29%; bottom: 17%; background: var(--mint); }.hero-confetti i:nth-child(8) { right: 29%; bottom: 12%; background: var(--lilac); }.hero-confetti i:nth-child(9) { left: 4%; bottom: 29%; background: #e9b849; }.hero-confetti i:nth-child(10) { right: 4%; bottom: 8%; background: var(--mint); }

.photo-card { transition: scale .35s ease, rotate .35s ease, box-shadow .35s ease; }
.photo-card:hover { scale: 1.035; rotate: -2deg; }
.baby-photo { rotate: 3deg; transform: none; }
.baby-photo__frame, .message-photo { position: relative; }
.baby-photo__frame::before, .message-photo::before { content: ""; position: absolute; z-index: 2; top: -.85rem; left: 42%; width: 4.6rem; height: 1.6rem; background: rgba(216, 183, 128, .65); transform: rotate(-8deg); box-shadow: 0 2px 5px rgba(70, 45, 20, .08); }
.message-photo--dress { rotate: 2deg; transform: none; padding-bottom: 2.5rem; }
.message-photo--paint { rotate: -5deg; transform: none; padding-bottom: 1.7rem; }
.message-photo figcaption { position: absolute; bottom: .45rem; left: 0; right: 0; color: #8c654b; font-family: Caveat, cursive; font-size: clamp(1rem, 1.9vw, 1.45rem); text-align: center; }
.message-photo--paint figcaption { font-size: clamp(.8rem, 1.3vw, 1rem); }
.message-photo--singing { width: 70%; margin: 2.5rem auto 0 0; rotate: -3deg; padding: .6rem .6rem 2rem; }
.message-photo--portrait { width: 68%; margin: -1rem 0 0 auto; rotate: 3deg; padding: .6rem .6rem 2rem; }
.message-photo--singing img { width: 100%; height: auto; aspect-ratio: 1080 / 1503; object-fit: cover; object-position: center bottom; }
.message-photo--portrait img { width: 100%; height: auto; aspect-ratio: 716 / 939; object-fit: cover; object-position: center 48%; }

.wish-section { position: relative; padding: 1rem 1.2rem 5rem; background: #fffaf0; text-align: center; }
.wish-section .eyebrow { margin-bottom: .65rem; }
.wish-section h2 { margin: 0 auto 1.2rem; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; }
.wish-section h2 em { font-family: Caveat, cursive; color: #bd7688; font-size: 1.2em; }
.garland { display: flex; justify-content: center; gap: 2px; width: min(560px, 85%); margin: 0 auto 3.7rem; border-top: 2px solid #d7b471; }
.garland span { width: 13%; height: 38px; background: #f2af8f; clip-path: polygon(0 0,100% 0,50% 100%); }
.garland span:nth-child(3n+2) { background: #a7ccb0; }.garland span:nth-child(3n) { background: #c5afda; }
.cake-button { position: relative; display: block; width: min(250px, 62vw); min-height: 48px; margin: 0 auto; border: 0; background: none; cursor: pointer; transition: scale .25s ease; }
.cake-button img { width: 100%; height: auto; }
.cake-effect { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cake-effect__flames { fill: #ffc845; }
.cake-effect__flames path { opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.cake-effect__smoke { fill: none; stroke: #b7b3a8; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.cake-button--extinguishing .cake-effect__flames path { animation: candle-out .7s ease-out both; }
.cake-button--extinguishing .cake-effect__flames path:nth-child(2) { animation-delay: .09s; }
.cake-button--extinguishing .cake-effect__smoke { animation: candle-smoke 1s .55s ease-out both; }
@keyframes candle-out { 0% { opacity: 1; transform: scale(1); } 20% { opacity: 1; transform: scale(1.08) skewX(5deg); } 100% { opacity: 0; transform: scale(.15) skewX(18deg); } }
@keyframes candle-smoke { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: .8; } 100% { opacity: 0; transform: translateY(-24px); } }
.cake-button:hover { scale: 1.06; }.cake-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; border-radius: 12px; }
.wish-section__hint { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; }

.letter-section { background: radial-gradient(circle at 0 15%, #fff1e3 0, transparent 25%), radial-gradient(circle at 100% 80%, #eff7e9 0, transparent 28%), #fffaf0; }
.letter-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(#ae8967 .5px, transparent .5px); background-size: 7px 7px; }
.paint-splash { position: absolute; width: clamp(9rem, 18vw, 17rem); height: clamp(9rem, 18vw, 17rem); filter: blur(18px); opacity: .22; border-radius: 45% 55% 40% 60%; pointer-events: none; }
.paint-splash--pink { left: -5rem; top: 12%; background: #e7a0a5; transform: rotate(24deg); }.paint-splash--mint { right: -4rem; bottom: 12%; background: #9ecbb4; transform: rotate(-18deg); }
.message-layout { align-items: start; }
.letter { border-radius: 5px 22px 6px 19px; }
.letter h2 { color: #674227; }
.letter p:not(.eyebrow) { max-width: 60ch; margin-bottom: 1.8rem; font-family: Nunito, "Trebuchet MS", sans-serif; font-size: clamp(1.05rem, 1.5vw, 1.16rem); line-height: 1.8; }
.letter p strong { color: #bd7182; font-family: Fraunces, Georgia, serif; font-size: 1.35em; font-weight: 600; }
.letter .letter__signature { margin: 2.7rem 0 0; color: #a66c14; font-family: Caveat, cursive; font-size: clamp(1.9rem, 3.1vw, 2.5rem); text-align: right; }
.letter__signature span { color: var(--coral); }
.message-photos { padding-top: 2rem; }
.celebration { margin-top: 4.5rem; }
.sticker-button { padding: 0; border: 0; background: none; cursor: pointer; transition: scale .25s ease; }
.sticker-button { position: relative; }
.sticker-button::after { content: "♡ ♡"; position: absolute; top: 28%; left: 62%; color: #df7f93; font-size: 1.5rem; opacity: 0; pointer-events: none; }
.sticker-button:hover::after { opacity: 1; animation: heart-up 1.7s ease-out infinite; }
.sticker-button:hover { scale: 1.08; }.sticker-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 50%; }
.celebration__button { min-height: 56px; padding: 1rem 2rem; background: linear-gradient(120deg, #b87922, #d89173 55%, #bf758e); box-shadow: 0 10px 24px rgba(148, 85, 40, .26); font-size: 1.08rem; animation: button-pulse 3s ease-in-out infinite; }
.celebration__button:hover { background: linear-gradient(120deg, #9b5c11, #bb7257 55%, #a75c78); }
.celebration__hint { font-size: .95rem; }
.celebration__message { max-width: 26rem; margin: .7rem auto 1rem; color: #785733; font-size: 1rem; line-height: 1.6; }
.celebration__message[hidden] { display: none; }
.celebration__message a { display: inline-block; min-height: 48px; margin: .4rem 0; padding: .65rem 1.2rem; border-radius: 999px; background: #fff6df; color: #79501d; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.celebration__message a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.music-button { min-height: 48px; margin-top: .5rem; padding: .7rem 1.1rem; border: 1px solid #ddb891; border-radius: 999px; background: #fffaf0; color: #785733; cursor: pointer; font: 700 .9rem Nunito, sans-serif; }
.music-button:hover { background: #fff0db; }.music-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.music-button:disabled { opacity: .72; cursor: default; }
.footer { padding-top: 1rem; border-top: 1px solid #e9dcb5; }
.footer span { font-size: .75rem; }

.motion-ready .reveal { opacity: 0; translate: 0 20px; transition: opacity .65s ease, translate .65s ease; }
.motion-ready .reveal.is-visible { opacity: 1; translate: 0 0; }
.sunflower--letter { translate: 0 var(--flower-shift, 0px); }
.message-photo { transform: translateY(var(--photo-shift, 0px)); }
.heart-float { position: fixed; z-index: 21; pointer-events: none; font-size: 1.5rem; animation: heart-up 1.5s ease-out forwards; }
@keyframes title-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes twinkle { 50% { opacity: .35; scale: .7; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes balloon-float { 50% { translate: 7px -22px; rotate: 6deg; } }
@keyframes sunflower-sway { to { rotate: 12deg; } }
@keyframes button-pulse { 50% { box-shadow: 0 10px 30px rgba(148, 85, 40, .38); scale: 1.025; } }
@keyframes heart-up { to { transform: translateY(-90px) rotate(22deg); opacity: 0; } }

@media (max-width: 760px) {
  .hero__inner { padding-top: 5rem; padding-bottom: 6rem; }
  .hero h1 { font-size: clamp(3.6rem, 13.5vw, 6rem); }
  .balloon { width: 46px; height: 59px; opacity: .72; }.balloon::after { height: 44px; }
  .balloon--left { left: -1rem; top: 20%; }.balloon--right { right: -1rem; top: 56%; }
  .sparkle--one { left: 8%; top: 9%; }.sparkle--two { right: 9%; bottom: 16%; }
  .wish-section { padding-bottom: 3rem; }.garland { margin-bottom: 2.8rem; }.garland span { height: 29px; }
  .message-photos { order: 0; padding-top: 0; }
  .letter { padding: 3rem 1.6rem 2.4rem; }
  .letter p:not(.eyebrow) { line-height: 1.75; }
  .message-photo--paint { width: 39%; }
  .message-photo--singing { width: 72%; }
  .message-photo--portrait { width: 70%; margin-top: -.5rem; }
}
@media (max-width: 480px) {
  .hero__inner { padding-top: 4.6rem; }
  .hero h1 { font-size: clamp(3.2rem, 13.2vw, 4.6rem); }
  .hero h1 em { font-size: 1.16em; }
  .baby-photo { width: min(88%, 320px); }
  .wish-section h2 { font-size: 2rem; }
  .letter-section { padding-top: 2.5rem; }
  .letter { box-shadow: 7px 10px 0 #f8edc8; }
  .message-photos { width: min(92%, 350px); }
  .celebration__button { width: min(100%, 20rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 span:not(.title-star), .hero h1 em, .sunflower--hero-left, .sunflower--hero-right, .balloon, .sparkle, .intro-cursor, .celebration__button { animation: none; }
  .motion-ready .reveal { opacity: 1; translate: none; transition: none; }
  .sticker-button:hover::after { animation: none; }
}
