/* ============================================================
   29 — LOVE LETTER
   Konsep: surat tangan di atas kertas cream. Amplop, segel lilin,
   lipatan kertas, foto polaroid, kartu balasan, kelopak jatuh.
   ============================================================ */

:root {
  --ll-paper: #f8f0e1;
  --ll-paper-2: #f2e6d2;
  --ll-paper-3: #fffaf0;
  --ll-ink: #3b2b28;
  --ll-soft: #6b5650;
  --ll-muted: #8d756c;
  --ll-rose: #b4686f;
  --ll-rose-deep: #8f4a52;
  --ll-rose-soft: #d9a6a6;
  --ll-sage: #8b9a7b;
  --ll-gold: #b48a4e;
  --ll-line: rgba(59, 43, 40, 0.14);
  --ll-line-soft: rgba(59, 43, 40, 0.08);
  --ll-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ll-body: "Lora", Georgia, "Times New Roman", serif;
  --ll-hand: "Caveat", "Segoe Script", cursive;
  --ll-script: "Parisienne", "Snell Roundhand", cursive;
  --ll-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[hidden] { display: none !important; }

body {
  background: var(--ll-paper);
  color: var(--ll-ink);
  font-family: var(--ll-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.ll-locked { overflow: hidden; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

/* paper grain */
.ll-gate::after,
.ll-sheet::after,
.ll-app::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ll-app::after { position: fixed; }

/* ------------------------------------------------------------
   GATE / ENVELOPE
   ------------------------------------------------------------ */
.ll-gate {
  position: fixed; inset: 0; z-index: 120;
  overflow: hidden;
  background:
    radial-gradient(90% 75% at 50% 34%, #fdf6e9 0%, #f4e7d2 58%, #ead8bd 100%);
  transition: opacity 1s var(--ll-ease), visibility 1s, transform 1s var(--ll-ease);
}
.ll-gate.is-gone { opacity: 0; visibility: hidden; transform: scale(1.035); pointer-events: none; }
.ll-gate__light {
  position: absolute; top: -18%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 70vh;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 250, 238, 0.9), transparent 65%);
  pointer-events: none;
}
.ll-gate__desk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(to bottom, rgba(196, 164, 128, 0.14), rgba(178, 142, 104, 0.28));
  border-top: 1px solid rgba(120, 88, 60, 0.12);
  pointer-events: none;
}
.ll-gate__top {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ll-muted);
}
.ll-gate__back { text-decoration: none; color: var(--ll-soft); padding-bottom: 2px; border-bottom: 1px solid var(--ll-line); }
.ll-gate__back:hover { color: var(--ll-rose-deep); }
.ll-gate__mono { font-family: var(--ll-serif); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--ll-rose-deep); }
.ll-gate__year { letter-spacing: 0.12em; }
.ll-gate__scene {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(56px + env(safe-area-inset-top)) 18px calc(46px + env(safe-area-inset-bottom));
  text-align: center;
}
.ll-gate__eyebrow {
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ll-rose-deep); margin-bottom: 18px;
}
.ll-gate__hint {
  margin-top: 22px; font-family: var(--ll-hand); font-size: 1.25rem;
  color: var(--ll-rose-deep); transition: opacity 0.3s;
}
.ll-gate__meta {
  margin-top: 5px; font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ll-muted);
}
.ll-gate__foot {
  position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 4;
  text-align: center; font-family: var(--ll-hand); font-size: 1rem; color: var(--ll-muted);
}

