/* V8 — more personal paper keepsakes, without an animated sun or countdown. */

/* Give the names the opening moment; keep the photograph below the typography. */
.hero-content {
  padding-top:calc(env(safe-area-inset-top,0px) + 20px);
}
.hero .names {
  font-size:clamp(4.15rem,16.2vw,5.95rem);
  line-height:.85;
  letter-spacing:-.018em;
  margin-top:.49rem;
}
.hero .names .amp {
  font-size:.43em;
  line-height:.95;
}
.hero .hero-personal { margin-top:.55rem; }
html:not([lang="en"]) .hero .names {
  font-size:clamp(3rem,12.5vw,4.65rem);
  line-height:1.08;
  letter-spacing:0;
}
.hero-portal-arch { background:linear-gradient(160deg,#F7ECE3 0%,#EDE0D5 100%); }

/* A whispered memento from their first date, half-hidden in the scrapbook. */
.first-date-stamp {
  position:absolute;z-index:1;right:0;top:15%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:116px;height:106px;padding:9px 8px;
  border:1px solid rgba(161,115,102,.45);background:#F8EDE1;
  box-shadow:0 9px 15px rgba(94,73,65,.13);
  transform:rotate(13deg);pointer-events:none;opacity:.83;
  color:#8B6867;text-align:center;
}
.first-date-stamp::after {
  content:"";position:absolute;inset:5px;border:1px dotted rgba(147,103,97,.3);
}
.first-date-stamp span {font:600 .48rem/1.3 var(--f-ui);letter-spacing:.12em;}
.first-date-stamp strong {margin:.21rem 0;font:italic 1.6rem/1 var(--f-en);font-weight:400;}
.first-date-stamp small {font:.59rem var(--f-ui);letter-spacing:.06em;}

/* The additional photos emerge like a tucked-away, accordion-folded filmstrip. */
.memory-album {
  position:relative;z-index:5;width:min(100%,31rem);margin:1.05rem auto 0;
  color:#6C4D54;
}
.memory-album-pull {
  position:relative;display:flex;align-items:center;gap:1rem;
  width:min(85%,20.5rem);min-height:5.15rem;margin:0 auto;
  padding:.83rem 1.1rem;border:1px solid #DCC9B6;
  background:linear-gradient(128deg,#FFFEFA,#F8EFE6);
  box-shadow:0 8px 19px rgba(94,72,64,.11),inset 0 0 0 5px rgba(255,255,255,.45);
  transform:rotate(-2deg);list-style:none;cursor:pointer;
  transition:transform .42s ease,box-shadow .42s ease;
}
.memory-album-pull::-webkit-details-marker {display:none;}
.memory-album-pull::before,
.memory-album-pull::after {
  content:"";position:absolute;width:10px;height:10px;border-radius:50%;
  border:1px solid #D5B49C;background:#FAF2E9;
  top:calc(50% - 5px);
}
.memory-album-pull::before {left:-5px;}
.memory-album-pull::after {right:-5px;}
.memory-album-pull:focus-visible {outline:3px solid #AD777E;outline-offset:4px;}
.memory-album-pull:hover {transform:rotate(0deg) translateY(-2px);box-shadow:0 12px 23px rgba(94,72,64,.15);}
.memory-pull-tab {
  display:grid;place-items:center;flex:0 0 2.45rem;height:2.45rem;
  border-radius:50%;border:1px solid rgba(148,101,105,.25);
  background:#F2E2D9;color:#8B5961;font:1.3rem var(--f-en);
  transition:transform .5s ease;
}
.memory-pull-words {display:flex;flex:1;flex-direction:column;align-items:flex-start;text-align:left;}
.memory-pull-words small {font:500 .58rem var(--f-ui);letter-spacing:.12em;text-transform:uppercase;color:#9A7776;}
.memory-pull-words strong {font:italic 1.36rem/1.05 var(--f-en);font-weight:400;color:#744B55;}
.memory-pull-fold {width:13px;height:31px;border-right:1px solid #CDB5A8;border-left:1px solid #E8D6CB;transform:skewY(-16deg);opacity:.8;}
.memory-album[open] .memory-pull-tab {transform:rotate(135deg);}
.memory-album[open] .memory-album-pull {transform:rotate(0);}
.memory-album-inside {
  margin:0 auto;padding:1.55rem 0 1.2rem;
  border:1px solid rgba(193,163,144,.45);border-top:0;
  background:
    linear-gradient(90deg,rgba(225,204,183,.23) 0 1px,transparent 1px) 8px 0/18px 100%,
    linear-gradient(160deg,#FFFDFA,#F4EBE3);
  box-shadow:0 12px 26px rgba(100,71,62,.09);
  animation:revealMemoryAlbum .6s cubic-bezier(.18,.82,.24,1) both;
}
@keyframes revealMemoryAlbum {
  from {opacity:0;transform:perspective(650px) rotateX(-13deg) translateY(-11px);transform-origin:top;}
  to {opacity:1;transform:perspective(650px) rotateX(0) translateY(0);transform-origin:top;}
}
.memory-album-hint {padding:0 1rem .85rem;text-align:center;font:italic 1.05rem/1.2 var(--f-en);color:#9D7D7B;}
.memory-reel {
  display:flex;align-items:stretch;gap:.9rem;
  max-width:100%;padding:.75rem 11% 1.3rem;
  overflow-x:auto;overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;scroll-padding-inline:11%;
  scrollbar-color:#C9AAA0 transparent;scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.memory-reel:focus-visible {outline:2px solid #A47479;outline-offset:-2px;}
.memory-frame {
  position:relative;flex:0 0 min(69vw,270px);margin:0;
  padding:8px 8px 0;background:#FFFCF7;border:1px solid #E0D2C5;
  box-shadow:0 10px 22px rgba(87,64,57,.15);
  scroll-snap-align:center;transform:rotate(-1.2deg);
}
.memory-frame:nth-child(2n) {transform:rotate(1.4deg);}
.memory-frame::before {
  content:"";position:absolute;z-index:2;top:-13px;left:calc(50% - 33px);
  width:66px;height:21px;background:rgba(217,186,159,.61);
  box-shadow:0 2px 2px rgba(99,69,52,.07);transform:rotate(-4deg);
}
.memory-frame:nth-child(2n)::before {transform:rotate(6deg);background:rgba(219,180,177,.54);}
.memory-frame-photo {height:min(52svh,370px);overflow:hidden;background:#EBDDD1;}
.memory-frame img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 45%;}
.memory-frame:nth-child(2) img {object-position:center 65%;}
.memory-frame:nth-child(5) img {object-position:center 62%;}
.memory-frame figcaption {
  display:grid;place-items:center;min-height:51px;padding:.48rem .3rem;
  font:italic 1.29rem/1 var(--f-en);color:#885F66;text-align:center;
}
.memory-album-tail {
  display:flex;justify-content:center;align-items:center;gap:1rem;
  padding:.6rem 1rem 0;color:#9A7975;
  font:600 .54rem var(--f-ui);letter-spacing:.16em;
}
.memory-album-tail i {font:normal 1.26rem var(--f-en);color:#C7A5A0;}

/* The date is an invitation, not a ticking deadline. */
.revealed .date-signed {
  margin:1.45rem auto .15rem;max-width:19ch;
  font:italic clamp(1.42rem,6vw,1.85rem)/1.04 var(--f-en);
  color:#87636B;text-align:center;
}
.revealed .date-signed::after {
  content:"✿";display:block;margin:.67rem auto 0;
  font:1.03rem var(--f-en);color:#BC9693;
}

@media (max-width:390px) {
  .hero .names {font-size:clamp(3.75rem,15.7vw,4.9rem);}
  html:not([lang="en"]) .hero .names {font-size:clamp(2.75rem,11.8vw,3.75rem);}
  .first-date-stamp {right:-.3rem;width:108px;height:98px;}
  .memory-frame {flex-basis:72vw;}
}
@media (max-height:700px) {
  .hero .names {font-size:clamp(3.5rem,14vw,4.15rem);line-height:.85;}
  html:not([lang="en"]) .hero .names {font-size:clamp(2.7rem,11vw,3.5rem);line-height:1.04;}
  .hero-content {padding-top:calc(env(safe-area-inset-top,0px) + 7px);}
  .hero-kicker {margin-top:.3rem;}
  .hero-content .flourish {margin-top:.16rem;}
  .hero .hero-personal {margin-top:.32rem;font-size:1.03rem;}
}
@media (prefers-reduced-motion:reduce) {
  .memory-album-inside {animation:none;}
  .memory-album-pull,.memory-pull-tab {transition:none;}
  .memory-reel {scroll-behavior:auto;}
}
