@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/caveat-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/literata-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/literata-italic-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/literata-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/literata-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-normal-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif Display'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/noto-serif-display-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Serif Display'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(fonts/noto-serif-display-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/noto-serif-display-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/noto-serif-display-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fff5f6;
  --white: #fffdfb;
  --ink: #4a2335;
  --ink-soft: #7b4b5e;
  --rose: #e98aa2;
  --rose-deep: #a8325a;
  --blush: #f8d3dc;
  --sage: #8fb08c;
  --gold: #e2ac3f;
  --line: #f1dde3;
  --shadow: 0 1px 2px rgb(74 35 53 / .10), 0 14px 30px -12px rgb(74 35 53 / .30);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --serif: 'Literata', Georgia, serif;
  --display: 'Noto Serif Display', 'Literata', Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--serif);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
p { margin: 0 0 1em; }
a { color: var(--rose-deep); }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--rose-deep); transform: scaleX(0); transform-origin: left; }

/* Hearts and petals drifting up the page, built by the script */
.sky { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; mix-blend-mode: multiply; }
.float {
  position: absolute; bottom: -40px; display: block; opacity: 0;
  animation: rise var(--dur, 20s) linear var(--delay, 0s) infinite;
}
.float svg { display: block; width: 100%; height: auto; }
.float.c1 { fill: var(--rose); }
.float.c2 { fill: #f4b4c4; }
.float.c3 { fill: var(--rose-deep); }
.float.c4 { fill: #f7c6a8; }
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  10% { opacity: var(--alpha, .5); }
  50% { transform: translate(var(--drift, 30px), -55vh) rotate(var(--turn, 40deg)); }
  90% { opacity: var(--alpha, .5); }
  100% { opacity: 0; transform: translate(0, -112vh) rotate(calc(var(--turn, 40deg) * 2)); }
}
.spark { position: fixed; width: 18px; height: 17px; pointer-events: none; z-index: 50; }
.spark svg { display: block; width: 100%; height: 100%; }
.spark.c1 { fill: var(--rose); }
.spark.c2 { fill: var(--rose-deep); }
.spark.c3 { fill: #f4b4c4; }
.spark.c4 { fill: var(--gold); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 20px clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 60% at 85% 15%, #fde0e7 0, transparent 70%),
    radial-gradient(55% 45% at 8% 60%, #fbe7d6 0, transparent 70%),
    var(--paper);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: clamp(56px, 7vw, 72px); align-items: center;
}
.kicker { font: 600 clamp(1.4rem, 1.2rem + .8vw, 1.8rem)/1.3 var(--hand); color: var(--rose-deep); margin: 0 0 .5em; }
h1 {
  font: italic 400 clamp(3.4rem, 1.6rem + 6.4vw, 6.6rem)/.92 var(--display);
  letter-spacing: -.02em; margin: 0 0 .32em; color: var(--ink);
}
.h1-line { display: block; white-space: nowrap; }
.amp { font: 700 .8em/1 var(--hand); color: var(--rose-deep); }
.lede { font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.5 var(--serif); color: var(--ink-soft); max-width: 27ch; margin: 0 0 1.6em; }
.cue {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  background: var(--rose-deep); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem; box-shadow: 0 10px 24px -10px rgb(168 50 90 / .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cue:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgb(168 50 90 / .75); }
.cue svg { width: 1.1em; height: 1.1em; }
.cue-time { font-weight: 400; opacity: .85; }
.hero-snap { --tilt: 2.5deg; max-width: 480px; width: 100%; justify-self: center; }
.hero-snap::before { left: 22%; }
.peek {
  position: absolute; right: 16px; bottom: calc(100% - 9px);
  width: clamp(84px, 22vw, 112px); aspect-ratio: 120 / 100; overflow: hidden; z-index: 2;
}
.peek-bear { display: block; width: 100%; height: auto; transform: translateY(100%); animation: peek 1.1s var(--ease) .9s forwards; }
@keyframes peek { to { transform: none; } }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite 2.4s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

.toc { max-width: 1120px; margin: clamp(48px, 6vw, 72px) auto 0; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.toc a {
  display: inline-block; padding: .4em 1em; border-radius: 999px;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: .98rem;
  box-shadow: 0 1px 2px rgb(74 35 53 / .08), 0 4px 12px -6px rgb(74 35 53 / .25);
  transition: background .25s, color .25s;
}
.toc a:hover { background: var(--blush); color: var(--rose-deep); }

/* Chapters */
.chapter {
  --tint: #fbeef0;
  position: relative;
  padding: clamp(64px, 10vw, 120px) 20px;
  background: linear-gradient(to bottom, var(--paper) 0, var(--tint) 160px, var(--tint) calc(100% - 160px), var(--paper) 100%);
}
.chapter[data-season="warsaw"] { --tint: #f5eff9; }
.chapter[data-season="waiting"] { --tint: #eff2fb; }
.chapter[data-season="june"] { --tint: #fff0e7; }
.chapter[data-season="screens"] { --tint: #f9eef6; }
.chapter[data-season="birthday"] { --tint: #fde8ef; }
.chapter[data-season="summer"] { --tint: #eaf5f2; }
.chapter[data-season="belarus"] { --tint: #f2f5e8; }
.chapter[data-season="october"] { --tint: #fbefdf; }
.chapter[data-season="airport"] { --tint: #edf3f9; }
.chapter[data-season="why"] { --tint: #fdedf1; }
.inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.chapter-head { margin-bottom: clamp(24px, 4vw, 40px); }
.chapter-no { font: 600 clamp(1.35rem, 1.2rem + .6vw, 1.7rem)/1.3 var(--hand); color: var(--rose-deep); margin: 0 0 .35em; }
h2 {
  font: italic 400 clamp(2.3rem, 1.3rem + 4.4vw, 4.4rem)/1.04 var(--display);
  letter-spacing: -.015em; margin: 0; max-width: 18ch; text-wrap: balance; color: var(--ink);
}
.prose { max-width: 36rem; }
.prose p, p.prose { font-size: clamp(1.07rem, 1rem + .3vw, 1.2rem); }
.lead-in { margin-top: clamp(32px, 5vw, 48px); font-style: italic; color: var(--ink-soft); }
.lead-in-block { margin-top: clamp(56px, 8vw, 88px); }
.aside-line {
  font: 600 clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem)/1.3 var(--hand); color: var(--rose-deep);
  text-align: center; max-width: 24ch; margin: clamp(40px, 6vw, 64px) auto 0; text-wrap: balance;
}
.split { display: grid; gap: clamp(40px, 6vw, 64px); align-items: start; }
.hint { font: 600 1.35rem/1.3 var(--hand); color: var(--ink-soft); margin: 28px 0 0; }

/* Polaroids */
.wall {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px; grid-auto-flow: dense; align-items: start;
  margin: clamp(40px, 6vw, 64px) 0 0;
}
.split > .wall { margin-top: 0; }
.snap {
  --tilt: -1.5deg;
  position: relative; margin: 0; padding: 9px 9px 0;
  background: var(--white); box-shadow: var(--shadow);
  rotate: var(--tilt);
  transition: rotate .45s var(--ease), translate .45s var(--ease);
}
.snap::before {
  content: ""; position: absolute; top: -11px; left: 50%; z-index: 1;
  width: min(40%, 92px); height: 22px; translate: -50% 0; rotate: -4deg;
  background: repeating-linear-gradient(-45deg, rgb(244 168 188 / .78) 0 7px, rgb(255 228 235 / .78) 7px 14px);
}
.wall .snap:nth-child(3n + 1) { --tilt: -2deg; }
.wall .snap:nth-child(3n + 2) { --tilt: 1.6deg; }
.wall .snap:nth-child(3n) { --tilt: -.6deg; }
.wall .snap:nth-child(4n) { --tilt: 2.4deg; }
.wall .snap:nth-child(even)::before { rotate: 5deg; background: repeating-linear-gradient(45deg, rgb(178 214 196 / .8) 0 7px, rgb(232 245 238 / .8) 7px 14px); }
.wall .snap:nth-child(5n)::before { background: repeating-linear-gradient(-45deg, rgb(246 216 140 / .8) 0 7px, rgb(255 244 214 / .8) 7px 14px); }
.snap:hover, .snap:focus-within { rotate: 0deg; translate: 0 -4px; }
.snap img, .snap video { display: block; width: 100%; height: auto; background: #f3e6ea; }
.snap figcaption {
  font: 500 clamp(1.15rem, 1rem + .45vw, 1.4rem)/1.3 var(--hand);
  color: var(--ink); text-align: center; padding: 10px 6px 14px; text-wrap: balance;
}
.snap.wide { grid-column: span 2; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 0; }

/* Photo viewer */
.viewer {
  border: 0; padding: 12px 12px 0; background: var(--white); color: var(--ink);
  width: auto; max-width: min(94vw, 760px); max-height: 94svh; overflow: visible;
  box-shadow: 0 30px 80px -20px rgb(40 10 25 / .6);
}
.viewer::backdrop { background: rgb(54 22 38 / .72); }
.viewer img { display: block; max-width: 100%; max-height: calc(94svh - 90px); width: auto; height: auto; margin: 0 auto; }
.viewer-cap { font: 500 1.5rem/1.3 var(--hand); text-align: center; margin: 0; padding: 12px 8px 16px; }
.viewer-close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--rose-deep); color: #fff; font: 600 1.5rem/1 var(--serif); cursor: pointer;
  box-shadow: 0 6px 16px -6px rgb(74 35 53 / .6);
}
.viewer[open] { animation: lift .35s var(--ease); }
@keyframes lift { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* Messages */
.chat {
  max-width: 420px; margin: 36px auto 0; padding: 16px 16px 20px;
  background: var(--white); border-radius: 30px; box-shadow: var(--shadow);
}
.chat-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 4px 12px;
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1rem;
}
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blush); padding: 3px; flex: none; }
.chat-day { text-align: center; font-size: .8rem; color: var(--ink-soft); margin: 0 0 10px; }
.msg { position: relative; display: flex; margin: 6px 0; font-size: 1rem; line-height: 1.4; }
.msg > span { max-width: 82%; padding: 9px 14px; border-radius: 20px; overflow-wrap: anywhere; }
.msg.me { justify-content: flex-end; }
.msg.me > span { background: var(--rose-deep); color: #fff; border-bottom-right-radius: 6px; }
.msg.them > span { background: #f6e6eb; color: var(--ink); border-bottom-left-radius: 6px; }
.tr { display: block; font-size: .8rem; font-style: italic; opacity: .85; margin-top: 2px; }
.seen { text-align: right; font-size: .75rem; color: var(--ink-soft); margin: 4px 6px 0; }
.typing { position: absolute; left: 0; top: 0; visibility: visible; display: flex; gap: 4px; padding: 12px 14px; border-radius: 20px; background: #f6e6eb; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* Waiting lines keep their space, so nothing below jumps while a thread plays. */
.wait { visibility: hidden; }
.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* Contact she saved */
.contact { max-width: 340px; margin: 32px auto 48px; text-align: center; }
.contact-card { background: var(--white); border-radius: 28px; padding: 26px 20px 22px; box-shadow: var(--shadow); }
.contact-avatar {
  width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #ece2e6; color: var(--ink-soft);
  font: 500 1.7rem/1 var(--serif);
}
.contact-name { font: 500 2.2rem/1.1 var(--display); margin: 0; }
.contact-sub { font-size: .9rem; color: var(--ink-soft); margin: 6px 0 0; }
.translate, .blow, .more, .lock-btn {
  margin-top: 18px; padding: .7em 1.4em; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--serif); transition: background .25s, color .25s, transform .25s var(--ease);
}
.translate, .lock-btn { border: 2px solid var(--rose-deep); background: var(--white); color: var(--rose-deep); }
.translate:hover, .lock-btn:hover { background: var(--blush); }
.blow, .more { border: 0; background: var(--rose-deep); color: #fff; }
.blow:hover, .more:hover { transform: translateY(-2px); }
.translation { font: 600 1.5rem/1.3 var(--hand); color: var(--rose-deep); margin: 16px 0 0; }

/* Forty-five goodnights */
.nights { max-width: 460px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.nights:empty { display: none; }
.nights svg { width: 100%; height: auto; fill: #ecd9df; transition: fill .4s, transform .4s var(--ease); }
.nights svg.lit { fill: var(--rose); transform: scale(1.08); }
.nights figcaption { grid-column: 1 / -1; text-align: center; font: 600 1.35rem/1.3 var(--hand); color: var(--ink-soft); margin-top: 6px; }

/* The call */
.call {
  max-width: 330px; margin: 28px auto 0; padding: 34px 24px 28px; border-radius: 40px;
  background: linear-gradient(170deg, #6b3150, #3b1a2c); color: #fff; text-align: center;
  box-shadow: 0 24px 50px -20px rgb(59 26 44 / .8);
}
.call-avatar { width: 92px; height: 92px; border-radius: 50%; background: #f8d3dc; padding: 8px; display: block; margin: 0 auto 14px; }
.call-label { font-size: .9rem; opacity: .8; margin: 0; }
.call-name { font: italic 400 2.1rem/1.15 var(--display); margin: 4px 0; display: flex; justify-content: center; align-items: center; gap: .3em; }
.call-name svg { width: .62em; height: .6em; fill: #f4a6ba; }
.call-state { font-size: .95rem; opacity: .85; margin: 0; font-variant-numeric: tabular-nums; }
.call-talk { margin-top: 22px; }
.call-talk p { font: 500 1.45rem/1.3 var(--hand); margin: .3em 0; }
.call-end { color: #ffd0dc; }
.call-actions { display: flex; justify-content: space-around; margin-top: 30px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: 500 .9rem/1 var(--serif); cursor: pointer; padding: 0; }
.call-btn svg { width: 66px; height: 66px; padding: 18px; border-radius: 50%; fill: #fff; transition: transform .2s var(--ease); }
.call-btn:hover svg { transform: scale(1.06); }
.decline svg { background: #e0566f; }
.accept svg { background: #3fa065; }
.call-toast { margin: 20px 0 0; padding: 10px 12px; border-radius: 16px; background: rgb(255 255 255 / .14); font-size: .95rem; }
.call.nope, .lock.nope { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Birthday cake */
.cake { max-width: 360px; width: 100%; justify-self: center; text-align: center; background: var(--white); border-radius: 32px; padding: 26px 22px 24px; box-shadow: var(--shadow); }
.cake-title { font: italic 400 1.7rem/1.15 var(--display); margin: 0 0 6px; }
.cake-art { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; overflow: visible; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite alternate; transition: opacity .3s, scale .3s; }
.flame + .flame { animation-delay: -.6s; }
@keyframes flicker { 0% { transform: rotate(-4deg) scaleY(1); } 100% { transform: rotate(4deg) scaleY(1.12); } }
.smoke { fill: #d9cdd2; opacity: 0; }
.cake.out .flame { opacity: 0; scale: .2; }
.cake.out .smoke { animation: smoke 1.8s ease-out forwards; }
@keyframes smoke { 0% { opacity: .8; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }
.wish { font: 600 1.5rem/1.3 var(--hand); color: var(--rose-deep); margin: 14px 0 0; }

/* Russian survival kit */
.words { list-style: none; padding: 0; margin: 32px auto 0; max-width: 600px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.word { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); text-align: center; }
.word > span, .word-btn { display: block; padding: 18px 14px; }
.word-btn { flex: 1; width: 100%; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 22px; }
.ru { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--rose-deep); }
.word .en { display: block; font-size: .95rem; line-height: 1.45; padding: 0 14px 18px; }
.word-btn .tap { display: block; font: 600 1.15rem/1 var(--hand); color: var(--ink-soft); margin-top: 6px; }
.word.open .tap { display: none; }
.word.open .en { animation: pop .35s var(--ease); }

/* Boarding pass */
.pass { display: grid; grid-template-columns: 1fr auto; max-width: 460px; width: 100%; justify-self: center; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.pass-main { padding: 22px 22px 16px; }
.pass-head { font: 600 1.6rem/1 var(--hand); color: var(--rose-deep); margin: 0 0 14px; }
.pass dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.pass dt { font-size: .78rem; color: var(--ink-soft); }
.pass dd { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.pass-stub {
  writing-mode: vertical-rl; margin: 0; padding: 16px 14px; text-align: center;
  font: 600 1.45rem/1 var(--hand); color: var(--rose-deep);
  background: radial-gradient(circle at 0 6px, transparent 4px, var(--blush) 4.5px) 0 0 / 100% 14px;
}

/* Reasons */
.reasons { list-style: none; counter-reset: reason; padding: 0; margin: 0; max-width: 38rem; }
.reasons li {
  counter-increment: reason; position: relative; margin: 0 0 14px; padding: 18px 20px 18px 72px;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow); font-size: 1.1rem; line-height: 1.5;
}
.reasons li::before {
  content: counter(reason); position: absolute; left: 16px; top: 15px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--rose-deep);
  font: italic 500 1.45rem/1 var(--display);
}
.reasons b { font-weight: 600; }
.joke { display: block; font: 600 1.35rem/1.3 var(--hand); color: var(--rose-deep); margin-top: 4px; }
.reasons li.pop { animation: pop .45s var(--ease); }
.reasons-after { font: 600 1.5rem/1.3 var(--hand); color: var(--ink-soft); margin: 18px 0 0; }
.snap.solo { --tilt: 2deg; max-width: 300px; justify-self: center; }

/* Ending */
.ending {
  padding: clamp(72px, 11vw, 130px) 20px clamp(48px, 8vw, 90px); text-align: center;
  background: radial-gradient(70% 38% at 50% 72%, #fbd5df 0, transparent 100%), linear-gradient(to bottom, var(--paper), #fde9ee);
}
.ending h2 { max-width: none; font-size: clamp(2.8rem, 1.4rem + 6.4vw, 6rem); }
.ending-text { max-width: 34rem; margin: 22px auto 0; font-size: clamp(1.07rem, 1rem + .3vw, 1.2rem); }
.lock {
  max-width: 320px; margin: 40px auto 0; padding: 24px 22px;
  border: 2px dashed #e5a5b7; border-radius: 26px; background: rgb(255 253 251 / .7);
}
.lock-icon { width: 34px; height: 34px; fill: var(--rose-deep); color: var(--rose-deep); }
.lock-title { font: italic 400 1.7rem/1.1 var(--display); margin: 6px 0 4px; }
.lock-note { font: 600 1.35rem/1.3 var(--hand); color: var(--ink-soft); margin: 0; }
.hug-bear { display: block; width: min(200px, 52vw); height: auto; margin: 44px auto 0; }
.held { fill: var(--rose-deep); transform-box: fill-box; transform-origin: center; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.12); } 30% { transform: scale(1.04); } }
.foot { text-align: center; padding: 28px 20px 48px; background: #fde9ee; color: var(--ink-soft); font-size: .95rem; }
.foot p { margin: 0; }
.foot-love { font: 600 1.45rem/1.3 var(--hand); color: var(--rose-deep); margin-top: 4px !important; }

/* Flower dividers */
.bloom { display: flex; justify-content: center; padding: 0 20px; margin: -32px 0; position: relative; z-index: 2; }
.bloom svg { width: min(240px, 62vw); height: auto; overflow: visible; }
.bloom .stem { fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; }
.bloom .lf { fill: var(--sage); }
.bloom .f1 { fill: var(--rose); }
.bloom .f2 { fill: #f6b9c8; }
.bloom .f3 { fill: #f3c6a6; }
.bloom .f, .bloom .lf { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease), opacity .7s; }
.bloom.closed .f { transform: scale(.1) rotate(-80deg); opacity: 0; }
.bloom.closed .lf { transform: scale(.3); opacity: 0; }
.bloom .f2 { transition-delay: .15s; }
.bloom .f3 { transition-delay: .3s; }

/* Falling leaves in October */
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.leaf { position: absolute; top: -40px; display: block; animation: fall var(--dur, 14s) linear var(--delay, 0s) infinite; opacity: .7; }
.leaf svg { display: block; width: 100%; height: auto; }
.leaf.c1 { fill: #e2a35a; }
.leaf.c2 { fill: #c9743f; }
.leaf.c3 { fill: #e9c46a; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--drift, 40px), 50vh) rotate(160deg); }
  100% { transform: translate(0, 110vh) rotate(320deg); }
}

/* Blocks ease in as you reach them (only when the script runs) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease), rotate .45s var(--ease), translate .45s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 36px; }
  .wall.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
  .wall.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .split > .wall.duo { max-width: none; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .peek-bear { transform: none; }
}
