:root {
  --sand: #f3eee4;
  --sand-deep: #e8e0d2;
  --linen: #faf7f1;
  --ink: #2a241c;
  --ink-soft: #5c5348;
  --sea: #5f6f5a;
  --sea-deep: #3f4a3b;
  --wood: #8a6f52;
  --line: rgba(42, 36, 28, 0.18);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(42, 36, 28, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(95, 111, 90, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(138, 111, 82, 0.1), transparent 55%),
    linear-gradient(180deg, var(--linen) 0%, var(--sand) 45%, var(--sand-deep) 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(250, 247, 241, 0.92), rgba(250, 247, 241, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  overflow: hidden;
}

.lang-btn {
  min-width: 2.6rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--linen);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 36, 28, 0.18) 0%, rgba(42, 36, 28, 0.08) 35%, rgba(42, 36, 28, 0.55) 100%),
    linear-gradient(90deg, rgba(42, 36, 28, 0.25), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vh, 4.5rem);
  color: var(--white);
  max-width: 42rem;
  animation: riseIn 1.1s var(--ease) both;
}

.hero-kicker,
.eyebrow,
.rundown-date {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-kicker {
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.hero-names,
.section-title,
.rundown-title,
.closing-names {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.hero-names {
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  letter-spacing: 0.01em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero-line {
  margin: 1rem 0 1.75rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  background: transparent;
}

.details .btn,
.venue .btn {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.details .btn:hover,
.venue .btn:hover {
  background: rgba(42, 36, 28, 0.06);
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(720px, 100%);
}

.eyebrow {
  color: var(--sea);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
}

.section-lead {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 36rem;
}

.center {
  text-align: center;
}

.center.section-lead,
.section-lead.center {
  margin-left: auto;
  margin-right: auto;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 1px solid var(--line);
}

.fact dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  padding-top: 0.2rem;
}

.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 500;
}

.rundown {
  padding-top: 0;
}

.rundown-panel {
  background: var(--sand);
  border: 1px solid var(--line);
  padding: clamp(2.25rem, 6vw, 3.75rem);
  box-shadow: var(--shadow);
  animation: riseIn 0.9s var(--ease) both;
}

.rundown-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.01em;
  text-transform: none;
}

html[lang="en"] .rundown-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[lang="zh-Hant"] .rundown-title {
  text-transform: none;
  letter-spacing: 0.02em;
}

.rundown-date {
  margin: 0.85rem 0 2.25rem;
  color: var(--ink-soft);
}

.rundown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rundown-list li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--ink);
}

.rundown-list li:last-child {
  border-bottom: 1px solid var(--ink);
}

.rundown-time,
.rundown-event {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.rundown-event {
  text-align: right;
}

html[lang="zh-Hant"] .rundown-time,
html[lang="zh-Hant"] .rundown-event {
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 500;
}

.venue-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.venue-copy .section-lead {
  margin-bottom: 1.25rem;
}

.venue-address {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.venue-photo {
  margin: 0;
  overflow: hidden;
  min-height: 420px;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 1.2s var(--ease);
}

.venue-photo:hover img {
  transform: scale(1.04);
}

.venue-spaces {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.venue-spaces-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.venue-spaces .section-lead {
  margin-bottom: 2rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.note-card {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-top: 1px solid var(--ink);
  background: rgba(250, 247, 241, 0.55);
}

.note-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 500;
}

html[lang="zh-Hant"] .note-label {
  letter-spacing: 0.08em;
  text-transform: none;
}

.note-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
}

.note-body {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.65;
}

.venue-map {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

.venue-map-copy .section-lead {
  margin-bottom: 1.5rem;
}

.venue-map-btn {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.venue-map-btn:hover {
  background: rgba(42, 36, 28, 0.06);
}

.venue-map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand-deep);
  min-height: 320px;
  box-shadow: var(--shadow);
}

.venue-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-grid .g {
  margin: 0;
  overflow: hidden;
  background: var(--sand-deep);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.92);
}

.gallery-grid .g:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.gallery-grid .g:nth-child(1) { aspect-ratio: 3 / 4; }
.gallery-grid .g:nth-child(2) { aspect-ratio: 4 / 5; }
.gallery-grid .g:nth-child(3) { aspect-ratio: 4 / 5; }
.gallery-grid .g:nth-child(4) { aspect-ratio: 16 / 10; grid-column: 1 / -1; }
.gallery-grid .g:nth-child(5) { aspect-ratio: 4 / 5; }
.gallery-grid .g:nth-child(6) { aspect-ratio: 3 / 4; }
.gallery-grid .g:nth-child(7) { aspect-ratio: 4 / 5; }
.gallery-grid .g:nth-child(8) { aspect-ratio: 4 / 5; }
.gallery-grid .g:nth-child(9) { aspect-ratio: 16 / 10; grid-column: 1 / -1; }
.gallery-grid .g:nth-child(10) { aspect-ratio: 4 / 5; grid-column: 1 / -1; }

.closing {
  padding-bottom: 5rem;
}

.closing-names {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  margin-bottom: 0.75rem;
}

.closing-line {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.closing-date {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
}

html[lang="zh-Hant"] .closing-date {
  letter-spacing: 0.08em;
  text-transform: none;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(0, -1.5%, 0);
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .venue-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .venue-map {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .venue-map-frame,
  .venue-map-frame iframe {
    min-height: 380px;
  }

  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
  }

  .gallery-grid .g:nth-child(1) { grid-column: span 5; aspect-ratio: 3 / 4; }
  .gallery-grid .g:nth-child(2) { grid-column: span 3; aspect-ratio: auto; min-height: 280px; }
  .gallery-grid .g:nth-child(3) { grid-column: span 4; aspect-ratio: auto; min-height: 280px; }
  .gallery-grid .g:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }
  .gallery-grid .g:nth-child(5) { grid-column: span 5; aspect-ratio: auto; min-height: 320px; }
  .gallery-grid .g:nth-child(6) { grid-column: span 4; aspect-ratio: 3 / 4; }
  .gallery-grid .g:nth-child(7) { grid-column: span 4; aspect-ratio: auto; min-height: 320px; }
  .gallery-grid .g:nth-child(8) { grid-column: span 4; aspect-ratio: auto; min-height: 320px; }
  .gallery-grid .g:nth-child(9) { grid-column: span 8; aspect-ratio: 16 / 10; }
  .gallery-grid .g:nth-child(10) { grid-column: span 4; aspect-ratio: auto; min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image,
  .venue-photo img,
  .gallery-grid img,
  .reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal {
    opacity: 1;
  }
}
