/* ============================================================
   Свадебный сайт - зелёный ботанический стиль
   Шрифты: Cormorant Garamond (заголовки) + Jost (текст)
   ============================================================ */

:root {
  /* --- Палитра --- */
  --bg: #f6f2e9;
  /* кремовый фон */
  --bg-alt: #ece5d4;
  /* альтернативная секция */
  --green-deep: #3f5043;
  /* тёмная зелень */
  --green: #6b8070;
  /* sage */
  --green-soft: #a6b6a2;
  /* мягкая зелень */
  --gold: #b59366;
  /* латунь / акцент */
  --ink: #2c332e;
  /* основной текст */
  --muted: #7a746a;
  /* приглушённый текст */
  --white: #ffffff;
  --line: rgba(63, 80, 67, 0.15);
  --palette-dusty-rose: #a27e77;
  --palette-sage: #6f7a76;
  --palette-taupe: #c2b2ab;
  --palette-blush: #dbbaad;
  --surface-invitation: #e8d3cb;
  --surface-timing: #f2e4de;
  --surface-place: #d5dfda;
  --surface-wishes: #e5ddda;
  --surface-savedate: #eee7e3;
  --surface-rsvp: #ead8d2;
  --surface-footer: #cad5d0;

  /* --- Типографика --- */
  --font-head: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Marck Script", "Segoe Script", cursive;

  /* --- Размеры --- */
  --container: 1100px;
  --container-narrow: 720px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(44, 51, 46, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------- Сброс ----------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-deep);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ----------------------- Утилиты ----------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.amp {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.divider {
  display: block;
  margin: 0 auto 8px;
  width: 180px;
  max-width: 60%;
  color: var(--green-soft);
  opacity: 0.9;
}

/* ----------------------- Секции ----------------------- */
.section {
  padding: 96px 0;
  text-align: center;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.section__subtitle {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green);
  margin: 6px 0 48px;
}

.lead {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

.lead strong {
  color: var(--green-deep);
}

.big-date {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
}

/* ----------------------- Прелоадер ----------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  animation: preloaderFade 0.8s var(--ease) both;
}

.preloader__monogram {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--green-deep);
  letter-spacing: 0.05em;
}

.preloader__date {
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

@keyframes preloaderFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ----------------------- Герой ----------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #17251f;
  background-image: url("/images/57f86554-6df5-4224-8bdc-e512f4a5a3d5.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media (max-aspect-ratio: 2 / 1) {
  .hero__media {
    background-image: url("/images/f581a21a-fdf7-42cf-a3c3-01c4cee89540.png");
  }
}

@media (max-aspect-ratio: 3 / 2) {
  .hero__media {
    background-image: url("/images/d8081545-aaa1-44c4-9664-34e76a70ed1a.png");
  }
}

@media (max-aspect-ratio: 4 / 5) {
  .hero__media {
    background-image: url("/images/d5e45134-5a85-46ef-80c4-14df5d844a95.png");
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  animation: heroRise 1.2s var(--ease) 0.3s both;
}

.hero__save {
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8274;
  margin-bottom: 12px;
}

.hero__names {
  color: #7b5548;
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(122, 75, 56, 0.18);
}

.hero__names .amp {
  color: #a7774d;
}

.hero__date {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 16px;
  color: #9a8274;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  color: #9a8274;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
  animation: bounce 2s infinite var(--ease);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ----------------------- Приглашение ----------------------- */
.invite {
  background: var(--bg-alt);
  /* мягкая акварельная текстура поверх тёплого бежевого */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(166, 182, 162, 0.18) 0, transparent 38%),
    radial-gradient(circle at 85% 85%, rgba(181, 147, 102, 0.14) 0, transparent 42%);
  padding: 72px 20px;
}

.invite__card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #fdf0e2;
  border-radius: 4px;
  padding: 64px 28px;
  box-shadow: 0 14px 50px rgba(44, 51, 46, 0.12);
  overflow: hidden;
}

/* Двойная рамка: внешняя тонкая + внутренняя с отступом */
.invite__frame {
  position: relative;
  z-index: 2;
  padding: 44px 24px;
  border: 1px solid var(--green-soft);
  outline: 1px solid var(--green-soft);
  outline-offset: 6px;
  text-align: center;
}

/* Боковой ботанический декор */
.invite__decor {
  position: absolute;
  z-index: 1;
  width: 200px;
  max-width: 30vw;
  pointer-events: none;
  opacity: 0.92;
}

.invite__decor--left {
  top: 50%;
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}

.invite__decor--right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.invite__eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.invite__names {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.invite__date {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  letter-spacing: 0.18em;
  color: var(--green);
}

.invite__rule {
  width: 56px;
  height: 1px;
  margin: 26px auto;
  background: var(--green-soft);
}

.invite__text {
  margin: 0 auto 8px;
  max-width: 30em;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
}

.invite__text strong {
  color: var(--green-deep);
}

.invite__signature {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
}

@media (max-width: 680px) {
  .invite {
    padding: 48px 14px;
  }

  .invite__card {
    padding: 40px 16px;
  }

  .invite__frame {
    padding: 28px 14px;
    outline-offset: 4px;
  }

  /* На мобильном боковой декор мешает - выводим его под углами, более приглушённым */
  .invite__decor {
    width: 130px;
    opacity: 0.7;
  }
}

/* ----------------------- Тайминг ----------------------- */
.timeline {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  position: relative;
}

.timeline__time {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
}

.timeline__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  z-index: 1;
}

.section:not(.section--alt) .timeline__dot {
  background: var(--bg);
}

.timeline__dot img {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.timeline__label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--green-deep);
}