/* Envelope */
.ll-envelope {
  position: relative;
  width: min(88vw, 430px);
  aspect-ratio: 1.38 / 1;
  perspective: 1100px;
  filter: drop-shadow(0 28px 34px rgba(90, 60, 40, 0.22));
}
.ll-envelope__body {
  position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(150deg, #f3e4cc, #e9d6b8);
  border: 1px solid rgba(120, 88, 60, 0.22);
}
.ll-envelope__body::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(120, 88, 60, 0.1); border-radius: 2px;
}
.ll-envelope__letter {
  position: absolute; left: 5%; right: 5%; top: 4%; height: 90%;
  z-index: 2; padding: 16px 16px;
  background: var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.14);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(90, 60, 40, 0.12);
  transform: translateY(4%);
  transition: transform 0.95s var(--ll-ease) 0.28s, z-index 0s 0.28s;
  overflow: hidden;
}
.ll-envelope__letter::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; bottom: 26px;
  background: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(59, 43, 40, 0.07) 21px 22px);
  opacity: 0.8;
}
.ll-envelope__letter-line {
  display: block; height: 1px; width: 82%; margin: 16px 0;
  background: rgba(59, 43, 40, 0.12);
}
.ll-envelope__letter-line--short { width: 56%; }
.ll-envelope__front {
  position: absolute; inset: 0; z-index: 3; border-radius: 4px;
  background: linear-gradient(155deg, #f0e0c6, #e6d2b2);
  overflow: hidden;
  border: 1px solid rgba(120, 88, 60, 0.2);
}
.ll-envelope__fold { position: absolute; }
.ll-envelope__fold--l { inset: 0; clip-path: polygon(0 0, 50% 50%, 0 100%); background: rgba(210, 184, 148, 0.55); }
.ll-envelope__fold--r { inset: 0; clip-path: polygon(100% 0, 50% 50%, 100% 100%); background: rgba(210, 184, 148, 0.4); }
.ll-envelope__fold--b { inset: 0; clip-path: polygon(0 100%, 50% 48%, 100% 100%); background: rgba(224, 201, 168, 0.8); }
.ll-envelope__flap {
  position: absolute; top: 0; left: 0; right: 0; height: 54%; z-index: 5;
  background: linear-gradient(180deg, #f4e6cf, #e8d5b6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 1.05s cubic-bezier(0.6, 0, 0.3, 1) 0.1s, z-index 0s 0.55s;
  border-top: 1px solid rgba(120, 88, 60, 0.16);
}
.ll-envelope__flap::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, transparent 55%, rgba(120, 88, 60, 0.09));
}
.ll-envelope__address {
  position: absolute; left: 8%; right: 8%; bottom: 12%; z-index: 4;
  text-align: left;
}
.ll-envelope__to {
  display: block; font-size: 0.48rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ll-muted); margin-bottom: 2px;
}
.ll-envelope__address strong {
  display: block; font-family: var(--ll-hand); font-weight: 500;
  font-size: clamp(1.2rem, 5.4vw, 1.55rem); line-height: 1.15;
  color: var(--ll-ink); overflow-wrap: anywhere;
  max-width: 74%;
}
.ll-envelope__from {
  display: block; text-align: right; margin-top: 2px;
  font-family: var(--ll-hand); font-size: 0.95rem; color: var(--ll-rose-deep);
}
.ll-seal {
  position: absolute; left: 50%; top: 47%; z-index: 7;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; padding: 0; border: 0; background: none;
  border-radius: 50%;
  transition: transform 0.35s var(--ll-ease);
}
.ll-seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.ll-seal__wax {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 47% 53% 48% 52% / 51% 46% 54% 49%;
  background:
    radial-gradient(circle at 35% 28%, #cf7d84 0%, #a95760 42%, #7d3a44 100%);
  box-shadow:
    0 5px 12px rgba(90, 30, 36, 0.35),
    inset 0 2px 5px rgba(255, 220, 220, 0.28),
    inset 0 -3px 6px rgba(70, 20, 26, 0.35);
  transition: transform 0.55s var(--ll-ease), opacity 0.55s, filter 0.4s;
}
.ll-seal__wax::before {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%; border: 1px solid rgba(255, 225, 220, 0.4);
}
.ll-seal__ring {
  position: absolute; inset: 12px; border-radius: 50%;
  border: 1px dashed rgba(255, 230, 225, 0.4);
}
.ll-seal__mono {
  position: relative; z-index: 2;
  font-family: var(--ll-serif); font-size: 1rem; letter-spacing: 0.03em;
  color: #ffe9df; text-shadow: 0 1px 2px rgba(70, 20, 26, 0.5);
}
.ll-seal__crack {
  position: absolute; left: 50%; top: 12%; width: 2px; height: 76%;
  background: #4a1c24; opacity: 0; transform: translateX(-50%) rotate(12deg);
  clip-path: polygon(0 0, 100% 12%, 20% 26%, 100% 42%, 0 55%, 100% 68%, 30% 82%, 100% 100%);
  transition: opacity 0.2s 0.15s;
}
.ll-gate.is-open .ll-seal__wax { transform: scale(1.14) rotate(16deg) translateY(10px); opacity: 0; filter: blur(1px); }
.ll-gate.is-open .ll-seal__crack { opacity: 0.8; }
.ll-gate.is-open .ll-envelope__flap { transform: rotateX(-168deg); z-index: 1; }
.ll-gate.is-open .ll-envelope__letter { transform: translateY(-38%) scale(1.02); z-index: 6; }
.ll-gate.is-open .ll-envelope__address { opacity: 0; transition: opacity 0.4s; }

/* Petals */
.ll-petals { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.ll-petals span {
  position: absolute; top: -8%;
  width: 14px; height: 10px;
  border-radius: 62% 38% 58% 42% / 55% 60% 40% 45%;
  background: linear-gradient(140deg, #e7b6b6, #c57d84);
  opacity: 0.65;
  animation: llFall 13s linear infinite;
}
.ll-petals span:nth-child(1) { left: 8%; animation-delay: -2s; animation-duration: 14s; }
.ll-petals span:nth-child(2) { left: 22%; animation-delay: -7s; animation-duration: 17s; transform: scale(0.8); }
.ll-petals span:nth-child(3) { left: 38%; animation-delay: -11s; animation-duration: 15s; }
.ll-petals span:nth-child(4) { left: 54%; animation-delay: -4s; animation-duration: 19s; transform: scale(1.2); }
.ll-petals span:nth-child(5) { left: 68%; animation-delay: -9s; animation-duration: 14s; }
.ll-petals span:nth-child(6) { left: 82%; animation-delay: -13s; animation-duration: 18s; transform: scale(0.9); }
.ll-petals span:nth-child(7) { left: 92%; animation-delay: -6s; animation-duration: 16s; }
@keyframes llFall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  50% { transform: translate3d(22px, 50vh, 0) rotate(160deg); }
  100% { transform: translate3d(-14px, 112vh, 0) rotate(340deg); opacity: 0.15; }
}

/* ------------------------------------------------------------
   APP
   ------------------------------------------------------------ */
.ll-app {
  position: relative;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ll-ease) 0.15s, visibility 1s;
  padding-bottom: 30px;
}
body.ll-live .ll-app { opacity: 1; visibility: visible; }
.ll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: rgba(59, 43, 40, 0.06); }
.ll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ll-rose-soft), var(--ll-rose-deep)); }

