@font-face {
  font-family: "Great Vibes";
  src: url("assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Ouvality Cyrillic";
  src: url("assets/fonts/Ouvality.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2f271f;
  --muted: #776a5b;
  --paper: #fffaf1;
  --paper-soft: #fffdf8;
  --champagne: #ead9b9;
  --gold: #b9975b;
  --gold-deep: #7e6337;
  --line: rgba(126, 99, 55, 0.12);
  --line-light: rgba(126, 99, 55, 0.06);
  --shadow: 0 10px 26px rgba(91, 70, 39, 0.035);
  --radius: 30px;
  --font-script: "Ouvality Cyrillic", cursive;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72) 0, transparent 30rem),
    linear-gradient(180deg, rgba(255, 252, 244, 0.42), rgba(255, 253, 248, 0.54) 46%, rgba(244, 235, 219, 0.36)),
    url("assets/textures/paper-premium.webp");
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center top, center, center;
  background-size: auto, auto, 760px auto;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.paper-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

.paper-layer {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(126, 99, 55, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(126, 99, 55, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.42) 56%, transparent 100%);
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100% - 24px, 960px);
  margin: 0 auto;
  padding: 14px 0 34px;
}

.demo-banner {
  position: sticky;
  top: 8px;
  z-index: 40;
  width: min(100% - 24px, 760px);
  margin: 12px auto 0;
  padding: 11px 12px 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(185, 151, 91, 0.34);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 12px 30px rgba(91, 70, 39, 0.12);
  backdrop-filter: blur(12px);
}

.demo-banner__content {
  min-width: 0;
}

.demo-banner__label {
  display: block;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-banner p {
  margin: 3px 0 0;
  color: var(--brown);
  font-size: 0.86rem;
  line-height: 1.25;
}

.demo-banner__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(185, 151, 91, 0.35);
  border-radius: 999px;
  color: var(--gold-deep);
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(126, 99, 55, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  width: 100vw;
  margin-top: -14px;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

.hero__card,
.section,
.final {
  position: relative;
  overflow: hidden;
}

.hero__card {
  min-height: max(100svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(340px, 45svh, 430px) 22px 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.hero__card::before {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(470px, 62svh, 590px);
  content: "";
  border: 0;
  border-radius: 0;
  /* First variant in the future replaceable hero atmosphere series. */
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.02) 0%, rgba(255, 253, 248, 0.08) 58%, rgba(255, 253, 248, 0.64) 86%, rgba(255, 253, 248, 0.9) 100%),
    var(--hero-atmosphere-image, url("assets/hero/hero-atmosphere-01.webp")) top center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  pointer-events: none;
}

.hero__card::after {
  content: none;
}

.hero__ornament {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: ornamentFadeIn 1050ms ease-out both;
}

.hero__ornament--left {
  bottom: clamp(26px, 5svh, 56px);
  left: max(-118px, calc(50% - 300px));
  width: clamp(138px, 42vw, 190px);
  transform-origin: left center;
  animation-delay: 150ms;
}

.hero__ornament--right {
  top: clamp(250px, 34svh, 340px);
  right: max(-138px, calc(50% - 310px));
  width: clamp(136px, 40vw, 190px);
  transform-origin: right center;
  animation-delay: 350ms;
}

.hero__ornament--vertical {
  top: clamp(122px, 18svh, 188px);
  right: max(-76px, calc(50% - 274px));
  width: clamp(38px, 11vw, 54px);
  animation-delay: 500ms;
}

.eyebrow,
.section__kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 15px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 15px;
  letter-spacing: 0.38em;
}

h1,
h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(64px, 18vw, 124px);
  line-height: 0.86;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: normal;
}

h1 span {
  width: 100%;
  display: block;
  margin: 10px auto 14px;
  color: var(--gold);
  font-size: 0.42em;
  line-height: 1;
  text-align: center;
}

h2 {
  font-size: clamp(48px, 16vw, 82px);
  line-height: 0.92;
  text-wrap: balance;
}

.hero__date {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 26px auto 28px;
  color: var(--gold-deep);
  font-weight: 700;
  line-height: 1;
}

.hero__date-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px auto 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 2.8vw, 14px);
}

