:root {
  --paper: #fff8fa;
  --pink: #d05b7d;
  --pink-soft: #f5cbd7;
  --rose: #b64c6b;
  --ink: #5a3948;
  --muted: #a58b96;
  --line: rgba(207, 91, 125, .25);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before, body::after {
  position: fixed;
  z-index: -2;
  content: '';
  pointer-events: none;
  filter: blur(2px);
}
body::before {
  inset: 0 auto 0 0;
  width: 34vw;
  background: radial-gradient(ellipse at 0 38%, rgba(247, 216, 226, .48), transparent 68%);
}
body::after {
  inset: auto 0 0 auto;
  width: 36vw;
  height: 70vh;
  background: radial-gradient(ellipse at 100% 100%, rgba(248, 220, 229, .5), transparent 68%);
}
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .28; pointer-events: none; }
.ambient-one { width: 220px; height: 220px; top: 18%; right: 18%; background: #f9dce5; }
.ambient-two { width: 180px; height: 180px; bottom: 5%; left: 42%; background: #fbe9ee; }
.site-header {
  width: min(1240px, calc(100% - 11.5vw));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 600 19px var(--serif); letter-spacing: -.4px; }
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  box-shadow: 0 5px 15px rgba(190, 76, 110, .2);
  font: 25px/1 var(--sans);
}
.hero {
  width: min(1240px, calc(100% - 14.5vw));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 25px 0 90px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  column-gap: 5.2%;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 12px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 31px;
  color: var(--pink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.15px;
}
.eyebrow span:first-child, .eyebrow span:last-child { width: 25px; height: 1px; background: #e58ca5; }
h1 {
  max-width: 660px;
  margin: 0;
  color: #5b3b49;
  font: 500 clamp(48px, 5.05vw, 75px)/1.075 var(--serif);
  letter-spacing: -3.3px;
}
.hero-subtitle { max-width: 430px; margin: 23px 0 0; color: #9e8490; font-size: 13.5px; line-height: 1.95; }
.countdown-wrap { display:flex; align-items:center; gap:clamp(9px,1.55vw,20px); margin:43px 0 0 3px; }
.countdown-unit { min-width:clamp(58px,6.1vw,76px); min-height:76px; padding:10px 8px 9px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px solid rgba(229,177,193,.36); border-radius:16px; background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,239,245,.66)); box-shadow:0 9px 25px rgba(158,82,108,.055),inset 0 1px 0 rgba(255,255,255,.95); position:relative; overflow:hidden; }
.countdown-unit::before { content:""; position:absolute; width:42px; height:42px; top:-28px; right:-15px; border-radius:50%; background:rgba(231,155,178,.15); filter:blur(5px); }
.countdown-number { color:#b34e6d; font:500 clamp(30px,3vw,39px)/1 var(--serif); font-variant-numeric:tabular-nums; letter-spacing:-.8px; text-shadow:0 2px 12px rgba(179,78,109,.08); }
.countdown-label { color:#b49aa4; font-size:7px; font-weight:600; letter-spacing:1.15px; }
.countdown-separator { display:none; }
.target-date { display: flex; align-items: center; gap: 8px; margin: 28px 0 0 2px; color: #a88c98; font-size: 11px; }
.target-date span { color: var(--pink); font-size: 16px; }
.countdown-finished { margin: 27px 0 0; color: var(--pink); font: 500 24px var(--serif); }
.hero-art { min-height: 500px; display: grid; place-items: center; position: relative; }
.art-orbit { position: absolute; width: min(100%, 475px); aspect-ratio: 1; border: 1px solid rgba(221, 139, 163, .32); border-radius: 50%; }
.orbit-one { transform: rotate(-12deg) scaleX(.88); }
.orbit-two { width: min(92%, 430px); border-style: dashed; transform: rotate(17deg) scaleX(1.08); opacity: .65; }
.hero-photo-frame {
  width: min(76%, 375px);
  height: 455px;
  padding: 8px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(218, 143, 164, .48);
  border-radius: 48% 48% 22px 22px / 43% 43% 22px 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 24px 65px rgba(135, 67, 91, .11), 0 0 0 5px rgba(255,255,255,.72);
  transform: rotate(1.5deg);
}
.hero-photo-frame::after { position: absolute; inset: 0; content: ''; border: 1px solid rgba(255,255,255,.72); border-radius: inherit; pointer-events: none; }
.hero-photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; border-radius: inherit; }
.floating-note {
  position: absolute;
  z-index: 3;
  padding: 12px 17px;
  border: 1px solid rgba(230, 190, 203, .65);
  border-radius: 11px;
  color: #b77a8d;
  background: rgba(255, 250, 252, .9);
  box-shadow: 0 10px 25px rgba(132, 70, 91, .06);
  font: 13px var(--serif);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.note-top { top: 15%; left: 1%; transform: rotate(-7deg); }
.note-top span { margin-right: 7px; color: var(--pink); }
.note-bottom { right: -1%; bottom: 13%; transform: rotate(4deg); }
.floating-hearts { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-heart { position:absolute; bottom:-35px; color:rgba(207,91,125,.22); animation:float-up linear infinite; text-shadow:0 0 14px rgba(207,91,125,.13); }
@keyframes float-up { 0% { transform: translate3d(0,0,0) rotate(0); opacity: 0; } 12% { opacity: .8; } 85% { opacity: .45; } 100% { transform: translate3d(var(--drift),-110vh,0) rotate(25deg); opacity: 0; } }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .site-header { width: calc(100% - 9vw); height: 75px; }
  .hero { width: calc(100% - 12vw); min-height: calc(100vh - 75px); column-gap: 2%; }
  h1 { font-size: clamp(43px, 6vw, 58px); letter-spacing: -2.5px; }
  .hero-art { min-height: 430px; }
  .hero-photo-frame { height: 390px; }
  .floating-note { font-size: 11px; padding: 10px 12px; }
}
@media (max-width: 650px) {
  .site-header { width: calc(100% - 42px); height: 72px; }
  .brand { font-size: 18px; }
  .hero { width: calc(100% - 42px); min-height: auto; padding: 43px 0 90px; display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 22px; font-size: 8px; letter-spacing: 1.6px; }
  h1 { max-width: 520px; font-size: clamp(43px, 12vw, 62px); line-height: 1.08; letter-spacing: -2.4px; }
  .hero-subtitle { max-width: 360px; margin-top: 17px; font-size: 12.5px; }
  .countdown-wrap { justify-content:flex-start; gap:clamp(7px,2.5vw,13px); margin:31px 0 0; }
  .countdown-unit { min-width:clamp(55px,18vw,70px); min-height:69px; padding:9px 5px; border-radius:14px; }
  .countdown-number { font-size:clamp(28px,8vw,35px); }
  .target-date { margin-top:21px; font-size:10px; }
  .hero-art { width: 100%; min-height: 390px; margin-top: 0; }
  .art-orbit { width: min(100%, 360px); }
  .orbit-two { width: min(90%, 325px); }
  .hero-photo-frame { width: min(72%, 300px); height: 365px; }
  .note-top { top: 12%; left: 0; }
  .note-bottom { right: -1%; bottom: 11%; }
}
@media (max-width: 380px) {
  .hero { width: calc(100% - 34px); }
  .countdown-wrap { gap:6px; }
  .countdown-unit { min-width:52px; min-height:64px; }
  .countdown-label { font-size:6px; letter-spacing:.8px; }
  .hero-photo-frame { height: 330px; }
  .hero-art { min-height: 355px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Clickable memories, kept inside the same elegant arch-shaped photo frame. */
.memory-frame { cursor: pointer; isolation: isolate; }
.memory-frame img { cursor: pointer; transition: opacity .22s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.memory-frame.is-changing img { opacity: .18; transform: scale(1.025); }
.memory-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  color: #a94d6b;
  background: rgba(255,248,250,.84);
  box-shadow: 0 5px 18px rgba(72,30,48,.16);
  font: 26px/1 var(--serif);
  cursor: pointer;
  opacity: .88;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.memory-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.08); background: #fff; }
.memory-prev { left: 15px; transform: translateY(-50%); }
.memory-next { right: 15px; transform: translateY(-50%); }
.memory-indicator {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: white;
  background: rgba(55,31,43,.32);
  font: 600 9px var(--sans);
  letter-spacing: 1.3px;
  pointer-events: none;
  backdrop-filter: blur(7px);
}
.memory-frame:focus-visible { outline: 3px solid rgba(208,91,125,.55); outline-offset: 8px; }
@media (hover: hover) {
  .memory-arrow { opacity: .0; }
  .memory-frame:hover .memory-arrow, .memory-frame:focus-within .memory-arrow { opacity: .95; }
}
@media (hover: none) {
  .memory-arrow { opacity: .92; width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .memory-frame img, .memory-arrow { transition: none !important; }
}


/* Reliable touch/click slideshow controls inside the arch photo. */
.memory-frame {
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.memory-frame img {
  pointer-events: none;
  transition: opacity .24s ease, transform .45s ease;
}
.memory-frame.is-changing img {
  opacity: .15;
  transform: scale(1.025);
}
.memory-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: #a94d6b;
  background: rgba(255,248,250,.92);
  box-shadow: 0 5px 18px rgba(72,30,48,.18);
  font: 27px/1 Georgia, serif;
  cursor: pointer;
  opacity: .96;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}
.memory-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.memory-prev { left: 13px; }
.memory-next { right: 13px; }
.memory-indicator {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(67,37,51,.48);
  font: 600 9px/1.2 var(--sans);
  letter-spacing: 1.4px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.memory-tap-hint {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: rgba(70,35,50,.42);
  font: italic 12px var(--serif);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.memory-frame:hover .memory-tap-hint { opacity: 1; }
.memory-tap-hint.hint-hidden { opacity: 0 !important; }
.memory-frame:focus-visible { outline: 3px solid rgba(208,91,125,.55); outline-offset: 8px; }
@media (hover: none) {
  .memory-arrow { opacity: .98; }
  .memory-tap-hint { opacity: .85; top: auto; bottom: 53px; }
}
@media (prefers-reduced-motion: reduce) {
  .memory-frame img, .memory-arrow, .memory-tap-hint { transition: none !important; }
}
