@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes Local";
  src: url("assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --olive: #575c40;
  --olive-deep: #444a35;
  --ivory: #f2ecdf;
  --paper: #ece4d6;
  --ink: #5e604f;
  --gold: #b39b68;
  --serif: "Cormorant Garamond Local", "Iowan Old Style", Georgia, serif;
  --script: "Great Vibes Local", "Snell Roundhand", "Apple Chancery", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #25271f; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  background: #25271f;
  -webkit-font-smoothing: antialiased;
}
body.gate-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.invitation-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: min(100%, 480px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  color: var(--ivory);
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, #5f65472e 0 24%, transparent 55%),
    linear-gradient(180deg, #12170fd6 0%, #262b1c66 42%, #11150de8 100%),
    url("assets/hero-garden.webp") center/cover no-repeat;
  isolation: isolate;
  transition: opacity .9s ease, visibility .9s ease;
}
.invitation-gate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #fff1 43%, transparent 62%);
  transform: translateX(-110%);
  animation: gate-light 7s ease-in-out 1.2s infinite;
}
.invitation-gate__frame {
  position: absolute;
  inset: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border: 1px solid #e9dfc37a;
  border-radius: 230px 230px 24px 24px;
  box-shadow: inset 0 0 0 5px #ede4cb0c, 0 0 45px #0003;
}
.invitation-gate__frame::before,
.invitation-gate__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #e9dfc3b0;
  background: #62694a;
  transform: translateX(-50%) rotate(45deg);
}
.invitation-gate__frame::before { top: 13px; }
.invitation-gate__frame::after { bottom: 13px; }
.invitation-gate__content {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 42px 18px 30px;
  text-shadow: 0 2px 18px #0d110bb8;
  animation: gate-arrive 1.15s cubic-bezier(.2,.75,.25,1) both;
  transition: transform .9s ease;
}
.invitation-gate__eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .92;
}
.invitation-gate__ornament {
  margin: 20px auto 11px;
  font-size: 22px;
  line-height: 1;
  color: #d8c79f;
  opacity: .9;
}
.invitation-gate__names {
  margin: 0;
  font: 400 clamp(58px, 18vw, 78px)/.78 var(--script);
  letter-spacing: -.02em;
}
.invitation-gate__names span { display: block; }
.invitation-gate__names i {
  display: block;
  margin: 7px 0 8px;
  font-size: .46em;
  line-height: 1;
  font-weight: 400;
}
.invitation-gate__date {
  margin: 28px 0 25px;
  font-size: 14px;
  letter-spacing: .23em;
}
.invitation-gate__button {
  position: relative;
  min-width: 206px;
  min-height: 52px;
  padding: 14px 27px 13px;
  overflow: hidden;
  border: 1px solid #f0e9d9;
  border-radius: 999px;
  color: var(--olive-deep);
  background: var(--ivory);
  box-shadow: 0 12px 35px #11170c73, inset 0 0 0 1px #fff9;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.invitation-gate__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, #fff9 48%, transparent 69%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.invitation-gate__button span { position: relative; z-index: 1; }
.invitation-gate__button:hover,
.invitation-gate__button:focus-visible {
  transform: translateY(-2px);
  background: #faf5e9;
  box-shadow: 0 15px 42px #11170c8f, inset 0 0 0 1px #fff;
}
.invitation-gate__button:hover::after,
.invitation-gate__button:focus-visible::after { transform: translateX(120%); }
.invitation-gate__button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.invitation-gate__button:active { transform: translateY(1px) scale(.985); }
.invitation-gate__button:disabled { cursor: default; }
.invitation-gate__blessing {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .06em;
  opacity: .82;
}
.gate-opening .invitation-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-opening .invitation-gate__content { transform: translateY(-12px) scale(.985); }
@keyframes gate-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gate-light {
  0%, 72%, 100% { transform: translateX(-110%); }
  88% { transform: translateX(110%); }
}
.invitation {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--olive);
  box-shadow: 0 0 70px #1118;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: max(20px, env(safe-area-inset-top)) 20px 36px;
  color: var(--ivory);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, #1c2119c9 0%, #25291d38 42%, #171b14c9 100%),
    url("assets/hero-garden.webp") center/cover no-repeat;
}
.hero-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: lowercase;
  opacity: .88;
}
.hero-nav a { color: inherit; text-decoration: none; min-width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 0; }
.invocation { margin: 23px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.envelope-wrap { position: relative; width: min(94vw, 388px); margin-top: 2px; filter: drop-shadow(0 18px 25px #16190f8f); }
.envelope-wrap img { display: block; width: 100%; height: auto; }
.heart-copy {
  position: absolute;
  top: 21%; left: 50%; width: 63%;
  transform: translateX(-50%);
  color: var(--ivory);
  text-shadow: 0 1px 3px #28301d66;
}
.heart-copy h1 { font: 400 39px/.9 var(--script); margin: 0; }
.heart-copy h1 i { display: block; font-size: 27px; font-weight: 400; margin: 1px 0; }
.hero-blessing { margin: 15px 0 0; font-size: 12px; letter-spacing: .05em; opacity: .82; }

section { position: relative; text-align: center; }
.ivory-arch, .ivory-pill { background: var(--ivory); }
.olive-section { background: var(--olive); color: var(--ivory); }
.story {
  z-index: 2;
  min-height: 920px;
  padding: 78px 37px 104px;
  border-radius: 0 0 50% 50% / 0 0 9% 9%;
  overflow: hidden;
}
.botanical { position: absolute; display: block; height: auto; pointer-events: none; }
.botanical-top { width: 98%; top: 4px; left: 1%; opacity: .88; }
.portrait-frame {
  position: relative; z-index: 1;
  width: 120px; height: 173px;
  margin: 6px auto 23px;
  border: 5px double #d4cabb;
  border-radius: 50%;
  padding: 4px;
  background: #eee6d8;
  box-shadow: 0 0 0 1px #8b8a7338;
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: sepia(.2) contrast(.94); }
.script { font: 400 40px/1.08 var(--script); margin: 0; }
.body-copy { max-width: 350px; margin: 18px auto 8px; font-size: 16px; line-height: 1.55; }
.flourish { font: 19px/1 var(--serif); margin: 14px auto; transform: rotate(0.01deg); opacity: .7; }
.blessing-verse { font-size: 13px; line-height: 1.5; font-style: italic; margin: 0 auto; }
.save-date { margin-top: 27px; font-size: 43px; }
.date-line { font-size: 13px; letter-spacing: .12em; margin: 13px 0 7px; }
.microcopy { font-size: 13px; margin: 0; }
.botanical-bottom { width: 101%; left: -.5%; bottom: -17px; mix-blend-mode: multiply; opacity: .8; }

.venue { padding: 88px 24px 48px; min-height: 700px; }
.light { color: var(--ivory); }
.light-text { color: var(--ivory); opacity: .86; }
.venue h3 { margin: 5px 0 3px; font-size: 15px; letter-spacing: .08em; font-weight: 400; }
.venue-details { display: grid; gap: 18px; margin: 18px auto 4px; }
.venue-details p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .9; }
.venue-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.temple-art { width: 112%; margin: 7px -6% -14px; height: auto; opacity: .92; }
.pill {
  display: inline-flex;
  min-width: 148px;
  min-height: 44px;
  padding: 11px 20px 10px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  cursor: pointer;
}
.light-pill { background: var(--ivory); color: var(--olive-deep); }
.dark-pill { background: var(--olive); color: var(--ivory); }
.amenities { margin: 16px 0 0; font-size: 13px; letter-spacing: .04em; opacity: .86; }

.timeline-wrap { padding: 22px 16px 42px; }
.timeline, .actions {
  position: relative;
  color: var(--ink);
  border-radius: 220px;
  overflow: hidden;
}
.timeline { min-height: 960px; padding: 165px 36px 185px; }
.timeline-arch { width: 96%; top: 14px; left: 2%; opacity: .88; }
.timeline-intro { max-width: 310px; margin: 14px auto 38px; font-size: 15px; line-height: 1.55; }
.timeline-item { margin: 0 auto; position: relative; z-index: 1; }
.timeline-icon {
  display: block; width: 82px; height: 82px; margin: 0 auto 7px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  mix-blend-mode: multiply;
}
.icon-wedding { background-image: url("assets/icon-vivaham.webp"); }
.icon-reception { background-image: url("assets/icon-welcome.webp?v=2"); }
.timeline-item time { font-size: 20px; display: block; margin-top: 2px; }
.timeline-item h3 { font-size: 13px; font-weight: 400; letter-spacing: .08em; margin: 5px 0; }
.timeline-item p { font-size: 14px; line-height: 1.45; margin: 0; }
.timeline .flourish { margin: 21px auto; }
.timeline-wreath { width: 110%; bottom: -13px; left: -5%; mix-blend-mode: multiply; opacity: .82; }

.action-wrap { padding: 20px 16px 34px; }
.actions { min-height: 720px; padding: 190px 38px 195px; }
.action-arch { width: 96%; left: 2%; top: 13px; opacity: .86; }
.actions article { position: relative; z-index: 1; }
.actions article h2 { font-size: 39px; }
.actions article p { font-size: 15px; line-height: 1.55; margin: 16px auto; max-width: 320px; }
.action-wreath { width: 112%; left: -6%; bottom: -20px; opacity: .85; mix-blend-mode: multiply; }

.closing {
  min-height: 510px;
  display: grid;
  place-items: end center;
  padding: 70px 36px max(54px, env(safe-area-inset-bottom));
  color: var(--ivory);
  text-align: center;
  background:
    linear-gradient(180deg, #11140d2e, #161b13e3),
    url("assets/closing-garden.webp") center/cover no-repeat;
}
.closing-copy p { font-size: 14px; line-height: 1.55; max-width: 350px; }
.closing-copy h2 { margin: 24px 0 6px; font-size: 39px; }
.closing-copy h3 { font: 400 23px var(--serif); margin: 0 0 20px; letter-spacing: .06em; }
.closing-copy span { font-size: 11px; letter-spacing: .13em; opacity: .8; }

.rsvp-dialog { width: min(calc(100% - 28px), 430px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--ivory); box-shadow: 0 28px 80px #0008; }
.rsvp-dialog::backdrop { background: #1d2117c9; backdrop-filter: blur(5px); }
.rsvp-card { position: relative; padding: 40px 28px 32px; display: grid; gap: 16px; }
.rsvp-card .eyebrow { text-align: center; margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rsvp-card h2 { text-align: center; }
.rsvp-card label { display: grid; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.rsvp-card input, .rsvp-card select, .rsvp-card textarea { width: 100%; border: 0; border-bottom: 1px solid #77776088; border-radius: 0; padding: 10px 2px; color: var(--ink); background: transparent; outline: none; font-size: 16px; text-transform: none; letter-spacing: 0; }
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus { border-bottom-color: var(--olive); }
.close-dialog { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
.submit-rsvp { justify-self: center; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 20; width: min(calc(100% - 32px), 400px); transform: translate(-50%, 120px); padding: 14px 18px; border-radius: 999px; background: var(--ivory); color: var(--olive-deep); text-align: center; font-size: 14px; box-shadow: 0 12px 45px #0007; transition: transform .45s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 355px) {
  .invitation-gate { padding-inline: 22px; }
  .invitation-gate__content { padding-inline: 8px; }
  .invitation-gate__names { font-size: 55px; }
  .hero-nav { font-size: 11px; }
  .envelope-wrap { width: min(94vw, 340px); }
  .heart-copy h1 { font-size: 35px; }
  .story { padding-inline: 27px; }
  .script { font-size: 36px; }
  .timeline-wrap, .action-wrap { padding-inline: 9px; }
  .timeline { padding-inline: 29px; }
}
@media (min-width: 481px) {
  body { padding: 30px 0; }
  .invitation { border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
