:root {
  --cream: #f7f2ea;
  --paper: #fbf8f2;
  --ink: #26221f;
  --muted: #766e66;
  --gold: #ad8a52;
  --gold-light: #d8bd8c;
  --line: rgba(173, 138, 82, .28);
  --dark: #1e1a18;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  opacity: .35;
}
body::before { left: -130px; top: 15%; }
body::after { right: -130px; bottom: 12%; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--cream);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader p {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--muted);
}
.loader-ring {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.music-control {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(20,18,16,.35);
  backdrop-filter: blur(12px);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s ease;
}
.music-control:hover { background: rgba(20,18,16,.65); }
.music-icon { font-size: 17px; line-height: 1; }
.music-control.playing .music-icon { animation: musicPulse .8s ease-in-out infinite alternate; }
@keyframes musicPulse { to { transform: scale(1.25); } }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(214,191,151,.24), transparent 34%),
    linear-gradient(145deg, #3a3029 0%, #201b18 48%, #171412 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 4vw;
  border: 1px solid rgba(216,189,140,.3);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 7vw;
  border: 1px solid rgba(216,189,140,.13);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 80%, rgba(173,138,82,.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.07), transparent 22%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 30px;
}
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
}
.hero .eyebrow { color: var(--gold-light); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(65px, 11vw, 150px);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.03em;
}
.hero h1 span {
  display: inline-block;
  font-size: .55em;
  color: var(--gold-light);
  margin: 0 .08em;
  vertical-align: middle;
}
.subtitle {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  color: #e9dfd0;
}
.ornament {
  margin: 25px auto;
  color: var(--gold-light);
  font-size: 17px;
}
.date-line {
  font-size: 11px;
  letter-spacing: .38em;
  margin-left: .38em;
  color: #ded1c0;
}
.scroll-btn {
  margin-top: 42px;
  border: 0;
  background: transparent;
  color: white;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9px;
  cursor: pointer;
}
.scroll-btn i {
  font-size: 18px;
  font-style: normal;
  color: var(--gold-light);
  animation: float 1.7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(7px); } }

.section { padding: 120px 24px; }
.container { width: min(1120px, 100%); margin: auto; }
.narrow { max-width: 760px; text-align: center; }
.invitation { background: var(--paper); }
.invitation h2, .section-heading h2, .location-copy h2, .closing h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  margin: 12px 0 20px;
}
.gold-line {
  width: 70px;
  height: 1px;
  margin: 22px auto 30px;
  background: var(--gold);
  position: relative;
}
.gold-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--gold);
  padding: 0 8px;
  font-size: 8px;
}
.gold-line.left { margin-left: 0; }
.gold-line.left::after { background: var(--paper); }
.intro { color: var(--muted); max-width: 610px; margin: auto; font-size: 14px; }
.names {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.names div:not(.ampersand) { display: grid; gap: 4px; }
.names span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.names strong { font-family: var(--serif); font-weight: 500; font-size: 48px; }
.ampersand { font-family: var(--serif); color: var(--gold); font-size: 45px; }

.countdown-section {
  padding: 105px 24px;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(31,27,24,.94), rgba(31,27,24,.96)),
    radial-gradient(circle at 50% 0%, rgba(173,138,82,.24), transparent 45%);
}
.countdown-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(45px, 6vw, 70px);
  line-height: 1;
  margin: 10px 0 45px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 145px));
  justify-content: center;
  gap: 15px;
}
.count-card {
  padding: 25px 10px 20px;
  border: 1px solid rgba(216,189,140,.22);
  background: rgba(255,255,255,.025);
}
.count-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: #f2e7d6;
}
.count-card span {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold-light);
}
.event-date {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: #cfc2b1;
  font-size: 11px;
  letter-spacing: .08em;
}
.event-date strong { color: #eee5d9; font-weight: 400; }
.event-date span:last-child { color: var(--gold-light); }

.details { background: var(--cream); }
.section-heading { text-align: center; margin-bottom: 55px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-card {
  text-align: center;
  padding: 45px 25px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.32);
}
.detail-icon { color: var(--gold); font-size: 28px; margin-bottom: 22px; }
.detail-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
}
.detail-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  margin: 8px 0;
}
.detail-card p:last-child { color: var(--muted); font-size: 12px; }

.quote-section {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  color: white;
  background:
    radial-gradient(circle at center, rgba(173,138,82,.28), transparent 32%),
    linear-gradient(135deg, #40352d, #171412);
}
.quote-overlay {
  position: absolute;
  inset: 35px;
  border: 1px solid rgba(216,189,140,.18);
}
.quote-content { position: relative; z-index: 2; padding: 60px 30px; }
.quote-mark { font-family: Georgia, serif; font-size: 90px; color: var(--gold-light); line-height: .6; }
blockquote {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 400;
}
.quote-content > p {
  margin-top: 25px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 9px;
  color: var(--gold-light);
}

.location { background: var(--paper); }
.location-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 75px;
  align-items: center;
}
.location-copy > p:not(.section-kicker) { color: var(--muted); font-size: 14px; max-width: 470px; }
.address {
  margin: 30px 0;
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--gold);
  padding-left: 18px;
}
.address strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.address span { color: var(--muted); font-size: 11px; }
.map-btn {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: .3s ease;
}
.map-btn:hover { background: var(--ink); color: white; border-color: var(--ink); }
.map-card {
  min-height: 440px;
  background:
    linear-gradient(145deg, rgba(173,138,82,.12), transparent),
    #e8e0d5;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.map-card::before, .map-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(173,138,82,.2);
  border-radius: 50%;
}
.map-card::after { width: 500px; height: 500px; }
.map-placeholder {
  position: relative;
  z-index: 2;
  width: min(330px, 75%);
  padding: 42px 25px;
  text-align: center;
  background: rgba(251,248,242,.84);
  backdrop-filter: blur(7px);
  box-shadow: 0 25px 80px rgba(45,35,25,.08);
}
.pin { color: var(--gold); font-size: 35px; margin-bottom: 10px; }
.map-placeholder strong {
  display: block;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}
.map-placeholder span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 4px 0 20px;
}
.map-placeholder a {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 8px;
}

.closing { text-align: center; background: var(--cream); }
.closing .ornament { margin-top: 0; }
.closing p:not(.section-kicker):not(.small-date) {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto;
}
.signature {
  margin-top: 38px;
  font-family: var(--serif);
  font-size: 45px;
  font-style: italic;
  color: var(--gold);
}
.small-date {
  margin-top: 10px !important;
  color: var(--gold) !important;
  font-size: 9px !important;
  letter-spacing: .3em;
}

footer {
  padding: 25px;
  text-align: center;
  background: var(--dark);
  color: #8f857b;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .section { padding: 85px 20px; }
  .hero::before { inset: 20px; }
  .hero::after { inset: 35px; }
  .names { grid-template-columns: 1fr; gap: 10px; }
  .ampersand { font-size: 30px; }
  .names strong { font-size: 43px; }
  .countdown { grid-template-columns: repeat(2, minmax(100px, 145px)); }
  .details-grid, .location-grid { grid-template-columns: 1fr; }
  .location-grid { gap: 45px; }
  .map-card { min-height: 360px; }
  .quote-section { min-height: 58vh; }
}

@media (max-width: 430px) {
  .music-control { right: 12px; top: 12px; }
  .hero-content { padding: 20px; }
  .hero h1 { font-size: 61px; }
  .subtitle { font-size: 23px; }
  .countdown { gap: 9px; }
  .count-card { padding: 20px 7px 16px; }
  .count-card strong { font-size: 39px; }
  .event-date { flex-direction: column; gap: 4px; }
}
