:root {
  color-scheme: dark;
  --bg: #090506;
  --panel: rgba(22, 16, 17, 0.82);
  --panel-strong: rgba(34, 24, 24, 0.95);
  --line: rgba(238, 215, 173, 0.25);
  --line-hot: rgba(232, 59, 48, 0.55);
  --text: #fff8ee;
  --muted: #c8b9ac;
  --quiet: #8f7e76;
  --gold: #e6c383;
  --red: #e73d32;
  --cyan: #66d7de;
  --ok: #75e0a0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  font-family: "Avenir Next", "Noto Sans CJK SC", "Noto Sans CJK TC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 8%, rgba(126, 23, 28, 0.42), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(32, 94, 104, 0.18), transparent 28rem),
    linear-gradient(135deg, #100405 0%, #080303 46%, #170b0b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(231, 61, 50, 0.16) 48.15%, transparent 48.45%),
    linear-gradient(68deg, transparent 0 58%, rgba(230, 195, 131, 0.09) 58.15%, transparent 58.35%);
}

a {
  color: inherit;
}

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

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: grid;
  gap: 3px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.lang-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch a,
.ghost-button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lang-switch a:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 195, 131, 0.72);
}

.lang-switch a.active {
  color: #160b08;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  background: #130809;
}

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.intro {
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid rgba(230, 195, 131, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(9, 5, 6, 0.86), rgba(50, 19, 19, 0.72));
  backdrop-filter: blur(12px);
}

.intro h1 {
  margin: 0 0 10px;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 16px;
  background: rgba(15, 9, 10, 0.88);
}

.icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(230, 195, 131, 0.35);
  border-radius: 50%;
  color: var(--gold);
}

.info-item strong {
  display: block;
  margin-bottom: 3px;
}

.info-item span {
  color: var(--muted);
  line-height: 1.45;
}

.venue-section {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.venue-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.venue-header h2 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0;
}

.venue-address {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.venue-map {
  display: block;
  width: 100%;
  border: 1px solid rgba(230, 195, 131, 0.24);
  border-radius: var(--radius);
  background: #110607;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(230, 195, 131, 0.34);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-button:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 195, 131, 0.72);
  background: rgba(230, 195, 131, 0.1);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 22px;
  align-items: start;
}

.content-grid > .venue-section,
.content-grid > .contact-panel {
  grid-column: 1 / -1;
}

.section,
.rsvp-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.section {
  padding: 22px;
}

.highlights-section {
  display: none;
}

.section + .section {
  margin-top: 18px;
}

.section h2,
.rsvp-panel h2 {
  margin: 0 0 16px;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0;
}

.section > .eyebrow,
.rsvp-panel > .eyebrow,
.venue-header .eyebrow,
.contact-panel > .eyebrow {
  margin: 0 0 8px;
}

.timeline {
  --timeline-axis: 28px;
  --timeline-dot-size: 24px;
  --timeline-dot-radius: 12px;
  position: relative;
  display: grid;
  gap: 28px;
  padding: 18px 0 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - 1px);
  top: 26px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(230, 195, 131, 0.42));
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: start;
}

.event time {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  min-height: 0;
  padding-left: calc(var(--timeline-axis) + 30px);
  border: 0;
  border-radius: 0;
  color: var(--gold);
  background: transparent;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: none;
}

.event time::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: calc(var(--timeline-axis) - var(--timeline-dot-radius));
  top: 50%;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: #180707;
  transform: translateY(-50%);
  box-shadow: 0 0 0 7px rgba(230, 195, 131, 0.08);
}

.event h3 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.1;
}

.event p,
.feature p,
.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.programme-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.feature b {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.rsvp-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(45, 17, 18, 0.92), rgba(16, 10, 11, 0.96)),
    var(--panel-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.attendance-details {
  display: contents;
}

.attendance-details.is-hidden {
  display: none;
}

label,
.field legend {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.23);
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(102, 215, 222, 0.12);
}

select option {
  color: #160b08;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-row,
.check-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  position: relative;
  display: grid;
  min-width: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: center;
  line-height: 1.32;
}

.choice input:checked + span {
  color: #150806;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-button {
  color: #fff;
  border-color: rgba(231, 61, 50, 0.95);
  background: linear-gradient(135deg, #e73d32, #8f1518);
  font-weight: 800;
}

.secondary-button {
  color: #130807;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 800;
}

.ghost-button {
  color: var(--text);
}

.status {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(117, 224, 160, 0.4);
  border-radius: var(--radius);
  background: rgba(36, 93, 60, 0.16);
  color: #dffce9;
  white-space: pre-wrap;
  line-height: 1.55;
}

.status.show {
  display: block;
}

.small-print {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-panel {
  margin: 0 0 48px;
  padding: 24px;
  border: 1px solid rgba(214, 184, 119, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(32, 12, 12, 0.88), rgba(9, 6, 7, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.contact-panel h2 {
  margin: 0 0 18px;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(214, 184, 119, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
}

.contact-list strong {
  font-size: 1rem;
}

.contact-list span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .content-grid,
  .info-strip,
  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-switch {
    justify-content: flex-start;
  }

  .venue-section {
    padding: 16px;
  }

  .venue-header {
    display: block;
  }

  .map-actions > * {
    flex: 1 1 100%;
  }

  .intro {
    padding: 16px;
  }

  .intro h1 {
    font-size: clamp(0.95rem, 4.05vw, 1.2rem);
  }

  .event {
    grid-template-columns: 102px 1fr;
    gap: 24px;
  }

  .timeline {
    --timeline-axis: 21px;
    --timeline-dot-size: 24px;
    --timeline-dot-radius: 12px;
  }

  .form-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .rsvp-panel,
  .section {
    padding: 18px;
  }

  .actions > * {
    flex: 1 1 100%;
  }
}
