@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;
}
@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --olive: #aeb7a1;
  --olive-deep: #66715e;
  --eucalyptus: #7d8c78;
  --ivory: #f7f2e8;
  --paper: #efe7dc;
  --blush: #e5bec1;
  --blush-pale: #f1dadd;
  --ink: #3f4a3e;
  --gold: #c9b98e;
  --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: #65705f; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  background: #65705f;
  font-weight: 450;
  -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:
    linear-gradient(180deg, #6f7c69a8 0%, #8c97863b 47%, #d3aeb3aa 100%),
    url("assets/sage-blush-ceremony.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 #fffaf0b8;
  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: var(--blush);
  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 24px 30px;
  color: #455044;
  text-shadow: none;
  background: #fffaf0e8;
  border: 1px solid #fffdf8;
  border-radius: 180px 180px 30px 30px;
  box-shadow: 0 20px 60px #4b554844;
  backdrop-filter: blur(8px);
  animation: gate-arrive 1.15s cubic-bezier(.2,.75,.25,1) both;
  transition: transform .9s ease;
}
.invitation-gate__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .92;
}
.invitation-gate__ornament {
  margin: 20px auto 11px;
  font-size: 22px;
  line-height: 1;
  color: #b17880;
  opacity: .9;
}
.invitation-gate__names {
  margin: 0;
  font: 400 clamp(58px, 18vw, 78px)/.78 var(--script);
  letter-spacing: -.02em;
  -webkit-text-stroke: .22px currentColor;
}
.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: 15px;
  font-weight: 650;
  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: #fffaf2;
  background: var(--eucalyptus);
  box-shadow: 0 12px 35px #3f493b4f, inset 0 0 0 1px #fff9;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
  font-weight: 650;
  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: #6f7e6b;
  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: 14px;
  font-weight: 550;
  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 #29312670;
}

