:root {
  --bg: #faf7f2;
  --text: #2f2a25;
  --muted: #80736a;
  --accent: #c08f70;
  --accent-dark: #9a6a4a;
  --card: #ffffff;
  --shadow: 0 15px 35px rgba(47, 42, 37, 0.08);
}

/* Normalize optical size between Chinese and English fonts */
html[lang="en"] {
  font-size: 1.04em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'LXGW WenKai TC', 'Hina Mincho', 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  position: relative;
  min-height: 90vh;
  background-image: url('images/heading.png');
  background-size: cover;
  background-position: center 60%;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
}

.navbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem 5vw;
  gap: 1rem;
}

.lang-toggle {
  font-family: 'LXGW WenKai TC', 'Hina Mincho', 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  padding: 0.5rem 2.0rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.0rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  outline: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.brand-hero {
  font-family: 'Herr Von Muellerhoff', 'Playfair Display', serif;
  font-size: clamp(3.6rem, 7.2vw, 6.3rem);
  letter-spacing: 0.1rem;
  margin: 0;
  line-height: 1.1;
}

.brand-ch {
  font-family: 'LXGW WenKai TC','Hina Mincho','Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  margin: 0.25rem 0 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

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

.menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin: auto 5vw 8vh;
  text-align: left;
}

.hero h1 {
  font-family:'Playfair Display', serif;
  font-size: clamp(1.92rem, 3.84vw, 3.2rem);
  margin: 0.5rem 0;
}

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.date {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.primary-btn,
.secondary-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
}

.secondary-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.link-btn {
  border: none;
  color: var(--accent);
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.section {
  padding: 4.2rem 5vw;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.1rem;
}

.section-heading h2 {
  font-family: 'LXGW WenKai TC', 'Hina Mincho','Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0.5rem 0 0;
}

.about-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  font-size: 1.15rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.about-container.video-active .about-card {
  transform: translateX(-100%);
}

.about-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.2s;
  z-index: 1;
  padding: 2.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.about-container.video-active .about-video-wrapper {
  opacity: 1;
  pointer-events: all;
}

.about-video {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.about-video-btn {
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow);
}

.about-video-btn:hover {
  transform: translateY(-2px);
  background: rgba(192, 143, 112, 0.9);
}

.about-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 24, 18, 0.9);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.about-close-btn:hover {
  transform: scale(1.1);
  background: rgba(192, 143, 112, 0.9);
}

.location-grid {
  display: flex;
  justify-content: center;
  padding: 0 5vw;
}

.location-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.location-card.combined {
  max-width: 900px;
  width: min(900px, 100%);
  padding: 2.5rem;
  margin: 0 auto;
}

.location-text {
  text-align: left;
}

.location-card.combined .map-embed {
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-card.combined iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.location-card ul {
  padding-left: 1.5rem;
}

.location-card li {
  margin-bottom: 0.5rem;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 16px;
}

.gallery-group {
  margin-top: 3rem;
}

.gallery-group:first-of-type {
  margin-top: 0;
}

.gallery-group-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-group-heading h3 {
  font-family: 'LXGW WenKai TC','Hina Mincho','Playfair Display', serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0.4rem 0 0;
}

.gallery-slider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gallery-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 24, 18, 0.9);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-btn:hover {
  transform: scale(1.05);
  background: rgba(192, 143, 112, 0.9);
}

.gallery-frame {
  flex: 1;
  background: #0f0904;
  border-radius: 26px;
  box-shadow: var(--shadow);
  max-height: 840px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.gallery-slide.active {
  display: flex;
}

.gallery-slide img,
.gallery-slide video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 840px;
  object-fit: contain;
  margin: 0 auto;
  background: #000;
  display: block;
}

.gallery-slide video {
  border-radius: 0;
}

.gallery-counter {
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--muted);
}

.media-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: 480px;
}

.media-video {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.media-video video {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
  max-height: 960px;
}

.media-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
  max-height: 960px;
}

.media-stack figure {
  margin: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-photo-front img {
  object-position: center bottom;
}

.venue-photo-detail img {
  object-position: center center;
}

.venue-photo-evening img {
  object-position: center bottom;
}

.copyright-disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #000;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.timeline {
  background: #fff7f1;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  display: grid;
  gap: 1.5rem;
}

.timeline-list li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.timeline-list span {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  min-width: 90px;
}

.info-card-dress h4 {
  font-family: 'LXGW WenKai TC', 'Hina Mincho', 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.35rem;
  color: var(--accent-dark);
}

.info-card-dress h4:first-of-type {
  margin-top: 1rem;
}

.info-card-dress .dress-code-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 0;
}

.guest-info-callout {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(192, 143, 112, 0.12);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.guest-info-callout p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.guest-info-callout .callout-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.guest-info-callout .callout-link:hover,
.guest-info-callout .callout-link:focus-visible {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  outline: none;
}

.guest-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.info-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-family: 'LXGW WenKai TC', 'Hina Mincho', 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.info-card > p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.info-card-checkin .check-in-notice {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(192, 143, 112, 0.08);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.info-card-checkin .check-in-notice h4 {
  font-family: 'LXGW WenKai TC', 'Hina Mincho', 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
}

.check-in-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.check-in-list li {
  margin-bottom: 0.5rem;
}

.check-in-list li:last-child {
  margin-bottom: 0;
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  position: relative;
}

.to-top {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--accent);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .navbar {
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 5vw;
    right: auto;
    flex-direction: column;
    background: rgba(31, 24, 18, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: none;
    z-index: 6;
    box-shadow: var(--shadow);
    align-items: flex-start;
    text-align: left;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .hero-content {
    text-align: center;
  }

  .footer {
    padding-bottom: 4rem;
  }

  .to-top {
    position: static;
    transform: none;
    margin-top: 1rem;
  }

  .about-card {
    padding: 2rem 1.5rem;
    font-size: 1rem;
  }

  .info-card {
    padding: 1.75rem 1.5rem;
  }

  .about-video-btn {
    width: 100%;
    padding: 1rem 2rem;
  }

  .about-close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .about-video-wrapper {
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }

  .about-video {
    max-width: min(85vw, 400px);
    max-height: 75vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .media-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .media-stack {
    grid-template-rows: repeat(3, auto);
    height: auto;
  }

  .gallery-slider {
    flex-direction: column;
  }

  .gallery-btn {
    width: 48px;
    height: 48px;
  }

  .gallery-frame {
    min-height: 320px;
    width: 100%;
  }

  .media-video {
    height: auto;
  }

  .media-video video {
    height: auto;
  }

  .media-stack figure {
    height: auto;
  }
}