.timeline__desc {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ----------------------- Место ----------------------- */
.place {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.place__name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-deep);
  margin-bottom: 6px;
}

.place__address {
  font-size: 1.05rem;
  color: var(--ink);
}

.place__hint {
  font-size: 0.95rem;
  margin: 12px 0 24px;
}

.place__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
}

.place__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ----------------------- Карточки пожеланий ----------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
}

.card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--green);
}

.card__title {
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

/* ----------------------- Save the date / календарь ----------------------- */
.calendar {
  max-width: 420px;
  margin: 36px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow);
}

.calendar__header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.calendar__month {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--green-deep);
  text-transform: capitalize;
}

.calendar__year {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar__weekdays span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: 8px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar__grid span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 50%;
}

.calendar__grid span.cal__out {
  color: var(--line);
}

.calendar__grid span.cal__weekend {
  color: var(--gold);
}

.calendar__grid span.cal__today {
  box-shadow: inset 0 0 0 1.5px var(--green-soft);
}

.calendar__grid span.cal__wedding {
  background: var(--green-deep);
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.calendar__grid span.cal__wedding::after {
  content: "🌿";
  position: absolute;
  bottom: -1px;
  font-size: 0.6em;
}

.calendar__note {
  margin: 16px 0 0;
}

/* ----------------------- Форма RSVP ----------------------- */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.field {
  margin-bottom: 26px;
}

.field--radio,
.field--checks {
  border: none;
  padding: 0;
  margin-inline: 0;
}

.field__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 10px;
  font-weight: 400;
}

.field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107, 128, 112, 0.18);
}

textarea.field__input {
  resize: vertical;
  min-height: 90px;
}

.field__hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.field__error {
  display: block;
  color: #b54a3a;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1em;
}

.field__input.invalid {
  border-color: #b54a3a;
}

.radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio,
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.radio input,
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--green-soft);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.radio input {
  border-radius: 50%;
}

.check input {
  border-radius: 6px;
}

.radio input:checked,
.check input:checked {
  background: var(--green);
  border-color: var(--green);
}

.radio input:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--white);
}

.check input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ----------------------- Кнопки ----------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s var(--ease);
}

.btn--solid {
  background: var(--green-deep);
  color: var(--white);
  width: 100%;
  margin-top: 8px;
}

.btn--solid:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn--outline:hover {
  background: var(--green-deep);
  color: var(--white);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.form__status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1rem;
}

.form__status--success {
  background: rgba(107, 128, 112, 0.15);
  color: var(--green-deep);
}

.form__status--error {
  background: rgba(181, 74, 58, 0.12);
  color: #b54a3a;
}

/* ----------------------- Футер ----------------------- */
.footer {
  text-align: center;
  padding: 64px 24px 56px;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
}

.footer .divider {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer__monogram {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
}

.footer__date {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--green-soft);
  margin-top: 6px;
}

