@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --ivory: #fbf8f2;
  --sand: #eee5d7;
  --beige: #d8c9b7;
  --gold: #b18a4b;
  --gold-deep: #8d6a34;
  --ink: #2f2a24;
  --muted: #756d63;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(64, 49, 31, 0.10);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(251,248,242,.93);
  border-bottom: 1px solid rgba(177,138,75,.18);
  backdrop-filter: blur(16px);
}
.brand {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .04em;
  font-weight: 500;
}
.brand span { color: var(--gold-deep); font-style: italic; }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active { color: var(--gold-deep); border-color: var(--gold); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 8px;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); margin: 7px 0; }

main { padding-top: 74px; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(74px, 9vw, 128px) 0; }
.section-soft { background: #f4eee4; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 13px;
}
.ceremony-heading {
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .20em;
}
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(58px, 9vw, 118px); }
h2 { font-size: clamp(42px, 5.6vw, 70px); }
h3 { font-size: clamp(28px, 3vw, 38px); }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.7vw, 31px); line-height: 1.35; color: #4d453b; }
.muted { color: var(--muted); }
.gold-rule { width: 58px; height: 1px; background: var(--gold); margin: 25px 0; }
.center { text-align: center; }
.center .gold-rule { margin-left: auto; margin-right: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 600;
  transition: .25s ease;
  background: var(--gold);
  color: white;
  cursor: pointer;
}
.button:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { color: white; }

.hero {
  min-height: calc(100svh - 74px);
  position: relative;
  background-image: linear-gradient(90deg, rgba(24,20,16,.62), rgba(24,20,16,.16)), url('images/hero.jpg');
  background-size: cover;
  background-position: center 18%;
  display: flex;
  align-items: center;
  color: white;
}
.hero-inner { width: 100%; margin: 0; padding: 80px clamp(20px, 3vw, 48px); }
.hero-kicker { text-transform: uppercase; letter-spacing: .34em; font-size: 11px; margin-bottom: 22px; }
.hero h1 { max-width: 820px; text-shadow: 0 2px 16px rgba(0,0,0,.18); }
.hero h1 span { font-style: italic; color: #f2ddba; }
.hero-date { font-family: var(--serif); font-size: clamp(24px, 3vw, 35px); margin: 22px 0 34px; }
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .8;
}

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px,8vw,110px); align-items: center; }
.photo-frame { position: relative; }
.photo-frame::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(177,138,75,.6); z-index: 0; }
.photo-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.countdown-wrap { margin-top: 44px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(72px,1fr)); gap: 14px; max-width: 610px; }
.countdown-item { border-top: 1px solid var(--gold); padding-top: 14px; }
.countdown-value { display: block; font-family: var(--serif); font-size: clamp(36px,5vw,55px); line-height: 1; }
.countdown-label { text-transform: uppercase; letter-spacing: .16em; font-size: 9px; color: var(--muted); }

.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; background: #f0e7da; }
.gallery-strip img { width: 100%; height: clamp(260px,38vw,520px); object-fit: cover; }
.gallery-strip img:nth-child(2) { object-position: center 38%; }
.gallery-strip img:nth-child(3) { object-position: center 42%; }

