/* ===========================================
   Tokens
   =========================================== */
:root {
  --white:          #FFFFFF;
  --offwhite:       #FAFAF8;
  --warm-gray:      #F4F2EF;
  --border:         #E8E5E0;

  --peach:          #E0A088;
  --peach-light:    #F0C8B4;
  --peach-pale:     #FDF5F0;
  --peach-dark:     #C8856C;

  --sage:           #8BA87A;
  --sage-light:     #B5C9A8;
  --sage-pale:      #EFF4EC;

  --amber:          #D4923C;

  --charcoal:       #2A2A2A;
  --charcoal-mid:   #484848;
  --text:           #333333;
  --text-light:     #666666;
  --text-muted:     #999999;

  --serif:  'Playfair Display', 'Noto Serif KR', 'Georgia', serif;
  --sans:   'DM Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 10px;
}

/* ===========================================
   Reset
   =========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ===========================================
   Reveal Animation
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===========================================
   Top Bar
   =========================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}

.topbar--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.topbar__date {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white);
  transition: color 0.4s;
}

.topbar--scrolled .topbar__date {
  color: var(--text);
}

.topbar__nav {
  display: flex;
  gap: 32px;
}

.topbar__nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}

.topbar--scrolled .topbar__nav a {
  color: var(--text-light);
}

.topbar__nav a:hover {
  color: var(--peach);
}

/* Right side group: lang toggle + hamburger */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__lang {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.topbar__lang:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.topbar--scrolled .topbar__lang {
  color: var(--text-light);
  border-color: var(--border);
}

.topbar--scrolled .topbar__lang:hover {
  background: var(--offwhite);
  color: var(--charcoal);
  border-color: var(--text-muted);
}

.topbar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.topbar__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.topbar--scrolled .topbar__toggle span {
  background: var(--charcoal);
}

.topbar__toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.topbar__toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.mobile-nav__links a {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: color 0.3s;
}

.mobile-nav__links a:hover {
  color: var(--peach);
}

/* ===========================================
   Hero
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(224, 160, 136, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(181, 201, 168, 0.1) 0%, transparent 55%),
    linear-gradient(0deg, #7a6b5d 0%, #968575 50%, #b0a090 100%);
  text-align: center;
  padding: 80px 24px 60px;
}

.hero__inner {
  max-width: 600px;
}

.hero__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
}

.hero__names {
  margin-bottom: 48px;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.hero__sep-line {
  width: 48px;
  height: 1px;
  background: var(--peach-light);
  opacity: 0.5;
}

.hero__sep-and {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--peach-light);
}

.hero__detail {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.hero__detail--sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--peach-light), transparent);
  opacity: 0.4;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
  50%      { opacity: 0.6; transform: scaleY(1); }
}

/* ===========================================
   Countdown Strip
   =========================================== */
.strip {
  padding: 40px 24px;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
}

.strip__inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.strip__item {
  text-align: center;
}

.strip__num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

.strip__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--peach-light);
  flex-shrink: 0;
  margin-top: -12px;
}

/* ===========================================
   Invitation Card
   =========================================== */
.invite {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
}

.invite__card {
  text-align: center;
  max-width: 500px;
  padding: 64px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  position: relative;
}

.invite__ornament {
  font-size: 1.6rem;
  color: var(--peach-light);
  margin-bottom: 28px;
  opacity: 0.7;
}

.invite__line {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
}

.invite__names {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  margin: 24px 0;
  line-height: 1.3;
}

.invite__divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--peach), var(--sage-light));
  margin: 0 auto 24px;
  border-radius: 1px;
}

.invite__info {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
}

.invite__info--light {
  color: var(--text-muted);
  margin-top: 4px;
}

.invite__venue {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  margin: 16px 0 4px;
}

.invite__map-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peach-dark);
  border-bottom: 1px solid var(--peach-light);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.invite__map-link:hover {
  color: var(--peach);
  border-color: var(--peach);
}

/* Parking */
.invite__parking {
  text-align: center;
  max-width: 500px;
  margin: 48px auto 0;
}

.invite__parking-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.invite__parking-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.invite__map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.invite__map-embed iframe {
  display: block;
}

/* ===========================================
   Our Story
   =========================================== */
