@import url("https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@300;400;500;600&family=Noto+Serif+SC:wght@300;400;500&family=Sacramento&display=swap");* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}
/* ──────────────────────────────────────
   Animations — Wedding H5
   ────────────────────────────────────── */

/* Reveal: scroll-triggered fade-slide-up */
@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation button gentle pulse glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(182, 132, 123, 0.35),
      0 4px 14px rgba(182, 132, 123, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(182, 132, 123, 0),
      0 4px 14px rgba(182, 132, 123, 0.28);
  }
}

/* Music toggle spinning disc */
@keyframes spin-disc {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating decoration — subtle up-down */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Countdown number pop-in */
@keyframes count-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Shimmer skeleton loading */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


:root {
  --color-bg: #f8f2ea;
  --color-text-main: #2e403b;
  --color-text-soft: #6a807a;
  --color-text-light: #9bb0a9;
  --color-accent: #6b8e7b;
  --color-bg-pale-green: #f8f2ea;
  --color-accent-soft: rgba(107, 142, 123, 0.1);
  --color-line: rgba(46, 64, 59, 0.12);
  --space-page: 20px;
  --font-serif: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-script: "Sacramento", cursive;
  --font-number: "Allura", cursive;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--color-text-main);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* 閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓
   Mobile-Constrained Scroll Flow
   閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓 */

#app {
  min-height: auto;
  width: 100vw;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
}

.mobile-wrapper {
  width: 100%;
  max-width: 480px; 
  min-height: auto;
  background-color: var(--color-bg);
  box-shadow: none;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.page-edge {
  width: 100%;
  line-height: 0;
}

.page-edge-image {
  width: 100%;
  height: auto;
  display: block;
}

.flow-section {
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.flow-content {
  position: relative;
  z-index: 2;
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px var(--space-page);
  text-align: center;
}

/* 濡亜鎮滃鎴濆З閻╃鍞?(Horizontal Swiper) */

.gallery-swiper {
  width: 100%;
  max-width: 100vw;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 15px;
  padding: 20px;
  scrollbar-width: none; 
}

.gallery-swiper::-webkit-scrollbar {
  display: none; 
}

.gallery-slide {
  flex: 0 0 70vw;
  scroll-snap-align: center;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  background: rgba(248, 242, 234, 0.88);
  box-shadow: 0 8px 22px rgba(46, 64, 59, 0.08);
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  min-height: 50vh;
  max-height: 55vh;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at center, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 92% 92% at center, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
}

/* 閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓
   Trifold Scroll Reveal (Slow/Subtle)
   閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓 */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(even).is-visible { transition-delay: 150ms; }

/* 閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓
   Typography & Elements
   閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓閳光偓 */

.script-text {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-text-main);
  line-height: 1;
  text-align: center;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title::before,
.section-title::after {
  content: "";
  display: block;
  width: 20px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b8e7b'%3E%3Cpath d='M12 2C8 6 4 10 4 14C4 18.418 7.58172 22 12 22C16.4183 22 20 18.418 20 14C20 10 16 6 12 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.section-title::before {
  transform: scaleX(-1) rotate(-45deg);
}

.section-title::after {
  transform: rotate(-45deg);
}

/* 閳光偓閳光偓 Section spacing (Very tall to simulate paper folds) 閳光偓閳光偓 */

.section {
  position: relative;
  margin-top: 80px;
  margin-bottom: 80px;
  z-index: 10;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.numeric-text,
.countdown-number {
  font-family: var(--font-number), var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.flow-section--hero {
  min-height: 100vh;
}
/* 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
   Sections 鈥?Illustrated Trifold
   鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */

/* 鈹€鈹€ Header Area 鈹€鈹€ */
.trifold-header {
  text-align: center;
  margin-bottom: 40px;
}

.header-title-script {
  margin-bottom: 15px;
}

.header-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--color-text-main);
  margin-bottom: 5px;
  font-weight: 400;
}

.header-names {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  margin-bottom: 5px;
}

.header-address {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
}

.hero-illustration {
  width: 100%;
  margin-top: 20px;
  margin-bottom: -10px;
  display: block;
  /* Simulating the large edge-to-edge landscape watercolor */
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* 鈹€鈹€ Wedding Schedule (Visual Timeline) 鈹€鈹€ */
.schedule-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 20px 0;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  position: relative;
  z-index: 2;
}

.schedule-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
  mix-blend-mode: multiply;
}

.schedule-label {
  font-size: 0.85rem;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-align: center;
}

.schedule-time {
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
  text-align: center;
}

/* Dashed Arrows between items */
.schedule-arrow {
  position: absolute;
  top: 30px;
  width: 20%;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 L45,5 M40,0 L45,5 L40,10' fill='none' stroke='%23a8847d' stroke-width='1' stroke-dasharray='3,3' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 10px;
  z-index: 1;
  opacity: 0.7;
}

.schedule-arrow-1 { left: 24%; }
.schedule-arrow-2 { left: 56%; }


/* 鈹€鈹€ Dress Code 鈹€鈹€ */
.dresscode-box {
  text-align: center;
}

.dresscode-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.dresscode-icons img {
  height: 55px;
  width: auto;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.dresscode-desc {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.dresscode-colors {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08); /* slight depth to mimic paint droplet */
}

.color-label {
  font-size: 1rem;
  color: var(--color-text-main);
  letter-spacing: 0.25em;
  margin-bottom: 25px;
}


/* 鈹€鈹€ Feature Photo (Full screen Parallax Breakout) 鈹€鈹€ */
.feature-photo-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 60px;
  overflow: hidden;
  line-height: 0;
}

.feature-photo {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 1.5s ease;
  will-change: transform, opacity;
  opacity: 0.5;
}

.feature-photo-wrapper.is-visible .feature-photo {
  transform: scale(1);
  opacity: 1;
}


/* 鈹€鈹€ Music Toggle (Minimal Ring) 鈹€鈹€ */
.music-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 20px);
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: var(--color-text-soft);
  transition: transform 0.3s ease;
  border: none;
}

.music-toggle__disc {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23688079'%3E%3Cpath d='M12 3V13.55C11.41 13.21 10.73 13 10 13C7.79 13 6 14.79 6 17C6 19.21 7.79 21 10 21C12.21 21 14 19.21 14 17V7H18V3H12Z'/%3E%3C/svg%3E");
  background-size: cover;
}

.music-toggle.is-playing .music-toggle__disc {
  animation: spin-disc 4s linear infinite;
}

.music-toggle__label { display: none; }

/* 鈹€鈹€ Footer 鈹€鈹€ */
.trifold-footer {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text-soft);
  opacity: 0.8;
}

.header-date .numeric-text {
  font-family: var(--font-number), var(--font-serif);
  letter-spacing: 0.02em;
  display: inline-block;
}

.footer-tips {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 30px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(107, 142, 123, 0.18);
  background: rgba(255, 255, 255, 0.45);
  text-align: left;
  display: grid;
  gap: 10px;
}

.footer-tip {
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(107, 142, 123, 0.45);
  font-size: 0.9rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}

