/* Clean token-driven stylesheet for Undangan Website Watercolor 05 Earthy Olive */
:root {
  --c-pri: #524928;
  --c-acc: #6E633A;
  --c-flr: #948660;
  --c-bg: #F7F3EB;
  --c-soft: #EFE9DC;
  --c-ink: #383324;
  --c-mut: #665E48;
  --c-card: rgba(255, 255, 255, 0.90);
  --c-bdr: rgba(110, 99, 58, 0.22);
  --c-sec-fg: #524928;
  --c-btn-bg: #6E633A;
  --c-btn-fg: #FFFFFF;
  --c-outer: #EEF1F4;
  --c-fade: rgba(255,255,255,0.88);
  --c-cd-bg: #6E633A;
  --c-cd-fg: #FFFFFF;
  --c-cd-bdr: none;
  --c-gift-bg: rgba(255, 255, 255, 0.78);
  --c-rsvp-bg: rgba(255, 255, 255, 0.86);
  --c-ftr-bg: #524928;
  --c-ftr-fg: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-outer);
  overflow-x: hidden;
}
body.wn-frozen { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wn-glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

.wn-canvas {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  background: var(--c-bg);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

/* Cover Gate */
.wn-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  background: var(--c-outer);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}
.wn-splash.wn-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
}
.wn-splash-box {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 28px 22px 44px;
  background-color: var(--c-bg);
  background-image: url("../images/watercolor-paper-bg.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.wn-splash-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: url("../images/couple-cover.webp") top center / cover no-repeat;
  pointer-events: none;
}
.wn-splash-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 64%, var(--c-fade) 94%, var(--c-bg) 100%);
}
.wn-splash-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

@keyframes wnTiltL { from { transform: rotate(-3deg) scale(1); } to { transform: rotate(2deg) scale(1.04); } }
@keyframes wnTiltR { from { transform: rotate(3deg) scale(1); } to { transform: rotate(-2deg) scale(1.04); } }
@keyframes wnRiseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wnRotateDisc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.wn-flora {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 136px;
  height: auto;
}
.wn-flora--nw { top: -14px; left: -14px; transform-origin: top left; animation: wnTiltL 4s ease-in-out infinite alternate; }
.wn-flora--ne { top: -14px; right: -14px; transform-origin: top right; animation: wnTiltR 4.3s ease-in-out infinite alternate; }
.wn-flora--sw { bottom: -10px; left: -14px; transform-origin: bottom left; animation: wnTiltL 4.2s ease-in-out infinite alternate; }
.wn-flora--se { bottom: -10px; right: -14px; transform-origin: bottom right; animation: wnTiltR 4.5s ease-in-out infinite alternate; }

.wn-splash-body > * { animation: wnRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.wn-splash-body > :nth-child(2) { animation-delay: 0.1s; }
.wn-splash-body > :nth-child(3) { animation-delay: 0.2s; }
.wn-splash-body > :nth-child(4) { animation-delay: 0.3s; }
.wn-splash-body > :nth-child(5) { animation-delay: 0.4s; }

/* Typography */
.wn-eyebrow {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pri);
}
.wn-display {
  margin: 2px 0 8px;
  font-family: "Italiana", "Cinzel", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-pri);
}
.wn-calligraphy {
  margin: 0 0 10px;
  font-family: "Great Vibes", cursive;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-pri);
}
.wn-invite-to { margin: 4px 0 0; font-size: 13px; color: var(--c-mut); }
.wn-invitee {
  margin: 0 0 12px;
  font-family: "Roboto Slab", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--c-ink);
}

/* Buttons */
.wn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: var(--c-btn-bg);
  color: var(--c-btn-fg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.wn-pill:hover { transform: translateY(-1px); opacity: 0.94; }
.wn-pill--full { width: 100%; }
.wn-pill--gap { margin-top: 14px; }
.wn-ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-btn-bg);
  color: var(--c-btn-fg);
  font-size: 17px;
  margin-top: 8px;
  transition: transform 0.2s ease;
}
.wn-ig-link:hover { transform: scale(1.08); }