.ll-head {
  position: sticky; top: 0; z-index: 70;
  background: rgba(248, 240, 225, 0.9);
  border-bottom: 1px solid var(--ll-line-soft);
  backdrop-filter: blur(16px);
}
.ll-head__row {
  display: flex; align-items: center; gap: 10px;
  padding: calc(9px + env(safe-area-inset-top)) 14px 7px;
}
.ll-head__back {
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; color: var(--ll-muted);
  font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s;
}
.ll-head__back svg { width: 15px; }
.ll-head__back:hover { color: var(--ll-rose-deep); }
.ll-head__mono {
  margin-left: auto; margin-right: auto;
  font-family: var(--ll-serif); font-size: 0.98rem; letter-spacing: 0.1em;
  color: var(--ll-ink); text-decoration: none;
}
.ll-head__mono span { color: var(--ll-rose); font-style: italic; }
.ll-head__note {
  font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ll-muted);
}
.ll-index {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px 8px;
}
.ll-index::-webkit-scrollbar { display: none; }
.ll-index a {
  flex: 0 0 auto; text-decoration: none;
  font-family: var(--ll-serif); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--ll-muted); padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ll-index a:hover, .ll-index a.is-active { color: var(--ll-rose-deep); border-color: var(--ll-rose-soft); }

