@font-face {
  font-family: "Miama Nueva";
  src:
    url("./assets/Miama%20Nueva/miamanueva.otf") format("opentype"),
    url("./assets/Miama%20Nueva/miamanueva.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorantgaramond/CormorantGaramond-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorantgaramond/CormorantGaramond-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorantgaramond/CormorantGaramond-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorantgaramond/CormorantGaramond-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --green: #0f2a22;
  --green-deep: #0b241d;
  --green-black: #051410;
  --gold: #f3e6c9;
  --gold-soft: #ead8b2;
  --gold-muted: rgba(243, 230, 201, 0.78);
  --line: rgba(243, 230, 201, 0.58);
  --line-soft: rgba(243, 230, 201, 0.22);
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Miama Nueva", "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--gold);
  background: var(--green-black);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.42;
  letter-spacing: 0;
}

body.locked {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.submission-lock {
  overflow: hidden;
}

body.submission-lock .final {
  opacity: 0;
  visibility: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.site-bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: none;
  filter: brightness(0.74) contrast(1.04) saturate(0.88);
  pointer-events: none;
  transition: opacity 1650ms ease;
}

body.video-visible .site-bg-video {
  opacity: 1;
}

.site-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(15, 42, 34, 0.16) 0%,
      rgba(15, 42, 34, 0.24) 44%,
      rgba(5, 20, 16, 0.44) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 20, 16, 0.28) 0%,
      rgba(15, 42, 34, 0.18) 32%,
      rgba(15, 42, 34, 0.24) 68%,
      rgba(5, 20, 16, 0.34) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 20, 16, 0.42) 0%,
      rgba(15, 42, 34, 0.12) 24%,
      rgba(15, 42, 34, 0.06) 50%,
      rgba(15, 42, 34, 0.12) 76%,
      rgba(5, 20, 16, 0.42) 100%
    );
}

.site-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 46%,
      rgba(5, 20, 16, 0.10) 64%,
      rgba(5, 20, 16, 0.24) 82%,
      rgba(5, 20, 16, 0.42) 100%
    );
}

.header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 64px);
  max-width: 1500px;
  height: 76px;
  padding: 0 36px;
  color: var(--gold);
  border: 1px solid rgba(243, 230, 201, 0.10);
  border-radius: 24px;
  background: rgba(5, 20, 16, 0.34);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 300ms ease, visibility 300ms ease;
}

body.locked .header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not(.content-visible) .header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
}

.header-nav a {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.header-nav a:hover {
  color: var(--gold-soft);
}

.menu-button {
  display: grid;
  gap: 6px;
  width: 34px;
  margin-left: auto;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.header.nav-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.nav-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 0;
}

.invite {
  opacity: 0;
  transition: opacity 900ms ease;
}

body.content-visible .invite {
  opacity: 1;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(15, 42, 34, 0.56), rgba(5, 20, 16, 0.94) 70%),
    var(--green-black);
  transition: opacity 620ms ease, visibility 620ms ease;
}

.lock-screen.is-unlocking {
  pointer-events: none;
}

.lock-screen.is-unlocking .lock-photo {
  opacity: 0.98;
  transform: translateY(-145vh) scale(0.96);
  transition:
    transform 980ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 860ms ease;
}

.lock-screen.is-unlocking .unlock-button {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 520ms ease;
}

body.unlocked .lock-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.locked .invite {
  height: 0;
  overflow: hidden;
}

.content-inner {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.content-inner::before {
  display: none;
}

.lock-card {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(84vw, 640px);
  margin: 0 auto;
}

.lock-photo {
  width: min(100%, 600px);
  margin: 0;
  padding: 12px 12px 42px;
  border: 1px solid rgba(243, 230, 201, 0.48);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(232, 220, 196, 0.94));
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.lock-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 3px;
  filter: grayscale(1) brightness(0.82) contrast(1.06);
}

.unlock-button {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  text-align: center;
}

.unlock-button:focus-visible,
.menu-button:focus-visible,
.outline-link:focus-visible,
.form-button:focus-visible,
.phone-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.lock-icon {
  display: block;
  width: 68px;
  height: 68px;
}

.lock-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.hero,
.intro,
.calendar-section,
.timeline-section,
.place,
.dress-code,
.details,
.rsvp,
.final {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 48px 24px;
  color: var(--gold);
  scroll-margin-top: 122px;
}

.hero {
  min-height: 96svh;
  padding: 142px 24px 72px;
}

.hero-content {
  max-width: 980px;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--gold-soft);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.script-name,
.script-title,
.script-accent,
.script-signature {
  color: var(--gold);
  font-family: var(--font-script);
  font-weight: 400;
  text-shadow: 0 0 24px rgba(243, 230, 201, 0.18);
}