.footer__love {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* ----------------------- Reveal-анимация ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* ----------------------- Адаптивность ----------------------- */
@media (max-width: 860px) {
  .place {
    grid-template-columns: 1fr;
  }

  .place__map {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .checks {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 100px;
  }

  .timeline__item {
    grid-template-columns: 84px 32px 1fr;
    gap: 12px;
  }

  .hero__names {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    letter-spacing: 0;
  }

  .place__map {
    aspect-ratio: 1 / 1;
  }
}

/* ----------------------- Доступность ----------------------- */
@media (prefers-reduced-motion: reduce) {

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

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

/* ----------------------- Invitation backgrounds ----------------------- */
.invite {
  position: relative;
  min-height: clamp(680px, 42.85vw, 860px);
  padding: 0;
  overflow: hidden;
  background-color: #fdeee4;
  /* background-image: url("/images/9f2ba28f-a066-434f-addd-dfd5a6d069cd.png"); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.invite__card {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: inherit;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0;
  background: #fdf0e2;
  box-shadow: none;
}

.invite__frame {
  position: relative;
  z-index: 2;
  width: min(720px, 52vw);
  min-width: 0;
  min-height: inherit;
  padding: clamp(72px, 5.2vw, 102px) 24px clamp(42px, 4vw, 78px);
  border: 0;
  outline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.invite__eyebrow {
  display: none;
}

.invite__names {
  order: 1;
  margin: 0;
  color: #313a35;
  font-size: clamp(1.55rem, 1.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.24em;
}

.invite__names .amp {
  margin-inline: 0.22em;
  color: #313a35;
  font-style: normal;
}

.invite__rule,
.invite__text::after,
.invite__date::after,
.invite__signature::after {
  display: block;
  height: 32px;
  background-color: #c39a61;
  -webkit-mask: url("/svg/invite-divider.svg") center / contain no-repeat;
  mask: url("/svg/invite-divider.svg") center / contain no-repeat;
  opacity: 0.9;
}

.invite__rule {
  order: 2;
  width: min(430px, 72%);
  margin: clamp(18px, 1.65vw, 32px) auto clamp(18px, 1.6vw, 30px);
  background: #c39a61;
}

.invite__text {
  order: 3;
  max-width: 25em;
  margin: 0;
  color: #29332e;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.42vw, 1.72rem);
  font-weight: 400;
  line-height: 1.6;
}

.invite__text strong {
  color: #49624f;
  font-weight: 600;
}

.invite__text::after {
  content: "";
  width: 250px;
  max-width: 55%;
  margin: clamp(14px, 1.1vw, 22px) auto clamp(6px, 0.6vw, 12px);
  transform: scaleX(0.72);
}

.invite__date {
  order: 4;
  margin: 0;
  color: #bc8f56;
  font-family: var(--font-head);
  font-size: clamp(3.1rem, 4vw, 4.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  max-width: 100%;
  white-space: nowrap;
}

.invite__date::after {
  content: "";
  width: 330px;
  max-width: 70%;
  margin: clamp(12px, 1.1vw, 22px) auto clamp(4px, 0.5vw, 10px);
}

.invite__signature {
  order: 5;
  width: 100%;
  margin: 0;
  color: #6d716b;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.08vw, 1.3rem);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.invite__signature::after {
  content: "";
  width: min(430px, 72%);
  margin: clamp(20px, 2vw, 38px) auto 0;
}

@media (max-width: 900px) {
  .invite {
    min-height: 820px;
    /* background-image: url("/images/b0960ccf-65d4-40ab-940b-b73d564bc7e5.png"); */
  }

  #timing {
    min-height: 820px;
    background-image: url("/images/b0960ccf-65d4-40ab-940b-b73d564bc7e5.png");
  }

  .invite__frame {
    width: min(690px, calc(100% - 48px));
    min-width: 0;
    padding: 70px 20px 48px;
  }
}

@media (max-width: 560px) {
  .invite {
    min-height: 760px;
    /* background-image: url("/images/2667e81f-dc27-41cd-82a2-f1218ca177ef.png"); */
  }

  #timing {
    min-height: 760px;
    background-image: url("/images/2667e81f-dc27-41cd-82a2-f1218ca177ef.png");
  }

  .invite__frame {
    width: calc(100% - 28px);
    padding: 52px 12px 34px;
  }

  .invite__names {
    font-size: 1.35rem;
    letter-spacing: 0.14em;
  }

  .invite__text {
    max-width: 19em;
    font-size: 1.14rem;
    line-height: 1.5;
  }

  .invite__date {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    letter-spacing: 0.03em;
  }

  .invite__signature {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .invite__date {
    font-size: 1.7rem;
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .invite {
    /* background-image: url("/images/71e1e3a6-247e-4f33-895e-ed9c9945f20e.png"); */
  }

  #timing {
    background-image: url("/images/71e1e3a6-247e-4f33-895e-ed9c9945f20e.png");
  }
}

@media (min-width: 1501px) and (max-aspect-ratio: 5 / 2) {
  .invite {
    /* background-image: url("/images/ce1d09d8-11f5-46a5-a6fe-cd25fae620a8.png"); */
  }

  #timing {
    background-image: url("/images/ce1d09d8-11f5-46a5-a6fe-cd25fae620a8.png");
  }
}