.ll-main { position: relative; z-index: 1; padding: 18px 12px 0; }
.ll-sheet {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) clamp(20px, 5.6vw, 58px) clamp(30px, 6vw, 54px);
  background:
    radial-gradient(110% 80% at 50% 0%, #fdf7ec 0%, #f8f0e1 55%, #f3e8d6 100%);
  border: 1px solid rgba(120, 88, 60, 0.16);
  box-shadow:
    0 30px 70px -44px rgba(90, 60, 40, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}
body.ll-live .ll-sheet { animation: llUnfold 1.15s var(--ll-ease) 0.15s both; }
@keyframes llUnfold {
  from { opacity: 0; transform: translateY(26px) scaleY(0.985); clip-path: inset(0 0 22% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.ll-sheet::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--ll-rose-soft) 0 6px, transparent 6px 12px);
  opacity: 0.35;
}

/* Letterhead */
.ll-letterhead { position: relative; z-index: 1; padding-bottom: 30px; }
.ll-letterhead__meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.52rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ll-muted); padding-bottom: 14px;
  border-bottom: 1px solid var(--ll-line-soft);
}
.ll-to {
  margin-top: 28px; font-family: var(--ll-body); font-style: italic;
  font-size: 0.9rem; color: var(--ll-soft);
}
.ll-to strong { font-family: var(--ll-hand); font-style: normal; font-weight: 500; font-size: 1.4rem; color: var(--ll-rose-deep); margin-right: 5px; }
.ll-title {
  margin: 14px 0 20px;
  font-family: var(--ll-serif); font-weight: 300;
  font-size: clamp(2.2rem, 10.4vw, 4.1rem);
  line-height: 1.02; letter-spacing: -0.015em;
}
.ll-title em { font-style: italic; color: var(--ll-rose-deep); }
.ll-intro { font-size: 0.88rem; line-height: 1.9; color: var(--ll-soft); max-width: 58ch; }
.ll-letterhead__sign { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ll-hand { font-family: var(--ll-hand); font-size: 1.35rem; color: var(--ll-rose-deep); line-height: 1.2; }
.ll-letterhead__dash { flex: 0 0 60px; height: 1px; background: var(--ll-rose-soft); opacity: 0.7; }

/* Passages */
.ll-passage {
  position: relative; z-index: 1;
  scroll-margin-top: 96px;
  padding: 30px 0 8px;
  border-top: 1px solid var(--ll-line-soft);
}
.ll-margin {
  font-size: 0.5rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ll-rose-deep); margin-bottom: 12px;
}
.ll-h2 {
  font-family: var(--ll-serif); font-weight: 300;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 14px;
}
.ll-h2 em { font-style: italic; color: var(--ll-rose-deep); }
.ll-body { font-size: 0.86rem; line-height: 1.9; color: var(--ll-soft); max-width: 60ch; }
.ll-body strong { color: var(--ll-ink); font-weight: 500; }

.ll-divider {
  display: flex; align-items: center; gap: 12px;
  padding: 26px 0 10px; color: var(--ll-rose-soft);
}
.ll-divider span { flex: 1 1 auto; height: 1px; background: var(--ll-line-soft); }
.ll-divider svg { width: 34px; flex: 0 0 auto; opacity: 0.8; }

/* Couple */
.ll-couple { display: grid; gap: 22px; margin-top: 24px; }
.ll-person { position: relative; }
.ll-person__photo {
  position: relative; display: block; width: min(72%, 260px);
  margin: 0 auto 14px; padding: 9px 9px 30px;
  background: var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.14);
  box-shadow: 0 16px 28px -18px rgba(90, 60, 40, 0.55);
  transform: rotate(-2.2deg);
  transition: transform 0.4s var(--ll-ease), box-shadow 0.4s;
}
.ll-person:nth-child(2) .ll-person__photo { transform: rotate(2.4deg); }
.ll-person__photo:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 22px 34px -18px rgba(90, 60, 40, 0.6); }
.ll-person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 24%; filter: saturate(0.86) sepia(0.12); }
.ll-person__photo::before,
.ll-photo::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 58px; height: 17px; background: rgba(214, 190, 150, 0.62);
  border-left: 1px dashed rgba(120, 88, 60, 0.2); border-right: 1px dashed rgba(120, 88, 60, 0.2);
}
.ll-person__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 5px; text-align: center;
  font-family: var(--ll-hand); font-size: 1rem; color: var(--ll-muted);
}
.ll-person__role { text-align: center; font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ll-rose-deep); }
.ll-person__name { text-align: center; margin-top: 2px; font-family: var(--ll-hand); font-size: 1.8rem; line-height: 1; color: var(--ll-ink); }
.ll-person__parents { text-align: center; margin-top: 6px; font-size: 0.68rem; line-height: 1.6; color: var(--ll-muted); font-style: italic; }
.ll-person__bio { margin-top: 6px; text-align: center; font-size: 0.7rem; line-height: 1.65; color: var(--ll-soft); }
.ll-person__ig {
  display: block; width: max-content; margin: 8px auto 0;
  font-size: 0.58rem; letter-spacing: 0.08em; color: var(--ll-rose-deep);
  text-decoration: none; border-bottom: 1px solid var(--ll-rose-soft); padding-bottom: 1px;
}
.ll-person__ig:hover { color: var(--ll-ink); }