/* Sections */
.wn-band {
  position: relative;
  width: 100%;
  padding: 46px 22px;
  text-align: center;
  overflow: hidden;
}
.wn-band--linen {
  background-color: var(--c-bg);
  background-image: url("../images/watercolor-paper-bg.webp");
  background-size: cover;
  background-position: center;
}
.wn-band--tinted {
  background-color: var(--c-soft);
  background-image: url("../images/watercolor-navy-atas.jpg");
  background-size: cover;
  background-position: center;
  color: var(--c-sec-fg);
}
.wn-band--tinted .wn-calligraphy,
.wn-band--tinted .wn-subtitle { color: var(--c-sec-fg); }
.wn-band--verse { padding-top: 64px; }
.wn-band--tribute { padding-top: 18px; }
.wn-band--chronicle { padding-top: 10px; }
.wn-subtitle { font-size: 21px; margin: 0 0 10px; }

/* Hero / Countdown */
.wn-intro { padding-top: 34px; padding-bottom: 108px; }
.wn-intro-stage { position: relative; max-width: 250px; margin: 14px auto 18px; }
.wn-intro-art { width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
.wn-intro-bloom {
  position: absolute;
  right: -24px;
  bottom: -18px;
  width: 110px;
  pointer-events: none;
  animation: wnTiltR 4s ease-in-out infinite alternate;
}
.wn-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 330px;
  margin: 18px auto 6px;
}
.wn-ticker-cell {
  background: var(--c-cd-bg);
  color: var(--c-cd-fg);
  border: var(--c-cd-bdr);
  border-radius: 12px;
  padding: 10px 6px;
}
.wn-ticker-num { font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.1; }
.wn-ticker-cap { font-size: 11px; margin-top: 2px; opacity: 0.92; }

/* Wave & Arch Dividers */
.wn-crest-bottom {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  pointer-events: none;
}
.wn-crest-bottom svg { display: block; width: 100%; height: 82px; }
.wn-crest-bottom path { fill: var(--c-flr); }
.wn-vault-top {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.wn-vault-top svg { display: block; width: 100%; height: 44px; }
.wn-vault-top path { fill: var(--c-soft); }

/* Couple Section */
.wn-pair { border-top: 1px solid var(--c-bdr); padding-top: 28px; }
.wn-pair-trim { position: relative; display: flex; justify-content: center; margin-bottom: 10px; pointer-events: none; }
.wn-pair-sprig { width: 155px; opacity: 0.92; }
.wn-pair-wing { position: absolute; top: -22px; width: 106px; }
.wn-pair-wing--l { left: -16px; transform-origin: top left; animation: wnTiltL 4s ease-in-out infinite alternate; }
.wn-pair-wing--r { right: -16px; transform: scaleX(-1); }
.wn-basmalah { width: 185px; margin: 6px auto 12px; }
.wn-greeting { font-family: "Great Vibes", cursive; font-size: 28px; color: var(--c-pri); margin: 0 0 10px; }
.wn-prose { font-size: 14px; color: var(--c-mut); max-width: 360px; margin: 0 auto 24px; }
.wn-band--tinted .wn-prose { color: inherit; opacity: 0.9; }
.wn-avatar { width: 215px; margin: 8px auto 14px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
.wn-spouse { font-family: "Great Vibes", cursive; font-size: 32px; color: var(--c-pri); margin: 0 0 6px; }
.wn-lineage { font-size: 13.5px; color: var(--c-mut); margin: 0 auto 6px; }
.wn-ampersand { font-family: "Great Vibes", cursive; font-size: 40px; color: var(--c-acc); margin: 18px 0; }

/* Cards & Quote */
.wn-panel {
  position: relative;
  z-index: 2;
  background: var(--c-card);
  border: 1px solid var(--c-bdr);
  border-radius: 18px;
  padding: 24px 20px;
  margin: 18px auto;
  max-width: 370px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.wn-panel h3 { margin: 0 0 10px; font-family: "Great Vibes", cursive; font-size: 32px; font-weight: 400; color: var(--c-pri); }
.wn-panel p { margin: 4px 0; font-size: 14px; }
.wn-scripture { font-size: 13.5px; line-height: 1.7; max-width: 360px; margin: 10px auto 20px; opacity: 0.92; }

/* Gift Cards */
.wn-ledger { display: flex; flex-direction: column; gap: 14px; max-width: 340px; margin: 18px auto 0; }
.wn-account {
  background: var(--c-gift-bg);
  border: 1px solid var(--c-bdr);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}
.wn-account h3 { margin: 0 0 6px; font-family: "Cinzel", serif; font-size: 16px; font-weight: 700; color: var(--c-sec-fg); }
.wn-acct-digits { margin: 0 0 4px; font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.05em; }
.wn-acct-holder { margin: 0 0 12px; font-size: 13px; opacity: 0.9; }

/* Gallery & Love Story */
.wn-album-shell { padding: 36px 20px; margin-bottom: 36px; border-bottom: 1px solid var(--c-bdr); }
.wn-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 380px; margin: 14px auto 0; }
.wn-mosaic-tile {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid var(--c-bg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}
.wn-mosaic-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; border-radius: 160px 160px 18px 18px; }
.wn-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.wn-mosaic-tile:hover img { transform: scale(1.05); }
.wn-banner-art { max-width: 360px; margin: 12px auto 22px; }
.wn-milestones { display: flex; flex-direction: column; gap: 16px; max-width: 360px; margin: 0 auto; }
.wn-chapter { background: var(--c-card); border: 1px solid var(--c-bdr); border-radius: 14px; padding: 18px; }
.wn-chapter h4 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--c-acc);
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-pri);
}
.wn-chapter p { margin: 0; font-size: 13.5px; color: var(--c-mut); }