/* ----------------------- Section palette ----------------------- */
section#invitation {
  min-height: auto;
  background-color: var(--surface-invitation);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 88% 90%, rgba(162, 126, 119, 0.08), transparent 36%);
}

section#invitation .invite__card,
section#invitation .invite__frame {
  min-height: auto;
}

section#invitation .invite__frame {
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(58px, 5vw, 84px);
}

section#invitation .invite__date {
  color: #6f4d47;
}

section#invitation .invite__text strong {
  color: #314a39;
}

section#invitation .invite__rule,
section#invitation .invite__text::after,
section#invitation .invite__date::after,
section#invitation .invite__signature::after {
  background-color: #7d574f;
}

section#invitation .invite__signature {
  color: #514a47;
  font-weight: 400;
}

section#timing {
  background-color: var(--surface-timing);
  background-image:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.17), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(162, 126, 119, 0.07), transparent 38%);
}

section#timing .section__title {
  color: #304238;
}

section#timing .section__subtitle,
section#timing .timeline__label {
  color: #314238;
  font-weight: 400;
}

section#timing .timeline__label {
  font-weight: 500;
}

section#timing .timeline__desc {
  color: #443d3a;
  font-weight: 400;
}

section#timing .timeline__time {
  color: #5f403a;
  font-weight: 500;
}

section#timing .timeline::before {
  background: rgba(48, 66, 56, 0.32);
}

section#timing .timeline__dot {
  background: var(--surface-timing);
}

section#place {
  background-color: var(--surface-place);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.62), transparent 38%),
    radial-gradient(circle at 90% 88%, rgba(111, 122, 118, 0.2), transparent 44%),
    linear-gradient(135deg, #d9e0dd 0%, #c5ceca 52%, #b5c1bb 100%);
  color: #2a3731;
}

section#place .section__title,
section#place .place__name,
section#place .place__address {
  color: #26342e;
}

section#place .section__subtitle,
section#place .place__hint {
  color: #34423b;
  font-weight: 400;
}

section#place .place__address {
  font-weight: 400;
}

section#place .btn--outline {
  border-color: #2f3d36;
  color: #2f3d36;
}

section#place .btn--outline:hover {
  background: #2f3d36;
  color: #ffffff;
}

section#wishes {
  background-color: var(--surface-wishes);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(63, 43, 40, 0.035));
}

section#wishes .section__title,
section#wishes .section__subtitle {
  color: #29211f;
}

section#wishes .section__subtitle {
  font-weight: 400;
}

section#wishes .card {
  background: #f8f4f2;
  border-color: rgba(52, 43, 41, 0.16);
  box-shadow: 0 12px 34px rgba(52, 43, 41, 0.13);
}

section#wishes .card__title {
  color: #34443c;
}

section#wishes .card__text {
  color: #4d4744;
  font-weight: 400;
  line-height: 1.62;
}

section#contacts {
  background-color: var(--surface-savedate);
  background-image:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(162, 126, 119, 0.06), transparent 38%);
}

section#contacts .card--contacts {
  padding: 34px 38px;
  background: #f8f4f2;
  border-color: rgba(52, 43, 41, 0.16);
  box-shadow: 0 12px 34px rgba(52, 43, 41, 0.13);
}

section#contacts .card--contacts .card__title {
  color: #34443c;
  margin-bottom: 8px;
}