/* Story */
.ll-story { margin-top: 20px; }
.ll-story__item { position: relative; padding: 0 0 24px 0; }
.ll-story__item:last-child { padding-bottom: 0; }
.ll-story__date {
  display: inline-block; font-size: 0.5rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ll-rose-deep); margin-bottom: 4px;
}
.ll-story__title { font-family: var(--ll-hand); font-weight: 500; font-size: 1.5rem; line-height: 1.1; color: var(--ll-ink); }
.ll-story__text { margin-top: 5px; font-size: 0.84rem; line-height: 1.9; color: var(--ll-soft); max-width: 58ch; }

.ll-insert {
  display: block; position: relative;
  width: min(78%, 330px); margin: 16px auto 4px;
  padding: 8px 8px 28px;
  background: var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.14);
  box-shadow: 0 18px 30px -20px rgba(90, 60, 40, 0.55);
  transform: rotate(2.2deg);
  transition: transform 0.45s var(--ll-ease), box-shadow 0.45s;
}
.ll-insert:nth-of-type(even) { transform: rotate(-2deg); }
.ll-insert:hover, .ll-insert:focus-visible { transform: rotate(0) translateY(-6px) scale(1.015); box-shadow: 0 26px 40px -20px rgba(90, 60, 40, 0.6); }
.ll-insert img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.85) sepia(0.14); }
.ll-insert__cap { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-family: var(--ll-hand); font-size: 1rem; color: var(--ll-muted); }

/* Event */
.ll-event {
  position: relative; margin-top: 22px;
  background: var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.16);
  box-shadow: 0 18px 34px -26px rgba(90, 60, 40, 0.5);
  padding: 22px 18px 18px;
}
.ll-event::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(120, 88, 60, 0.09); pointer-events: none;
}
.ll-event__item { position: relative; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px dashed rgba(120, 88, 60, 0.25); }
.ll-event__item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.ll-event__tag { font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ll-rose-deep); }
.ll-event__name { margin-top: 3px; font-family: var(--ll-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.ll-event__time { margin-top: 4px; font-family: var(--ll-hand); font-size: 1.2rem; color: var(--ll-rose-deep); }
.ll-event__venue { margin-top: 6px; font-size: 0.78rem; color: var(--ll-ink); }
.ll-event__addr { margin-top: 2px; font-size: 0.7rem; line-height: 1.6; color: var(--ll-muted); }
.ll-event__cal {
  display: inline-block; margin-top: 8px; font-size: 0.56rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ll-rose-deep);
  text-decoration: none; border-bottom: 1px solid var(--ll-rose-soft);
}
.ll-event__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ll-line-soft);
  font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ll-muted);
}
.ll-link { color: var(--ll-rose-deep); text-decoration: none; border-bottom: 1px solid var(--ll-rose-soft); padding-bottom: 1px; }
.ll-link:hover { color: var(--ll-ink); }

/* Countdown */
.ll-count__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ll-postmark {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 50%;
  border: 1px dashed var(--ll-rose); display: grid; place-items: center; text-align: center;
  font-size: 0.44rem; letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase;
  color: var(--ll-rose-deep); transform: rotate(11deg); opacity: 0.85;
  box-shadow: inset 0 0 0 4px var(--ll-paper);
}
.ll-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.ll-countdown div {
  text-align: center; padding: 12px 2px 10px;
  background: var(--ll-paper-3);
  border: 1px solid var(--ll-line);
  box-shadow: 0 6px 14px -10px rgba(90, 60, 40, 0.4);
}
.ll-countdown strong {
  display: block; font-family: var(--ll-serif); font-weight: 400;
  font-size: clamp(1.5rem, 8vw, 2.2rem); line-height: 1; color: var(--ll-ink);
  font-variant-numeric: tabular-nums;
}
.ll-countdown span {
  display: block; margin-top: 5px; font-size: 0.44rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ll-muted);
}
.ll-count__note { margin-top: 14px; font-size: 1.1rem; }