.page-hero { padding: clamp(90px,11vw,150px) 0 clamp(60px,8vw,100px); text-align: center; background: linear-gradient(180deg,#f4eee4 0%,var(--ivory) 100%); }
.page-hero h1 { font-size: clamp(54px,8vw,92px); }
.page-hero p { max-width: 620px; margin: 22px auto 0; color: var(--muted); }

.venue-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.venue-card { background: white; border: 1px solid rgba(177,138,75,.22); padding: clamp(30px,5vw,58px); box-shadow: var(--shadow); }
.venue-photo { width: calc(100% + (2 * clamp(30px,5vw,58px))); max-width: none; margin: calc(-1 * clamp(30px,5vw,58px)) calc(-1 * clamp(30px,5vw,58px)) 30px; height: clamp(330px, 36vw, 440px); object-fit: cover; object-position: center; display: block; }
.church-photo { object-position: center 8%; }
.venue-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.venue-card h2 { font-size: clamp(38px,4.8vw,55px); }
.venue-meta { margin: 25px 0 30px; padding: 20px 0; border-top: 1px solid #eadfce; border-bottom: 1px solid #eadfce; }
.venue-meta strong { font-family: var(--serif); font-size: 20px; font-weight: 500; display:block; }
.venue-card p { color: var(--muted); }
.venue-note { background: #f4eee4; padding: 22px; margin-top: 28px; font-size: 14px; }

.image-banner { min-height: 55vh; background: linear-gradient(rgba(20,17,14,.2),rgba(20,17,14,.2)), url('images/fountain.jpg') center 45%/cover; }

.timeline { max-width: 940px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 102px; width: 1px; background: #d9c6a7; }
.timeline-item { display: grid; grid-template-columns: 84px 1fr; gap: 46px; position: relative; padding: 0 0 50px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-time { text-align: right; font-family: var(--serif); font-size: 22px; color: var(--gold-deep); white-space: nowrap; }
.timeline-graphic { display:flex; justify-content:center; align-items:flex-start; padding-top:0; transform: translateY(-17px); }
.timeline-graphic img { width:68px; height:68px; object-fit:contain; display:block; }
.timeline-content { position: relative; padding-left: 0; line-height: 1.35; }
.timeline-content::before { content: ''; position: absolute; left: -34px; top: 10px; width: 9px; height: 9px; border: 2px solid var(--gold); background: var(--ivory); border-radius: 50%; }
.timeline-content h3 { font-size: 32px; display: inline; margin: 0; }
.timeline-content.icon-mass::before,
.timeline-content.icon-reception::before,
.timeline-content.icon-cake::before,
.timeline-content.icon-dance::before,
.timeline-content.icon-afterparty::before,
.timeline-content.icon-goingaway::before {
  width: 52px;
  height: 52px;
  left: -28px;
  top: -11px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.timeline-content.icon-mass::before { background-image: url('images/mass-icon.webp'); }
.timeline-content.icon-reception::before { background-image: url('images/reception-icon.png'); }
.timeline-content.icon-cake::before { background-image: url('images/cake-icon.png'); }
.timeline-content.icon-dance::before { background-image: url('images/dance-icon.png'); }
.timeline-content.icon-afterparty::before { background-image: url('images/afterparty-icon.png'); }
.timeline-content.icon-goingaway::before { background-image: url('images/going-away-icon.png'); }
.timeline-content p { display: inline; margin: 0 0 0 14px; color: var(--muted); }
.tbc { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-deep); background: #efe4d3; padding: 5px 8px; margin-top: 10px; }
.schedule-photo { margin-top: 70px; }
.schedule-photo img { width: 100%; max-height: 650px; object-fit: cover; object-position: center 45%; }

.form-card { background: white; border: 1px solid rgba(177,138,75,.24); box-shadow: var(--shadow); padding: clamp(28px,6vw,62px); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #5e554a; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9cdbd;
  border-radius: 0;
  background: #fffdf9;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 125px; resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(177,138,75,.08); }
.radio-row { display: flex; gap: 26px; align-items:center; min-height: 48px; }
.radio-row label { display:flex; gap:8px; align-items:center; margin:0; font-size:12px; letter-spacing:.05em; text-transform:none; font-weight:400; }
.radio-row input { width:auto; min-height:auto; accent-color: var(--gold-deep); }
.form-actions { margin-top: 26px; display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.form-note { font-size: 12px; color: var(--muted); max-width: 560px; }

.faq-list { border-top: 1px solid #ded2c1; }
.faq-item { border-bottom: 1px solid #ded2c1; }
.faq-question { width:100%; border:0; background:transparent; display:flex; justify-content:space-between; gap:20px; text-align:left; padding:24px 2px; font-family:var(--serif); font-size:26px; color:var(--ink); cursor:pointer; }
.faq-question span:last-child { color:var(--gold-deep); font-family:var(--sans); font-size:21px; font-weight:300; }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-answer p { margin:0; padding:0 42px 24px 2px; color:var(--muted); }
.faq-item.open .faq-answer { max-height:300px; }
.faq-item.open .faq-question span:last-child { transform:rotate(45deg); }

.quote-band { text-align:center; background:transparent; color:var(--ink); padding:90px 20px; }
.quote-band blockquote { margin:0 auto; max-width:800px; font-family:var(--serif); font-size:clamp(30px,4.2vw,50px); line-height:1.25; font-style:italic; }
.quote-band p { margin:20px 0 0; text-transform:uppercase; letter-spacing:.22em; font-size:9px; color:var(--gold-deep); }
.quote-band .button { margin-top:30px; }

.site-footer { padding: 46px 20px; text-align:center; border-top:1px solid rgba(177,138,75,.22); }
.footer-monogram { font-family:var(--serif); font-size:32px; margin-bottom:6px; }
.site-footer p { margin:0; color:var(--muted); font-size:11px; letter-spacing:.12em; text-transform:uppercase; }


.reveal { opacity:0; transform:translateY(16px); transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }


@media (min-width: 821px) {
  .venue-card h2 { min-height: 2.1em; }
}

@media (max-width: 820px) {
  .venue-photo { height: clamp(340px, 78vw, 500px); }

  .site-header { height: 68px; }
  main { padding-top: 68px; }
  .nav-toggle { display:block; }
  .site-nav { position:absolute; top:68px; left:0; right:0; display:none; flex-direction:column; align-items:stretch; background:var(--ivory); padding:22px 28px 30px; border-bottom:1px solid #e8dcc9; gap:6px; }
  .site-nav.open { display:flex; }
  .site-nav a { padding:12px 0; }
  .intro-grid,.venue-grid,.form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .gallery-strip { grid-template-columns:1fr; }
  .gallery-strip img { height:78vw; }
  .gallery-strip img:first-child { grid-column:auto; height:78vw; }
  .countdown { gap:8px; }
  .timeline::before { left:78px; }
  .timeline-item { grid-template-columns:64px 1fr; gap:38px; }
  .timeline-content::before { left:-28px; }
  .timeline-content.icon-mass::before, .timeline-content.icon-reception::before, .timeline-content.icon-cake::before, .timeline-content.icon-dance::before, .timeline-content.icon-afterparty::before, .timeline-content.icon-goingaway::before { left:-25px; width:44px; height:44px; top:-8px; }
  .timeline-content { padding-left: 0; }
  .timeline-graphic { transform: translateY(-12px); }
  .timeline-graphic img { width:56px; height:56px; }
  .timeline-content h3 { font-size: 28px; }
}

@media (max-width: 520px) {
  .brand { font-size:24px; }
  .hero { min-height:calc(100svh - 68px); background-position:56% 14%; }
  .hero-inner { padding:70px 20px 110px; }
  .hero h1 { font-size:54px; }
  .countdown-value { font-size:34px; }
  .countdown-label { letter-spacing:.1em; }
  .photo-frame::before { inset:12px -12px -12px 12px; }
  .timeline::before { left:58px; }
  .timeline-item { grid-template-columns:48px 1fr; gap:30px; }
  .timeline-time { font-size:18px; }
  .timeline-content::before { left:-24px; width:8px; height:8px; }
  .timeline-content.icon-mass::before, .timeline-content.icon-reception::before, .timeline-content.icon-cake::before, .timeline-content.icon-dance::before, .timeline-content.icon-afterparty::before, .timeline-content.icon-goingaway::before { left:-21px; width:36px; height:36px; top:-6px; }
  .timeline-content { padding-left: 0; }
  .timeline-graphic { transform: translateY(-8px); }
  .timeline-graphic img { width:46px; height:46px; }
  .timeline-content h3 { font-size: 24px; }
  .timeline-content p { margin-left: 10px; }
  .radio-row { flex-direction:column; align-items:flex-start; gap:9px; padding:8px 0; }
}

/* RSVP page: keep the form closer to the introductory sentence */
body[data-page="rsvp"] .page-hero { padding-bottom: clamp(14px, 2vw, 24px); }
body[data-page="rsvp"] .page-hero + .section { padding-top: clamp(16px, 2.5vw, 28px); }


/* Details page: keep venue photos closer to the introductory sentence */
body[data-page="details"] .page-hero { padding-bottom: clamp(14px, 2vw, 24px); }
body[data-page="details"] .page-hero + .section { padding-top: clamp(18px, 2.8vw, 32px); }

/* Schedule page spacing refinements */
body[data-page="schedule"] .page-hero { padding-bottom: clamp(24px, 3vw, 38px); }
body[data-page="schedule"] .page-hero + .section { padding-top: clamp(26px, 3.5vw, 44px); padding-bottom: clamp(34px, 5vw, 58px); }
body[data-page="schedule"] .quote-band { padding-top: clamp(30px, 4vw, 46px); padding-bottom: clamp(58px, 7vw, 82px); }
body[data-page="schedule"] .quote-band .button { font-size: 12px; min-height: 50px; padding: 0 28px; }

body[data-page="faq"] .page-hero { padding-bottom: clamp(14px, 2vw, 24px); }
body[data-page="faq"] .page-hero + .section { padding-top: clamp(16px, 2.5vw, 28px); }