.script-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.12em;
  margin: 0;
  padding: 10px 0 14px;
  font-size: clamp(64px, 6.2vw, 108px);
  line-height: 1.12;
}

.script-name span {
  display: inline;
}

.script-amp {
  margin: 0;
}

.hero-names-image {
  display: block;
  width: min(72vw, 560px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(243, 230, 201, 0.16));
}

.hero-date {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ornament-divider {
  display: block;
  width: 160px;
  height: 22px;
  margin: 20px auto 18px;
  background: var(--line);
  -webkit-mask: url("./assets/Ornament/ornament-divider.svg") center / contain no-repeat;
  mask: url("./assets/Ornament/ornament-divider.svg") center / contain no-repeat;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(100%, 560px);
  margin: 28px auto 0;
}

.countdown div {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
}

.countdown div + div::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: var(--line-soft);
}

.countdown span {
  color: var(--gold);
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.9;
}

.countdown small {
  color: var(--gold-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1;
  white-space: nowrap;
}

.tiny-heart,
.final-mark {
  display: inline-block;
  color: var(--gold);
  animation: heartPulse 1800ms ease-in-out infinite;
}

section,
footer {
  position: relative;
}

h1,
h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  color: var(--gold-muted);
}

.invite-copy {
  max-width: 760px;
}

.invite-heading {
  display: grid;
  gap: 18px;
  text-transform: none;
}

.heading-line {
  display: block;
}

.invite-copy .script-accent {
  display: block;
  font-size: clamp(48px, 4.8vw, 74px);
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
}

.invite-copy p {
  margin-bottom: 18px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.48;
}

.invite-copy .statement {
  margin: 28px 0 20px;
  color: var(--gold);
}

.dash {
  position: absolute;
  width: min(26vw, 260px);
  border-top: 1px dotted var(--line);
}

.dash::after {
  content: "♥";
  position: absolute;
  top: -10px;
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
  animation: heartPulse 1800ms ease-in-out infinite;
}

.dash-left {
  top: 12px;
  left: 0;
}

.dash-left::after {
  right: -6px;
}

.calendar-section .content-inner {
  max-width: 620px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px 18px;
  width: min(100%, 500px);
  margin: 28px auto 0;
  color: var(--gold);
  font-size: clamp(20px, 2vw, 26px);
}

.calendar > span {
  color: var(--gold);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.calendar i {
  min-height: 1px;
}

.calendar time {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28px;
  color: var(--gold);
  font-style: normal;
}

.wedding-day {
  z-index: 0;
  min-height: 58px;
}

.wedding-day::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 60px;
  height: 54px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20100%2090%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M50%2080C29%2064%2011%2049%2011%2028C11%2016%2019%209%2031%209C40%209%2047%2014%2050%2023C53%2014%2060%209%2069%209C81%209%2089%2016%2089%2028C89%2049%2071%2064%2050%2080Z%27%20fill%3D%27none%27%20stroke%3D%27%23F3E6C9%27%20stroke-width%3D%272.15%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
  transform: translate(-50%, -50%);
  animation: calendarHeartPulse 1800ms ease-in-out infinite;
}

.wedding-day span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 54px;
  line-height: 1;
}

.timeline-section .content-inner {
  max-width: 1040px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 4px auto 0;
}

.timeline::before,
.timeline::after {
  display: none;
}

.event {
  min-width: 0;
  padding: 8px 24px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
}

.event:first-child {
  border-left: 0;
}

.event::before {
  display: none;
}

