@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,700&family=EB+Garamond:wght@400;500;600&family=Cormorant+Garamond:wght@500;600;700&family=Great+Vibes&display=swap");

:root {
  --wine-black: #2b0507;
  --wine: #4b0f14;
  --burgundy: #6b1118;
  --ivory: #f6efe7;
  --cream: #f4efe8;
  --beige: #dccfc2;
  --paper-text: #4e302e;
  --muted: #78635d;
  --line-light: rgba(246, 239, 231, 0.28);
  --line-dark: rgba(78, 48, 46, 0.18);
  --shadow: 0 30px 90px rgba(43, 5, 7, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--wine-black);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px clamp(22px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(43, 5, 7, 0.88), rgba(43, 5, 7, 0.5));
  border-bottom: 1px solid rgba(246, 239, 231, 0.16);
  backdrop-filter: blur(16px);
}

.header-mark {
  width: 74px;
  opacity: 0.95;
}

.header-mark img {
  width: 100%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 24px;
  color: var(--beige);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ivory);
}

.page {
  display: none;
  min-height: 100vh;
  padding: clamp(112px, 13vw, 150px) clamp(22px, 6vw, 92px) clamp(58px, 7vw, 92px);
}

.page.active {
  display: block;
}

.hero.page.active {
  display: grid;
}

.hero {
  position: relative;
  place-items: center;
  overflow: hidden;
  padding: 112px 24px 46px;
  background: var(--wine-black);
}

.hero-media {
  position: absolute;
  inset: -5%;
  background: url("assets/burgundy-satin-hero.png") center / cover;
  opacity: 0.74;
  animation: satinDrift 28s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(75, 15, 20, 0.1), rgba(43, 5, 7, 0.58) 60%),
    linear-gradient(180deg, rgba(43, 5, 7, 0.22), rgba(43, 5, 7, 0.86));
}

.hero-inner {
  position: relative;
  width: min(880px, 100%);
  text-align: center;
}

.hero-monogram-image {
  width: clamp(160px, 21vw, 250px);
  margin: 0 auto 20px;
  opacity: 0.98;
}

.kicker,
.overline,
.date,
dt,
.question-label,
.answer-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker,
.overline {
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 6.6vw, 6.2rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.4vw, 4.8rem);
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.28rem, 1.8vw, 1.7rem);
}

.date {
  margin-bottom: 20px;
  color: var(--ivory);
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.welcome {
  max-width: 680px;
  margin: 0 auto;
  color: var(--beige);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
}

.hero-rsvp-link,
.boxed-link,
.music-request a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid currentColor;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-rsvp-link {
  min-width: 150px;
  margin-top: 30px;
  color: var(--wine-black);
  background: var(--ivory);
  border-color: rgba(246, 239, 231, 0.8);
}

.hero-rsvp-link:hover,
.hero-rsvp-link:focus-visible {
  background: var(--beige);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.details-section,
.rsvp-section {
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 12%, rgba(124, 27, 34, 0.28), transparent 38%),
    linear-gradient(145deg, var(--wine-black), var(--wine));
}

.venue-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
  background: rgba(43, 5, 7, 0.24);
  border: 1px solid var(--line-light);
  outline: 1px solid rgba(246, 239, 231, 0.18);
  outline-offset: -12px;
}

.venue-card address {
  margin: 18px 0 28px;
  color: var(--beige);
  font-style: normal;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.4;
}

