/* Ansal & Afna — botanical edition */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.locked, html.locked body { overflow: hidden; }

::selection { background: #2f6a46; color: #fdf6ea; }

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #dde4d3 0%, transparent 70%),
    linear-gradient(180deg, #cdd6c2 0%, #c3cdb6 100%);
  background-attachment: fixed;
}
.sage-wash {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, #e3e9da 0%, transparent 70%),
    linear-gradient(180deg, #cdd6c2, #bcc7ae);
}

/* ---------- paper ---------- */
.paper {
  background: linear-gradient(180deg, #fdf6ea 0%, #fbf1e1 60%, #f8ead4 100%);
  box-shadow: 0 30px 60px -20px rgba(60, 75, 50, .35), 0 8px 18px rgba(60, 75, 50, .12);
}

/* gold rounded frame */
.frame {
  border: 1.5px solid #b2894a;
  box-shadow: 0 0 0 4px rgba(253, 246, 234, .6), inset 0 0 0 4px rgba(253, 246, 234, .6);
  pointer-events: none;
}

.flip { transform: scale(-1, -1); }
.flip-x { transform: scaleX(-1); }
.flip-y { transform: scaleY(-1); }

/* names */
.name {
  font-size: clamp(5rem, 24vw, 8.5rem);
  line-height: 1.15;
  padding: 0 .15em;
}
.name .ch { display: inline-block; }


/* ---------- envelope ---------- */
.envelope {
  width: min(86vw, 400px);
  aspect-ratio: 10 / 7;
  perspective: 1400px;
}
.env-back, .env-front, .env-flap, .env-letter { position: absolute; }
.env-back {
  inset: 0;
  background: linear-gradient(180deg, #efe0c6, #e6d3b2);
  border-radius: 6px;
  box-shadow: 0 30px 50px -18px rgba(50, 65, 40, .45);
}
.env-letter {
  left: 5%; right: 5%; top: 6%; height: 88%;
  background: #fdf6ea;
  border-radius: 6px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
  z-index: 1;
}
.env-front {
  inset: 0;
  z-index: 2;
  border-radius: 6px;
  background: linear-gradient(160deg, #f6ead4, #ead8b9);
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, .06));
}
.env-flap {
  left: 0; right: 0; top: 0; height: 64%;
  z-index: 3;
  background: linear-gradient(180deg, #f3e4c9, #e3cfac);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  border-radius: 6px 6px 0 0;
}
.seal {
  position: absolute; z-index: 4;
  left: 50%; top: 62%;
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #4f9468, #2f6a46 55%, #1f4a30);
  box-shadow: 0 6px 14px rgba(20, 50, 30, .45), inset 0 0 0 4px rgba(255, 255, 255, .08), inset 0 0 0 6px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .3s;
}
.seal:hover { transform: scale(1.06); }
.seal::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(47, 106, 70, .6);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.tap-dot { width: 6px; height: 6px; border-radius: 50%; background: #2f6a46; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- hero bits ---------- */
.scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(#a8823f, transparent);
  transform-origin: top;
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* ---------- calendar ---------- */
.cal-day { position: relative; height: 2.4rem; display: grid; place-items: center; }
.cal-day.is-date { color: #2f2f2c; font-weight: 700; font-size: 1.05rem; }
.cal-ring { position: absolute; left: 50%; top: 50%; width: 3.3rem; height: 3.3rem; transform: translate(-50%, -52%); overflow: visible; }

/* countdown */
.cd {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(168, 130, 63, .45);
  background: radial-gradient(circle at 50% 30%, #fffaf1, #f6ead6);
  box-shadow: inset 0 0 0 4px #fdf6ea, inset 0 0 0 5px rgba(168, 130, 63, .2);
}
.cd-num { font-family: "Cinzel", serif; font-weight: 600; font-size: clamp(1.25rem, 5.5vw, 1.9rem); line-height: 1; color: #2f2f2c; font-variant-numeric: tabular-nums; }
.cd-label { margin-top: .35rem; font-family: "Cinzel", serif; font-size: clamp(7px, 2vw, 9px); letter-spacing: .2em; text-transform: uppercase; color: #a8823f; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .95rem 1.6rem;
  border-radius: 9999px;
  font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s, box-shadow .3s;
}
.btn-leaf { background: #2f6a46; color: #fdf6ea; box-shadow: 0 10px 20px -10px rgba(47, 106, 70, .7); }
.btn-leaf:hover { background: #24563a; transform: translateY(-2px); }
.btn-line { border: 1px solid #a8823f; color: #8a6a30; }
.btn-line:hover { background: #a8823f; color: #fdf6ea; transform: translateY(-2px); }

#quote .w { display: inline-block; }

/* drifting leaf */
.drift-leaf { position: absolute; top: -40px; left: 0; width: 22px; height: 22px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

svg[data-corner], svg[data-sprig] { overflow: visible; }
