/* Public wedding homepage. Source of truth: design_handoff_wedding_site/Wedding A v4.dc.html */
:root {
  --cream: #FFF8EA;
  --brown: #7A2E1A;
  --terracotta: #C4502F;
  --terracotta-hover: #A43F22;
  --brick: #B5452A;
  --coral: #DE6848;
  --sun: #F6B83F;
  --pink: #F48B89;
  --card: #FFF1DC;
  --venue: #FFD8A8;
  --script: 'Great Vibes', cursive;
  --serif: 'Alegreya', serif;
  --sans: 'Alegreya Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body.wedding {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--serif);
  overflow-x: clip;
}
.wedding a { color: var(--terracotta); }
.wedding a:hover { color: var(--brown); }
.wedding input, .wedding textarea, .wedding button { font: inherit; }
.wedding ::selection { background: var(--sun); }
.wedding ::placeholder { color: #D79A82; }
.wedding a:focus-visible, .wedding button:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.wedding svg { display: block; }
[hidden] { display: none !important; }
.wedding section[id] { scroll-margin-top: 48px; }

/* Shared bits */
.w-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.w-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(60px, 8vw, 96px);
  color: var(--terracotta);
  margin: 0;
  line-height: 1;
}
.w-center { text-align: center; }
.w-sub { font-style: italic; font-size: 20px; }
.pull-up { margin-top: -1px; }
.w-wave svg { width: 100%; height: 100%; }
.h-70 { height: 70px; }
.h-90 { height: 90px; }
.h-150 { height: 150px; }
.wedding .w-pill {
  background: var(--terracotta);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wedding .w-pill:hover { background: var(--terracotta-hover); color: var(--cream); }
.wedding .w-pill-outline {
  background: none;
  border: 2px solid var(--terracotta);
  color: var(--brown);
  padding: 10px 20px;
}
.wedding .w-pill-outline:hover { background: rgba(196, 80, 47, .1); color: var(--brown); }

/* Nav */
.w-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(255, 248, 234, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.w-nav a { color: var(--brown); text-decoration: none; }
.w-nav a:hover { color: var(--terracotta); }
.w-nav .w-nav-cta { background: var(--terracotta); color: var(--cream); padding: 10px 18px; border-radius: 999px; }
.w-nav .w-nav-cta:hover { background: var(--terracotta-hover); color: var(--cream); }

/* Hero */
.hero { height: 300vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-sun {
  position: absolute;
  left: 50%;
  bottom: 20vh;
  width: 36vmin;
  height: 36vmin;
  margin-left: -18vmin;
  border-radius: 50%;
  background: var(--sun);
}
.hero-hill { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-hill svg { width: 100%; height: 100%; }
.hill-1 { height: 42vh; }
.hill-2 { height: 30vh; }
.hill-3 { height: 17vh; }
.hero-valley { position: absolute; left: 0; right: 0; top: 16vh; text-align: center; opacity: 0; }
.hero-valley .w-label { font-size: 13px; letter-spacing: .24em; margin-top: 14px; }
.hero-valley-title { font-family: var(--script); font-size: clamp(48px, 8vw, 96px); color: var(--terracotta); line-height: 1; }
.hero-frame, .hero-text { position: absolute; top: 66px; left: 3vw; right: 3vw; bottom: 3vw; }
.hero-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12%;
  gap: 10px;
}
.hero-text p { margin: 0; }
.hero-invite { letter-spacing: .28em; }
.hero-names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 10.5vw, 184px);
  line-height: 1;
  color: var(--terracotta);
  margin: 6px 0;
}
.hero-names span { color: var(--coral); }
.hero-meta {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero-hint { position: absolute; left: 0; right: 0; bottom: calc(3vw + 84px); text-align: center; font-style: italic; font-size: 16px; }

/* Countdown */
.countdown { background: var(--brick); color: var(--cream); padding: 40px 24px 110px; text-align: center; margin-top: -1px; }
.countdown-lead { max-width: 640px; margin: 0 auto; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; text-wrap: pretty; }
.countdown-grid { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin-top: 56px; flex-wrap: wrap; }
.countdown-num { font-size: clamp(52px, 7vw, 92px); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.countdown .w-label { margin-top: 10px; }

/* Program */
.program { position: relative; padding: 70px 24px 120px; overflow: hidden; }
.blob { position: absolute; }
.blob-a { left: -90px; top: 80px; width: 280px; height: 250px; border-radius: 58% 42% 50% 50% / 50% 60% 40% 50%; background: #FFE6C4; }
.blob-b { right: -70px; bottom: 40px; width: 240px; height: 220px; border-radius: 44% 56% 62% 38% / 52% 40% 60% 48%; background: #FFDCD8; }
.program-inner { position: relative; max-width: 760px; margin: 0 auto; }
.program .w-script { font-size: clamp(64px, 9vw, 104px); }
.program-sub { margin: 8px 0 56px; }
.program-track { position: relative; padding-left: clamp(80px, 12vw, 110px); }
.program-line { position: absolute; left: 0; top: -10px; width: 60px; height: calc(100% + 20px); overflow: visible; }
.program-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.program-card {
  background: var(--card);
  border-radius: 32px;
  padding: 26px 30px;
  display: flex;
  gap: 10px 26px;
  align-items: center;
  flex-wrap: wrap;
}
.corner-bl { border-bottom-left-radius: 10px; }
.corner-tr { border-top-right-radius: 10px; }
.corner-tl { border-top-left-radius: 10px; }
.corner-br { border-bottom-right-radius: 10px; }
.program-time { font-size: 46px; font-weight: 500; color: var(--terracotta); line-height: 1; min-width: 120px; }
.program-title { font-size: 16px; letter-spacing: .2em; }

/* Venue */
.venue { background: var(--venue); padding: 50px 24px 110px; }
.venue-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.venue-info { display: flex; flex-direction: column; gap: 14px; }
.venue-title { color: var(--brick); }
.venue-name { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; }
.venue-address { font-size: 20px; }
.venue-facts { display: flex; flex-direction: column; margin: 10px 0 0; border-top: 2px solid #F4B48F; }
.venue-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid #F4B48F; font-size: 18px; }
.venue-facts dt { margin: 0; }
.venue-facts dd { margin: 0; font-weight: 700; text-align: right; }
.venue-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.venue-card { background: var(--card); border-radius: 44px; overflow: hidden; box-shadow: 0 34px 60px -34px rgba(122, 46, 26, .5); }
.venue-card svg { width: 100%; height: auto; }

/* Info */
.info { padding: 70px 24px 110px; position: relative; overflow: hidden; }
.info-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  margin-top: 56px;
  text-align: left;
}
.info-card { border-radius: 40px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.info-card h3 { margin: 0; font-style: italic; font-weight: 500; font-size: 30px; color: var(--brick); }
.info-card p { margin: 0; font-size: 18px; line-height: 1.55; }
.info-pink { background: #FDE3DE; border-bottom-left-radius: 12px; }
.info-yellow { background: #FFEBC2; border-top-right-radius: 12px; }
.info-peach { background: #FFDCCB; border-top-left-radius: 12px; }

/* RSVP */
.rsvp { padding: clamp(60px, 8vw, 110px) 20px 130px; }
.rsvp-inner { max-width: 680px; margin: 0 auto; }
.rsvp-title { font-size: clamp(64px, 9vw, 110px); }
.rsvp-deadline { margin: 8px 0 34px; font-size: 19px; }
.rsvp-form {
  background: var(--card);
  border-radius: 48px 48px 48px 16px;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rsvp-field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rsvp-field legend { padding: 0; margin-bottom: 10px; letter-spacing: .2em; }
.rsvp-field > .w-label { letter-spacing: .2em; }
.rsvp-optional { text-transform: none; letter-spacing: 0; font-weight: 500; font-style: italic; }
.rsvp-field input, .rsvp-field textarea {
  border: 0;
  border-radius: 20px;
  background: var(--cream);
  padding: 16px 20px;
  font-size: 20px;
  color: var(--brown);
  outline: none;
}
.rsvp-field textarea { font-size: 19px; resize: vertical; }
.rsvp-field input:focus-visible, .rsvp-field textarea:focus-visible { box-shadow: 0 0 0 3px var(--sun); }
.rsvp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 3vw, 20px); }
.rsvp-choice {
  position: relative;
  color: var(--brown);
  padding: clamp(22px, 4vw, 34px) 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .35s;
}
.rsvp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-yes { background: var(--sun); border-radius: 58% 42% 50% 50% / 50% 60% 40% 50%; }
.rsvp-no { background: var(--pink); border-radius: 44% 56% 62% 38% / 52% 40% 60% 48%; }
.rsvp-choices:has(input:checked) .rsvp-choice { transform: scale(.94); opacity: .5; }
.rsvp-choices .rsvp-choice:has(input:checked) { transform: scale(1.04) rotate(-2deg); opacity: 1; }
.rsvp-choice:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.rsvp-choice-big { font-family: var(--script); font-size: clamp(46px, 6vw, 64px); line-height: 1; }
.rsvp-choice-small { font-size: 18px; font-style: italic; }
.rsvp-error { color: var(--brick); font-size: 17px; }
.wedding .rsvp-submit {
  background: var(--terracotta);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 18px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.rsvp-submit:hover { background: var(--terracotta-hover); }
.rsvp-submit:disabled { opacity: .6; cursor: progress; }
.rsvp-thanks {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border-radius: 64px;
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.rsvp-thanks-title { font-family: var(--script); font-size: 72px; color: var(--terracotta); line-height: 1; }
.rsvp-thanks p { margin: 0; font-size: 21px; line-height: 1.5; }
.rsvp-thanks a { font-size: 16px; }

/* Footer */
.w-footer { position: relative; }
.w-footer-body { background: var(--brick); color: var(--cream); padding: 40px 24px 70px; text-align: center; }
.w-footer-lead { font-style: italic; font-size: 26px; }
.w-footer-contacts { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; margin-top: 28px; font-size: 19px; }
.w-footer-contacts div { display: flex; flex-direction: column; gap: 4px; }
.wedding .w-footer-contacts a, .wedding .w-footer-game { color: var(--cream); }
.w-footer-sign { font-family: var(--script); font-size: 64px; margin-top: 48px; line-height: 1; }
.w-footer-body .w-label { letter-spacing: .24em; margin-top: 10px; }
.w-footer-game { display: inline-block; margin-top: 36px; font-style: italic; font-size: 17px; opacity: .85; }
.wedding .w-footer-game:hover { color: var(--sun); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; }
  .hero-late, .hero-hint { display: none; }
  .rsvp-choice { transition: none; }
}