.story {
  padding: 100px 24px;
  background: var(--offwhite);
}

.story__layout {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.story__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--peach-pale), var(--sage-pale));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.story__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 12px;
}

.story__heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 28px;
}

.story__text p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 16px;
}

.story__verse {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.9;
  color: var(--text);
}

.story__ref {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--peach-dark);
  margin-bottom: 24px;
}

.story__sig {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--peach);
  margin-top: 8px;
}

/* ===========================================
   Schedule / Timeline
   =========================================== */
.schedule {
  padding: 100px 24px;
  background: var(--white);
}

.schedule__header {
  text-align: center;
  margin-bottom: 64px;
}

.schedule__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 12px;
}

.schedule__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--charcoal);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: calc(72px + 6px);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--peach-light), var(--sage-light));
}

.timeline__event {
  display: grid;
  grid-template-columns: 72px 13px 1fr;
  column-gap: 16px;
  align-items: center;
  padding-bottom: 44px;
}

.timeline__event:last-child {
  padding-bottom: 0;
}

.timeline__time {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
}

.timeline__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--peach-light);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.timeline__detail h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.timeline__detail p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================================
   Gallery
   =========================================== */
.gallery {
  padding: 100px 24px;
  background: var(--offwhite);
}

.gallery__header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 12px;
}

.gallery__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--charcoal);
}

.gallery__masonry {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(150deg, var(--peach-pale) 0%, var(--sage-pale) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease);
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.03);
}

.gallery__item--tall .gallery__img {
  min-height: 340px;
}

.gallery__item:not(.gallery__item--tall) .gallery__img {
  min-height: 200px;
}

.gallery__item:hover .gallery__placeholder {
  transform: scale(1.03);
}

.gallery__item--tall .gallery__placeholder {
  min-height: 340px;
}

.gallery__placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===========================================
   RSVP
   =========================================== */
.rsvp {
  padding: 100px 24px;
  background: var(--peach-pale);
  text-align: center;
}

.rsvp__inner {
  max-width: 480px;
  margin: 0 auto;
}

.rsvp__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach-dark);
  margin-bottom: 12px;
}

.rsvp__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.rsvp__text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 36px;
}

.rsvp__text strong {
  color: var(--charcoal);
  font-weight: 500;
}

.rsvp__btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 44px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.3s;
}

.rsvp__btn:hover {
  background: var(--charcoal-mid);
  transform: translateY(-2px);
}

/* ===========================================
   Footer
   =========================================== */
.footer {
  padding: 40px 24px;
  background: var(--charcoal);
  text-align: center;
}

.footer__names {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.footer__date {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================================
   Responsive — Tablet
   =========================================== */
@media (max-width: 768px) {
  .topbar { padding: 0 24px; }

  .topbar__nav { display: none; }

  .topbar__toggle { display: flex; }

  .story__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story__photo { order: -1; }

  .story__placeholder {
    aspect-ratio: 4 / 3;
  }

  .invite__card {
    padding: 48px 28px;
  }

  .gallery__masonry {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--tall .gallery__img {
    min-height: 260px;
  }

  .gallery__item--tall .gallery__placeholder {
    min-height: 260px;
  }

  .timeline__event {
    grid-template-columns: 60px 11px 1fr;
    column-gap: 12px;
  }

  .timeline__time {
    font-size: 0.65rem;
  }

  .timeline__line {
    left: calc(60px + 5px);
  }

  .timeline__dot {
    width: 11px;
    height: 11px;
  }
}

/* ===========================================
   Responsive — Small
   =========================================== */
@media (max-width: 480px) {
  .hero__name {
    font-size: 2.6rem;
  }

  .strip__inner {
    gap: 16px;
  }

  .strip__num {
    font-size: 1.5rem;
  }

  .gallery__masonry {
    grid-template-columns: 1fr;
  }

  .gallery__item--tall .gallery__img,
  .gallery__item:not(.gallery__item--tall) .gallery__img {
    min-height: 220px;
  }

  .gallery__item--tall .gallery__placeholder {
    min-height: 220px;
  }

  .gallery__placeholder {
    min-height: 180px;
  }

  .invite__card {
    padding: 40px 20px;
  }
}
