:root {
  --bg: #d8c7b7;
  --bg-soft: #efe7dc;
  --paper: rgba(248, 246, 242, 0.84);
  --paper-edge: rgba(255, 255, 255, 0.52);
  --text: #2f251f;
  --muted: #6f625b;
  --muted-soft: rgba(111, 98, 91, 0.72);
  --gold: #c49b2b;
  --gold-deep: #b07b19;
  --gold-soft: rgba(196, 155, 43, 0.16);
  --white-soft: rgba(255, 255, 255, 0.7);
  --shadow: 0 28px 80px rgba(52, 36, 28, 0.18);
  --card-radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(244, 235, 224, 0.65), transparent 22%),
    linear-gradient(135deg, #b9a48f 0%, #d9c9bb 36%, #b69d87 100%);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 34%, rgba(255, 255, 255, 0.18) 52%, transparent 70%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.18), transparent 20%);
  pointer-events: none;
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(135deg, #bcaa98, #dcccc0);
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(0.82) brightness(1.05);
}

.video-background__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(90deg, rgba(203, 179, 157, 0.26), rgba(255, 255, 255, 0.16) 34%, rgba(162, 134, 112, 0.2) 100%);
}

.page-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.hero {
  position: relative;
  padding: 46px 16px 68px;
  min-height: min(84vh, 700px);
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
}

.hero__date,
.section-kicker,
.event-date,
.calendar-card__header,
.program-stage__part {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero__logo {
  display: block;
  width: min(380px, 62vw);
  height: auto;
  filter:
    drop-shadow(0 18px 36px rgba(255, 255, 255, 0.35))
    drop-shadow(0 12px 30px rgba(65, 46, 31, 0.12));
}

.section-ornament {
  width: 180px;
  margin: 0 auto 18px;
  color: rgba(196, 155, 43, 0.8);
}

.section-ornament svg {
  display: block;
  width: 100%;
  height: auto;
}

.section-ornament path,
.section-ornament circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.invitation-card {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: -32px auto 0;
  padding: 56px 28px 64px;
  border-radius: var(--card-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 248, 243, 0.88)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(115deg, rgba(0, 0, 0, 0.015), transparent 24%, rgba(0, 0, 0, 0.02) 48%, transparent 72%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.invitation-card::before {
  background:
    radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.5), transparent 55%),
    radial-gradient(circle at 0 20%, rgba(196, 155, 43, 0.08), transparent 30%);
  opacity: 0.95;
}

.invitation-card::after {
  inset: 14px;
  border: 1px solid var(--paper-edge);
  border-radius: 22px;
}

.section {
  position: relative;
  padding: 44px 12px;
  text-align: center;
}

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

.section-title {
  margin: 8px 0 18px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.lead,
.event-date,
.closing-card__text {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  line-height: 1.8;
  color: var(--muted);
  font-size: 1rem;
}

.lead--narrow {
  max-width: 560px;
}

.event-date {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text);
}

.calendar-card {
  max-width: 380px;
  margin: 0 auto;
  padding: 18px 18px 22px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 241, 0.92)),
    rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(196, 155, 43, 0.16),
    0 18px 36px rgba(48, 34, 24, 0.06);
}

.calendar-card__header {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid--weekdays {
  margin-bottom: 8px;
}

.calendar-weekday,
.calendar-day {
  display: grid;
  place-items: center;
  min-height: 34px;
  font-family: "Cormorant Garamond", serif;
}

.calendar-weekday {
  font-size: 0.92rem;
  color: var(--muted);
}

.calendar-day {
  border-radius: 50%;
  font-size: 1.2rem;
}

.calendar-day.is-outside {
  color: rgba(110, 96, 88, 0.35);
}

.calendar-day.is-highlight {
  color: #fff;
  background: linear-gradient(160deg, #d0ab44, #b48216);
  box-shadow: 0 10px 22px rgba(196, 155, 43, 0.32);
}

.program {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.program-stage {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.32)),
    radial-gradient(circle at top right, rgba(196, 155, 43, 0.1), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 155, 43, 0.12),
    0 22px 40px rgba(49, 35, 25, 0.08);
}

.program-stage__header {
  margin-bottom: 20px;
}

.program-stage__part {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: var(--gold-deep);
}

.program-stage__venue {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.program-stage__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.program-stage__schedule {
  display: grid;
  gap: 14px;
}

.program-entry {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(196, 155, 43, 0.14);
}

.program-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.program-entry__time {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.program-entry__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.program-entry__description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.dresscode-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 26px auto 0;
  text-align: left;
}

.dress-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(196, 155, 43, 0.12),
    0 18px 34px rgba(47, 34, 24, 0.06);
}

.dress-note__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dress-note__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.inline-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--gold-deep);
  flex: 0 0 auto;
}

.inline-icon svg {
  width: 100%;
  height: 100%;
}

.inline-icon path,
.inline-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-icon--branch {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.section--closing {
  padding-top: 30px;
  padding-bottom: 24px;
}

.closing-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 34px 28px 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(250, 247, 241, 0.72)),
    linear-gradient(135deg, rgba(196, 155, 43, 0.08), transparent 36%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 155, 43, 0.14),
    0 24px 46px rgba(49, 35, 25, 0.08);
}

.closing-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: var(--gold-deep);
}

.closing-card__icon path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.closing-card__icon path:first-child {
  fill: rgba(196, 155, 43, 0.15);
}

.closing-card__text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.45;
}

.card-line {
  position: absolute;
  width: 6px;
  height: 360px;
  opacity: 0.9;
  pointer-events: none;
}

.card-line--1 {
  top: -80px;
  left: 90px;
  transform: rotate(55deg);
}

.card-line--2 {
  top: 290px;
  right: 120px;
  transform: rotate(68deg);
}

.card-line--3 {
  top: 1040px;
  left: -20px;
  transform: rotate(74deg);
}

.card-line--4 {
  bottom: 320px;
  right: 48px;
  transform: rotate(64deg);
}

@media (max-width: 900px) {
  .page-shell {
    padding-top: 18px;
  }

  .hero {
    min-height: 72vh;
    padding-bottom: 52px;
  }

  .invitation-card {
    margin-top: -16px;
  }

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

  .dresscode-notes {
    grid-template-columns: 1fr;
  }

  .card-line--2 {
    right: 70px;
  }

  .card-line--3 {
    top: 1240px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 10px;
  }

  .hero {
    min-height: 86vh;
    padding-inline: 8px;
  }

  .section-kicker,
  .program-stage__part {
    letter-spacing: 0.16em;
  }

  .hero__logo {
    width: min(250px, 68vw);
  }

  .invitation-card {
    padding: 34px 14px 42px;
    border-radius: 24px;
  }

  .invitation-card::after {
    inset: 10px;
  }

  .section {
    padding: 30px 4px;
  }

  .lead {
    font-size: 0.96rem;
  }

  .program-stage {
    padding: 20px 16px 18px;
  }

  .program-entry {
    grid-template-columns: 74px 1fr;
    gap: 10px;
  }

  .program-entry__time {
    font-size: 1.22rem;
  }

  .closing-card {
    padding: 28px 18px 26px;
  }

  .closing-card__icon {
    width: 46px;
    height: 46px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-weekday,
  .calendar-day {
    min-height: 28px;
  }

  .card-line {
    display: none;
  }
}
