@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f8eee7;
  --paper-light: #fffaf5;
  --paper-dark: #f0ddd2;
  --rose: #cf778d;
  --rose-deep: #a74768;
  --berry: #77344f;
  --wine: #53293f;
  --ink: #503947;
  --muted: #8d6b78;
  --gold: #b48b57;
  --gold-soft: #d7b98b;
  --line: rgba(138, 81, 92, .2);
  --serif: "Bodoni 72", "Didot", "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Apple Chancery", cursive;
  --shadow-soft: 0 22px 68px rgba(105, 53, 73, .14);
  --shadow-card: 0 13px 32px rgba(82, 44, 61, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% 5%, rgba(250, 212, 207, .55), transparent 32rem),
    radial-gradient(ellipse at 89% 25%, rgba(232, 202, 190, .34), transparent 34rem),
    linear-gradient(155deg, #fbf3ed 0%, #f6e8df 48%, #f4e5dd 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
::selection { color: #fffaf4; background: var(--rose-deep); }

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    radial-gradient(rgba(122, 74, 82, .18) .45px, transparent .75px),
    radial-gradient(rgba(255, 255, 255, .8) .4px, transparent .8px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 2px 4px;
  mix-blend-mode: multiply;
}
.site-shell { position: relative; z-index: 1; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 99px;
  color: white;
  background: var(--berry);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 12px 16px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-petals {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.floating-petal {
  position: absolute;
  bottom: -36px;
  display: block;
  color: rgba(181, 91, 117, .55);
  font-family: var(--serif);
  line-height: 1;
  animation: drift-up var(--duration, 11s) linear forwards;
  text-shadow: 0 2px 8px rgba(143, 65, 93, .13);
}
.floating-petal.petal-a { left: 8%; font-size: 18px; --duration: 13s; }
.floating-petal.petal-b { left: 24%; font-size: 12px; --duration: 10s; }
.floating-petal.petal-c { left: 42%; font-size: 22px; --duration: 15s; }
.floating-petal.petal-d { left: 61%; font-size: 15px; --duration: 11s; }
.floating-petal.petal-e { left: 78%; font-size: 20px; --duration: 14s; }
.floating-petal.petal-f { left: 91%; font-size: 13px; --duration: 12s; }
@keyframes drift-up {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .8; }
  55% { transform: translate3d(26px, -52vh, 0) rotate(110deg); }
  90% { opacity: .6; }
  100% { transform: translate3d(-18px, -110vh, 0) rotate(235deg); opacity: 0; }
}

/* The first reveal: a paper envelope with a lifted, dimensional flap. */
.opening[hidden] { display: none; }
.opening {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 34px 22px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 252, 246, .84), transparent 48%),
    radial-gradient(ellipse at 6% 100%, rgba(224, 164, 165, .36), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(208, 143, 152, .28), transparent 36%),
    linear-gradient(140deg, #f8ece3, #f5e2dc 55%, #f6ebe1);
  transition: opacity .75s cubic-bezier(.22,.75,.25,1), transform .9s cubic-bezier(.22,.75,.25,1), filter .8s ease;
}
.opening::before,
.opening::after {
  position: absolute;
  content: "";
  inset: 17px;
  z-index: -1;
  border: 1px solid rgba(166, 122, 85, .44);
  border-radius: 3px;
  pointer-events: none;
}
.opening::after { inset: 23px; border-color: rgba(166, 122, 85, .22); }
.opening.is-leaving { opacity: 0; transform: scale(1.035); filter: blur(5px); pointer-events: none; }
.opening-frame { position: absolute; inset: 38px; pointer-events: none; }
.opening-star, .opening-flower {
  position: absolute;
  color: rgba(169, 123, 83, .72);
  font-family: var(--serif);
  animation: twinkle 3s ease-in-out infinite alternate;
}
.opening-star { font-size: 20px; }
.star-one { top: 14%; left: 15%; }
.star-two { top: 22%; right: 17%; font-size: 15px; animation-delay: .9s; }
.star-three { bottom: 18%; right: 22%; font-size: 16px; animation-delay: 1.6s; }
.opening-flower { font-size: 34px; color: rgba(177, 103, 123, .55); }
.flower-one { left: 8%; bottom: 14%; transform: rotate(-13deg); }
.flower-two { top: 11%; right: 8%; font-size: 25px; transform: rotate(17deg); }
@keyframes twinkle { from { opacity: .45; transform: scale(.92) rotate(-6deg); } to { opacity: 1; transform: scale(1.12) rotate(7deg); } }
.opening-content {
  width: min(100%, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 12px 0;
}
.opening-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--berry);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.opening-kicker span { width: 26px; height: 1px; background: var(--gold); }
.opening-mascot {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 93px;
  margin: -7px 0 -8px;
  animation: mascot-bob 3.2s ease-in-out infinite;
}
.opening-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot-body { transform-box: fill-box; transform-origin: 50% 75%; animation: mascot-breathe 2.8s ease-in-out infinite; }
.mascot-paw { transform-box: fill-box; transform-origin: 5% 90%; animation: mascot-wave 1.9s ease-in-out infinite; }
.mascot-floating-heart { transform-box: fill-box; transform-origin: 50% 50%; animation: mascot-heartbeat 1.45s ease-in-out infinite; }
.mascot-star { animation: twinkle 2.6s ease-in-out infinite alternate; }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes mascot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes mascot-wave { 0%, 100% { transform: rotate(0); } 40%, 58% { transform: rotate(-10deg); } }
@keyframes mascot-heartbeat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.14); } 32% { transform: scale(1); } }
.envelope-stage { width: 100%; height: clamp(218px, 36vh, 310px); display: grid; place-items: center; perspective: 1000px; }
.envelope {
  position: relative;
  width: clamp(250px, 52vw, 390px);
  aspect-ratio: 1.48;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 24px rgba(105, 53, 73, .16));
  animation: envelope-float 5.8s ease-in-out infinite;
}
@keyframes envelope-float { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-8px) rotate(.7deg); } }
.envelope-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -15px;
  height: 26px;
  border-radius: 50%;
  background: rgba(91, 48, 68, .2);
  filter: blur(14px);
}
.envelope-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(158, 116, 92, .35);
  border-radius: 9px;
  background: linear-gradient(145deg, #f0d6cc, #e9c9c5 50%, #efd8cf);
  box-shadow: inset 0 0 0 7px rgba(255, 248, 237, .4);
}
.letter-peek {
  position: absolute;
  z-index: 2;
  left: 12%;
  right: 12%;
  top: 5%;
  height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(177, 138, 95, .4);
  border-radius: 4px 4px 2px 2px;
  color: var(--berry);
  background:
    linear-gradient(rgba(255, 251, 244, .91), rgba(255, 246, 239, .95)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(172, 122, 98, .1) 8px);
  box-shadow: 0 3px 8px rgba(96, 59, 67, .13);
  transform: translateY(20px);
  transition: transform 1s cubic-bezier(.2,.85,.2,1) .12s;
}
.letter-peek-title { font: italic 2rem/1.05 var(--serif); }
.letter-peek-flower { margin-bottom: 9px; color: var(--rose); font-size: 21px; }
.letter-peek-heart { margin-top: 11px; color: var(--gold); font-size: 18px; }
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 8px;
  background:
    linear-gradient(144deg, transparent 49.7%, rgba(157, 107, 94, .13) 50%, transparent 50.5%),
    linear-gradient(216deg, transparent 49.7%, rgba(157, 107, 94, .13) 50%, transparent 50.5%),
    linear-gradient(180deg, transparent 49%, rgba(255,255,255,.15) 49.5%, transparent 50%),
    linear-gradient(137deg, #f3d9ce, #e6c1bf);
  clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
  border: 1px solid rgba(158, 116, 92, .28);
}
.envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 72%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(145deg, #f9e8dc, #e9c4c0 83%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform: rotateX(0);
  transition: transform .85s cubic-bezier(.5,.05,.2,1);
  backface-visibility: hidden;
}
.envelope-seal {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 55%;
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 230, 213, .85);
  border-radius: 50%;
  color: #fff5e8;
  background: radial-gradient(circle at 34% 25%, #cc7990, #9b455f 68%, #793650);
  box-shadow: 0 5px 12px rgba(92, 42, 61, .24), inset 0 1px 2px rgba(255,255,255,.38);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease, transform .45s ease;
}
.envelope-seal svg { width: 35px; height: 35px; overflow: visible; }
.envelope-seal svg circle { stroke: rgba(255, 238, 224, .55); stroke-width: .8; }
.envelope-seal svg path:first-of-type { fill: #fff2e5; stroke: none; }
.envelope-seal svg path:last-of-type { stroke: rgba(255, 238, 224, .72); stroke-width: .8; stroke-linecap: round; }
.envelope-sparkle { position: absolute; z-index: 8; color: #fff9ea; text-shadow: 0 1px 8px rgba(125,51,77,.3); animation: twinkle 2.2s ease-in-out infinite alternate; }
.sparkle-a { top: 43%; left: 20%; font-size: 17px; }
.sparkle-b { top: 61%; right: 20%; font-size: 14px; animation-delay: .7s; }
.opening.is-opening .envelope { animation: none; }
.opening.is-opening .envelope-flap { transform: rotateX(180deg); }
.opening.is-opening .letter-peek { transform: translateY(-28px); }
.opening.is-opening .envelope-seal { opacity: 0; transform: translate(-50%, -55%) scale(.3); }
.opening.is-opening .opening-kicker,
.opening.is-opening .opening-mascot,
.opening.is-opening .opening-message,
.opening.is-opening .open-button,
.opening.is-opening .opening-footnote {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .32s ease, transform .42s ease;
}
.opening-message { margin: 10px 0 22px; color: var(--muted); font: italic 1.2rem/1.5 var(--serif); }
.open-button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(138, 59, 87, .28);
  border-radius: 999px;
  color: #fff8f0;
  background: linear-gradient(135deg, #a84b69, #79364f);
  box-shadow: 0 8px 22px rgba(112, 49, 73, .2), inset 0 1px rgba(255,255,255,.23);
  cursor: pointer;
  font-size: .88rem;
  letter-spacing: .025em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.open-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(112, 49, 73, .28), inset 0 1px rgba(255,255,255,.23); }
.open-button:active { transform: translateY(1px) scale(.985); }
.open-button:focus-visible { outline: 3px solid #d49b75; outline-offset: 4px; }
.open-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.open-button:hover svg { transform: translateX(3px); }
.opening-footnote { margin: 15px 0 0; color: #9b7b7d; font-size: .71rem; letter-spacing: .04em; }

/* Editorial greeting card */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100% - 64px, 1160px);
  margin: 0 auto;
  padding: 24px 0 16px;
  border-bottom: 1px solid rgba(141, 89, 97, .13);
}
.header-edition {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #946c6f;
  font-size: .61rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.header-edition span:first-child, .header-edition span:last-child { color: var(--gold); font-size: .84rem; }
.header-date { color: #ad8980; font-size: .58rem; letter-spacing: .22em; }
.page-width { width: min(100% - 64px, 1160px); margin-inline: auto; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(30px, 5vw, 68px);
  padding-top: clamp(58px, 7.2vw, 105px);
  padding-bottom: 16px;
}
.hero-copy { position: relative; z-index: 1; padding: 7px 0 18px 5px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #9b6876;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow-rule { display: inline-block; width: 31px; height: 1px; background: var(--gold); opacity: .83; }
.hero-flourish { width: 155px; height: 34px; margin: 22px 0 11px; color: #b6866e; }
.hero-flourish svg { width: 100%; height: 100%; overflow: visible; }
.hero h1 {
  margin: 0;
  color: var(--wine);
  font: 400 clamp(4.2rem, 7vw, 6.1rem)/.81 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}
#heroTitle:focus { outline: none; }
.hero h1 em {
  display: inline-block;
  margin-top: 12px;
  color: var(--rose-deep);
  font-weight: 400;
  letter-spacing: -.07em;
  text-shadow: 0 5px 16px rgba(172, 77, 105, .1);
}
.hero-message {
  margin: 29px 0 18px;
  color: #765765;
  font: italic clamp(1.12rem, 1.8vw, 1.38rem)/1.65 var(--serif);
  letter-spacing: .006em;
}
.hero-signoff { display: flex; align-items: center; gap: 11px; color: #986e73; font: italic 1.1rem var(--script); }
.signoff-line { width: 38px; height: 1px; background: var(--gold); }
.tiny-heart { color: var(--rose-deep); font: 1.15rem var(--serif); }
.heart-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 29px;
  padding: 10px 14px 10px 11px;
  border: 1px solid rgba(171, 124, 93, .2);
  border-radius: 100px;
  color: #856674;
  background: rgba(255, 250, 246, .49);
  font: italic .91rem var(--serif);
}
.heart-note-icon { display: grid; width: 27px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #a8516d; background: rgba(211, 148, 152, .17); font-size: .9rem; }

.hero-art { position: relative; min-height: 490px; display: grid; place-items: center; }
.hero-photo-wrap {
  position: relative;
  z-index: 1;
  width: min(78%, 390px);
  padding-bottom: 39px;
  transform: rotate(2deg);
  animation: portrait-drift 9s ease-in-out infinite;
}
@keyframes portrait-drift {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}
.hero-photo-frame {
  position: relative;
  padding: 12px 12px 13px;
  border: 1px solid rgba(170, 127, 89, .6);
  background: linear-gradient(130deg, #fffdf7, #fbf2e8);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
}
.hero-photo-frame::before {
  position: absolute;
  z-index: 1;
  inset: 7px;
  content: "";
  border: 1px solid rgba(175, 136, 98, .48);
  pointer-events: none;
}
.hero-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 47%;
  filter: saturate(.88) contrast(.98);
}
.photo-corner { position: absolute; z-index: 2; color: #fff4df; text-shadow: 0 1px 5px rgba(57,31,41,.38); }
.corner-top { top: 21px; left: 21px; font-size: 16px; }
.corner-bottom { right: 21px; bottom: 21px; font-size: 17px; }
.photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 10px;
  color: #805568;
  background: rgba(255, 248, 241, .84);
  box-shadow: 0 4px 14px rgba(82, 44, 61, .08);
  font: italic .97rem var(--script);
  transform: rotate(-2deg);
}
.caption-flower { color: var(--rose-deep); font: 1rem var(--serif); }
.hero-orbit {
  position: absolute;
  z-index: 0;
  width: min(95%, 475px);
  aspect-ratio: 1;
  border: 1px solid rgba(181, 137, 112, .25);
  border-radius: 50%;
  transform: rotate(-17deg) scaleY(.78);
  animation: orbit-drift-a 28s linear infinite;
}
.orbit-two { width: min(84%, 420px); border-style: dashed; border-color: rgba(193, 131, 140, .27); transform: rotate(36deg) scaleY(.82); animation: orbit-drift-b 34s linear infinite; }
@keyframes orbit-drift-a { to { transform: rotate(343deg) scaleY(.78); } }
@keyframes orbit-drift-b { to { transform: rotate(-324deg) scaleY(.82); } }
.hero-orbit::before, .hero-orbit::after {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px rgba(215, 185, 139, .14);
}
.hero-orbit::before { top: 17%; left: 13%; }
.hero-orbit::after { right: 9%; bottom: 24%; width: 5px; }
.hero-sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff9f2;
  background: linear-gradient(145deg, #bc687f, #984662);
  box-shadow: 0 9px 20px rgba(121, 51, 77, .22), inset 0 0 0 1px rgba(255,255,255,.4), inset 0 0 0 6px rgba(255,255,255,.1);
  font: italic 1.05rem/1.03 var(--serif);
  text-align: center;
}
.sticker-top { top: 5%; right: 2%; transform: rotate(9deg); animation: sticker-float-a 7.5s ease-in-out infinite; }
.sticker-bottom { bottom: 4%; left: 2%; width: 79px; color: var(--berry); background: #ecd2ca; box-shadow: 0 8px 20px rgba(121, 51, 77, .13), inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 6px rgba(255,255,255,.16); transform: rotate(-12deg); animation: sticker-float-b 8.5s ease-in-out infinite; }
@keyframes sticker-float-a { 0%, 100% { transform: translateY(0) rotate(9deg); } 50% { transform: translateY(-4px) rotate(7deg); } }
@keyframes sticker-float-b { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(3px) rotate(-10deg); } }
.hero-star { position: absolute; color: #ae8156; animation: star-dance 6.5s ease-in-out infinite; }
.hero-star-a { top: 10%; left: 12%; font-size: 21px; }
.hero-star-b { right: 6%; bottom: 18%; color: var(--rose-deep); font-size: 19px; animation-delay: 1.3s; }
.hero-star-c { left: 8%; bottom: 27%; font-size: 13px; animation-delay: 2s; }
@keyframes star-dance { 0%, 100% { opacity: .64; transform: scale(.98) rotate(0deg); } 50% { opacity: .94; transform: scale(1.04) rotate(7deg); } }

.celebration-section { padding-top: clamp(70px, 9vw, 120px); }
.celebration-heading { margin-bottom: clamp(32px, 5vw, 54px); }
.celebration-heading h2 { line-height: 1.02; }
.celebration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 3vw, 34px);
}

.heart-gift-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  padding: clamp(40px, 5vw, 59px) 28px 27px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(170, 130, 94, .62);
  background:
    radial-gradient(ellipse at 50% -12%, rgba(233, 184, 168, .48), transparent 52%),
    radial-gradient(ellipse at 0 100%, rgba(218, 164, 171, .22), transparent 45%),
    linear-gradient(145deg, #fffaf2, #f8ece4 70%, #f4e5df);
  box-shadow: 0 18px 48px rgba(105, 59, 75, .11);
  text-align: center;
}
.heart-gift-card::before {
  position: absolute;
  z-index: -1;
  inset: 7px;
  content: "";
  border: 1px solid rgba(177, 136, 96, .34);
  pointer-events: none;
}
.heart-gift-card::after {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -48px;
  width: 142px;
  aspect-ratio: 1;
  content: "✿";
  display: grid;
  place-items: center;
  border: 1px solid rgba(177, 136, 96, .14);
  border-radius: 50%;
  color: rgba(178, 121, 128, .12);
  font: 68px var(--serif);
  transform: translateX(-50%);
  pointer-events: none;
}
.heart-card-ribbon {
  position: absolute;
  top: 18px;
  left: 50%;
  padding: 6px 14px;
  border: 1px solid rgba(176, 133, 96, .31);
  border-radius: 99px;
  color: #916975;
  background: rgba(255, 250, 245, .68);
  font-size: .55rem;
  letter-spacing: .2em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.heart-card-kicker, .cake-kicker {
  margin: 0;
  color: var(--rose-deep);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.heart-gift-card h3, .cake-card-copy h3 {
  margin: 9px 0 0;
  color: var(--wine);
  font: 400 clamp(2rem, 3.4vw, 2.75rem)/1.02 var(--serif);
  letter-spacing: -.04em;
}
.heart-gift-card h3 em, .cake-card-copy h3 em { color: var(--rose-deep); font-weight: 400; }
.heart-card-copy {
  max-width: 280px;
  margin: 12px auto 0;
  color: #846a72;
  font: italic 1rem/1.55 var(--serif);
}
.heart-gift-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 18px auto 1px;
}
.heart-button {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(112px, 11vw, 132px);
  aspect-ratio: 1.07;
  padding: 0;
  border: 0;
  color: #fff8f2;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(150, 57, 88, .18));
  transform-origin: 50% 58%;
  transition: filter .35s ease, transform .35s ease;
  touch-action: manipulation;
}
.heart-button::after {
  position: absolute;
  z-index: -1;
  inset: 18%;
  content: "";
  border-radius: 50%;
  background: rgba(209, 94, 125, .35);
  filter: blur(20px);
  opacity: .4;
  transform: scale(.9);
  animation: heart-aura 5.5s ease-in-out infinite;
}
@keyframes heart-aura { 0%, 100% { opacity: .24; transform: scale(.86); } 50% { opacity: .43; transform: scale(1.05); } }
.heart-button:hover { filter: drop-shadow(0 9px 11px rgba(150, 57, 88, .22)); transform: translateY(-2px) scale(1.02); }
.heart-button:active { transform: scale(.96); }
.heart-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 7px; border-radius: 35%; }
.heart-button:disabled { cursor: wait; }
.heart-button svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.heart-shape { fill: url(#heartGradient); stroke: #a34764; stroke-width: 1.1; stroke-linejoin: round; }
.heart-highlight { fill: none; stroke: url(#heartGloss); stroke-width: 3; stroke-linecap: round; }
.heart-button-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.heart-button-label { color: #916d78; font: italic .82rem var(--script); letter-spacing: .01em; }
.heart-button.is-pressed { animation: heart-soft-pulse .72s ease-out; }
@keyframes heart-soft-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 7px 9px rgba(150, 57, 88, .16)); }
  34% { transform: scale(.975); filter: drop-shadow(0 8px 13px rgba(150, 57, 88, .24)); }
  68% { transform: scale(1.03); }
  100% { transform: scale(1); filter: drop-shadow(0 7px 9px rgba(150, 57, 88, .16)); }
}
.heart-particles { position: absolute; inset: -22px; z-index: 3; pointer-events: none; }
.heart-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #b44f6c;
  font: 16px var(--serif);
  opacity: 0;
  animation: heart-spark 1s ease-out forwards;
}
.heart-particle.p1 { --x: -38px; --y: -40px; }
.heart-particle.p2 { --x: 36px; --y: -38px; animation-delay: .04s; }
.heart-particle.p3 { --x: -43px; --y: 3px; animation-delay: .08s; }
.heart-particle.p4 { --x: 42px; --y: 6px; animation-delay: .03s; }
.heart-particle.p5 { --x: -24px; --y: 37px; animation-delay: .07s; }
.heart-particle.p6 { --x: 25px; --y: 36px; animation-delay: .1s; }
@keyframes heart-spark {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.42) rotate(-8deg); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.15) rotate(18deg); }
}
.heart-count-block { min-width: 92px; text-align: left; }
.count-number {
  display: block;
  color: var(--wine);
  font: 400 clamp(2.75rem, 5vw, 3.8rem)/.92 var(--serif);
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.count-number.is-updating { animation: number-pop .48s cubic-bezier(.2,.75,.24,1.35); }
@keyframes number-pop {
  0% { transform: translateY(5px) scale(.9); opacity: .5; }
  70% { transform: translateY(-2px) scale(1.035); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
.count-label { display: block; max-width: 100px; margin-top: 7px; color: #987783; font: italic .93rem/1.25 var(--serif); }
.heart-feedback {
  position: relative;
  z-index: 1;
  min-height: 20px;
  margin: 4px 0 13px;
  color: #906c77;
  font: italic .84rem/1.4 var(--serif);
}
.heart-card-bottom { margin-top: auto; color: #ab8177; font: italic .78rem var(--script); letter-spacing: .04em; }
.heart-card-sparkle { position: absolute; color: rgba(179, 124, 100, .48); animation: star-dance 7s ease-in-out infinite; pointer-events: none; }
.heart-card-sparkle-a { top: 29%; left: 11%; font-size: 17px; }
.heart-card-sparkle-b { top: 29%; right: 11%; color: rgba(186, 100, 125, .44); font-size: 13px; animation-delay: 1.2s; }

.cake-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px clamp(20px, 3vw, 34px) 19px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(169, 126, 97, .51);
  background:
    radial-gradient(ellipse at 79% 13%, rgba(238, 195, 185, .42), transparent 42%),
    radial-gradient(ellipse at 0 100%, rgba(218, 185, 157, .2), transparent 43%),
    linear-gradient(145deg, #fffaf2, #f8ece4 64%, #f2e3df);
  box-shadow: 0 18px 48px rgba(105, 59, 75, .1);
}
.cake-card::before {
  position: absolute;
  z-index: -1;
  inset: 7px;
  content: "";
  border: 1px solid rgba(177, 136, 96, .28);
  pointer-events: none;
}
.cake-card-topline { display: flex; align-items: center; justify-content: space-between; color: #966e6b; font-size: .68rem; letter-spacing: .18em; }
.cake-card-topline span:last-child { color: var(--gold); font-size: 1rem; }
.cake-art-wrap { position: relative; width: 100%; margin: 2px auto 0; }
.birthday-illustration { display: block; width: min(100%, 640px); height: auto; margin: 0 auto; overflow: visible; }
.scene-star { transform-box: fill-box; transform-origin: center; animation: star-dance 6s ease-in-out infinite; }
.scene-star-b { animation-delay: .9s; }
.scene-star-c { animation-delay: 1.7s; }
.girl-body { transform-box: fill-box; transform-origin: 50% 100%; animation: girl-breathe 5.6s ease-in-out infinite; }
.girl-hair-back { transform-box: fill-box; transform-origin: 55% 38%; animation: hair-sway 8s ease-in-out infinite; }
.girl-head { transform-box: fill-box; transform-origin: 50% 77%; transition: transform .8s ease; }
.cake-card.is-visible:not(.is-blowing) .girl-head { animation: girl-gentle-nod 6.8s ease-in-out infinite; }
.cake-card.is-visible:not(.is-blowing) .girl-body { animation: girl-breathe 5.6s ease-in-out infinite; }
@keyframes girl-gentle-nod { 0%, 100% { transform: rotate(0); } 46% { transform: rotate(.3deg); } 56% { transform: rotate(-.8deg); } 64% { transform: rotate(0); } }
@keyframes girl-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }
@keyframes hair-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(.6deg); } }
.flame, .flame-core { transform-box: fill-box; transform-origin: center bottom; }
.flame { animation: candle-dance 1.2s ease-in-out infinite alternate; }
.flame-core { animation: candle-core 1.1s ease-in-out infinite alternate; }
.candle:nth-child(2) .flame { animation-delay: .24s; }
.candle:nth-child(3) .flame { animation-delay: .42s; }
@keyframes candle-dance { from { transform: rotate(-1.6deg) scale(.99,1); } to { transform: rotate(1.6deg) scale(1.01,.99); } }
@keyframes candle-core { from { opacity: .82; } to { opacity: 1; } }
.breath { fill: none; stroke: rgba(255, 255, 255, .94); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 12 17; stroke-dashoffset: 45; opacity: 0; }
.cake-card.is-blowing .breath { animation: breath-stream 1.15s ease-in-out forwards; }
.breath-two { animation-delay: .06s !important; }
.breath-three { animation-delay: .12s !important; }
@keyframes breath-stream {
  0% { opacity: 0; stroke-dashoffset: 45; }
  24% { opacity: .8; }
  68% { opacity: .9; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: -26; }
}
.mouth-open { opacity: 0; }
.cake-card.is-blowing .mouth-smile, .cake-card.is-blown .mouth-smile { opacity: 0; }
.cake-card.is-blowing .mouth-open, .cake-card.is-blown .mouth-open { opacity: 1; }
.cake-card.is-blowing .girl-head { animation: none; transform: translateX(-1px) rotate(-.9deg); }
.cake-card.is-blowing .girl-body { animation: none; transform: translateY(-1px) scaleY(1.01); }
.blow-cheek { opacity: 0; transition: opacity .35s ease; }
.cake-card.is-blowing .blow-cheek { opacity: .7; }
.flame, .flame-core, .smoke { transition: opacity .35s ease, transform .4s ease; }
.cake-card.is-blowing .flame, .cake-card.is-blowing .flame-core,
.cake-card.is-blown .flame, .cake-card.is-blown .flame-core { opacity: 0; transform: translateY(8px) scale(.2); }
.cake-card.is-blowing .flame, .cake-card.is-blowing .flame-core { animation-play-state: paused; }
.smoke { opacity: 0; }
.cake-card.is-blown .smoke { animation: smoke-rise 1.45s ease-out forwards; }
.candle:nth-child(2) .smoke { animation-delay: .12s !important; }
.candle:nth-child(3) .smoke { animation-delay: .22s !important; }
@keyframes smoke-rise {
  0% { opacity: 0; transform: translateY(12px); }
  24% { opacity: .75; }
  100% { opacity: 0; transform: translateY(-22px) translateX(5px); }
}
.cake-confetti { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.cake-confetti span {
  position: absolute;
  top: 58%;
  left: 36%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: var(--confetti-color, #cb6d86);
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cake-confetti .confetti-a { --confetti-color: #d17b88; --dx: -82px; --dy: -68px; }
.cake-confetti .confetti-b { --confetti-color: #c49a62; --dx: 82px; --dy: -64px; animation-delay: .06s; }
.cake-confetti .confetti-c { --confetti-color: #8f536a; --dx: -57px; --dy: -91px; animation-delay: .1s; }
.cake-confetti .confetti-d { --confetti-color: #e1b09d; --dx: 64px; --dy: -92px; animation-delay: .03s; }
.cake-confetti .confetti-e { --confetti-color: #c49a62; --dx: 12px; --dy: -100px; animation-delay: .14s; }
.cake-confetti .confetti-f { --confetti-color: #b65875; --dx: -101px; --dy: -34px; animation-delay: .08s; }
.cake-confetti .confetti-g { --confetti-color: #e1b09d; --dx: 101px; --dy: -32px; animation-delay: .12s; }
.cake-confetti .confetti-h { --confetti-color: #8f536a; --dx: -19px; --dy: -76px; animation-delay: .17s; }
.cake-confetti.is-burst span { animation: cake-confetti-burst 1.2s cubic-bezier(.2,.68,.25,1) forwards; }
@keyframes cake-confetti-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(.35); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(140deg) scale(.68); }
}
.cake-card-copy { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: -5px 4px 0; }
.cake-card-copy h3 { font-size: clamp(1.9rem, 3.1vw, 2.45rem); }
.blow-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(132, 57, 83, .31);
  border-radius: 999px;
  color: #fff8f0;
  background: linear-gradient(135deg, #a9516d, #78374f);
  box-shadow: 0 6px 16px rgba(114, 47, 73, .17), inset 0 1px rgba(255,255,255,.22);
  cursor: pointer;
  font-size: .75rem;
  transition: transform .23s ease, box-shadow .23s ease;
  touch-action: manipulation;
}
.blow-button:hover { transform: translateY(-2px); box-shadow: 0 10px 21px rgba(114, 47, 73, .23), inset 0 1px rgba(255,255,255,.22); }
.blow-button:active { transform: scale(.97); }
.blow-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.blow-button:disabled { opacity: .74; cursor: wait; }
.blow-button-icon { color: #f5d69f; font-size: 1.1rem; }
.blow-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cake-feedback { min-height: 18px; margin: 11px 4px 0; color: #92717a; font: italic .82rem/1.4 var(--serif); }

.scroll-cue { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: #9d7f82; text-decoration: none; font: italic .9rem var(--serif); transition: color .2s ease; }
.scroll-cue:hover { color: var(--rose-deep); }
.scroll-cue-line { width: 29px; height: 1px; background: var(--gold); }
.scroll-cue-arrow { color: var(--rose-deep); animation: arrow-nod 1.8s ease-in-out infinite; }
@keyframes arrow-nod { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.memories-section { padding-top: clamp(92px, 12vw, 150px); }
.section-heading { position: relative; max-width: 690px; margin: 0 auto 46px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 18px 0 10px; color: var(--wine); font: 400 clamp(2.65rem, 5.6vw, 4.9rem)/1 var(--serif); letter-spacing: -.047em; }
.section-heading h2 em { color: var(--rose-deep); font-weight: 400; }
.section-heading > p:last-of-type { margin: 0; color: #8a6d77; font: italic 1.1rem/1.6 var(--serif); }
.heading-flower { display: block; margin-top: 17px; color: #b17e69; font-size: 19px; animation: flower-sway 9s ease-in-out infinite; }
@keyframes flower-sway { 0%, 100% { transform: rotate(-4deg) scale(.97); opacity: .72; } 50% { transform: rotate(4deg) scale(1.03); opacity: 1; } }
.memory-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4.5vw, 55px) clamp(18px, 3.7vw, 42px); align-items: start; padding: 9px 14px 0; }
.memory-card {
  position: relative;
  margin: 0;
  padding: 10px 10px 13px;
  border: 1px solid rgba(176, 139, 106, .45);
  background: linear-gradient(140deg, #fffdf9, #fff8f1);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s ease, opacity .7s ease;
  opacity: 0;
}
.memory-card.is-visible { opacity: 1; }
.memory-card:hover { z-index: 2; transform: rotate(0) translateY(-7px) scale(1.025); box-shadow: 0 22px 44px rgba(82, 44, 61, .2); }
.memory-card-a { --tilt: -2.2deg; }
.memory-card-b { --tilt: 1.8deg; margin-top: 23px; }
.memory-card-c { --tilt: -1.5deg; margin-top: -7px; }
.memory-card-d { --tilt: 1.4deg; margin-top: 8px; }
.memory-card-e { --tilt: -1.2deg; margin-top: 28px; }
.memory-card-f { --tilt: 2deg; margin-top: 0; }
.memory-card::before { position: absolute; z-index: 1; inset: 5px; content: ""; border: 1px solid rgba(181, 142, 103, .23); pointer-events: none; }
.memory-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; filter: saturate(.85) contrast(.98); transition: filter .4s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.memory-card:hover img { filter: saturate(1) contrast(1); transform: scale(1.015); }
.memory-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 11px 4px 0; color: #896b73; font: italic clamp(.83rem, 1.2vw, .99rem) var(--script); }
.memory-card figcaption i { color: var(--rose-deep); font: normal 1rem var(--serif); }
.memory-tape {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: calc(50% - 35px);
  width: 70px;
  height: 22px;
  opacity: .7;
  background: linear-gradient(135deg, rgba(237, 196, 161, .57), rgba(224, 175, 152, .57));
  box-shadow: 0 2px 5px rgba(95, 54, 63, .07);
  transform: rotate(-3deg);
}
.memory-card-b .memory-tape, .memory-card-f .memory-tape { background: linear-gradient(135deg, rgba(210, 164, 184, .58), rgba(193, 141, 160, .55)); transform: rotate(4deg); }
.gallery-footnote { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 42px auto 0; color: #987782; font: italic .98rem var(--serif); }
.gallery-footnote span { color: #b35c75; font-size: 1.1rem; }

.closing-section { width: min(100% - 64px, 1020px); margin: clamp(90px, 12vw, 145px) auto 0; }
.closing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(55px, 7vw, 88px) 28px clamp(46px, 6vw, 70px);
  border: 1px solid rgba(170, 130, 94, .66);
  outline-offset: -8px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 100%, rgba(229, 181, 173, .24), transparent 40%),
    radial-gradient(ellipse at 100% 0%, rgba(229, 194, 164, .28), transparent 38%),
    linear-gradient(135deg, #fffaf2, #f9eee5 55%, #fff9f0);
  box-shadow: 0 23px 58px rgba(93, 55, 65, .12);
  text-align: center;
}
.closing-card::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(173, 130, 95, .34);
  pointer-events: none;
}
.closing-card::after {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 92px;
  height: 18px;
  content: "";
  border: 1px solid rgba(172, 125, 98, .39);
  border-top: 0;
  background: #efd6ce;
  box-shadow: 0 3px 7px rgba(99, 58, 64, .08);
  transform: translateX(-50%) rotate(-1.5deg);
}
.closing-postmark {
  position: absolute;
  top: 27px;
  right: 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 53px;
  aspect-ratio: 1;
  border: 1px solid rgba(179, 132, 98, .61);
  border-radius: 50%;
  color: #a17172;
  background: rgba(255, 250, 243, .54);
  transform: rotate(8deg);
}
.closing-postmark span { font: 1.16rem/.95 var(--serif); }
.closing-postmark small { margin-top: 3px; font-size: .43rem; letter-spacing: .15em; }
.closing-sprig { position: absolute; color: rgba(177, 121, 111, .48); font: 31px var(--serif); }
.sprig-left { top: 27px; left: 31px; transform: rotate(-19deg); }
.sprig-right { right: 35px; bottom: 25px; transform: rotate(18deg); }
.closing-kicker { margin: 5px 0 17px; color: #9e6c73; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.closing-card h2 { margin: 0; color: var(--wine); font: 400 clamp(2.45rem, 5vw, 4.2rem)/1.06 var(--serif); letter-spacing: -.04em; }
.closing-card h2 em { color: var(--rose-deep); font-weight: 400; }
.closing-message { margin: 21px 0 24px; color: #80636d; font: italic clamp(1rem, 1.7vw, 1.19rem)/1.8 var(--serif); }
.closing-signature { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #986d78; font: italic 1.1rem var(--script); }
.closing-signature i { color: var(--rose-deep); font: normal 1rem var(--serif); }
.closing-signature small { color: #ab8a83; font: .58rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.site-footer { padding: 34px 16px 30px; color: #93777d; text-align: center; }
.footer-flourish { color: #b18a73; font: 1rem var(--serif); letter-spacing: .09em; }
.site-footer p { margin: 11px 0 8px; font: italic .91rem var(--serif); }
.footer-date { color: #b28b76; font-size: .63rem; letter-spacing: .2em; }

/* Staggered entrances keep the page lively without distracting from its message. */
.hero-copy, .hero-art {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.2,1);
}
.site-shell.is-revealed .hero-copy { opacity: 1; transform: none; transition-delay: .08s; }
.site-shell.is-revealed .hero-art { opacity: 1; transform: none; transition-delay: .24s; }
[data-reveal]:not(.memory-card) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1);
}
[data-reveal].is-visible:not(.memory-card) { opacity: 1; transform: none; }
[data-reveal].is-visible:not(.memory-card):nth-child(even) { transition-delay: .1s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .hero-art { min-height: 400px; }
  .hero-photo-wrap { width: 82%; }
  .hero-sticker { width: 74px; font-size: .91rem; }
  .sticker-bottom { width: 68px; }
  .celebration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .heart-gift-card { padding-inline: 20px; }
  .heart-gift-action { gap: 12px; }
  .cake-card { padding-inline: 20px; }
  .cake-card-copy { align-items: flex-start; flex-direction: column; gap: 10px; }
  .blow-button { gap: 7px; padding-inline: 11px; font-size: .69rem; }
  .memory-gallery { gap: 28px 22px; padding-inline: 5px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; column-gap: 0; padding-top: 45px; }
  .hero-copy { text-align: center; padding: 0; }
  .hero-copy > .eyebrow { justify-content: center; }
  .hero-flourish { margin: 21px auto 11px; }
  .hero-signoff { justify-content: center; }
  .heart-note { margin-inline: auto; }
  .hero-art { min-height: 410px; margin-top: 18px; }
  .hero-photo-wrap { width: min(72%, 335px); }
  .celebration-grid { grid-template-columns: 1fr; max-width: 570px; margin-inline: auto; }
  .heart-gift-card { min-height: 430px; }
  .cake-card-copy { flex-direction: row; align-items: flex-end; }
  .blow-button { align-self: center; }
}

@media (max-width: 700px) {
  .site-header { width: min(100% - 38px, 540px); padding: 18px 0 14px; }
  .header-edition { font-size: .55rem; letter-spacing: .17em; gap: 8px; }
  .header-date { font-size: .52rem; }
  .page-width { width: min(100% - 38px, 540px); }
  .hero { grid-template-columns: 1fr; padding-top: 53px; }
  .hero-copy { text-align: center; padding: 0; }
  .eyebrow { justify-content: center; }
  .hero-flourish { margin: 21px auto 11px; }
  .hero h1 { font-size: clamp(4.6rem, 16vw, 6.8rem); }
  .hero-message { margin-top: 21px; font-size: 1.15rem; }
  .hero-signoff { justify-content: center; }
  .heart-note { margin: 22px auto 0; font-size: .86rem; }
  .hero-art { min-height: 425px; margin-top: 20px; }
  .hero-photo-wrap { width: min(72%, 330px); }
  .celebration-section { padding-top: 82px; }
  .celebration-heading { margin-bottom: 30px; }
  .celebration-heading .eyebrow { font-size: .55rem; letter-spacing: .12em; gap: 7px; }
  .celebration-heading .eyebrow-rule { width: 17px; }
  .celebration-heading h2 { font-size: clamp(2.55rem, 9.4vw, 3.8rem); }
  .celebration-heading > p:last-of-type { font-size: .97rem; }
  .celebration-grid { grid-template-columns: 1fr; gap: 21px; }
  .heart-gift-card { width: 100%; min-height: 415px; padding: 46px 24px 25px; }
  .heart-gift-card h3 { font-size: 2.5rem; }
  .heart-card-copy { max-width: 300px; }
  .heart-gift-action { gap: 19px; margin-top: 12px; }
  .heart-button { width: 122px; }
  .count-number { font-size: 3.4rem; }
  .count-label { max-width: 110px; font-size: .9rem; }
  .heart-feedback { font-size: .8rem; }
  .cake-card { padding: 20px 17px 17px; }
  .cake-art-wrap { margin-top: 6px; }
  .cake-card-copy { align-items: flex-start; flex-direction: column; gap: 13px; margin-inline: 4px; }
  .cake-card-copy h3 { font-size: 2.2rem; }
  .blow-button { min-height: 46px; padding-inline: 15px; font-size: .76rem; }
  .cake-feedback { margin-top: 9px; }
  .memories-section { padding-top: 89px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading .eyebrow { font-size: .57rem; letter-spacing: .13em; gap: 8px; }
  .section-heading .eyebrow-rule { width: 19px; }
  .section-heading h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .section-heading > p:last-of-type { font-size: 1rem; }
  .memory-gallery { gap: 22px 16px; }
  .memory-card { padding: 7px 7px 10px; }
  .memory-tape { width: 52px; height: 17px; top: -8px; left: calc(50% - 26px); }
  .memory-card figcaption { padding-top: 8px; font-size: .76rem; }
  .memory-card figcaption i { font-size: .85rem; }
  .gallery-footnote { gap: 8px; margin-top: 30px; font-size: .87rem; }
  .closing-section { width: min(100% - 38px, 540px); margin-top: 88px; }
  .closing-card { padding: 66px 22px 42px; }
  .closing-card h2 { font-size: clamp(2.1rem, 8.3vw, 3.1rem); }
  .closing-message br { display: none; }
}

@media (max-width: 390px) {
  .header-edition { font-size: .51rem; letter-spacing: .13em; }
  .hero-art { min-height: 365px; }
  .hero h1 { font-size: clamp(3.75rem, 14vw, 4.5rem); }
  .heart-gift-card { min-height: 390px; padding-inline: 17px; }
  .heart-gift-action { gap: 13px; }
  .heart-button { width: 108px; }
  .count-number { font-size: 3rem; }
  .count-label { max-width: 90px; font-size: .82rem; }
  .heart-card-copy { font-size: .94rem; }
  .cake-card { padding-inline: 12px; }
  .cake-card-topline { font-size: .52rem; }
  .cake-card-copy h3 { font-size: 2rem; }
  .memory-gallery { gap: 18px 12px; padding-inline: 0; }
  .memory-card figcaption { font-size: .68rem; }
  .memory-card figcaption i { font-size: .75rem; }
  .closing-postmark { top: 17px; right: 17px; width: 45px; }
  .closing-sprig { font-size: 24px; }
  .sprig-left { top: 18px; left: 18px; }
  .sprig-right { right: 18px; bottom: 16px; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .opening-content { transform: scale(.82); }
  .envelope-stage { height: 255px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .memory-card, [data-reveal]:not(.memory-card) { opacity: 1; transform: none; }
}

body.has-opening { overflow: hidden; }