/* Gallery */
.ll-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px;
  margin-top: 24px;
}
.ll-photo {
  position: relative; display: block;
  padding: 7px 7px 26px;
  background: var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.14);
  box-shadow: 0 14px 24px -18px rgba(90, 60, 40, 0.55);
  text-decoration: none; color: inherit;
  transform: rotate(var(--rot, -1.5deg));
  transition: transform 0.45s var(--ll-ease), box-shadow 0.45s;
}
.ll-photo:nth-child(2n) { --rot: 1.8deg; }
.ll-photo:nth-child(3n) { --rot: -2.4deg; }
.ll-photo:hover, .ll-photo:focus-visible {
  transform: rotate(0) translateY(-7px) scale(1.02);
  box-shadow: 0 24px 36px -18px rgba(90, 60, 40, 0.6);
  z-index: 2;
}
.ll-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.84) sepia(0.14); }
.ll-photo__cap {
  position: absolute; left: 4px; right: 4px; bottom: 4px; text-align: center;
  font-family: var(--ll-hand); font-size: 0.95rem; color: var(--ll-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ll-gallery__hint { margin-top: 14px; font-size: 1rem; color: var(--ll-muted); }

/* Location */
.ll-place { display: grid; gap: 18px; margin-top: 22px; }
.ll-place__map {
  position: relative; height: 210px; overflow: hidden;
  border: 7px solid var(--ll-paper-3);
  box-shadow: 0 16px 28px -20px rgba(90, 60, 40, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 250, 240, 0.55), transparent 55%),
    linear-gradient(145deg, #efe3cf, #e6d7be);
}
.ll-place__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 88, 60, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 88, 60, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}
.ll-place__road {
  position: absolute; left: -18%; width: 136%; height: 2px;
  background: rgba(164, 124, 82, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.35);
}
.ll-place__road--a { top: 34%; transform: rotate(-11deg); }
.ll-place__road--b { top: 66%; transform: rotate(7deg); background: rgba(164, 124, 82, 0.28); }
.ll-place__road--c { left: 58%; top: -20%; width: 2px; height: 140%; transform: rotate(16deg); background: rgba(164, 124, 82, 0.3); }
.ll-place__block {
  position: absolute; border: 1px solid rgba(120, 88, 60, 0.16);
  background: rgba(180, 146, 100, 0.13); border-radius: 2px;
}
.ll-place__block--a { left: 12%; top: 12%; width: 26%; height: 20%; transform: rotate(-4deg); }
.ll-place__block--b { right: 10%; top: 20%; width: 22%; height: 28%; transform: rotate(3deg); }
.ll-place__block--c { left: 18%; bottom: 12%; width: 34%; height: 18%; transform: rotate(2deg); }
.ll-place__compass {
  position: absolute; right: 12px; top: 10px;
  font-family: var(--ll-serif); font-size: 0.58rem; letter-spacing: 0.08em;
  color: var(--ll-muted);
}
.ll-place__mapnote {
  position: absolute; left: 12px; bottom: 9px;
  font-family: var(--ll-hand); font-size: 0.86rem; color: var(--ll-muted);
}
.ll-place__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  width: 26px; color: var(--ll-rose-deep); filter: drop-shadow(0 4px 6px rgba(90, 60, 40, 0.4));
  pointer-events: none;
}
.ll-place__venue { font-family: var(--ll-serif); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.ll-place__addr { margin-top: 4px; font-size: 0.78rem; line-height: 1.65; color: var(--ll-soft); }
.ll-place__note { margin-top: 8px; font-size: 0.7rem; line-height: 1.7; color: var(--ll-muted); font-style: italic; }
.ll-place__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.ll-copy__done { min-height: 16px; margin-top: 6px; font-size: 0.58rem; letter-spacing: 0.05em; color: var(--ll-rose-deep); }

/* Buttons */
.ll-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 2px;
  background: var(--ll-rose-deep); color: #fff6ea;
  border: 1px solid var(--ll-rose-deep);
  font-family: var(--ll-body); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.06em; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.ll-btn:hover { background: var(--ll-ink); border-color: var(--ll-ink); transform: translateY(-1px); }
.ll-btn--ghost { background: transparent; color: var(--ll-soft); border-color: var(--ll-line); }
.ll-btn--ghost:hover { background: var(--ll-paper-2); color: var(--ll-ink); border-color: var(--ll-rose-soft); }
.ll-btn--full { width: 100%; padding: 11px 14px; }
.ll-btn--small { padding: 7px 11px; font-size: 0.6rem; }

/* RSVP / reply card */
.ll-reply {
  position: relative; margin-top: 22px;
  padding: 20px 16px 18px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(59, 43, 40, 0.05) 27px 28px),
    var(--ll-paper-3);
  border: 1px solid rgba(120, 88, 60, 0.2);
  box-shadow: 0 18px 34px -26px rgba(90, 60, 40, 0.5);
}
.ll-reply__stamp {
  position: absolute; top: 12px; right: 12px;
  width: 54px; height: 62px;
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--ll-rose-soft);
  background: rgba(217, 166, 166, 0.12);
  font-family: var(--ll-serif); font-size: 0.5rem; line-height: 1.2;
  letter-spacing: 0.06em; color: var(--ll-rose-deep);
  transform: rotate(4deg);
}
.ll-reply__stamp b { font-size: 0.72rem; letter-spacing: 0.02em; }
.ll-reply__head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-right: 72px; padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--ll-line);
  font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ll-muted);
}
.ll-field { display: grid; gap: 4px; margin-bottom: 13px; min-width: 0; }
.ll-field > span, .ll-field legend {
  font-size: 0.48rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ll-rose-deep); padding: 0;
}
.ll-field input[type="text"], .ll-field select, .ll-field textarea {
  width: 100%; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--ll-line);
  background: transparent; color: var(--ll-ink);
  font-family: var(--ll-hand); font-size: 1.15rem; line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}
