:root {
  --olive-950: #172019;
  --olive-900: #202c22;
  --olive-800: #2b382c;
  --olive-700: #394638;
  --ivory: #f3ead7;
  --ivory-soft: #e8dcc4;
  --gold: #bfa67b;
  --gold-deep: #977d56;
  --ink: #20251f;
  --shadow: 0 30px 70px rgba(0, 0, 0, .36);
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --script: "Snell Roundhand", "Segoe Script", "URW Chancery L", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--olive-950); }
body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 20% 10%, rgba(199, 177, 132, .10), transparent 35%),
    linear-gradient(180deg, var(--olive-950), #101812);
  font-family: var(--serif);
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.cinema {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #101610;
  padding: 0;
  position: relative;
}

.cinema-shell {
  position: relative;
  width: min(100vw, 540px);
  height: 100svh;
  max-height: 1000px;
  overflow: hidden;
  background: var(--olive-900);
  box-shadow: var(--shadow);
}

.invite-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--olive-900);
}

.open-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    linear-gradient(180deg, rgba(14, 20, 14, .22), rgba(14, 20, 14, .52)),
    url("assets/poster.jpg") center / cover no-repeat;
  transition: opacity .8s ease, visibility .8s ease;
}
.open-layer.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.open-card {
  text-align: center;
  width: min(100%, 390px);
  padding: 30px 24px 26px;
  border: 1px solid rgba(235, 223, 195, .38);
  background: rgba(30, 43, 31, .38);
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.monogram, .closing-monogram {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 223, 195, .45);
  color: var(--ivory);
  font-size: 25px;
  letter-spacing: .06em;
  transform: rotate(45deg);
}
.monogram::first-line, .closing-monogram::first-line { transform: rotate(-45deg); }
.monogram { font-size: 0; }
.monogram::after { content: "IF"; font-size: 25px; transform: rotate(-45deg); }

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--ivory-soft);
}

.open-card h1 {
  margin: 0 0 28px;
  text-transform: uppercase;
  font-size: clamp(30px, 9vw, 45px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .07em;
}
.open-card h1 span { display: block; font-size: .7em; margin: 7px 0; }

.primary-button {
  border: 1px solid rgba(237, 224, 196, .7);
  background: rgba(243, 234, 215, .92);
  color: var(--olive-900);
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: #fff9ec; }
.primary-button.full { width: 100%; }
.tap-note { margin: 12px 0 0; font-size: 12px; color: rgba(243,234,215,.72); }

.film-controls {
  position: absolute;
  inset: 18px 16px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.film-controls.is-visible { opacity: 1; pointer-events: auto; }
.icon-button, .ghost-button, .continue-button, .floating-music {
  border: 1px solid rgba(244, 235, 215, .52);
  color: var(--ivory);
  background: rgba(18, 27, 19, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
}
.ghost-button {
  padding: 11px 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
}
.continue-button {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 12px 17px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, -6px); } }

.details {
  position: relative;
  overflow: clip;
  background: var(--olive-900);
  min-height: 100vh;
}
.details-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 39, 28, .80) 0%, rgba(25, 36, 26, .58) 38%, rgba(23, 33, 24, .76) 70%, rgba(14, 22, 16, .94) 100%),
    url("assets/garden.jpg") top center / 100% auto no-repeat;
  filter: saturate(.84) contrast(1.02);
  transform: scale(1.01);
}
.details-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(224, 215, 185, .18), transparent 27%),
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 15%, transparent 85%, rgba(0,0,0,.2));
}
.details-content {
  position: relative;
  z-index: 1;
  width: min(100% - 34px, 520px);
  margin: 0 auto;
  padding: 86px 0 72px;
  text-align: center;
}
.ornament { font-size: 18px; color: var(--gold); margin-bottom: 17px; }
.ornament.small { font-size: 13px; margin-bottom: 10px; }
.script-line {
  font-family: var(--script);
  font-style: italic;
  font-size: 21px;
  margin: 0 0 5px;
  color: var(--ivory-soft);
}
.details-content > h2, .rsvp-panel h2, .closing h2 {
  margin: 0;
  font-size: clamp(27px, 8vw, 41px);
  font-weight: 400;
  letter-spacing: .025em;
}
.date-plaque {
  width: 128px;
  min-height: 260px;
  margin: 44px auto 24px;
  border: 1px solid rgba(231, 218, 189, .68);
  outline: 1px solid rgba(231, 218, 189, .20);
  outline-offset: -7px;
  padding: 21px 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(44, 54, 40, .32);
  box-shadow: 0 17px 45px rgba(0,0,0,.18);
}
.date-plaque span:first-child {
  font-family: var(--script);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 8px;
}
.date-plaque strong { font-size: 33px; font-weight: 400; line-height: 1; }
.date-plaque .rule { width: 22px; height: 1px; background: rgba(231,218,189,.5); margin: 7px 0; }
.time { margin: 0 0 11px; font-size: 15px; }
.details-content > h3 { margin: 0; font-size: 25px; font-weight: 400; }
.venue-subtitle { margin: 2px 0 0; font-family: var(--script); font-size: 19px; font-style: italic; }

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 38px 0 20px;
}
.action-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(238, 225, 197, .30);
  background: rgba(21, 32, 22, .56);
  padding: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.action-card:hover { transform: translateY(-2px); border-color: rgba(238,225,197,.65); background: rgba(28,41,29,.72); }