.event-time {
  color: var(--gold);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.event-title {
  margin-top: 10px;
  color: var(--gold);
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event p {
  max-width: 240px;
  margin: 12px auto 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
}

.place-content {
  max-width: 1080px;
}

.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.15fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  text-align: left;
}

.place h2 {
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.venue {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 400;
}

.place p:not(.venue) {
  margin: 0;
  color: var(--gold-muted);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.48;
}

.place-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.outline-link,
.form-button,
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  max-width: 420px;
  min-height: 0;
  margin-top: 30px;
  padding: 14px 32px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 20, 16, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.outline-link:hover,
.form-button:hover,
.phone-link:hover {
  color: var(--green-black);
  border-color: var(--gold);
  background: var(--gold);
}

.dress-code-content,
.details-content,
.rsvp-content,
.final-content {
  max-width: 760px;
}

.dress-code-content p,
.rsvp-content p,
.details-content p {
  width: min(100%, 620px);
  margin: 0 auto 22px;
  color: var(--gold-muted);
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1.46;
}

.rsvp-form {
  display: grid;
  gap: 26px;
  width: min(100%, 620px);
  margin: 32px auto 0;
  text-align: left;
  transition: opacity 360ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-form[hidden] {
  display: none !important;
}

.rsvp-form.is-sent-away {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-90px);
}

.form-button {
  justify-self: center;
  width: min(100%, 420px);
  margin-right: auto;
  margin-left: auto;
}

.form-field,
.form-group {
  display: grid;
  gap: 12px;
  margin: 0;
}

.select-field {
  position: relative;
}

.select-field::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 25px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  pointer-events: none;
  transform: rotate(45deg);
}

.form-field > span,
.form-group legend {
  padding: 0;
  color: var(--gold);
  font-size: clamp(19px, 1.45vw, 23px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.2;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(5, 20, 16, 0.20);
  outline: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 180ms ease, background 180ms ease;
}

.form-field input,
.form-field select {
  min-height: 58px;
  padding: 12px 18px;
}

.form-field select {
  padding-right: 52px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select option {
  color: var(--gold);
  background: var(--green-black);
}

.form-field textarea {
  min-height: 116px;
  padding: 16px 18px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--line);
  background: rgba(5, 20, 16, 0.30);
}

.form-group {
  padding: 0;
  border: 0;
}

.form-group legend {
  margin-bottom: 4px;
}

.form-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: clamp(8px, 1.2vw, 16px);
  color: var(--gold-muted);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.28;
  cursor: pointer;
}

.drinks-group label[hidden] {
  display: none;
}

.form-group input {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(5, 20, 16, 0.34);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input::before {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--green-black);
  border-bottom: 2px solid var(--green-black);
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.75);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-group input:checked {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 230, 201, 0.10);
}

.form-group input:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.form-group input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.dress-code-image {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 30px auto 0;
  border: 1px solid rgba(243, 230, 201, 0.22);
  border-radius: 22px;
}

.details-note {
  margin-top: 28px !important;
  color: var(--gold);
  font-size: clamp(16px, 1.3vw, 19px) !important;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-link {
  margin-top: 2px;
  font-size: clamp(19px, 1.5vw, 23px);
  text-transform: none;
  letter-spacing: 0.03em;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-status {
  min-height: 1.4em;
  margin: 12px auto 0 !important;
  color: var(--gold-muted);
  font-size: clamp(18px, 1.4vw, 22px) !important;
  line-height: 1.3 !important;
  text-align: center;
}

.form-status[data-status="success"] {
  color: var(--gold);
}

.form-status[data-status="error"] {
  color: #f3c9c9;
}

.rsvp-complete[hidden] {
  display: none;
}

.rsvp-complete {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(100%, 620px);
  margin: 36px auto 0;
  text-align: center;
  animation: submissionFadeIn 520ms ease both;
}

.rsvp-complete p {
  margin: 0 !important;
  color: var(--gold);
  font-size: clamp(26px, 2.8vw, 42px) !important;
  line-height: 1.18 !important;
}

.repeat-form-button {
  margin-top: 0;
}

.submission-screen[hidden] {
  display: none;
}

.submission-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--gold);
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(15, 42, 34, 0.56) 0%, rgba(5, 20, 16, 0.74) 76%),
    rgba(5, 20, 16, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: submissionFadeIn 420ms ease both;
}

.submission-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 760px);
}

.submission-loader {
  display: grid;
  place-items: center;
  width: clamp(78px, 8vw, 116px);
  height: clamp(78px, 8vw, 116px);
  border: 1px solid rgba(243, 230, 201, 0.20);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: submissionSpin 1s linear infinite;
}

.submission-kicker,
.submission-message {
  margin: 0;
}

