@charset "UTF-8";

/* A little birthday scrapbook, floating in butter-yellow and strawberry pink. */
:root {
  --cream: #fff9e8;
  --paper: #fffdf6;
  --pink: #ffb4cd;
  --rose: #d65b87;
  --rose-dark: #9b4265;
  --butter: #ffe38f;
  --ink: #745349;
  --muted: #946e69;
  --line: #f0d4ad;
}

body {
  background-color: #fff2bd;
  background-image: radial-gradient(ellipse at 2% 0%, #ffd7e5 0, transparent 46%),
    radial-gradient(ellipse at 100% 60%, #ffdfec 0, transparent 45%),
    radial-gradient(circle, #e8b86c50 1.2px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  background-attachment: fixed;
  padding: 20px 0 32px;
}

.site-header, main, .site-footer {
  width: calc(100% - 140px);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  border: 2px solid #efc493;
  border-bottom: 2px dashed #efc5c9;
  border-radius: 30px 30px 0 0;
  background: #fffcf1;
}
.header-inner { padding: 0 30px; gap: 20px; }
.brand-name { color: #b55877; }
.brand small { color: #957568; }
.desktop-nav { color: #97655e; gap: 20px; }
.header-wish { background: #ffe7ed; border-color: #eda0bd; }
main {
  border-left: 2px solid #efc493;
  border-right: 2px solid #efc493;
  background: #fff9e8;
  box-shadow: 12px 0 0 #f0c76a20;
  overflow: hidden;
}
.site-footer {
  border: 2px solid #efc493;
  border-top: 2px dashed #edc4c4;
  border-radius: 0 0 30px 30px;
  background: #fff6ce;
  padding-bottom: 110px;
  box-shadow: 10px 12px 0 #f0c76a20;
}
.page-sprinkles { opacity: .35; }
.page-sprinkles > span { color: #dca963; }
.section { padding: 74px 38px 80px; }
.section-heading h2, .wish-copy h2 { color: #9d6554; }
.section-heading em, .wish-copy em { color: #c4557c; }
.section-heading p, .wish-copy > p { color: #8d6a61; }
.section-kicker {
  color: #a45b65;
  background: #fff5d2;
  border-color: #e9c17e;
}
.button-primary {
  color: #76334f;
  background: #ffb3cb;
  border-color: #df7e9e;
  box-shadow: 0 4px 0 #d57a98;
}
.button-primary:hover { background: #ffbfd2; box-shadow: 0 7px 0 #d57a98; }
.button-quiet { color: #995675; border-color: #e9a0ba; background: #fff7d7; }
.button-quiet:hover { background: #ffe9be; }
.hero-balloon, .hero-cloud, .hero-confetti, .birthday-bunting,
.bow-sticker, .kitty-sticker, .doodle-heart, .sticker-label,
.hero-sticker, .tape, .birthday-seal, .cat-stamp, .orbit-note,
.scrapbook-corner, .gift-sticker, .section-doodle, .chapter-sticker {
  pointer-events: none;
}

/* Every little background star is a song. Only the stars receive pointer input. */
.music-background {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.music-background .music-stars {
  position: absolute;
  inset: 100px 0 110px;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  gap: 0;
  overflow: visible;
  pointer-events: none;
}
.music-background .music-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 58px;
  height: 58px;
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}
.music-background .star-art {
  width: 52px;
  height: 52px;
  margin: 0;
  filter: drop-shadow(0 3px 0 #ca975c35);
}
.music-background .star-halo {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  background: #ffdb7a25;
  border-color: #e5a94f;
  box-shadow: 0 0 18px #ffcf7845;
}
.music-background .music-star.is-selected .star-halo {
  transform: translate(-50%, -50%);
  opacity: .75;
}
.music-background .music-star.is-playing .star-halo {
  opacity: 1;
  animation: backgroundStarHalo 2s ease-in-out infinite;
}
.music-background .music-star.is-playing .star-art {
  filter: drop-shadow(0 0 8px #f3aa60b3);
  animation: backgroundStarDance 2s ease-in-out infinite;
}
.music-background .music-star:hover .star-art {
  animation: none;
  transform: rotate(-9deg) scale(1.12);
  filter: drop-shadow(0 4px 0 #d1947133);
}
.music-background .star-number { display: none; }
.music-background .music-star .star-song {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  right: auto;
  display: block;
  width: max-content;
  max-width: min(220px, calc(100vw - 90px));
  padding: 7px 12px;
  margin: 0;
  color: #874f63;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .3px;
  white-space: nowrap;
  text-shadow: none;
  background: #fff7d9;
  border: 1.5px solid #e8a5b7;
  border-radius: 11px;
  box-shadow: 3px 4px 0 #efb7bc4d;
  transform: translateY(-50%) translateX(-5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 4;
}
.music-background .star-right .star-song {
  right: calc(100% + 8px);
  left: auto;
  transform: translateY(-50%) translateX(5px);
}
.music-background .music-star:hover .star-song,
.music-background .music-star:focus .star-song,
.music-background .music-star:focus-visible .star-song {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.music-background .music-star:focus-visible { outline-color: #c76b91; outline-offset: 3px; }
.music-background.is-hinting .star-art { animation: backgroundStarHint .65s ease-in-out 3; }

/* Reliable photo frames: the intrinsic HTML height can never stretch these photos. */
.hero {
  background-color: #fff3bf;
  background-image: linear-gradient(90deg, #f4c99e3b 1px, transparent 1px),
    linear-gradient(#f4c99e3b 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-inner {
  min-height: 0;
  padding: 110px 36px 34px;
  grid-template-columns: .93fr 1.07fr;
  gap: 26px;
}
.hero-copy { min-width: 0; padding: 0 0 12px; }
.birthday-overline { font-size: 12px; letter-spacing: 1.5px; color: #a56851; }
.hero-name {
  font-size: clamp(54px, 5.4vw, 74px);
  color: #e27196;
  -webkit-text-stroke-color: #fffdf2;
  text-shadow: 2px 5px 0 #b56976, 4px 6px 0 #b56976;
}
.hero-line:first-child { color: #a37653; font-size: 21px; letter-spacing: 3px; }
.hero-line:last-child {
  font-size: clamp(42px, 4.4vw, 58px);
  color: #d96b8b;
  -webkit-text-stroke-color: #fffdf2;
  text-shadow: 2px 4px 0 #b87b64;
}
.hero-message { color: #906d57; }
.hero-meta { color: #9c795c; }
.hero-date { color: #a06459; border-color: #d9ad69; background: #fffaf0; box-shadow: 3px 3px 0 #f5d99c; }
.hero-collage {
  display: grid;
  grid-template-columns: 1fr .76fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 0;
  padding: 56px 10px 67px;
  margin: 0;
  justify-self: center;
}
.hero-collage::before {
  inset: 24px 0 20px;
  width: auto;
  height: auto;
  border-color: #fffaf2;
  background: #ffd8df;
  transform: rotate(3deg);
  border-radius: 44% 48% 40% 45%;
}
.hero-collage .polaroid {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  background: #fffdf4;
  border-color: #edbdbe;
  box-shadow: 5px 7px 0 #d79b9d2b, 0 10px 22px #99723b16;
}
.hero-collage .hero-photo-main { grid-column: 1; grid-row: 1; transform: rotate(-4deg); padding: 10px 10px 0; z-index: 2; }
.hero-collage .hero-photo-small { grid-column: 2; grid-row: 1; transform: translateY(35px) rotate(5deg); padding: 8px 8px 0; z-index: 2; }
.hero-collage .polaroid img { width: 100%; height: auto; aspect-ratio: auto; }
.hero-image-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff9e8;
  border-radius: 3px;
  overflow: hidden;
}
.hero-collage .hero-image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-collage .hero-photo-main figcaption { min-height: 47px; font-size: 12px; line-height: 1.7; letter-spacing: .1px; padding: 9px 0; color: #986e60; }
.hero-collage .hero-photo-small figcaption { min-height: 40px; font-size: 11px; line-height: 1.7; padding: 8px 0; color: #a05e76; }
.bow-sticker { width: 74px; top: 17px; left: 1px; transform: rotate(-10deg); }
.hero-collage .kitty-sticker { width: 58px; left: auto; right: 3px; top: auto; bottom: 9px; transform: rotate(7deg); }
.hero-collage .cat-stamp { width: 79px; left: 8px; bottom: 0; transform: rotate(-7deg); }
.hero-collage .cat-stamp img { width: 55px; height: 55px; border-width: 4px; }
.hero-collage .cat-stamp span { font-size: 9px; margin-top: 4px; padding: 1px 5px; }
.hero-collage .birthday-seal { left: auto; right: 88px; bottom: 0; width: 58px; height: 58px; outline-width: 3px; background: #ffe699; }
.birthday-seal > span { font-size: 23px; }
.birthday-seal small { font-size: 7px; letter-spacing: 0; margin-top: 3px; }
.hero-collage .orbit-note { top: 8px; right: 9px; font-size: 10px; padding: 4px 9px; }
.hero-collage .hero-sticker-love { top: auto; left: 95px; bottom: 14px; padding: 3px 7px; font-size: 10px; transform: rotate(2deg); }
.hero-collage .hero-sticker-day { top: 33px; right: 5px; padding: 4px 8px; font-size: 10px; }
.hero-collage .sticker-label, .hero-collage .doodle-heart, .hero-collage .tape { display: none; }
.hero-bottom { gap: 20px; padding-bottom: 34px; color: #a67b53; font-size: 9px; letter-spacing: .7px; }
.hero-bottom > a { background: #fffdf3; color: #a25c68; }
.hero-balloon { opacity: .8; }
.balloon-pink { right: -25px; }
.balloon-yellow { left: -25px; }
.happy-ribbon { background: #ffe5e7; border-color: #edb9bd; color: #a67c49; font-size: 12px; min-height: 60px; gap: 26px; }

/* The rest of the birthday scrapbook follows the same sunny palette. */
.album {
  background-color: #fff7d4;
  background-image: radial-gradient(#e8ce863d 1px, transparent 1px);
  border-top-color: #eed294;
}
.album .section-heading h2 { color: #a67d42; }
.album .section-heading em { color: #c46b86; }
.album .section-kicker { color: #986c3d; border-color: #dfbc70; }
.album-toolbar { border-color: #e8cf94; }
.album-tab { color: #97703f; border-color: #e8d4a3; background: #fffdf3; }
.album-tab[aria-selected="true"] { color: #773c53; border-color: #df92ad; background: #ffc1d3; box-shadow: 0 3px 0 #dd9ab0; }
.album-note { color: #967543; }
.memory-card { border-color: #e8d2ad; box-shadow: 4px 5px 0 #e8c97835; }
.memory-caption h3 { color: #97655e; }
.memory-caption p { color: #887065; }
.memory-tag { color: #a06462; background: #ffeddf; }
.scrapbook-corner { background: #ffe6ee; color: #a76276; outline-color: #e5b1ba; }
.timeline-section { background: #fff0e4; }
.timeline-item { background: #fffdf3; border-color: #f0c39e; }
.timeline-item:nth-child(2) { background: #fff4f4; border-color: #efb7c6; }
.timeline-item:nth-child(3) { background: #fff8db; border-color: #e7c581; }
.timeline-marker { border-color: #fff0e4; }
.timeline-item:nth-child(2) .timeline-marker { background: #eab2bf; }
.timeline-item:nth-child(3) .timeline-marker { background: #e6bf69; }
.chapter-sticker { background: #ffe49c; color: #91663a; outline-color: #dfb764; }
.timeline-date { color: #a76a58; }
.timeline-content h3 { color: #9b6558; }
.timeline-content p, .story-footnote { color: #8d6b5e; }
.wish-section {
  background-color: #ffe4e4;
  background-image: linear-gradient(90deg, #fff4cc60 50%, transparent 50%),
    linear-gradient(#fff4cc60 50%, transparent 50%);
  border-color: #f0bdc2;
}
.wish-copy > p { color: #91665d; }
.wish-status { color: #995868; background: #fff6c9; border-color: #deb88c; }
.cake-banner { background: #ffeaa8; color: #a3694a; }
.cake-button::before { background: #fff8cf; border-color: #edc49b; }
.tiny-surprises { background: #fff5d1; }
.tiny-surprises .section-heading h2 { color: #a17a42; }
.surprise-button:nth-child(2) { background: #fff0b2; border-color: #e9cd7e; box-shadow: 0 5px 0 #e4bf6d; }
.surprise-button:nth-child(2) strong { color: #9a713c; }
.surprise-button:nth-child(3) { background: #ffe1e8; border-color: #ecb5c6; box-shadow: 0 5px 0 #e5a8bc; }
.surprise-button:nth-child(3) strong { color: #a45d78; }
.letter-section { background: #fff0f0; border-color: #edbec9; }
.letter-section .section-heading h2 { color: #af6a7c; }
.letter-scan-gallery { display: grid; gap: 18px; padding-top: 20px; }
.letter-scan-gallery img { width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
.letter-paper { background-color: #fffaf0; }
.site-footer p, .site-footer small { color: #98704d; }
.site-footer > a { color: #a25e6c; background: #fff9e9; border-color: #e7bf98; }

/* A keepsake ticket, with a real, independent high-resolution download. */
.gift-section {
  background: #fff5d2;
  background-image: radial-gradient(circle at 7% 20%, #ffd7dc66 0 110px, transparent 111px),
    radial-gradient(circle at 94% 83%, #ffe39a88 0 110px, transparent 111px);
  border-bottom: 2px dashed #eccf94;
}
.gift-section .section-heading h2 { color: #ad7544; }
.gift-section .section-heading em { color: #cc6785; }
.gift-layout { display: flex; flex-direction: column; gap: 30px; }
.gift-ticket-preview { width: 100%; max-width: 930px; margin: 0 auto; transform: rotate(-1deg); }
.gift-ticket-preview > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  filter: drop-shadow(0 10px 0 #e3b47d33) drop-shadow(0 15px 22px #a56b4915);
}
.gift-ticket-preview figcaption { color: #a17856; text-align: center; font-size: 11px; line-height: 1.9; margin-top: 17px; }
.gift-copy { width: 100%; max-width: 820px; margin: auto; text-align: center; }
.gift-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #ffe4ec;
  border: 1.5px dashed #e6a2b6;
  border-radius: 99px;
  color: #a15771;
  font-size: 11px;
  transform: rotate(-2deg);
}
.gift-copy h3 { color: #af6a58; font-family: var(--round); font-size: 25px; line-height: 1.7; margin-top: 14px; }
.gift-copy > p { font-size: 13px; color: #8e6d5e; line-height: 2; margin-top: 10px; }
.gift-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 24px 0; }
.gift-rules > div { padding: 14px 10px; background: #fffdf3; border: 1.5px dashed #e6c388; border-radius: 16px; }
.gift-rules dt { color: #a68158; font-size: 11px; }
.gift-rules dd { color: #a46161; font-family: var(--round); font-size: 17px; font-weight: 600; line-height: 1.8; margin: 4px 0 0; }
.gift-downloads { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 12px; }
.gift-downloads .button { min-height: 49px; padding-left: 27px; padding-right: 27px; font-size: 13px; }
.gift-copy .gift-note { color: #9b7c60; font-size: 11px; margin-top: 15px; }
.music-dock { background: #fff9eaf5; border-color: #e7bc87; }
.music-toggle { background: #ffb9d0; border-color: #fff3da; color: #8a4662; }
.music-track-info > span { color: #9e5969; }
.music-track-info > small { color: #956f5c; }
.music-map-link, #musicBackgroundHint { background: #ffeaa0; color: #b38b3f; }

@keyframes backgroundStarHalo {
  0%, 100% { opacity: .6; box-shadow: 0 0 15px #ffc55e55; }
  50% { opacity: 1; box-shadow: 0 0 26px #ffca6b88; }
}
@keyframes backgroundStarDance {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.12); }
}
@keyframes backgroundStarHint {
  0%, 100% { transform: scale(.9); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 10px #eaae50); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-music-note { margin-top: 14px; color: #9b734f; font-size: 11px; line-height: 1.9; max-width: 360px; }
.show-music-stars .music-background .star-art { animation: backgroundStarHint .7s ease-in-out 3; }

@media (max-width: 1100px) {
  .site-header, main, .site-footer { width: calc(100% - 100px); }
  .header-inner { padding: 0 24px; gap: 16px; }
  .desktop-nav { gap: 15px; }
  .hero-inner { padding: 102px 28px 30px; gap: 19px; }
  .hero-name { font-size: 61px; letter-spacing: 2px; }
  .hero-line:first-child { font-size: 18px; letter-spacing: 2px; }
  .hero-line:last-child { font-size: 45px; }
  .hero-actions { gap: 11px; }
  .hero-actions .button { font-size: 11px; padding-left: 15px; padding-right: 15px; }
  .section { padding-left: 29px; padding-right: 29px; }
  .music-background .music-star { width: 46px; height: 46px; }
  .music-background .star-art { width: 42px; height: 42px; }
  .music-background .star-halo { width: 48px; height: 48px; }
  .hero-collage { grid-template-columns: 1fr .74fr; gap: 12px; padding-left: 4px; padding-right: 4px; }
  .hero-collage .hero-photo-main figcaption { font-size: 11px; }
  .hero-collage .hero-photo-small figcaption { font-size: 10px; }
  .hero-collage .hero-sticker-love { left: 87px; font-size: 9px; }
  .hero-collage .birthday-seal { right: 65px; }
  .hero-collage .kitty-sticker { width: 48px; }
  .hero-bottom { gap: 12px; }
  .hero-bottom > span { font-size: 8px; }
}

@media (max-width: 900px) {
  .hero-inner { display: flex; flex-direction: column; padding: 103px 30px 23px; gap: 18px; }
  .hero-copy { width: 100%; text-align: center; padding: 0; }
  .eyebrow, .hero-actions { justify-content: center; }
  .hero-message, .hero-music-note { margin-left: auto; margin-right: auto; }
  .hero-name { font-size: 69px; }
  .hero-line:first-child { font-size: 21px; }
  .hero-line:last-child { font-size: 50px; }
  .hero-collage { width: 100%; max-width: 470px; padding: 46px 10px 73px; grid-template-columns: 1fr .76fr; gap: 18px; }
  .hero-collage .hero-photo-main figcaption { font-size: 12px; }
  .hero-collage .hero-photo-small figcaption { font-size: 11px; }
  .hero-collage .hero-sticker-love { left: 99px; font-size: 10px; }
  .hero-collage .birthday-seal { right: 85px; }
  .hero-collage .kitty-sticker { width: 58px; }
  .hero-bottom > span { display: none; }
  .timeline-section .section-wrap { display: block; }
  .timeline-section .section-heading { text-align: center; padding-top: 0; }
  .timeline-section .section-heading p { max-width: none; }
  .timeline { margin-top: 30px; }
  .wish-layout { gap: 25px; }
  .wish-copy h2 { font-size: 29px; }
  .cake-button { width: 280px; height: 270px; }
  .gift-layout { gap: 25px; }
  .gift-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-copy h3 { font-size: 23px; }
  .section-heading h2 { font-size: 30px; }
}

@media (max-width: 700px) {
  body { padding-top: 12px; padding-bottom: 20px; }
  .site-header, main, .site-footer { width: calc(100% - 70px); }
  .site-header { height: 76px; border-radius: 23px 23px 0 0; }
  .header-inner { padding: 0 13px; gap: 8px; }
  .brand { grid-template-columns: 33px auto; column-gap: 6px; }
  .brand-mark, .brand-mark svg { width: 33px; height: 33px; }
  .brand-name { font-size: 17px; letter-spacing: 1px; }
  .brand small { font-size: 7px; letter-spacing: .15px; }
  .header-wish { font-size: 10px; padding: 7px 8px; gap: 4px; }
  .header-wish span { font-size: 13px; }
  main { box-shadow: 6px 0 0 #f0c76a20; }
  .site-footer { border-radius: 0 0 23px 23px; box-shadow: 6px 8px 0 #f0c76a20; }
  .section { padding: 54px 19px 62px; }
  .section-heading h2, .wish-copy h2 { font-size: 26px; letter-spacing: .5px; line-height: 1.7; }
  .section-heading p { font-size: 12px; line-height: 2; }
  .section-kicker { font-size: 9px; letter-spacing: .6px; }
  .music-background .music-stars { inset: 105px 0 108px; }
  .music-background .music-star { width: 36px; height: 36px; }
  .music-background .music-star.star-left { left: 18px; }
  .music-background .music-star.star-right { left: calc(100% - 18px); }
  .music-background .star-art { width: 32px; height: 32px; }
  .music-background .star-halo { width: 35px; height: 35px; }
  .music-background .music-star .star-song { font-size: 11px; padding: 5px 9px; left: calc(100% + 4px); border-radius: 9px; }
  .music-background .music-star.star-right .star-song { left: auto; right: calc(100% + 4px); }
  .hero-inner { padding: 88px 18px 22px; gap: 13px; }
  .birthday-overline { font-size: 10px; letter-spacing: .2px; }
  .hero-name { font-size: clamp(43px, 10vw, 65px); letter-spacing: 1px; -webkit-text-stroke-width: 6px; }
  .hero-line:first-child { font-size: 16px; letter-spacing: 2px; }
  .hero-line:last-child { font-size: clamp(35px, 8.6vw, 46px); letter-spacing: 2px; -webkit-text-stroke-width: 4px; }
  .hero-message { font-size: 12px; line-height: 2; margin-top: 20px; }
  .hero-meta { font-size: 10px; letter-spacing: .1px; }
  .hero-date { font-size: 10px; padding: 4px 10px; letter-spacing: .7px; }
  .hero-actions { gap: 11px; margin-top: 23px; }
  .hero-actions .button { min-height: 44px; font-size: 11px; padding-left: 14px; padding-right: 14px; }
  .hero-music-note { font-size: 10px; line-height: 1.9; max-width: 240px; }
  .hero-collage { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 320px; width: 100%; padding: 41px 11px 77px; }
  .hero-collage::before { inset: 29px -2px 22px; border-radius: 24% 22% 26% 19%; }
  .hero-collage .hero-photo-main { grid-column: 1; grid-row: 1; width: 91%; max-width: 250px; justify-self: start; transform: rotate(-3deg); }
  .hero-collage .hero-photo-small { grid-column: 1; grid-row: 2; width: 76%; max-width: 195px; justify-self: end; transform: rotate(4deg); }
  .hero-collage .hero-photo-main figcaption { font-size: 11px; padding: 8px 0; min-height: 43px; }
  .hero-collage .hero-photo-small figcaption { font-size: 11px; min-height: 36px; }
  .hero-collage .hero-sticker-day { top: 14px; right: 3px; font-size: 8px; }
  .hero-collage .orbit-note { display: none; }
  .hero-collage .hero-sticker-love { bottom: 17px; left: 88px; font-size: 9px; }
  .hero-collage .birthday-seal { right: 3px; width: 49px; height: 49px; bottom: 7px; }
  .hero-collage .birthday-seal > span { font-size: 20px; }
  .hero-collage .birthday-seal small { font-size: 6px; }
  .hero-collage .kitty-sticker { width: 46px; left: 1px; right: auto; top: auto; bottom: 85px; transform: rotate(-8deg); }
  .hero-collage .cat-stamp { width: 74px; left: 2px; bottom: 0; }
  .hero-collage .cat-stamp img { width: 49px; height: 49px; }
  .hero-collage .cat-stamp span { font-size: 8px; }
  .bow-sticker { top: 9px; left: -2px; width: 62px; }
  .hero-bottom { padding: 0 13px 28px; }
  .hero-bottom > a { font-size: 10px; padding: 7px 12px; }
  .birthday-bunting { gap: 7px; width: 94%; left: 3%; }
  .bunting-flag { width: 25px; height: 41px; font-size: 15px; padding-top: 7px; }
  .hero-balloon { opacity: .45; }
  .balloon-pink { right: -28px; top: 240px; }
  .balloon-yellow { left: -29px; bottom: 490px; }
  .happy-ribbon { font-size: 10px; gap: 18px; min-height: 53px; padding-left: 15px; }
  .photo-wall { column-gap: 13px; padding-left: 0; padding-right: 0; }
  .memory-card { padding-left: 6px; padding-right: 6px; }
  .memory-caption h3, .memory-caption p { font-size: 12px; }
  .memory-caption h3 { line-height: 1.6; }
  .memory-caption p { line-height: 1.8; }
  .memory-tag { font-size: 9px; }
  .album-tabs { gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-tab { font-size: 11px; min-height: 41px; padding: 7px 4px; }
  .album-tab span { font-size: 9px; }
  .scrapbook-corner { right: -4px; font-size: 9px; top: -33px; }
  .timeline { padding-left: 27px; margin-left: 0; }
  .timeline::before { left: 7px; }
  .timeline-marker { left: -31px; width: 23px; height: 23px; font-size: 13px; }
  .timeline-item { padding: 16px 13px; }
  .timeline-date { font-size: 14px; }
  .timeline-content h3 { font-size: 16px; }
  .timeline-content p { font-size: 12px; overflow-wrap: anywhere; }
  .wish-copy > p { max-width: 100%; font-size: 12px; }
  .cake-banner { font-size: 10px; letter-spacing: 1px; padding: 5px 8px; }
  .cake-button { width: 275px; max-width: 100%; height: auto; aspect-ratio: 420 / 400; }
  .cake-button::before { width: 83%; height: 81%; top: 8%; }
  .cake-art { width: 100%; height: auto; }
  .cake-note { font-size: 11px; }
  .gift-sticker { width: 48px; right: -1px; }
  .gift-layout { gap: 24px; }
  .gift-ticket-preview { transform: rotate(-1deg); }
  .gift-ticket-preview > img { height: auto; border-radius: 11px; }
  .gift-ticket-preview figcaption { font-size: 10px; margin-top: 12px; }
  .gift-copy h3 { font-size: 20px; }
  .gift-copy > p { font-size: 12px; }
  .gift-rules { grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
  .gift-rules > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 12px; border-radius: 12px; }
  .gift-rules dd { margin-top: 0; font-size: 15px; }
  .gift-downloads .button { min-height: 47px; padding-left: 19px; padding-right: 19px; font-size: 12px; }
  .surprise-buttons { flex-direction: column; gap: 16px; align-items: stretch; padding: 0 8px; }
  .surprise-button { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; padding: 15px; text-align: left; border-radius: 18px; transform: rotate(-1deg); }
  .surprise-button:nth-child(2) { transform: rotate(1deg); }
  .surprise-button:nth-child(3) { transform: rotate(-1deg); }
  .surprise-icon { grid-row: 1 / 3; grid-column: 1; }
  .surprise-button strong { margin: 0; font-size: 13px; }
  .surprise-button small { margin: 4px 0 0; font-size: 10px; }
  .envelope { width: 100%; height: auto; aspect-ratio: 1.55; }
  .envelope-flap { height: 60%; }
  .envelope-seal { top: 51%; width: 39px; height: 39px; left: calc(50% - 19.5px); font-size: 20px; }
  .envelope::after { font-size: 13px; right: 13px; bottom: 14px; }
  .envelope-card span { font-size: 15px; }
  .envelope-card small { font-size: 8px; }
  .letter-hint { font-size: 10px; }
  .footer-cats { width: 145px; }
  .site-footer { padding-left: 15px; padding-right: 15px; }
  .site-footer p { font-size: 12px; }
  .site-footer small { font-size: 10px; }
  .music-dock { max-width: none; width: calc(100% - 24px); right: 12px; gap: 7px; padding-left: 8px; padding-right: 8px; }
  .music-track-info > small { font-size: 9px; }
  .letter-paper { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 365px) {
  .header-inner { padding-left: 10px; padding-right: 10px; gap: 5px; }
  .brand { grid-template-columns: 29px auto; gap: 5px; }
  .brand-mark, .brand-mark svg { width: 29px; height: 29px; }
  .brand-name { font-size: 16px; }
  .brand small { font-size: 6px; letter-spacing: .05px; }
  .header-wish { font-size: 9px; padding: 6px 7px; gap: 3px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .section-heading h2, .wish-copy h2 { font-size: 23px; }
  .hero-inner { padding-left: 13px; padding-right: 13px; }
  .hero-name { font-size: 42px; }
  .hero-line:first-child { font-size: 15px; letter-spacing: 1px; }
  .hero-line:last-child { font-size: 34px; }
  .hero-meta { font-size: 9px; }
  .hero-collage { padding-left: 5px; padding-right: 5px; }
  .hero-collage .hero-sticker-love { left: 76px; font-size: 8px; }
  .hero-collage .hero-sticker-day { font-size: 7px; }
  .hero-collage .birthday-seal { width: 43px; height: 43px; }
  .hero-collage .birthday-seal > span { font-size: 18px; }
  .hero-collage .birthday-seal small { font-size: 5px; }
  .hero-collage .cat-stamp { width: 65px; }
  .hero-collage .cat-stamp span { font-size: 7px; }
  .photo-wall { column-gap: 10px; }
  .memory-card { padding-left: 5px; padding-right: 5px; }
  .memory-caption { padding-left: 1px; padding-right: 1px; }
  .memory-tag { padding-left: 3px; padding-right: 3px; font-size: 8px; }
  .gift-copy h3 { font-size: 18px; }
  .gift-badge { font-size: 10px; }
  .gift-rules dt { font-size: 10px; }
  .gift-rules dd { font-size: 13px; }
}

@media (max-height: 600px) {
  .music-background .music-stars { top: 82px; bottom: 85px; }
  .music-background .music-star { width: 30px; height: 30px; }
  .music-background .star-art { width: 28px; height: 28px; }
  .music-background .star-halo { width: 31px; height: 31px; }
}
@media (max-height: 420px) {
  .music-background .music-star { width: 26px; height: 26px; }
  .music-background .star-art { width: 24px; height: 24px; }
}
@media (max-height: 520px) {
  .music-background .music-stars { top: 58px; bottom: 84px; }
  .music-background .music-star { width: 28px; height: 28px; }
  .music-background .star-art { width: 26px; height: 26px; }
  .music-background .star-halo { width: 31px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-background .star-art, .music-background .star-halo { animation: none !important; }
}

/* Two untouched handwritten pages, with a separate link to each original. */
.letter-dialog.has-scans {
  width: min(860px, calc(100vw - 24px));
  max-height: 94dvh;
  border-radius: 18px;
}
.letter-dialog.has-scans .letter-paper { padding: 43px 23px 26px; background-image: none; }
.letter-dialog.has-scans .letter-paper > .section-kicker,
.letter-dialog.has-scans .letter-signature { display: none; }
.letter-dialog.has-scans h2 { margin-bottom: 4px; font-size: 25px; }
.letter-scan-hint { color: #88675f; font-size: 11px; line-height: 1.9; padding-right: 20px; }
.letter-dialog.has-scans .letter-scan-gallery { gap: 21px; padding-top: 19px; }
.letter-scan-page { margin: 0; padding: 7px; background: #fff; border: 1px solid #e6d8c8; border-radius: 6px; box-shadow: 0 4px 15px #8d6e5512; }
.letter-scan-link { display: block; cursor: zoom-in; }
.letter-scan-link img { width: 100%; height: auto; max-width: 100%; object-fit: contain; border-radius: 0; }
.letter-scan-page figcaption { color: #987769; text-align: center; font-size: 10px; line-height: 1.8; padding: 9px 0 3px; }
.letter-close-bottom { display: flex; margin: 24px auto 0; min-height: 44px; }
@media (max-width: 700px) {
  .letter-dialog.has-scans .letter-paper { padding: 42px 12px 22px; }
  .letter-dialog.has-scans h2 { font-size: 22px; }
  .letter-scan-page { padding: 4px; }
  .letter-dialog.has-scans .letter-scan-gallery { gap: 16px; }
  .letter-scan-hint { font-size: 10px; padding-right: 0; }
}