.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, #5663529e 0%, #87918122 48%, #d0a9afad 100%),
    url("assets/sage-blush-ceremony.webp") center/cover no-repeat;
}
.hero-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #fffaf24f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: lowercase;
  background: #41503fd1;
  box-shadow: 0 8px 25px #3945353d;
  backdrop-filter: blur(7px);
}
.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 { max-width: 360px; margin: 23px 0 6px; padding: 8px 18px 7px; border-radius: 999px; color: #445043; background: #fffaf0e8; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 7px 22px #4e5b4a32; backdrop-filter: blur(5px); }
.envelope-wrap { position: relative; width: min(94vw, 388px); margin-top: 2px; filter: drop-shadow(0 18px 28px #46503f70); }
.envelope-wrap img { display: block; width: 100%; height: auto; }
.heart-copy {
  position: absolute;
  top: 21%; left: 50%; width: 63%;
  transform: translateX(-50%);
  color: #fff9ef;
  text-shadow: 0 1px 3px #28301d66;
}
.heart-copy h1 { font: 400 43px/.94 var(--script); margin: 0; -webkit-text-stroke: .2px currentColor; }
.heart-copy h1 i { display: block; font-size: 27px; font-weight: 400; margin: 1px 0; }
.hero-open { margin-top: 5px; min-height: 46px; border: 1px solid #fffaf2bd; border-radius: 999px; background: #41503fd9; color: #fffaf2; padding: 9px 22px; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; box-shadow: 0 8px 24px #39453546; cursor: pointer; }
.hero-blessing { margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; color: #3f4a3e; background: #fffaf0df; font-size: 13px; font-weight: 600; letter-spacing: .05em; opacity: 1; backdrop-filter: blur(5px); }

section { position: relative; text-align: center; }
.ivory-arch, .ivory-pill { background: var(--ivory); }
.olive-section { background: linear-gradient(180deg, #b7c0ac, #aeb7a1); color: #354035; }
.story {
  z-index: 2;
  min-height: 920px;
  padding: 205px 37px clamp(250px, 72vw, 345px);
  border-radius: 0 0 50% 50% / 0 0 7% 7%;
  overflow: hidden;
}
.botanical { position: absolute; display: block; height: auto; pointer-events: none; }
.botanical-top { width: 98%; top: 4px; left: 1%; opacity: .88; }
.script { color: #465244; font: 400 43px/1.12 var(--script); margin: 0; -webkit-text-stroke: .18px currentColor; }
#invitation-title {
  font-family: "Cormorant Garamond Local", "Iowan Old Style", Georgia, serif;
  font-size: 45px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: .01em;
  -webkit-text-stroke: 0;
}
#invitation-title span { display: block; }
#invitation-title small { display: block; margin: 8px 0; font-size: 25px; font-weight: 500; line-height: 1; }
.body-copy { max-width: 350px; margin: 18px auto 8px; font-size: 17px; font-weight: 500; line-height: 1.58; }
.flourish { font: 19px/1 var(--serif); margin: 14px auto; transform: rotate(0.01deg); color: #c39198; opacity: .8; }
.verse { font-size: 15px; font-weight: 500; line-height: 1.55; font-style: italic; margin: 0 auto; }
.save-date { margin-top: 27px; font-size: 43px; }
.date-line { font-size: 14px; font-weight: 700; letter-spacing: .1em; margin: 13px 0 7px; }
.microcopy { font-size: 15px; font-weight: 550; margin: 0; }
.botanical-bottom { width: 101%; left: -.5%; bottom: -17px; mix-blend-mode: multiply; opacity: .8; }

.venue { padding: 88px 24px 28px; min-height: 520px; }
.venue::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #e8c9cb20;
  top: 72px;
  left: -110px;
  pointer-events: none;
}
.light { color: #354035; }
.light-text { color: #354035; opacity: 1; }
.venue h3 { margin: 18px 0 7px; font-size: 16px; letter-spacing: .08em; font-weight: 700; }
.venue > p:not(.date-line):not(.amenities) { font-size: 16px; font-weight: 500; line-height: 1.55; opacity: 1; }
.venue-artwork { position: relative; margin: 8px -6% -14px; }
.church-art {
  position: relative;
  left: 50%;
  width: 112%;
  margin: 0;
  height: auto;
  transform: translateX(-50%);
  mix-blend-mode: normal;
  opacity: 1;
  filter: saturate(.78) contrast(1.05) drop-shadow(0 12px 16px #5d685635);
}
.venue-botanical { max-height: 255px; object-fit: contain; }
.venue-actions {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 50%;
  width: min(68%, 255px);
  transform: translate(-50%, -50%);
}
.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: 13px;
  font-weight: 700;
  cursor: pointer;
}
.light-pill { background: #fffaf2; color: var(--olive-deep); box-shadow: 0 9px 24px #65705a35; }
.dark-pill { background: var(--eucalyptus); color: #fffaf2; box-shadow: 0 9px 24px #65705a2b; }
.amenities {
  max-width: 180px;
  margin: 10px auto 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .03em;
  opacity: 1;
}
.amenities span { display: block; }

.timeline-wrap { padding: 22px 16px 42px; background: linear-gradient(180deg, #e7c4c7, #dfb9bd); }
.timeline, .actions {
  position: relative;
  color: var(--ink);
  border-radius: 220px;
  overflow: hidden;
  box-shadow: 0 24px 55px #67715e32;
}
.timeline { padding: 165px 30px 240px; }
.timeline-arch { width: 96%; top: 14px; left: 2%; opacity: .88; }
.timeline-intro { max-width: 310px; margin: 14px auto 25px; font-size: 16px; font-weight: 500; line-height: 1.55; }
.timeline-item { margin: 0 auto; position: relative; z-index: 1; }
.timeline-item + .timeline-item { margin-top: 25px; }
.timeline-icon {
  display: block; width: 164px; margin: 0 auto 5px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  mix-blend-mode: multiply;
  filter: sepia(.12) saturate(.78) hue-rotate(330deg);
}
.icon-1 { height: 107px; background-image: url("assets/icon-welcome.webp?v=2"); }
.icon-2 { height: 164px; background-image: url("assets/icon-holy-matrimony.webp?v=1"); }
.icon-3 { height: 79px; background-image: url("assets/icon-feast.webp?v=2"); }
.icon-4 { height: 106px; background-image: url("assets/icon-farewell.webp?v=2"); }
.timeline-item time { font-size: 21px; font-weight: 650; display: block; margin-top: 2px; }
.timeline-item h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; margin: 5px 0; }
.timeline-item p { font-size: 16px; font-weight: 500; line-height: 1.45; margin: 0; }
.timeline-wreath { width: 110%; bottom: -13px; left: -5%; mix-blend-mode: multiply; opacity: .82; }

.action-wrap { padding: 20px 16px 34px; background: linear-gradient(180deg, #dfb9bd, #e7c4c7); }
.actions { min-height: 1090px; padding: 170px 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: 16px; font-weight: 500; line-height: 1.55; margin: 16px auto; max-width: 320px; }
.actions article small { display: block; font-size: 14px; font-weight: 600; margin-top: 9px; opacity: 1; }
.actions > .flourish { margin: 38px auto; }
.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, #7c8a75a8 0 50%, #b78088b8 50% 100%),
    url("assets/sage-blush-ceremony.webp") center 54%/cover no-repeat;
}
.closing-copy { padding: 18px 22px; border: 1px solid #fffaf271; border-radius: 22px; background: #43503fc7; box-shadow: 0 14px 36px #35413142; backdrop-filter: blur(7px); }
.closing-copy p { font-size: 16px; font-weight: 500; line-height: 1.55; max-width: 350px; }
.closing-copy span { font-size: 13px; font-weight: 650; letter-spacing: .12em; opacity: 1; }

.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: #4d584ac4; 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: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rsvp-card h2 { text-align: center; }
.rsvp-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.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; }
  #invitation-title { font-size: 40px; }
  #invitation-title small { font-size: 23px; }
  .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; }
}