.hero__date-part,
.hero__date-weekday,
.hero__date-fallback {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__date-part {
  min-width: 0;
  color: var(--gold-deep);
  font-size: clamp(12px, 3.2vw, 15px);
  line-height: 1.15;
  letter-spacing: 0.1em;
  overflow-wrap: normal;
  white-space: nowrap;
}

.hero__date-part--month {
  text-align: right;
  letter-spacing: 0.08em;
}

.hero__date-part--year {
  text-align: left;
  letter-spacing: 0.1em;
  font-variant-numeric: lining-nums;
}

.hero__date-separator {
  width: 1px;
  height: clamp(34px, 10vw, 44px);
  background: linear-gradient(180deg, transparent, rgba(126, 99, 55, 0.5), transparent);
}

.hero__date-day {
  min-width: 54px;
  color: var(--ink);
  font-size: clamp(50px, 15vw, 64px);
  font-weight: 500;
  line-height: 0.86;
  text-align: center;
  font-variant-numeric: lining-nums;
}

.hero__date-weekday {
  color: var(--muted);
  font-size: clamp(12px, 3.3vw, 14px);
  line-height: 1.25;
}

.hero__date-fallback {
  max-width: 290px;
  color: var(--gold-deep);
  font-size: 22px;
  line-height: 1.35;
}

.hero__photo {
  position: relative;
  z-index: 2;
  width: min(100%, 310px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 22px;
  padding: 9px;
  border: 1px solid rgba(126, 99, 55, 0.22);
  border-radius: 999px 999px 28px 28px;
  background: rgba(255, 253, 248, 0.66);
  box-shadow: 0 16px 34px rgba(91, 70, 39, 0.14);
}

.hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.hero--no-photo .hero__card {
  min-height: max(88svh, 760px);
  padding-top: clamp(340px, 45svh, 430px);
  padding-bottom: 28px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 250, 242, 0.35), transparent 18rem),
    linear-gradient(
      180deg,
      rgba(255, 253, 248, 0) 0%,
      rgba(255, 253, 248, 0.02) 37%,
      rgba(255, 250, 242, 0.22) 56%,
      rgba(255, 250, 242, 0.12) 100%
    );
  background-size: auto, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

.hero--no-photo .hero__card::after {
  content: none;
}

.hero--no-photo h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(64px, 18vw, 124px);
}

.hero--no-photo .hero__date {
  margin-bottom: 0;
}

