/* Dedicated ornament lanes keep the handwriting and photos unobstructed. */
.cover-heading{flex-direction:column;gap:10px;text-align:center}
.cover-heading p{width:100%;text-align:center;line-height:1.12}
.cover-doodle-row{display:flex;justify-content:center;align-items:center;gap:25px;min-height:33px;width:100%;color:var(--cherry)}
.cover-doodle-row .icon:nth-child(1){width:31px;height:31px;transform:rotate(-15deg)}
.cover-doodle-row .icon:nth-child(2){width:42px;height:35px;transform:rotate(7deg)}
.cover-doodle-row .icon:nth-child(3){width:22px;height:22px;transform:rotate(16deg)}
.cover-image-wrap{display:flex;flex-direction:column;align-items:center;height:clamp(210px,28svh,255px);margin:12px 0 8px;padding:0 22px}
.cover-sticker{height:calc(100% - 31px);width:100%;flex:1;min-height:0;animation:none!important;transform:none!important}
.cover-aside{position:static;display:block;flex-shrink:0;min-height:27px;line-height:1.2;font-size:21px;margin:4px 0 0;transform:rotate(-4deg);text-align:center}
.cover-image-wrap .floating-heart{width:64px!important;height:43px!important;bottom:58px;right:-9px;transform:rotate(-20deg);stroke-width:1.4}
.cover-image-wrap .cover-spark{width:42px;height:36px;top:38px;left:-7px;transform:rotate(-18deg);stroke-width:1.4}
.cover-names{width:100%;text-align:center;line-height:1.22;margin:8px 0 7px;font-size:clamp(34px,8vw,43px);white-space:normal;overflow-wrap:normal}
.opening-border{padding-top:25px;padding-bottom:23px;border-radius:44% 42% 14px 18px / 18% 17% 2% 2%}
.cover-footnote{display:block;text-align:center;max-width:100%;line-height:1.3}
.hero h2,.desktop-title h1{text-align:center;width:100%}
.hero .scroll-note span{animation:none}
.hero-swoosh{height:25px;display:flex;justify-content:center;align-items:center;width:100%;margin:11px 0 -3px;transform:rotate(-3deg);color:var(--cherry)}
.hero-swoosh .icon{width:155px;height:32px;stroke-width:1.5}
.hero-portrait{height:275px;margin:9px 0 0;display:flex;flex-direction:column;align-items:center}
.hero-portrait>.sticker{height:calc(100% - 27px);min-height:0;flex:1;padding:0 20px}
.portrait-note{position:static;display:block;flex-shrink:0;line-height:1.2;margin:5px 0 0;font-size:22px;transform:rotate(-4deg)}
.hero-note{margin-top:8px;gap:12px}
.hero-note p{margin:13px 0 20px;line-height:1.2}
.star-one{left:1px;top:80px}.star-two{right:0;bottom:63px}
.profile-picture-row{display:flex;align-items:center;justify-content:center;gap:15px;margin:38px 0 18px;min-height:210px}
.profile-picture-row .profile-photo{margin:0;flex-shrink:0}
.profile-picture-row>.portrait-doodle{width:37px;height:62px;color:var(--cherry);stroke-width:1.25}
.bride .portrait-doodle:first-child{transform:rotate(-17deg) translateY(20px)}
.bride .portrait-doodle:last-child{transform:rotate(19deg) translateY(-27px);height:38px}
.groom .portrait-doodle:first-child{width:28px;height:33px;transform:rotate(-13deg) translateY(-18px)}
.groom .portrait-doodle:last-child{transform:rotate(17deg) translateY(19px)}
.profile-note{display:block;max-width:100%;padding:0 10px;margin-top:16px;font-size:21px;line-height:1.45;overflow-wrap:normal}
.profile h3{line-height:1.4}
.couple-connection{display:flex;justify-content:center;align-items:center;gap:15px;margin:30px 0 0;min-height:70px;color:var(--cherry)}
.couple-connection>.icon{width:74px;height:45px;stroke-width:1.5}
.couple-connection>.icon:first-child{transform:rotate(-11deg)}
.couple-connection>.icon:last-child{transform:rotate(6deg)}
.couple-connection .couple-and{margin:0;font-size:62px;line-height:1.2;transform:rotate(-8deg)}
.couple .groom .profile-picture-row{margin-top:20px}
.couple{padding-bottom:44px}
.doodle-divider{display:flex;justify-content:center;align-items:center;gap:13px;max-width:100%;margin:34px auto 0;min-height:66px;color:var(--cherry);pointer-events:none}
.doodle-divider .icon{width:48px;height:57px;stroke-width:1.25;overflow:visible}
.doodle-divider .icon:nth-child(odd){transform:rotate(-11deg) translateY(4px)}
.doodle-divider .icon:nth-child(even){transform:rotate(12deg) translateY(-3px)}
.wildflowers{gap:4px;margin-top:35px;align-items:flex-end;min-height:85px}
.wildflowers .icon:nth-child(1){width:39px;height:70px;transform:rotate(-19deg)}
.wildflowers .icon:nth-child(2){width:43px;height:80px;transform:rotate(6deg)}
.wildflowers .icon:nth-child(3){width:55px;height:49px;transform:rotate(-8deg)}
.wildflowers .icon:nth-child(4){width:42px;height:73px;transform:rotate(13deg)}
.wildflowers .icon:nth-child(5){width:33px;height:61px;transform:rotate(24deg)}
.couple-garden{gap:20px;margin-top:25px;min-height:79px}
.couple-garden .icon:nth-child(1){height:66px;width:44px}
.couple-garden .icon:nth-child(2){width:125px;height:65px;transform:rotate(-4deg)}
.couple-garden .icon:nth-child(3){width:39px;height:72px;transform:rotate(17deg)}
.event-bow{height:33px;display:flex;justify-content:center;align-items:center;margin:0 0 30px}
.event-bow .icon{width:65px;height:50px;transform:rotate(-7deg);stroke-width:1.3}
.event-section .section-heading{margin-bottom:21px}
.event-inner{padding-top:47px;border-radius:47% 44% 15px 19px / 15% 14% 2% 2%}
.event-inner .calendar-art{margin-top:0}
.story-doodles{gap:15px;margin-top:24px;min-height:60px}
.story-doodles .icon:nth-child(1){width:55px;height:54px;transform:rotate(-13deg)}
.story-doodles .icon:nth-child(2){width:106px;height:30px;transform:rotate(3deg)}
.story-doodles .icon:nth-child(3){width:48px;height:45px;transform:rotate(13deg)}
.gallery-doodles{gap:13px;margin-top:20px}
.gallery-doodles .icon:first-child{width:91px;height:51px;transform:rotate(13deg)}
.gallery-doodles .icon:nth-child(2){width:55px;height:53px;transform:rotate(-6deg)}
.gallery-doodles .icon:last-child{width:91px;height:51px;transform:scaleX(-1) rotate(13deg)}
.notes-doodles{gap:30px;justify-content:center;margin-top:30px;min-height:54px}
.notes-doodles .icon:first-child{width:108px;height:58px;transform:rotate(-12deg)}
.notes-doodles .icon:last-child{width:53px;height:53px;transform:rotate(10deg)}
.wishes-title{margin-top:20px}
.closing-garland{width:100%;height:74px;display:flex;align-items:flex-start;justify-content:center;margin:-32px 0 16px}
.closing-garland .icon{width:265px;height:74px;stroke-width:1.25;transform:rotate(-4deg)}
.music-toggle[aria-pressed=true] span{animation:none}
@media(max-width:390px){
 .cover-heading p{font-size:24px}.cover-heading p em{font-size:28px}
 .opening-border{padding:22px 19px 21px}
 .cover-doodle-row{gap:21px;min-height:30px}
 .cover-image-wrap{height:clamp(202px,27svh,232px);padding-inline:18px}
 .cover-names{font-size:36px}
 .hero-portrait{height:251px}.hero h2{font-size:71px}
 .profile-picture-row{gap:10px}.profile-picture-row>.portrait-doodle{width:27px;height:49px}
 .profile-note{padding-inline:0;font-size:20px}
 .couple-garden{gap:12px}.couple-garden .icon:nth-child(2){width:105px}
 .doodle-divider:not(.wildflowers):not(.couple-garden){gap:9px}
 .gallery-doodles .icon:first-child,.gallery-doodles .icon:last-child{width:76px}
}
@media(max-height:730px){
 .opening{min-height:0;justify-content:flex-start;padding-top:16px;padding-bottom:12px}
 .opening-border{padding-top:18px;padding-bottom:17px}
 .cover-heading{gap:6px}.cover-doodle-row{min-height:27px}.cover-doodle-row .icon:nth-child(2){height:29px}
 .cover-heading p{font-size:22px}.cover-heading p em{font-size:26px}
 .cover-image-wrap{height:200px;margin-top:8px;margin-bottom:5px}
 .cover-aside{font-size:19px;min-height:25px}
 .cover-names{font-size:35px;margin-top:6px}
 .recipient{margin:12px 0 14px}
 .cover-footnote{font-size:14px;margin-top:10px}
 .hero-portrait{height:225px}.hero h2{font-size:66px}.hero-swoosh{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.hero-swoosh,.doodle-divider,.profile-picture-row,.couple-connection{transition:none}}

@media (prefers-reduced-motion: no-preference) {
  .ribbon-cherry--animated {
    transform-origin: 51% 25%;
    animation: cherry-sway 1s 1.2s ease-in-out both;
  }
  .ribbon-cherry--animated .cherry-draw {
    stroke-dasharray: 1;
    animation: sketch-cherry 650ms ease-out both;
  }
  .ribbon-cherry--animated .cherry-skin {
    animation: sketch-cherry 580ms 300ms ease-out both, cherry-color 310ms 620ms ease-out both;
  }
  .ribbon-cherry--animated .cherry-shine { animation-delay: 660ms; }
  .ribbon-cherry--animated .cherry-accent { animation-delay: 530ms; }
}
@keyframes sketch-cherry {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes cherry-color {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}
@keyframes cherry-sway {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(5deg); }
  68% { transform: rotate(-3deg); }
}
.opening { overflow-y: auto; }
@media (max-height: 700px) {
  .opening { min-height: 0; justify-content: safe center; }
  .opening-border { flex-shrink: 0; }
}

.childhood-card {
  position: relative;
  margin: 0;
  padding: 6px;
  border: 1px solid #d9b4b1;
  background: #fffdf6;
  box-shadow: 3px 5px 0 #85132b19;
}
.childhood-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-image-wrap {
  height: clamp(118px, 24svh, 185px);
  margin: 9px 0 6px;
  justify-content: center;
}
.cover-cutout {
  width: min(80%, 216px);
  height: 100%;
  object-fit: contain;
}
.desktop-cutout-wrap {
  width: min(72%, 305px);
  height: min(35svh, 280px);
  transform: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.desktop-cutout { height: 100%; }

.ribbon-cherry--animated {
  position: absolute;
  z-index: 2;
  right: max(2%, calc((100% - 277px) / 2));
  bottom: -3px;
  width: clamp(49px, 18%, 67px);
  overflow: visible;
  color: var(--cherry);
  pointer-events: none;
}
.cherry-draw { fill: none; stroke: currentColor; stroke-width: 2; }
.cherry-accent { stroke-width: 1.4; }
.cherry-skin { fill: #bd2846; }
.cherry-shine { stroke: var(--cream); stroke-width: 1.6; }

.hero-portrait { height: clamp(195px, 33svh, 265px); }
.hero-cutout {
  width: min(82%, 284px);
  height: 100%;
  object-fit: contain;
}
.hero .hero-swoosh .icon { width: min(55%, 205px); }
.hero-portrait .portrait-star { z-index: 2; }

.profile-picture-row {
  min-height: 0;
  margin-top: 28px;
}
.profile-picture-row .profile-photo {
  width: clamp(138px, 45vw, 185px);
  height: auto;
  aspect-ratio: 5 / 6;
  padding: 0;
}
.profile-picture-row .profile-photo img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.gallery-childhood {
  max-width: 270px;
  margin: 0 auto;
  padding: 9px 9px 12px;
  transform: rotate(-3deg);
}
.gallery-childhood img { height: auto; }
.gallery-childhood figcaption {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.gift-section .section-heading { margin-bottom: 12px; }
.gift-cards {
  display: grid;
  gap: 14px;
  max-width: 340px;
  margin: 24px auto 0;
}
.gift-card {
  padding: 14px clamp(14px, 5vw, 22px) 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf6;
  box-shadow: 0 3px 0 #a516320d;
  text-align: left;
}
.gift-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--line);
  color: var(--cherry);
}
.gift-card-heading h3 {
  margin: 0;
  font: 400 27px/1.2 var(--display);
}
.gift-card-heading .icon { width: 20px; height: 20px; }
.gift-account {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(19px, 5.5vw, 23px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.gift-holder {
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.4;
}
.gift-card .secondary {
  width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  font-size: 13px;
}
@media (max-height: 620px) {
  .cover-image-wrap { height: clamp(96px, 21svh, 130px); }
}