.submission-kicker {
  color: var(--gold-soft);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.submission-message {
  max-width: 760px;
  color: var(--gold);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.04;
}

.submission-screen.is-success .submission-loader,
.submission-screen.is-error .submission-loader {
  border: 0;
  animation: none;
}

.submission-screen.is-error .submission-loader::before {
  font-size: clamp(66px, 7vw, 108px);
  line-height: 1;
}

.submission-screen.is-success .submission-loader {
  display: none;
}

.submission-screen.is-error .submission-loader::before {
  content: "!";
}

@keyframes submissionFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes submissionSpin {
  to {
    transform: rotate(360deg);
  }
}

.final {
  padding-top: 64px;
  padding-bottom: 82px;
}

.final-content p {
  margin: 0;
  color: var(--gold);
  font-size: clamp(23px, 2vw, 31px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.script-signature {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0 !important;
  font-size: clamp(58px, 6vw, 94px) !important;
  letter-spacing: 0 !important;
  line-height: 0.9;
  text-align: center;
  text-transform: none !important;
  transform: translateX(0.08em);
}

.final-mark {
  margin-bottom: 24px;
  font-size: 34px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes calendarHeartPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 900px) {
  .header {
    top: 14px;
    right: 14px;
    left: auto;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 18px;
    transform: none;
  }

  .header.nav-open {
    inset: 0;
    display: block;
    width: 100%;
    height: 100dvh;
    padding: 96px 34px 34px;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 28%, rgba(15, 42, 34, 0.92), rgba(5, 20, 16, 0.96) 66%),
      rgba(5, 20, 16, 0.94);
    transform: none;
  }

  .menu-button {
    margin-left: 0;
  }

  .header.nav-open .menu-button {
    position: absolute;
    top: 28px;
    right: 28px;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    display: none;
    gap: 0;
    width: min(320px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid rgba(243, 230, 201, 0.10);
    border-radius: 18px;
    background: rgba(5, 20, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header.nav-open .header-nav {
    display: grid;
    position: static;
    width: 100%;
    height: 100%;
    align-content: center;
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-nav a {
    padding: 0;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.15;
    letter-spacing: 0.06em;
  }

  .hero {
    padding-top: 112px;
  }

  .place-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .place p:not(.venue) {
    margin-right: auto;
    margin-left: auto;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .event:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 20px;
  }

  .intro,
  .calendar-section,
  .timeline-section,
  .place,
  .dress-code,
  .details,
  .rsvp,
  .final {
    padding: 34px 20px;
  }

  .hero {
    min-height: 92svh;
    padding: 104px 20px 48px;
  }

  .script-name {
    display: grid;
    justify-items: center;
    gap: 26px;
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(54px, 15vw, 68px);
    line-height: 0.82;
  }

  .script-name span {
    display: block;
  }

  .script-name span:first-child {
    justify-self: start;
    transform: translateX(-42px);
  }

  .script-name .script-amp {
    justify-self: center;
    margin: 4px 0 -2px;
    font-family: var(--font-body);
    font-size: 0.44em;
    line-height: 1;
    transform: none;
  }

  .script-name span:last-child {
    justify-self: end;
    transform: translateX(42px);
  }

  .hero-names-image {
    width: min(84vw, 292px);
  }

  .hero-kicker {
    font-size: 19px;
  }

  .hero-date {
    margin-top: 22px;
    font-size: 22px;
  }

  h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .invite-copy .script-accent {
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.32;
  }

  .invite-heading {
    gap: 14px;
    margin-bottom: 26px;
  }

  .heading-line {
    font-size: clamp(28px, 7.4vw, 36px);
    line-height: 1.24;
  }

  .invite-copy .statement {
    width: min(100%, 300px);
    margin-top: 28px;
    margin-bottom: 26px;
    font-size: clamp(42px, 11vw, 52px);
    line-height: 1.2;
  }

  .invite-copy p,
  .dress-code-content p,
  .rsvp-content p,
  .details-content p {
    font-size: 22px;
  }

  .rsvp-form {
    gap: 22px;
    margin-top: 26px;
  }

  .form-field > span,
  .form-group legend {
    font-size: 18px;
  }

  .form-field input,
  .form-field textarea,
  .form-field select,
  .form-group label {
    font-size: 20px;
  }

  .form-field input,
  .form-field select {
    min-height: 54px;
  }

  .countdown {
    width: min(100%, 340px);
    margin-top: 30px;
  }

  .countdown span {
    font-size: 36px;
  }

  .countdown small {
    font-size: 15px;
  }

  .dash {
    display: none;
  }

  .calendar {
    gap: 10px 8px;
    width: min(100%, 350px);
    font-size: 21px;
  }

  .calendar > span {
    font-size: 16px;
  }

  .wedding-day::before {
    width: 58px;
    height: 52px;
  }

  .wedding-day span {
    width: 58px;
    height: 52px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event {
    padding: 0;
    border-left: 0;
  }

  .event p {
    font-size: 20px;
  }

  .place-image,
  .dress-code-image {
    border-radius: 18px;
  }

  .outline-link,
  .form-button,
  .phone-link {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    font-size: 16px;
  }

  .lock-card {
    gap: 22px;
    width: min(86vw, 680px);
  }

  .lock-photo {
    width: min(100%, 340px);
    padding: 8px 8px 28px;
    border-radius: 6px;
  }

  .lock-icon {
    width: 62px;
    height: 62px;
  }

  .unlock-button {
    font-size: 31px;
  }

  .script-signature {
    width: min(100%, 330px);
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: clamp(42px, 11vw, 52px) !important;
    line-height: 1.18;
    transform: translateX(10px);
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 86svh;
  }

  .hero-date {
    font-size: 20px;
  }

  .script-name {
    max-width: 330px;
    gap: 24px;
    font-size: clamp(52px, 14vw, 62px);
  }

  .hero-names-image {
    width: min(82vw, 280px);
  }

  .countdown span {
    font-size: 32px;
  }

  .countdown small {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