.hero__no-photo-mark {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  margin: 28px auto 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero__no-photo-mark::before {
  content: none;
}

.hero__no-photo-mark img {
  width: 136px;
  animation: ornamentSlowSpin 58s linear infinite;
  transform-origin: center center;
}

.hero--no-photo .hero__divider {
  margin-top: 12px;
}

.hero__divider {
  position: relative;
  z-index: 2;
  width: min(170px, 50%);
  margin: 4px auto 0;
  animation: ornamentFadeIn 1000ms ease-out 500ms both;
}

.section,
.final {
  margin: 14px 0 0;
  padding: 46px 20px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.invitation::before,
.invitation::after,
.details::before,
.details::after,
.countdown::before,
.countdown::after,
.rsvp::before,
.rsvp::after,
.final::before,
.final::after {
  position: absolute;
  z-index: 1;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  transform-origin: center center;
  animation: ornamentFadeIn 1150ms ease-out both;
}

.details,
.route {
  width: min(100%, 820px);
  margin-right: auto;
  margin-left: auto;
  padding: 52px 20px;
  border: 1px solid rgba(126, 99, 55, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.66), rgba(250, 244, 234, 0.42)),
    url("assets/textures/paper-premium.webp");
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: auto, 680px auto;
  box-shadow:
    0 14px 36px rgba(91, 70, 39, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.route {
  width: min(100%, 760px);
}

.route::before {
  content: none;
}

.section__emblem {
  position: relative;
  z-index: 1;
  width: 76px;
  margin: 0 auto 14px;
  animation:
    ornamentFadeIn 1200ms ease-out 700ms both,
    ornamentSlowSpin 62s linear 1900ms infinite;
  transform-origin: center center;
}

.invitation__text {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.5;
  white-space: pre-line;
}

.invitation::before {
  top: 10px;
  right: max(-112px, calc(50% - 330px));
  width: min(230px, 54vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/right-side1.webp");
  animation-delay: 350ms;
}

.invitation::after {
  left: max(-120px, calc(50% - 330px));
  bottom: -34px;
  width: min(220px, 52vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/left-side2.webp");
  animation-delay: 150ms;
}

.details::before {
  top: 18px;
  right: -48px;
  width: 176px;
  height: 176px;
  background-image: url("assets/ornaments/center/circle1.webp");
  animation:
    ornamentFadeIn 1200ms ease-out 550ms both,
    ornamentSlowSpin 66s linear 1800ms infinite;
}

.details::after {
  left: -92px;
  bottom: -18px;
  width: min(210px, 50vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/left-side2.webp");
  animation-delay: 150ms;
}

.details__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
  text-align: center;
}

.calendar-card {
  position: relative;
  z-index: 2;
  min-height: 300px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 28px 18px 24px;
  border: 1px solid rgba(126, 99, 55, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.34), rgba(255, 250, 242, 0.18)),
    url("assets/textures/paper-premium.webp");
  background-size: auto, 620px auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  text-align: center;
}

.calendar-card::before,
.calendar-card::after {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(126, 99, 55, 0.12), transparent);
}

.calendar-card::before {
  left: 18px;
}

.calendar-card::after {
  right: 18px;
}

.calendar-card__label,
.calendar-card__year,
.calendar-card__weekday,
.calendar-card__time {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.35;
  text-transform: uppercase;
}

.calendar-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 10px;
  color: var(--ink);
  line-height: 1;
}

.calendar-card__heading strong {
  min-width: 0;
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.calendar-card__heading span {
  color: var(--gold-deep);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.calendar-card__day {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(72px, 21vw, 112px);
  font-weight: 500;
  line-height: 0.82;
  font-variant-numeric: lining-nums;
}

.calendar-card__month {
  margin-top: 8px;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.calendar-card__year {
  margin-top: 7px;
}

.calendar-card__weekday {
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.calendar-card__weekdays,
.calendar-card__days {
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-card__weekdays {
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(126, 99, 55, 0.1);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.calendar-card__days {
  gap: 3px 2px;
  margin-top: 8px;
}

.calendar-card__cell {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  font-size: clamp(15px, 4.4vw, 20px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calendar-card__cell.is-empty {
  color: transparent;
}

.calendar-card__cell.is-selected {
  color: var(--paper-soft);
  background: linear-gradient(180deg, rgba(185, 151, 91, 0.94), rgba(126, 99, 55, 0.92));
  box-shadow: 0 8px 18px rgba(91, 70, 39, 0.12);
}

.calendar-card__fallback {
  max-width: 100%;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(34px, 10vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.calendar-card__ornament {
  width: min(130px, 48%);
  height: 34px;
  margin: 16px auto 10px;
  background: url("assets/ornaments/side/left-side2.webp") center / contain no-repeat;
}

.calendar-card__time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-top: 1px solid rgba(126, 99, 55, 0.12);
  border-bottom: 1px solid rgba(126, 99, 55, 0.08);
  color: var(--gold-deep);
  font-size: 16px;
  letter-spacing: 0.18em;
}

.info-card {
  min-height: 104px;
  padding: 21px 17px;
  border: 1px solid rgba(126, 99, 55, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.38), rgba(248, 239, 224, 0.18));
  box-shadow:
    0 8px 18px rgba(91, 70, 39, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.info-card span {
  display: block;
  margin-bottom: 11px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.12;
  font-weight: 500;
}

.info-card--hosts strong {
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.2;
  word-break: normal;
}

.divider {
  display: grid;
  place-items: center;
  padding: 26px 0 8px;
}

.divider img {
  width: min(220px, 68%);
  animation: ornamentFadeIn 1050ms ease-out 350ms both;
}

.timeline {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 16px;
  border: 1px solid rgba(126, 99, 55, 0.08);
  border-radius: 21px;
  background: rgba(255, 253, 248, 0.24);
}

.timeline time {
  color: var(--gold-deep);
  font-size: 18px;
  font-weight: 600;
}

.timeline span {
  min-width: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
}

.countdown__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.countdown__item {
  min-width: 0;
  padding: 18px 6px;
  border: 1px solid rgba(126, 99, 55, 0.08);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.24);
}

.countdown__item strong {
  display: block;
  font-size: clamp(36px, 13vw, 60px);
  line-height: 0.95;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.countdown__item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown__fallback {
  margin: 24px 0 0;
  color: var(--gold-deep);
  font-family: var(--font-script);
  font-size: 54px;
}

.countdown::before {
  left: -104px;
  top: 18px;
  width: min(220px, 52vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/left-side2.webp");
  animation-delay: 150ms;
}

.countdown::after {
  right: -122px;
  bottom: -28px;
  width: min(235px, 54vw);
  aspect-ratio: 1.35;
  background-image: url("assets/ornaments/side/right-side1.webp");
  animation-delay: 350ms;
}

.route__city,
.route__venue,
.route__address,
.final p,
.final span {
  position: relative;
  z-index: 2;
}

.route__city {
  margin: 0 auto 14px;
  max-width: 100%;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.45;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.route__venue {
  max-width: min(100%, 620px);
  margin: 0 auto;
  font-size: clamp(46px, 13vw, 74px);
  line-height: 0.98;
  overflow-wrap: break-word;
  word-break: normal;
}

.route__address {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.final p,
.final span {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid rgba(126, 99, 55, 0.24);
  border-radius: 18px;
  color: #3a3027;
  background: linear-gradient(180deg, rgba(244, 229, 202, 0.95), rgba(218, 194, 150, 0.88));
  box-shadow:
    0 8px 18px rgba(91, 70, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(91, 70, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.button--primary,
.button--secondary {
  background: linear-gradient(180deg, rgba(244, 229, 202, 0.95), rgba(218, 194, 150, 0.88));
}

.rsvp {
  padding-bottom: 46px;
  border-color: rgba(126, 99, 55, 0.08);
  background:
    radial-gradient(circle at 50% 24px, rgba(185, 151, 91, 0.12), transparent 118px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.54), rgba(250, 244, 234, 0.24)),
    url("assets/textures/paper-premium.webp");
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center top, center, center;
  background-size: 280px 160px, auto, 680px auto;
  box-shadow: none;
}

.rsvp::before {
  left: -108px;
  top: 22px;
  width: min(220px, 52vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/left-side2.webp");
  animation-delay: 150ms;
}

.rsvp::after {
  right: -128px;
  bottom: -32px;
  width: min(245px, 56vw);
  aspect-ratio: 1.35;
  background-image: url("assets/ornaments/side/right-side1.webp");
  animation-delay: 350ms;
}

.rsvp .section__kicker {
  margin-bottom: 8px;
}

.rsvp__script {
  position: relative;
  z-index: 2;
  margin: 0 0 4px;
  color: rgba(126, 99, 55, 0.82);
  font-family: var(--font-script);
  font-size: clamp(42px, 13vw, 66px);
  font-weight: 400;
  line-height: 0.95;
}

.rsvp__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.rsvp__lead,
.rsvp__subtitle {
  position: relative;
  z-index: 2;
  margin: 9px auto 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.3;
  text-wrap: balance;
}

.rsvp__subtitle {
  margin-top: 4px;
  color: var(--gold-deep);
  font-size: 16px;
  font-style: italic;
}

.rsvp__form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.field span,
.rsvp__form > label > span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp__form input[type="text"] {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(126, 99, 55, 0.24);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.22);
  outline: none;
  font-size: 20px;
}

.rsvp__form input[type="text"]::placeholder {
  color: rgba(119, 106, 91, 0.5);
}

.rsvp__form input[type="text"]:focus {
  border-color: rgba(126, 99, 55, 0.56);
  box-shadow: 0 6px 0 -5px rgba(185, 151, 91, 0.34);
}

.rsvp__choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(126, 99, 55, 0.1);
  border-bottom: 1px solid rgba(126, 99, 55, 0.1);
}

.rsvp__choices label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.rsvp__choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp__choices span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  width: 100%;
  padding: 8px 4px 8px 36px;
  border: 0;
  border-radius: 0;
  color: rgba(58, 48, 39, 0.78);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.rsvp__choices span::before,
.rsvp__choices span::after {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.rsvp__choices span::before {
  left: 4px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(126, 99, 55, 0.38);
  background: rgba(255, 253, 248, 0.38);
}

.rsvp__choices span::after {
  left: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  opacity: 0;
}

.rsvp__choices input:focus-visible + span::before {
  box-shadow: 0 0 0 4px rgba(185, 151, 91, 0.16);
}

.rsvp__choices input:checked + span {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.18);
}

.rsvp__choices input:checked + span::before {
  border-color: var(--gold-deep);
}

.rsvp__choices input:checked + span::after {
  opacity: 1;
}

.rsvp__submit {
  justify-self: center;
  width: auto;
  min-width: 190px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 30px;
  border-color: rgba(126, 99, 55, 0.2);
  color: #3a3027;
  background: linear-gradient(180deg, rgba(238, 221, 190, 0.94), rgba(215, 190, 145, 0.86));
  box-shadow:
    0 9px 20px rgba(126, 99, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.rsvp__submit:hover {
  background: linear-gradient(180deg, rgba(241, 227, 201, 0.96), rgba(219, 195, 151, 0.9));
  box-shadow:
    0 11px 22px rgba(126, 99, 55, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.rsvp__submit:focus-visible {
  outline: 3px solid rgba(185, 151, 91, 0.22);
  outline-offset: 3px;
}

.rsvp__status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-deep);
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.final {
  padding-bottom: 52px;
}

.final::before {
  right: -46px;
  top: 14px;
  width: 184px;
  height: 184px;
  background-image: url("assets/ornaments/center/circle1.webp");
  animation:
    ornamentFadeIn 1200ms ease-out 550ms both,
    ornamentSlowSpin 68s linear 1800ms infinite;
}

.final::after {
  left: -118px;
  bottom: -26px;
  width: min(230px, 52vw);
  aspect-ratio: 1;
  background-image: url("assets/ornaments/side/left-side2.webp");
  animation-delay: 150ms;
}

.final h2 {
  margin-top: 8px;
}

.site-credit {
  width: min(100%, 460px);
  margin: 24px auto 4px;
  padding: 14px 18px 16px;
  text-align: center;
  border: 1px solid rgba(126, 99, 55, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(246, 237, 220, 0.34)),
    url("assets/textures/paper-premium.webp");
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: auto, 680px auto;
  box-shadow:
    0 8px 22px rgba(91, 70, 39, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.site-credit__eyebrow,
.site-credit__text {
  margin: 0 auto;
  max-width: 390px;
}

.site-credit__eyebrow {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-credit__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.3;
}

.site-credit__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid rgba(126, 99, 55, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(244, 229, 202, 0.78), rgba(222, 199, 158, 0.64));
  box-shadow:
    0 5px 13px rgba(91, 70, 39, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-credit__button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 99, 55, 0.32);
  box-shadow:
    0 7px 16px rgba(91, 70, 39, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.site-credit__button:focus-visible {
  outline: 3px solid rgba(185, 151, 91, 0.24);
  outline-offset: 4px;
}

.music-orbit {
  position: absolute;
  top: clamp(292px, 39svh, 374px);
  right: clamp(22px, 7vw, 58px);
  z-index: 4;
  width: clamp(92px, 25vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 22px rgba(91, 70, 39, 0.12));
}

.music-orbit__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--gold-deep);
  fill: currentColor;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transform-origin: center;
  animation: musicOrbitSpin 13s linear infinite;
}

.music-orbit__button {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 99, 55, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(221, 196, 174, 0.96), rgba(204, 174, 146, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(91, 70, 39, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.music-orbit__button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 14px 26px rgba(91, 70, 39, 0.16);
}

.music-orbit__button:focus-visible {
  outline: 3px solid rgba(185, 151, 91, 0.28);
  outline-offset: 4px;
}

.music-orbit__icon {
  position: absolute;
  display: block;
  color: var(--paper-soft);
}

.music-orbit__icon--play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.music-orbit__icon--pause {
  width: 18px;
  height: 23px;
  opacity: 0;
}

.music-orbit__icon--pause::before,
.music-orbit__icon--pause::after {
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  content: "";
  border-radius: 999px;
  background: currentColor;
}

.music-orbit__icon--pause::before {
  left: 0;
}

.music-orbit__icon--pause::after {
  right: 0;
}

.music-orbit.is-playing .music-orbit__button {
  background:
    linear-gradient(180deg, rgba(209, 180, 156, 0.98), rgba(190, 158, 127, 0.94));
}

.music-orbit.is-playing .music-orbit__icon--play {
  opacity: 0;
}

.music-orbit.is-playing .music-orbit__icon--pause {
  opacity: 1;
}

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

@keyframes ornamentFadeIn {
  from {
    transform: translateY(10px) scale(0.98);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (min-width: 390px) {
  .rsvp__choices {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) {
  body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .page-shell {
    width: min(100% - 24px, 960px);
    padding-top: 18px;
  }

  .hero {
    width: min(100%, 460px);
    margin-top: -18px;
    margin-right: 0;
    margin-left: 0;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(100% - 60px, 1080px);
    padding-top: 28px;
  }

  .hero {
    width: min(100%, 460px);
    margin-top: -28px;
  }

  .hero__card {
    min-height: max(92vh, 860px);
    padding: clamp(340px, 43vh, 450px) 30px 54px;
    border-radius: 0;
  }

  .hero--no-photo .hero__card {
    min-height: max(86vh, 780px);
    padding-top: clamp(340px, 43vh, 450px);
    padding-bottom: 42px;
    background-size: auto, 100% 100%;
  }

  .hero__photo {
    width: 330px;
  }

  .hero__ornament--left {
    left: -156px;
    width: 158px;
  }

  .hero__ornament--right {
    right: -206px;
    width: 182px;
  }

  .hero__ornament--vertical {
    right: -92px;
    width: 70px;
  }

  .invitation::after {
    left: calc(50% - 380px);
    width: 230px;
  }

  .music-orbit {
    top: clamp(306px, 36vh, 394px);
    right: 26px;
    width: 104px;
  }

  .music-orbit__button {
    width: 56px;
    height: 56px;
  }

  h1 {
    font-size: clamp(64px, 5vw, 72px);
  }

  .hero--no-photo h1 {
    font-size: clamp(64px, 5vw, 72px);
  }

  h1 span {
    display: block;
    margin: 10px auto 14px;
  }

  .section,
  .final {
    margin-top: 20px;
    padding: 60px 52px;
  }

  .details,
  .route {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .rsvp {
    padding-bottom: 46px;
  }

  .details__grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }

  .calendar-card {
    grid-column: span 2;
    min-height: 320px;
    max-width: 520px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .info-card--wide,
  .info-card--hosts {
    grid-column: span 2;
  }

  .button {
    width: auto;
    min-width: 245px;
  }

  .rsvp__form {
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
  }

  .rsvp__submit {
    min-width: 190px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    width: 100%;
  }

  .demo-banner {
    width: calc(100% - 18px);
    gap: 8px;
    padding: 10px 9px 10px 11px;
    border-radius: 16px;
  }

  .demo-banner__label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .demo-banner p {
    font-size: 0.78rem;
  }

  .demo-banner__button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .hero__card {
    min-height: max(100svh, 800px);
    padding: clamp(310px, 43svh, 370px) 14px 38px;
  }

  .music-orbit {
    top: clamp(252px, 35svh, 306px);
    right: 16px;
    width: 84px;
  }

  .music-orbit__text {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .music-orbit__button {
    width: 46px;
    height: 46px;
  }

  .music-orbit__icon--play {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 15px;
  }

  .music-orbit__icon--pause {
    width: 16px;
    height: 20px;
  }

  .hero__ornament--left {
    bottom: 18px;
    left: -132px;
    width: 146px;
  }

  .hero__ornament--right {
    top: clamp(285px, 40svh, 340px);
    right: -142px;
    width: 152px;
  }

  .hero__ornament--vertical {
    right: -64px;
    width: 44px;
  }

  .hero__date {
    width: min(100%, 332px);
  }

  .hero__date-row {
    gap: 6px;
  }

  .hero__date-part {
    font-size: 11.5px;
    letter-spacing: 0.07em;
  }

  .hero__date-part--month {
    letter-spacing: 0.045em;
  }

  .hero__date-day {
    min-width: 52px;
    font-size: clamp(48px, 14.5vw, 56px);
  }

  .hero--no-photo .hero__card {
    min-height: max(88svh, 700px);
    padding-top: clamp(310px, 43svh, 370px);
    padding-bottom: 24px;
    background-size: auto, 100% 100%;
  }

  .hero--no-photo h1 {
    font-size: clamp(64px, 18vw, 124px);
  }

  .hero__no-photo-mark {
    width: 118px;
    height: 118px;
    margin-top: 22px;
  }

  .hero__no-photo-mark img {
    width: 114px;
  }

  .section,
  .final {
    padding-right: 16px;
    padding-left: 16px;
  }

  .details,
  .route {
    width: calc(100% - 16px);
    padding-top: 42px;
    padding-bottom: 42px;
    border-radius: 26px;
  }

  .rsvp {
    padding-bottom: 36px;
  }

  .timeline li {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }
}

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

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