.ll-field textarea { font-family: var(--ll-hand); font-size: 1.1rem; resize: vertical; min-height: 74px; }
.ll-field input::placeholder, .ll-field textarea::placeholder { color: #b8a296; font-family: var(--ll-hand); }
.ll-field input:focus, .ll-field select:focus, .ll-field textarea:focus {
  outline: 0; border-bottom-color: var(--ll-rose-deep);
  background: rgba(217, 166, 166, 0.06);
}
.ll-field select {
  appearance: none; font-family: var(--ll-body); font-size: 0.78rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ll-rose-deep) 50%), linear-gradient(135deg, var(--ll-rose-deep) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 8px) 55%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.ll-field--radio { border: 0; padding: 0; }
.ll-field--radio legend { margin-bottom: 6px; }
.ll-radio { display: flex; gap: 7px; flex-wrap: wrap; }
.ll-radio label { position: relative; flex: 1 1 auto; }
.ll-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ll-radio span {
  display: block; text-align: center; padding: 7px 9px;
  border: 1px solid var(--ll-line); border-radius: 2px;
  font-family: var(--ll-body); font-size: 0.66rem; color: var(--ll-soft);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ll-radio input:checked + span { background: var(--ll-rose-deep); border-color: var(--ll-rose-deep); color: #fff6ea; }
.ll-radio input:focus-visible + span { outline: 2px solid var(--ll-rose-deep); outline-offset: 2px; }
.ll-reply__note { margin-top: 7px; text-align: center; font-size: 0.56rem; letter-spacing: 0.04em; color: var(--ll-muted); }
.ll-reply__done { margin-top: 9px; padding: 8px 10px; border: 1px solid var(--ll-rose-soft); background: rgba(217, 166, 166, 0.12); color: var(--ll-rose-deep); font-size: 0.66rem; line-height: 1.55; }

/* Closing */
.ll-passage--ps { padding-top: 34px; }
.ll-quote {
  margin: 18px 0 14px; padding-left: 16px;
  border-left: 2px solid var(--ll-rose-soft);
  font-family: var(--ll-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 4.6vw, 1.45rem); line-height: 1.55; color: var(--ll-ink);
}
.ll-thanks { margin-top: 14px; font-size: 1.15rem; }
.ll-signs {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0 22px; padding: 18px 0;
  border-top: 1px solid var(--ll-line-soft); border-bottom: 1px solid var(--ll-line-soft);
  text-align: center;
}
.ll-signs div { flex: 1 1 0; min-width: 0; }
.ll-signs span { display: block; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.1; }
.ll-signs small { display: block; margin-top: 2px; font-size: 0.46rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ll-muted); }
.ll-signs__amp { flex: 0 0 auto !important; font-family: var(--ll-serif); font-style: italic; font-size: 1.3rem !important; color: var(--ll-rose); }
.ll-hash {
  text-align: center; margin-bottom: 12px;
  font-family: var(--ll-serif); font-size: 0.95rem; letter-spacing: 0.14em; color: var(--ll-rose-deep);
}
.ll-passage--ps .ll-btn { display: block; margin: 0 auto; }
.ll-sheet__foot {
  position: relative; z-index: 1;
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--ll-line-soft);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center; font-size: 0.54rem; letter-spacing: 0.08em; color: var(--ll-muted);
}
.ll-sheet__mono { font-family: var(--ll-serif); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--ll-rose-deep); }
.ll-sheet__foot a { color: var(--ll-soft); text-decoration: none; border-bottom: 1px solid var(--ll-line); }
.ll-sheet__foot a:hover { color: var(--ll-rose-deep); }