/* RSVP & Wishes */
.wn-guestbook {
  background: var(--c-rsvp-bg);
  border: 1px solid var(--c-bdr);
  border-radius: 16px;
  padding: 20px 18px;
  max-width: 370px;
  margin: 16px auto 0;
  text-align: left;
  color: var(--c-sec-fg);
}
.wn-row { margin-bottom: 14px; }
.wn-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--c-sec-fg); }
.wn-textbox, .wn-dropdown, .wn-memo {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--c-bdr);
  background: #FFFFFF;
  color: #1F2937;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
}
.wn-dropdown { height: 44px; padding: 8px 14px; }
.wn-guestbook-note { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 18px; }
.wn-feed { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.wn-note { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--c-bdr); }
.wn-monogram {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-btn-bg);
  color: var(--c-btn-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.wn-author { font-weight: 700; font-size: 13.5px; }
.wn-stamp { font-size: 11.5px; opacity: 0.78; margin-bottom: 4px; }
.wn-excerpt { font-size: 13.5px; }

/* Closing & Footer */
.wn-outro { padding-bottom: 72px; }
.wn-outro-stage { position: relative; max-width: 360px; margin: 8px auto 22px; }
.wn-outro-art { position: relative; z-index: 3; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
.wn-outro-sprig { position: absolute; z-index: 1; pointer-events: none; }
.wn-outro-sprig--sw { left: -20px; bottom: -16px; width: 100px; }
.wn-outro-sprig--se { right: -18px; bottom: -16px; width: 88px; }
.wn-outro-sprig--ne { right: -20px; top: -16px; width: 96px; }
.wn-colophon { background: var(--c-ftr-bg); color: var(--c-ftr-fg); text-align: center; padding: 26px 16px; font-size: 13px; }

.wn-audio-fab {
  position: fixed;
  right: max(16px, calc(50% - 210px));
  bottom: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: var(--c-btn-bg);
  color: var(--c-btn-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.wn-audio-fab.wn-active svg { animation: wnRotateDisc 6s linear infinite; }

.wn-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.65s ease, transform 0.65s ease; }
.wn-fade.wn-shown { opacity: 1; transform: translateY(0); }


/* Theme-specific Invitation Models & Animated Frames (02-06) */
@keyframes wnDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes wnHeartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes wnHaloPulse {
  0%, 100% { filter: drop-shadow(0 8px 18px rgba(0,0,0,0.14)); }
  50% { filter: drop-shadow(0 12px 26px rgba(92,48,50,0.34)); }
}
@keyframes wnAuricGlow {
  0%, 100% { filter: drop-shadow(0 8px 18px rgba(212,175,55,0.22)); }
  50% { filter: drop-shadow(0 12px 28px rgba(212,175,55,0.52)); }
}

/* 02: Botanical Hexagon */
body[data-model="hexagon"] .wn-intro-stage,
body[data-model="hexagon"] .wn-avatar { animation: wnDrift 4.4s ease-in-out infinite; }
body[data-model="hexagon"] .wn-panel,
body[data-model="hexagon"] .wn-chapter { border-radius: 6px 26px 6px 26px; }
body[data-model="hexagon"] .wn-mosaic-tile { border-radius: 6px 24px 6px 24px; }
body[data-model="hexagon"] .wn-mosaic-tile:first-child { border-radius: 28px 6px 28px 6px; }
body[data-model="hexagon"] .wn-ticker-cell { border-radius: 6px 16px 6px 16px; }

/* 03: Romantic Love / Heart Sakura */
body[data-model="love"] .wn-intro-stage,
body[data-model="love"] .wn-avatar { animation: wnHeartbeat 3.6s ease-in-out infinite; }
body[data-model="love"] .wn-panel,
body[data-model="love"] .wn-guestbook,
body[data-model="love"] .wn-chapter { border-radius: 28px; border-width: 1.5px; }
body[data-model="love"] .wn-mosaic-tile { border-radius: 28px; }
body[data-model="love"] .wn-mosaic-tile:first-child { border-radius: 180px 180px 28px 28px; }
body[data-model="love"] .wn-ticker-cell { border-radius: 999px; padding: 12px 6px; }

/* 04: Royal Scalloped Flower Maroon */
body[data-model="flower"] .wn-intro-stage,
body[data-model="flower"] .wn-avatar { animation: wnHaloPulse 4s ease-in-out infinite; }
body[data-model="flower"] .wn-panel,
body[data-model="flower"] .wn-chapter {
  border-radius: 20px;
  outline: 1px solid var(--c-acc);
  outline-offset: -6px;
}
body[data-model="flower"] .wn-mosaic-tile { border-radius: 999px 999px 22px 22px; }
body[data-model="flower"] .wn-mosaic-tile:first-child { border-radius: 28px; }

/* 05: Boho Diamond & Polaroid */
body[data-model="boho"] .wn-intro-stage,
body[data-model="boho"] .wn-avatar { animation: wnDrift 5s ease-in-out infinite; }
body[data-model="boho"] .wn-panel,
body[data-model="boho"] .wn-chapter { border-style: dashed; border-width: 1.5px; border-radius: 14px; }
body[data-model="boho"] .wn-mosaic-tile { border-radius: 10px; padding: 5px; background: #FFFDF8; }
body[data-model="boho"] .wn-mosaic-tile:nth-child(even) { transform: rotate(1.2deg); }
body[data-model="boho"] .wn-mosaic-tile:nth-child(odd) { transform: rotate(-1.2deg); }
body[data-model="boho"] .wn-mosaic-tile:first-child { border-radius: 14px; transform: none; }

/* 06: Art-Deco Octagon Noir Gold */
body[data-model="deco"] .wn-intro-stage,
body[data-model="deco"] .wn-avatar { animation: wnAuricGlow 4.2s ease-in-out infinite; }
body[data-model="deco"] .wn-panel,
body[data-model="deco"] .wn-account,
body[data-model="deco"] .wn-chapter,
body[data-model="deco"] .wn-guestbook {
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: inset 0 0 0 4px rgba(212, 175, 55, 0.14), 0 12px 28px rgba(0, 0, 0, 0.35);
}
body[data-model="deco"] .wn-pill { border-radius: 4px; letter-spacing: 0.06em; }
body[data-model="deco"] .wn-mosaic-tile { border-radius: 4px; border-color: #D4AF37; border-width: 2px; }
body[data-model="deco"] .wn-mosaic-tile:first-child { border-radius: 4px; }
body[data-model="deco"] .wn-ticker-cell { border-radius: 4px; }


/* akad.in Reference Cover Gate */
.wn-splash-box {
  justify-content: center;
  padding: 36px 24px;
}
.wn-splash-eyebrow {
  margin: 0;
  font-family: "Roboto Slab", "Cinzel", serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--c-ink);
}
.wn-splash-duo {
  margin: 2px 0 12px;
  font-family: "Great Vibes", cursive;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-pri);
}
.wn-splash-art {
  width: 215px;
  max-height: 270px;
  object-fit: contain;
  margin: 4px auto 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}
.wn-splash-city {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--c-mut);
}
.wn-splash-cta {
  border-radius: 8px;
  padding: 10px 22px;
}