.venue-links {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.venue-links span {
  display: block;
  margin-bottom: 10px;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details-footer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: clamp(34px, 6vw, 70px);
  text-align: center;
}

.cupid-line {
  position: absolute;
  right: min(4vw, 48px);
  top: -20px;
  width: clamp(110px, 14vw, 190px);
  opacity: 0.55;
}

.cupid-line path {
  fill: none;
  stroke: var(--beige);
  stroke-width: 3;
}

.countdown-label {
  margin: 0;
  color: var(--beige);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0.08em;
}

.countdown-label span {
  font-family: "Great Vibes", cursive;
  font-size: 1.8em;
  letter-spacing: 0;
  line-height: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 12px;
  width: min(720px, 100%);
}

.countdown span {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--beige);
  border: 1px solid var(--line-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown strong {
  color: var(--ivory);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.schedule-section,
.faq-section,
.stay-section,
.travel-section {
  color: var(--paper-text);
  background:
    linear-gradient(rgba(244, 239, 232, 0.94), rgba(244, 239, 232, 0.97)),
    radial-gradient(circle at 20% 10%, rgba(75, 15, 20, 0.1), transparent 28%);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
  max-width: 1180px;
  margin: 0 auto;
}

.schedule-copy h2 {
  max-width: 600px;
}

.timeline {
  display: grid;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}

time {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline span {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.editorial-image {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-dark);
}

.editorial-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.faq-page-border {
  position: relative;
  min-height: calc(100vh - 220px);
  padding: clamp(34px, 6vw, 70px) clamp(26px, 5vw, 76px) clamp(34px, 6vw, 70px) clamp(120px, 17vw, 220px);
  border: 1px solid var(--line-dark);
}

.vertical-title {
  position: absolute;
  top: clamp(28px, 5vw, 60px);
  left: clamp(24px, 4vw, 54px);
  margin: 0;
  color: rgba(75, 15, 20, 0.2);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.78;
  text-orientation: mixed;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.faq-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.25fr) minmax(220px, 0.7fr) minmax(90px, 0.18fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.faq-list h3,
.faq-list p {
  margin-bottom: 0;
}

.question-label,
.answer-label {
  color: var(--burgundy);
  font-size: 0.82rem;
}

.faq-note {
  margin: 34px 0 0;
  color: var(--burgundy);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  text-align: center;
}

.page-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 34px;
  background: var(--line-dark);
}

.split-heading,
.large-page-heading {
  margin-bottom: 34px;
  font-size: clamp(3rem, 6vw, 6rem);
  text-align: left;
}

.stay-intro {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-bottom: 30px;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.single-text-box {
  max-width: 980px;
  padding: clamp(24px, 4vw, 40px);
  margin-top: 22px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.28);
}

.single-text-box h3 {
  margin-bottom: 18px;
}

.single-text-box p {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.single-text-box p + p {
  margin-top: 14px;
}

.simple-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.simple-list li {
  padding-bottom: 8px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  border-bottom: 1px solid var(--line-dark);
}

.travel-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  gap: 18px;
  max-width: 1180px;
}

.travel-feature article {
  min-height: 430px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.32);
}

.travel-feature ul {
  padding-left: 1.1em;
  margin: 16px 0 0;
}

.travel-feature li {
  margin-bottom: 10px;
}

.overline {
  color: var(--burgundy);
}

.rsvp-section .section-heading h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 4rem);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  padding: clamp(26px, 4vw, 46px);
  margin: 0 auto;
  background: rgba(43, 5, 7, 0.3);
  border: 1px solid var(--line-light);
  outline: 1px solid rgba(246, 239, 231, 0.12);
  outline-offset: -9px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 10px;
  color: var(--beige);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  padding: 0;
  margin-bottom: 14px;
  color: var(--beige);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.attendance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attendance-options label {
  display: inline-flex;
  min-width: 128px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid rgba(246, 239, 231, 0.3);
  background: rgba(246, 239, 231, 0.08);
}

.attendance-options input {
  width: 16px;
  min-height: 16px;
  margin: 0 10px 0 0;
  accent-color: var(--ivory);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--ivory);
  background: rgba(246, 239, 231, 0.08);
  border: 1px solid rgba(246, 239, 231, 0.3);
  border-radius: 0;
  font: 1.08rem "EB Garamond", Georgia, serif;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ivory);
  outline: 3px solid rgba(246, 239, 231, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.conditional-area {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(246, 239, 231, 0.22);
  background: rgba(246, 239, 231, 0.05);
}

.conditional-area[hidden] {
  display: none;
}

.form-note {
  margin-bottom: 0;
  color: var(--beige);
  font-size: 1.15rem;
}

.guest-entry {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.button {
  min-height: 54px;
  color: var(--wine-black);
  background: var(--ivory);
  border: 1px solid var(--ivory);
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  background: var(--beige);
}

.secondary-button {
  min-width: 150px;
  color: var(--ivory);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--wine-black);
  background: var(--ivory);
}

.guest-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.guest-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: var(--beige);
  border: 1px solid rgba(246, 239, 231, 0.18);
}

.guest-remove {
  color: var(--ivory);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.music-request {
  width: min(860px, 100%);
  padding: 24px;
  margin: 24px auto 0;
  text-align: center;
  border: 1px solid var(--line-light);
  background: rgba(43, 5, 7, 0.22);
}

.music-request p {
  color: var(--beige);
}

.music-request a {
  color: var(--ivory);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 18px;
  color: var(--wine-black);
  background: var(--ivory);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes satinDrift {
  from {
    transform: scale(1.02) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, 1%, 0);
  }
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .schedule-layout,
  .travel-feature,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .faq-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 18px;
  }

  .site-header {
    position: absolute;
  }

  .header-mark {
    width: 76px;
  }

  nav {
    gap: 9px 14px;
    font-size: 0.66rem;
  }

  .hero {
    padding-top: 210px;
  }

  .timeline li,
  .guest-entry,
  .countdown {
    grid-template-columns: 1fr;
  }

  .faq-page-border {
    padding-left: 30px;
  }

  .vertical-title {
    position: static;
    margin-bottom: 24px;
    writing-mode: horizontal-tb;
  }
}