.ll-footer {
  position: relative; z-index: 1;
  padding: 28px 16px calc(30px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.ll-footer p { font-size: 1.35rem; }
.ll-footer a { font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ll-muted); text-decoration: none; }
.ll-footer a:hover { color: var(--ll-rose-deep); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (min-width: 600px) {
  .ll-gate__scene { padding-left: 24px; padding-right: 24px; }
  .ll-couple { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ll-person__photo { width: 88%; }
  .ll-event { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 26px 24px 22px; }
  .ll-event__item { border-bottom: 0; border-right: 1px dashed rgba(120, 88, 60, 0.25); padding: 0 26px 0 0; margin: 0; }
  .ll-event__item:last-child { padding: 0 0 0 0; border-right: 0; }
  .ll-event__foot { grid-column: 1 / -1; }
  .ll-gallery { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
  .ll-place { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .ll-place__map { height: 100%; min-height: 260px; }
  .ll-reply { padding: 24px 24px 20px; }
  .ll-countdown { gap: 10px; }
}

@media (min-width: 820px) {
  .ll-envelope { width: min(52vw, 480px); }
  .ll-gate__scene { padding-bottom: 110px; }
  .ll-main { padding: 26px 22px 0; }
  .ll-head__row { padding-left: 26px; padding-right: 26px; }
  .ll-index { padding-left: 26px; padding-right: 26px; gap: 20px; }
  .ll-passage { display: grid; grid-template-columns: 122px 1fr; gap: 22px; padding-top: 38px; }
  .ll-margin { margin-bottom: 0; padding-top: 7px; }
  .ll-letterhead { padding-bottom: 34px; }
  .ll-story { display: grid; grid-template-columns: 1fr; }
  .ll-insert { width: min(62%, 340px); margin-left: 6%; }
  .ll-gallery { gap: 26px 22px; }
  .ll-place__map { min-height: 300px; }
  .ll-footer { padding-bottom: 40px; }
}

@media (max-width: 379px) {
  .ll-gate__scene { padding-left: 12px; padding-right: 12px; }
  .ll-envelope { width: 92vw; }
  .ll-seal { width: 64px; height: 64px; }
  .ll-countdown strong { font-size: 1.35rem; }
  .ll-countdown div { padding: 10px 1px 8px; }
  .ll-title { font-size: 2.05rem; }
  .ll-reply { padding: 17px 13px 16px; }
  .ll-reply__stamp { width: 46px; height: 54px; top: 9px; right: 9px; }
  .ll-reply__head { gap: 56px; }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ll-gate, .ll-app, .ll-envelope__flap, .ll-envelope__letter,
  .ll-seal__wax, .ll-person__photo, .ll-insert, .ll-photo { transition-duration: 0.001ms !important; }
  .ll-petals span { animation: none !important; opacity: 0; }
  body.ll-live .ll-sheet { animation: none; }
  .ll-photo:hover, .ll-insert:hover { transform: rotate(var(--rot, 0)) translateY(-2px); }
}