.action-icon { font-size: 24px; color: var(--gold); width: 28px; }
.action-card strong { display: block; font-weight: 400; font-size: 14px; letter-spacing: .04em; }
.action-card small { display: block; margin-top: 4px; color: rgba(243,234,215,.66); font-size: 10px; line-height: 1.25; }

.countdown-panel, .rsvp-panel {
  margin: 18px 0 0;
  border: 1px solid rgba(238, 225, 197, .28);
  background: rgba(22, 33, 23, .64);
  box-shadow: 0 25px 65px rgba(0,0,0,.20);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.countdown-panel { padding: 27px 14px 25px; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.countdown div { padding: 8px 3px 2px; }
.countdown strong { display: block; font-weight: 400; font-size: clamp(26px, 8vw, 38px); line-height: 1; }
.countdown span { display: block; margin-top: 7px; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; color: rgba(243,234,215,.68); }

.rsvp-panel { margin-top: 18px; padding: 34px 22px 30px; }
.rsvp-copy { margin: 12px auto 26px; max-width: 390px; color: rgba(243,234,215,.73); font-size: 13px; line-height: 1.65; }
#rsvpForm { text-align: left; }
#rsvpForm > label { display: block; margin-bottom: 17px; }
#rsvpForm label > span, fieldset legend {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ivory-soft);
}
#rsvpForm input[type="text"], #rsvpForm select, #rsvpForm textarea {
  width: 100%;
  border: 1px solid rgba(235, 222, 193, .30);
  background: rgba(10, 18, 12, .34);
  color: var(--ivory);
  padding: 13px 14px;
  outline: none;
  border-radius: 0;
}
#rsvpForm input:focus, #rsvpForm select:focus, #rsvpForm textarea:focus { border-color: rgba(235,222,193,.72); }
#rsvpForm textarea { resize: vertical; }
#rsvpForm select option { color: #111; }
fieldset { border: 0; padding: 0; margin: 0 0 17px; }
.choice { display: flex; align-items: center; gap: 9px; margin: 9px 0; cursor: pointer; }
.choice span { margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; }
.choice input { accent-color: var(--gold); }
.text-button {
  display: block;
  margin: 13px auto 0;
  background: transparent;
  border: 0;
  color: var(--ivory-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font-size: 12px;
}
.form-status { min-height: 18px; margin: 12px 0 0; text-align: center; color: var(--ivory-soft); font-size: 12px; }

.closing { padding: 70px 0 34px; }
.closing h2 { margin-bottom: 18px; }
.closing-rule { display: block; width: 80px; height: 1px; background: rgba(230,216,187,.46); margin: 0 auto 20px; }
.script-line.larger { font-size: 25px; }
.closing-monogram { margin-top: 28px; font-size: 0; width: 52px; height: 52px; }
.closing-monogram::after { content: "IF"; font-size: 18px; transform: rotate(-45deg); }

.floating-music {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
  font-size: 19px;
}
.floating-music.is-playing { background: rgba(243, 234, 215, .92); color: var(--olive-900); }

@media (min-width: 700px) {
  .cinema { padding: 26px; }
  .cinema-shell { border-radius: 4px; height: min(92vh, 960px); }
  .details-content { padding-top: 110px; padding-bottom: 110px; }
}

@media (max-width: 390px) {
  .action-grid { grid-template-columns: 1fr; }
  .countdown strong { font-size: 27px; }
  .rsvp-panel { padding-left: 17px; padding-right: 17px; }
}

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


/* Netlify RSVP states */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#rsvpSubmit:disabled {
  opacity: .58;
  cursor: wait;
}

.rsvp-success {
  padding: 28px 14px 8px;
  text-align: center;
}

.rsvp-success h3 {
  margin: 7px 0 9px;
  font-size: 25px;
  font-weight: 400;
}

.rsvp-success p {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(243,234,215,.78);
  font-size: 13px;
  line-height: 1.65;
}

.rsvp-panel label.is-disabled {
  opacity: 0.5;
}
