:root {
  --bg: #f8e4ce;
  --paper: #fffdf9;
  --text: #5a493a;
  --muted: #8f7b68;
  --accent: #d8893e;
  --accent-dark: #bd7130;
  --line: rgba(90, 73, 58, .18);
  --shadow: 0 22px 55px rgba(106, 75, 48, .14);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
main {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
section { max-width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  min-height: 100svh;
  padding: 0 clamp(18px, 3.5vw, 64px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__frame {
  position: relative;
  width: min(960px, calc(100% - 96px));
  aspect-ratio: 1045 / 826;
  overflow: hidden;
  background: #ead1b1;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 66%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29,28,24,.68) 0%, rgba(38,36,30,.42) 36%, rgba(49,43,34,.08) 65%, rgba(248,228,206,.05) 100%);
}
.hero__content {
  position: absolute;
  left: 9%;
  top: 44%;
  transform: translateY(-50%);
  width: min(500px, 50%);
  color: white;
  text-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.hero__eyebrow, .eyebrow {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
}
.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 400 clamp(64px, 5.6vw, 90px)/.84 var(--serif);
  letter-spacing: -.035em;
}
.hero__title span { display: block; }
.hero__title .hero__amp { font-size: .78em; margin: 5px 0 4px; }
.hero__date { margin: 20px 0 0; font: 600 15px/1.2 var(--serif); letter-spacing: .14em; }
.ornament { display: flex; align-items: center; gap: 14px; width: min(355px, 100%); margin-top: 26px; opacity: .82; }
.ornament span { height: 1px; background: currentColor; flex: 1; }
.ornament b { font-size: 8px; }

.section { padding: clamp(76px, 9vw, 128px) 24px; }
.container { width: min(900px, 100%); margin: 0 auto; text-align: center; }
.container--narrow { width: min(560px, 100%); }
.container--medium { width: min(760px, 100%); }
.section-divider { width: min(900px, calc(100% - 48px)); height: 1px; background: var(--line); margin: 0 auto; }

h2 {
  margin: 0;
  font: 400 clamp(42px, 4.6vw, 64px)/1.1 var(--serif);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.title-rule { width: 42px; height: 1px; background: rgba(90,73,58,.48); margin: 18px auto 28px; }
.title-rule--light { background: rgba(255,255,255,.65); }
.mini-ornament { margin-bottom: 20px; color: var(--accent); font: 38px/1 var(--serif); }
.lead, .section-copy {
  margin: 0 auto;
  color: #5c4d40;
  font-size: 18px;
  line-height: 1.65;
}
.pin { color: #d64a77; font-size: .65em; vertical-align: .2em; margin: 0 3px; }

.section--intro { padding-top: 105px; padding-bottom: 125px; }
.section--calendar { padding-top: 75px; }
.eyebrow { color: #6d5d4d; margin-bottom: 28px; font-size: 11px; }
.calendar-card {
  width: min(565px, 100%);
  margin: 0 auto;
  padding: 34px 54px 46px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow);
}
.calendar-card h2 { font-size: clamp(48px, 5vw, 62px); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; }
.calendar-grid--weekdays { margin-top: 24px; font-size: 10px; font-weight: 700; color: #3f3932; }
.calendar-grid--days { margin-top: 8px; row-gap: 24px; font-size: 13px; color: #443d36; }
.calendar-grid--days > span { min-height: 45px; display: grid; place-items: center; position: relative; }
.wedding-day i {
  position: absolute;
  font: 64px/.75 var(--serif);
  color: var(--accent);
  filter: drop-shadow(0 3px 4px rgba(110,74,38,.25));
  transform-origin: center;
  animation: heartbeat 1.75s ease-in-out infinite;
}
.wedding-day b { position: relative; z-index: 2; font-weight: 600; }
.calendar-time { margin: 22px 0 0; font-weight: 700; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); opacity: .88; } 42% { transform: scale(1.08); opacity: 1; } 58% { transform: scale(.98); } 72% { transform: scale(1.05); } }

.section--place .section-copy { margin-bottom: 34px; }
.wide-image { width: min(770px, 100%); margin: 0 auto 28px; border-radius: 20px; }
.map-shell { width: min(770px, 100%); height: 430px; margin: 0 auto 18px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(90,73,58,.12); background: #e6ddcf; }
.map-shell iframe { border: 0; width: 100%; height: 100%; }
.map-card {
  width: min(770px, 100%);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(90,73,58,.18);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  text-align: left;
}
.map-card__text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.map-card__text strong { display: block; font: 700 20px/1.2 var(--serif); margin-bottom: 4px; }
.map-card__text small { display: block; font-size: 12px; line-height: 1.5; }
.map-pin { color: var(--accent); font-size: 36px; }
.map-card__actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(216,137,62,.22); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { color: var(--accent); border: 1px solid var(--accent); }
.btn--large { min-height: 58px; padding: 0 34px; font-size: 13px; }

.program-item { margin-top: 46px; }
.program-item + .program-item { margin-top: 60px; }
.program-item time { color: var(--accent); font-size: 20px; font-weight: 800; }
.program-item h3 { margin: 14px 0 8px; font: 400 clamp(40px, 4vw, 54px)/1.08 var(--serif); }
.program-item p { margin: 0 auto 28px; font-size: 17px; line-height: 1.55; }
.program-item img { width: min(820px, 100%); max-height: 520px; object-fit: cover; margin: 0 auto; border-radius: 20px; }

.section--dress .lead { max-width: 600px; }
.palette { display: flex; justify-content: center; gap: 10px; margin: 28px 0 34px; }
.swatch { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(90,73,58,.15); border: 4px solid var(--bg); }
.swatch--white { background: white; }
.swatch--black { background: black; }
.sliders-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; width: min(820px, 100%); margin: 0 auto; }
.slider-label { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; margin: 0 0 12px; color: #7b6754; }
.look-slider__stage { position: relative; overflow: hidden; border-radius: 20px; background: #f5dcc0; aspect-ratio: 2/3; }
.look-slider__main { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease, transform .3s ease; }
.look-slider__main.is-switching { opacity: .5; transform: scale(.995); }
.slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #4b4035;
  font: 34px/1 var(--serif);
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(70,50,35,.12);
}
.slider-arrow--prev { left: 8px; }
.slider-arrow--next { right: 8px; }
.look-slider__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.thumb { padding: 0; aspect-ratio: 1.55; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: transparent; cursor: pointer; opacity: .82; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.thumb.is-active { border-color: var(--accent); opacity: 1; }

.section--wishes { padding-bottom: 75px; }
.wish-list { margin-top: 35px; border-top: 1px solid var(--line); }
.wish { display: grid; grid-template-columns: 70px 1fr; gap: 18px; text-align: left; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--accent); }
.wish__number { font: 400 26px/1.1 var(--serif); }
.wish h3 { margin: 0 0 8px; font: 400 clamp(28px, 3vw, 36px)/1.05 var(--serif); }
.wish p { margin: 0; font: 400 clamp(23px, 2.7vw, 32px)/1.18 var(--serif); }

.section--countdown { padding-top: 30px; }
.countdown-card { position: relative; overflow: hidden; border-radius: 22px; height: 520px; }
.countdown-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.countdown-card__overlay { position: absolute; inset: 0; background: rgba(50,42,34,.43); }
.countdown-card__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.countdown-card__content h2 { font-size: clamp(38px, 4vw, 58px); }
.countdown-card__content > p { margin: 0 0 22px; font-size: 18px; font-weight: 700; }
.countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; width: min(690px, 100%); }
.countdown > div { min-width: 0; min-height: 115px; border-radius: 16px; border: 1px solid rgba(255,255,255,.42); background: rgba(56,47,40,.38); backdrop-filter: blur(5px); display: grid; place-items: center; align-content: center; }
.countdown strong { font: 400 48px/1 var(--serif); }
.countdown span { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.countdown-finished { font: 700 24px/1.2 var(--serif); }

.section--contact .lead, .section--rsvp .lead { max-width: 570px; }
.chat-button {
  width: min(620px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  background: var(--accent);
  color: white;
  border-radius: 18px;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 14px 35px rgba(216,137,62,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.chat-button:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 18px 40px rgba(190,108,42,.28); }
.chat-button__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 22px; transform: rotate(-18deg); }
.chat-button strong { display: block; font-size: 14px; letter-spacing: .04em; }
.chat-button small { display: block; margin-top: 4px; opacity: .82; }
.chat-button__arrow { font-size: 22px; text-align: right; }
.proxy-note { margin: 13px auto 0; color: rgba(90,73,58,.5); font-size: 10px; line-height: 1.5; letter-spacing: .01em; }
.proxy-note a { text-decoration: none; border-bottom: 1px solid rgba(90,73,58,.22); }
.rsvp-note { margin: 28px 0 22px; font-size: 18px; }
.section--rsvp { padding-bottom: 120px; }

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

@media (max-width: 760px) {
  html, body, main { width: 100%; max-width: 100%; }
  .hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100svh;
    overflow: hidden;
  }
  .hero__frame {
    width: 100%;
    max-width: 100%;
    height: 100svh;
    min-height: 690px;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
  }
  .hero__image {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
    transform: scale(1.035);
    transform-origin: center center;
  }
  .hero__shade { background: linear-gradient(180deg, rgba(38,34,29,.18) 0%, rgba(38,34,29,.18) 35%, rgba(31,29,25,.60) 100%); }
  .hero__content {
    left: 24px;
    right: 24px;
    bottom: 54px;
    top: auto;
    transform: none;
    width: auto;
  }
  .hero__eyebrow { margin-bottom: 18px; font-size: 10px; }
  .hero__title { font-size: clamp(54px, 17vw, 78px); line-height: .84; }
  .hero__title .hero__amp { margin: 2px 0; }
  .hero__date { font-size: 13px; }
  .ornament { max-width: 290px; }

  .section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 72px;
    padding-bottom: 72px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .container { width: 100%; max-width: 900px; margin-inline: auto; }
  .container--narrow { max-width: 560px; }
  .container--medium { max-width: 760px; }
  .section-divider { width: calc(100% - 36px); }
  h2 { font-size: clamp(36px, 11vw, 50px); }
  .lead, .section-copy { font-size: 16px; line-height: 1.6; }
  .section--intro { padding-top: 82px; padding-bottom: 88px; }

  .calendar-card { padding: 28px 14px 32px; }
  .calendar-card h2 { font-size: clamp(42px, 13vw, 58px); }
  .calendar-grid--weekdays { font-size: 9px; }
  .calendar-grid--days { row-gap: 14px; font-size: 12px; }
  .calendar-grid--days > span { min-height: 39px; }
  .wedding-day i { font-size: 56px; }

  .wide-image, .program-item img { border-radius: 14px; }
  .map-shell { height: 340px; border-radius: 14px; }
  .map-card { flex-direction: column; align-items: stretch; padding: 16px; }
  .map-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 14px; font-size: 10px; }

  .program-item { margin-top: 40px; }
  .program-item + .program-item { margin-top: 52px; }
  .program-item time { font-size: 18px; }
  .program-item h3 { font-size: clamp(36px, 11vw, 48px); }
  .program-item p { font-size: 15px; line-height: 1.55; }
  .desktop-only { display: none; }

  .palette { margin-bottom: 28px; }
  .swatch { width: 52px; height: 52px; }
  .sliders-grid { grid-template-columns: 1fr; gap: 42px; }
  .look-slider { width: min(420px, 100%); margin: 0 auto; }
  .slider-arrow { width: 44px; height: 44px; }
  .look-slider__thumbs { gap: 7px; overflow-x: auto; }

  .wish { grid-template-columns: 48px 1fr; gap: 10px; padding: 22px 0; }
  .wish__number { font-size: 21px; }
  .wish h3 { font-size: 27px; }
  .wish p { font-size: 22px; }

  .countdown-card { height: 570px; border-radius: 16px; }
  .countdown-card > img { object-position: center center; }
  .countdown-card__content { justify-content: flex-end; padding: 30px 16px 34px; }
  .countdown-card__content h2 { font-size: 36px; }
  .countdown { gap: 6px; }
  .countdown > div { min-height: 92px; border-radius: 12px; }
  .countdown strong { font-size: 36px; }
  .countdown span { font-size: 8px; }

  .chat-button { grid-template-columns: 42px 1fr 22px; padding: 15px; border-radius: 15px; }
  .chat-button__icon { width: 42px; height: 42px; }
  .chat-button strong { font-size: 12px; }
  .rsvp-note { font-size: 16px; }
  .section--rsvp { padding-bottom: 92px; }
}

@media (max-width: 390px) {
  .hero__content { bottom: 40px; }
  .hero__title { font-size: 52px; }
  .map-card__actions { grid-template-columns: 1fr; }
  .countdown-card__content h2 { font-size: 31px; }
  .countdown strong { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Mobile viewport hardening: keeps every section perfectly centered with equal left/right gutters. */
@media (max-width: 760px) {
  .section, .section-divider, .hero, .hero__frame { margin-left: 0; margin-right: 0; }
  .section-divider {
    width: auto;
    margin-left: max(18px, env(safe-area-inset-left));
    margin-right: max(18px, env(safe-area-inset-right));
  }
  .wide-image, .map-shell, .map-card, .sliders-grid, .chat-button, .calendar-card {
    max-width: 100%;
  }
  iframe, img, svg, video { max-width: 100%; }
}
