/* ── Variables ───────────────────────────────────────────── */
:root {
  --white: #fdfdfd;
  --cream: #faf9f7;
  --text: #2a2a2a;
  --text-light: #f5f5f3;
  --gold: #c5a059;
  --gold-light: #d4b87a;
  --sage: #8f9779;
  --sage-dark: #7a8268;
  --sage-light: #a8b09a;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --max-width: 480px;
  --spacing: 1.5rem;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

/* ── Typography helpers ───────────────────────────────────── */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.2;
}

.script--small {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.script--and {
  display: block;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--text);
  opacity: 0.75;
  margin: 0.15rem 0;
}

.script--tagline {
  font-size: clamp(1.6rem, 5.5vw, 2rem);
  color: var(--gold);
  margin-top: 0.75rem;
}

.script--light {
  color: var(--text-light);
}

.script--footer {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--gold);
}

.names {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.6;
}

.name {
  display: block;
}

.date {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--text);
  opacity: 0.8;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 3.5rem;
  overflow: visible;
  background: var(--white);
}

/* Diamond frame */
.diamond-wrap {
  position: relative;
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}

.hero-announcement {
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: clamp(2rem, 8vw, 3.5rem);
  position: relative;
  z-index: 2;
}

.hero-date {
  text-align: center;
  margin-top: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 6vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.ampersand {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0.1rem 0;
  opacity: 0.85;
}

.diamond {
  position: absolute;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}

.diamond--outer {
  width: 100%;
  height: 100%;
}

.diamond--inner {
  width: 82%;
  height: 82%;
}

.diamond-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
  max-width: 200px;
}

/* Botanical decorations */
.botanical {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
}

.botanical--tl {
  top: 0;
  left: 0;
  width: min(160px, 42vw);
  opacity: 0.92;
}

.botanical--br {
  bottom: 0;
  right: 0;
  width: min(160px, 42vw);
  opacity: 0.92;
}

.botanical--tr {
  top: -20px;
  right: -15px;
  width: 90px;
  opacity: 0.75;
  transform: scaleX(-1);
}

.botanical--bl {
  bottom: 5px;
  left: -10px;
  width: 90px;
  opacity: 0.75;
}

/* Quick nav */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 320px;
}

.quick-nav a {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.quick-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--gold);
  color: var(--text);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 3.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section--framed {
  background: var(--cream);
  position: relative;
}

.section--framed .section-inner {
  border: 1px solid var(--gold);
  padding: 2.5rem 1.5rem;
  background: var(--white);
}

.section--sage {
  background: var(--sage);
  color: var(--text-light);
}

.section--sage .section-inner {
  padding: 0 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 7vw, 2.6rem);
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.section--sage .section-title {
  color: var(--text-light);
}

.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.75rem;
}

.gold-line--light {
  background: rgba(255, 255, 255, 0.5);
}

.lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 1.5rem;
  font-style: italic;
  font-family: var(--font-serif);
}

/* Info card */
.info-card {
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  margin: 1.5rem 0;
}

.label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.label--bold {
  font-weight: 600;
  opacity: 1;
  color: var(--text);
}

.lead--secondary {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.venue {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.venue--small {
  font-size: 1.25rem;
}

.info-card--church {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.address {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-map {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.2s, color 0.2s;
  margin: 0.25rem 0.15rem 0;
}

.btn-map:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-map--outline {
  margin-top: 0.25rem;
}

.note--light {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2rem;
  font-style: normal;
}

/* Timeline */
.timeline {
  list-style: none;
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline li:last-child {
  border-bottom: none;
}

.time {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.event {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Info list */
.info-list {
  list-style: none;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.info-list li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.inline-link {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}

/* Guest blocks */
.guest-block {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.guest-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guest-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.guest-block p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.guest-block p:last-child {
  margin-bottom: 0;
}

.guest-block a {
  word-break: break-all;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  background: var(--white);
  overflow: hidden;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  opacity: 0.7;
}

.back-top {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.5;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.back-top:hover {
  opacity: 1;
  border-bottom-color: var(--gold);
  color: var(--text);
}

/* ── Animations ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger hero elements */
.hero .fade-in:nth-child(2) { transition-delay: 0.1s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.2s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.3s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ── Mobile hero & nav ────────────────────────────────────── */
@media (max-width: 599px) {
  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .botanical--br {
    width: min(90px, 28vw);
    opacity: 0.5;
    bottom: 0;
    right: -5%;
  }

  .quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    max-width: 280px;
    padding: 0.5rem 0;
  }

  .quick-nav a {
    opacity: 1;
    text-align: center;
    padding: 0.6rem 0.25rem;
    background: rgba(255, 255, 255, 0.85);
  }
}

/* ── Larger screens ───────────────────────────────────────── */
@media (min-width: 600px) {
  .section {
    padding: 4.5rem 2rem;
  }

  .diamond-wrap {
    width: 320px;
    height: 320px;
  }

  .botanical--tl,
  .botanical--br {
    width: 200px;
  }
}