section#contacts .card__text {
  color: #4d4744;
  font-weight: 400;
  line-height: 1.62;
}

.contact-list {
  display: flex;
  justify-content: center;
  gap: 14px 44px;
  margin-top: 24px;
}

.contact-list__item {
  display: grid;
  gap: 4px;
  margin: 0;
}

.contact-list__item span {
  color: #5d5551;
  font-size: 0.92rem;
}

.contact-list__item a {
  color: #304238;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-list__item a:hover {
  color: #6f4d47;
}

section#savedate {
  background-color: var(--surface-savedate);
  background-image:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(162, 126, 119, 0.06), transparent 38%);
}

section#savedate .section__title,
section#savedate .section__subtitle {
  color: #304238;
}

section#savedate .section__subtitle {
  font-weight: 400;
}

section#savedate .big-date,
section#savedate .calendar__year,
section#savedate .calendar__grid span.cal__weekend {
  color: #6f4d47;
}

section#savedate .calendar {
  background: #f8f5f3;
  border-color: rgba(52, 43, 41, 0.16);
  box-shadow: 0 12px 34px rgba(52, 43, 41, 0.12);
}

section#savedate .calendar__weekdays span,
section#savedate .calendar__note {
  color: #5d5551;
  font-weight: 400;
}

section#savedate .calendar__grid span.cal__out {
  color: #aaa19c;
}

/* The wedding date can also be a weekend. Keep its number readable in that case. */
section#savedate .calendar__grid span.cal__wedding {
  background: #304238;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

section#savedate .calendar__grid span.cal__wedding::after {
  display: none;
}

section#rsvp {
  background-color: var(--surface-rsvp);
  background-image:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(162, 126, 119, 0.06), transparent 38%);
}

section#rsvp .section__title,
section#rsvp .section__subtitle {
  color: #304238;
}

section#rsvp .section__subtitle {
  font-weight: 400;
}

section#rsvp .field__hint,
section#rsvp .muted {
  color: #514a47;
  font-weight: 400;
}

section#rsvp .field__label,
section#rsvp .radio,
section#rsvp .check {
  color: #304238;
  font-weight: 400;
}

section#rsvp .field__label {
  font-weight: 500;
}

section#rsvp .field__input {
  background: #fbf8f6;
  border-color: rgba(48, 66, 56, 0.3);
}

section#rsvp .field__input::placeholder {
  color: #6a625e;
  opacity: 1;
}

section#rsvp .field__input:focus {
  border-color: #4f6256;
  box-shadow: 0 0 0 3px rgba(79, 98, 86, 0.2);
}

section#rsvp .field__input.invalid {
  border-color: #a43e34;
}

section#rsvp .radio input,
section#rsvp .check input {
  border-color: #5d6d64;
  background: #fbf8f6;
}

section#rsvp .radio input:checked,
section#rsvp .check input:checked {
  border-color: #3f5043;
  background: #3f5043;
}

section#rsvp .btn--solid:hover {
  background: #4f6256;
}

.hero__save,
.hero__date,
.hero__scroll {
  color: #745e55;
  font-weight: 400;
}

.footer {
  background-color: var(--surface-footer);
  background-image:
    radial-gradient(circle at 86% 0%, rgba(224, 193, 182, 0.34), transparent 42%),
    linear-gradient(135deg, #cbd4d0 0%, #b2beba 100%);
}

.footer .divider {
  filter: none;
  opacity: 0.46;
}

.footer__monogram,
.footer__date,
.footer__love {
  color: #24312b;
  font-weight: 400;
}

.footer__monogram .amp {
  color: #57413b;
}

/* ----------------------- Softer wedding typography ----------------------- */
.section__title {
  letter-spacing: 0.01em;
}

.section__subtitle {
  margin-top: 10px;
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__save {
  margin-bottom: 6px;
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
}

.hero__names {
  letter-spacing: 0.01em;
}

section#invitation .invite__signature {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 1.6vw, 1.65rem);
  font-style: normal;
  letter-spacing: 0;
}

.footer__love {
  font-family: var(--font-script);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  section#invitation .invite__frame {
    padding-top: 56px;
    padding-bottom: 50px;
  }

  section#contacts .card--contacts {
    padding: 30px 26px;
  }

  .contact-list {
    flex-direction: column;
    gap: 18px;
  }

}
