:root {
  /* General Site Colors */
  --invito-color-brown: #8f6f59;
  --invito-color-brown-hover: #7a5d48;
  --invito-color-white: #ffffff;
  --invito-color-black: #000000;
  --invito-bg-light: #faf6f0;
  --invito-text-dark: #332b25;
  --invito-text-medium: #4a4036;
  --invito-text-muted: #5c5248;
  --invito-text-soft: #63574c;
  --invito-color-highlight: #8c7866;
  --invito-color-border: #a3968c;
  --invito-color-accent: #6d5b4e;
  --invito-color-month: #8a7a6e;
  --invito-color-btn-bg: #e8e1d7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #faf7f2;
  color: #856a57ff;
  font-family: "Cormorant Garamond", serif;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  width: 100%;
  background: #faf7f2;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.all-caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gentle scroll reveal for text and content blocks */
.reveal {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 850ms ease,
    filter 850ms ease,
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.reveal-from-left {
  transform: translate3d(-34px, 0, 0);
}

.reveal-from-right {
  transform: translate3d(34px, 0, 0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* Common Layout / typography */
h1,
h2,
h3,
h4,
h5,
p {
  font-weight: 400;
  color: #131212;
}

.text {
  text-align: center;
  line-height: y1.6;
  font-size: 1.15rem;
}

.divider {
  width: 80%;
  height: 1px;
  background-color: #856a57ff;
  margin: 20px auto;
}
.divider.full {
  width: 90%;
}

.torn-edge {
  position: absolute;
  left: -1px;
  width: 101%;
  height: 64px;
  z-index: 10;
  line-height: 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.torn-edge svg,
.torn-edge {
  backface-visibility: hidden;
}

.torn-edge use {
  width: 100%;
  height: 100%;
}
.edge-top {
  top: -13px;
}
.edge-bottom {
  bottom: -13px;
}
.image-wrapper {
  position: relative;
  width: 100%;
}

/* Hero Section */
.section-hero {
  position: relative;
  width: 100%;
  height: min(900px, 100svh);
  min-height: 620px;
  overflow: hidden;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #403b36;
  background-image:
    linear-gradient(rgba(22, 19, 17, 0.24), rgba(22, 19, 17, 0.4)),
    url("media/IMG_4458.JPG");
  background-size: cover;
  background-position: center 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  padding: 32px 18px;
  margin-top: 360px;
  color: #fff;
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 24px;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 11vw, 65px);
  font-weight: 200;
  line-height: 1.1;
  white-space: nowrap;
}

.names .name {
  color: inherit;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.names .and {
  color: inherit;
  font-family: "Tangerine", cursive;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.names .name:first-child {
  margin-right: 5px;
}

/* .names .name:last-child {
  margin-left: px;
} */
.hero-date {
  margin-top: 26px;
  color: inherit;
  font-size: 32px;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-branch {
  width: 42px;
  height: 32px;
  margin-top: 16px;
  color: #fff;
  transform: rotate(90deg);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

@media (max-width: 380px) {
  .section-hero {
    min-height: 560px;
  }

  .hero-eyebrow {
    font-size: 13px;
  }

  .names {
    gap: 4px;
    font-size: clamp(48px, 14vw, 58px);
  }
}

/* Invitation Section */
.invitation {
  background-color: var(--invito-bg-light);
  color: var(--invito-text-muted);
  padding: 100px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation__container {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation__icon {
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
  color: var(--invito-color-accent); /* колір для векторного сердечка */
}

.invitation__greeting {
  font-size: 26px;
  font-weight: 300;
  color: var(--invito-text-soft);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.invitation__guests {
  margin-bottom: 35px;
  color: var(--invito-color-highlight);
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
letter-spacing: 0px;
}

.invitation__divider {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background-color: var(--invito-color-border);
  border: none;
  margin: 0 auto 35px;
}

.invitation__text {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.45;
  font-weight: 300;
  color: var(--invito-text-medium);
  margin-bottom: 60px;
}

/* CALENDAR */

.calendar {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.calendar__month {
  font-size: 26px;
  font-weight: 300;
  color: var(--invito-color-month);
  margin-bottom: 30px;
  letter-spacing: 0.06em;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 20px;
  column-gap: 10px;
  font-size: 22px;
  font-weight: 300;
  color: var(--invito-text-dark);
}

.calendar__day {
  font-size: 20px;
  color: var(--invito-text-medium);
  margin-bottom: 10px;
}

.calendar__date {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  font-variant-numeric: oldstyle-nums; /* old-style numbers for authentic elegant look */
}

/* Date inside heart */
.calendar__date--highlighted {
  color: var(--invito-text-muted);
}

.calendar__heart {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -46%);
  z-index: 0;
}

.calendar__date span {
  position: relative;
  z-index: 1;
}

/* Location Section */
.location {
  padding: 45px 16px 80px;
  background: var(--invito-bg-light);
  text-align: center;
}

.location__container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.location__title {
  margin-bottom: 24px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.location__visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #594c40;
}

.location__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 20, 18, 0.08) 20%,
    rgba(22, 20, 18, 0.62) 100%
  );
  content: "";
}

.location__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location__content {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 48px;
  left: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--invito-color-white);
}

.location__eyebrow {
  margin-bottom: 14px;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location__name {
  margin-bottom: 10px;
  color: inherit;
  font-size: clamp(42px, 10vw, 56px);
  line-height: 1;
}

.location__description {
  max-width: 310px;
  margin-bottom: 26px;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.location__button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--invito-color-highlight);
  color: var(--invito-color-white);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.location__button:hover {
  transform: translateY(-2px);
  background: var(--invito-color-brown-hover);
}

.location__button:focus-visible {
  outline: 2px solid var(--invito-color-white);
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .location__visual {
    min-height: 540px;
  }

  .location__content {
    right: 12px;
    left: 12px;
  }

  .location__button {
    padding: 0 22px;
  }
}

.photo-only {
  width: 100%;
  overflow: hidden;
  background: var(--invito-bg-light);
}

.photo-only__image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 42%;
}

.dress-code {
  padding: 64px 28px 76px;
  background: var(--invito-bg-light);
  text-align: center;
}

.dress-code__container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.dress-code__title {
  margin-bottom: 24px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.dress-code__text {
  margin-bottom: 38px;
  color: var(--invito-text-muted);
  font-size: clamp(21px, 5.5vw, 26px);
  font-weight: 300;
  line-height: 1.55;
}

.dress-code__palette {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.dress-code__heart {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.dress-code__heart--navy {
  color: #1c2638;
}

.dress-code__heart--blue {
  color: #33445f;
}

.dress-code__heart--brown {
  color: #805b43;
}

.dress-code__heart--beige {
  color: #e9ded9;
}

.dress-code__heart path {
  fill: currentColor;
}

@media (max-width: 380px) {
  .dress-code {
    padding-right: 22px;
    padding-left: 22px;
  }

  .dress-code__palette {
    gap: 18px;
  }

  .dress-code__heart {
    width: 52px;
    height: 52px;
  }
}

.timeline {
  padding: 58px 28px 80px;
  background: var(--invito-bg-light);
  text-align: center;
}

.timeline__container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.timeline__title {
  margin-bottom: 40px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__list::before {
  position: absolute;
  top: 42px;
  bottom: 50px;
  left: 50%;
  width: 5px;
  background: var(--invito-color-highlight);
  content: "";
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
}

.timeline__content {
  display: flex;
  flex-direction: column;
  color: var(--invito-text-soft);
  line-height: 1.15;
}

.timeline__content--left {
  grid-column: 1;
  align-items: flex-end;
  padding-right: 12px;
  text-align: right;
}

.timeline__content--right {
  grid-column: 3;
  align-items: flex-start;
  padding-left: 12px;
  text-align: left;
}

.timeline__time {
  color: var(--invito-color-highlight);
  font-size: clamp(26px, 7vw, 34px);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.timeline__event {
  margin-top: 3px;
  font-size: clamp(18px, 5vw, 23px);
}

.timeline__heart {
  z-index: 1;
  grid-column: 2;
  width: 36px;
  height: 36px;
  justify-self: center;
  object-fit: contain;
}

@media (max-width: 380px) {
  .timeline {
    padding-right: 20px;
    padding-left: 20px;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  }

  .timeline__content--left {
    padding-right: 8px;
  }

  .timeline__content--right {
    padding-left: 8px;
  }

  .timeline__heart {
    width: 34px;
    height: 34px;
  }
}

.wishes {
  padding: 34px 28px 76px;
  background: var(--invito-bg-light);
  text-align: center;
}

.wishes__container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.wishes__title {
  margin-bottom: 18px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.wishes__text {
  color: var(--invito-text-muted);
  font-size: clamp(21px, 5.5vw, 26px);
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 380px) {
  .wishes {
    padding-right: 22px;
    padding-left: 22px;
  }
}

.guest-chat {
  padding: 56px 28px 64px;
  /* border-top: 1px solid rgba(143, 111, 89, 0.24);
  border-bottom: 1px solid rgba(143, 111, 89, 0.24); */
  background: var(--invito-bg-light);
  text-align: center;
}

.guest-chat__container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.guest-chat__eyebrow {
  margin-bottom: 12px;
  color: var(--invito-color-highlight);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 600;
}

.guest-chat__title {
  margin-bottom: 20px;
  color: var(--invito-color-highlight);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.guest-chat__text {
  color: var(--invito-text-muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
}

.guest-chat__text--closing {
  margin-top: 14px;
}

.guest-chat__button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 24px;
  background: var(--invito-color-highlight);
  color: var(--invito-color-white);
  font-size: 19px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.guest-chat__button:hover {
  transform: translateY(-2px);
  background: var(--invito-color-brown-hover);
}

.guest-chat__button:focus-visible {
  outline: 2px solid var(--invito-color-highlight);
  outline-offset: 4px;
}

.guest-chat__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.guest-chat__button:hover .guest-chat__arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 380px) {
  .guest-chat {
    padding-right: 22px;
    padding-left: 22px;
  }

  .guest-chat__title {
    font-size: 36px;
  }

  .guest-chat__text {
    font-size: 20px;
  }
}

.rsvp {
  padding: 0 28px 72px;
  background: var(--invito-bg-light);
  color: var(--invito-text-muted);
}

.rsvp__container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.rsvp__title {
  margin-bottom: 20px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.rsvp__intro {
  max-width: 340px;
  margin: 0 auto 24px;
  color: var(--invito-text-muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
}

.rsvp__label,
.rsvp__legend {
  margin-bottom: 6px;
  color: var(--invito-text-muted);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.3;
}

.rsvp__input {
  width: 100%;
  min-height: 74px;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--invito-color-border);
  border-radius: 0;
  background: var(--invito-color-white);
  color: var(--invito-text-dark);
  font: inherit;
  font-size: 20px;
}

.rsvp__input::placeholder {
  color: #b9b4ae;
  opacity: 1;
}

.rsvp__input:focus-visible {
  outline: 2px solid var(--invito-color-highlight);
  outline-offset: 2px;
}

.rsvp__fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.rsvp__legend {
  margin-bottom: 8px;
}

.rsvp__option {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 12px;
  color: var(--invito-text-muted);
  font-size: 19px;
  font-weight: 300;
  cursor: pointer;
}

.rsvp__option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0 0 0 2px;
  accent-color: var(--invito-color-highlight);
}

.rsvp__input--phone {
  margin-bottom: 30px;
}

.rsvp__submit {
  width: min(100%, 320px);
  min-height: 72px;
  border: 0;
  border-radius: 0;
  background: var(--invito-color-highlight);
  color: var(--invito-color-white);
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.rsvp__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rsvp__status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--invito-text-muted);
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.rsvp__status.is-error {
  color: #9d342c;
}

.rsvp__submit:hover {
  background: var(--invito-color-brown-hover);
}

.rsvp__submit:focus-visible {
  outline: 2px solid var(--invito-color-highlight);
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .rsvp {
    padding-right: 22px;
    padding-left: 22px;
  }
}

.contacts {
  padding: 0 28px 72px;
  background: var(--invito-bg-light);
  text-align: center;
}

.contacts__container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.contacts__title {
  margin-bottom: 20px;
  color: var(--invito-color-highlight);
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.contacts__text,
.contacts__person {
  color: var(--invito-text-muted);
  font-size: clamp(22px, 5.7vw, 27px);
  font-weight: 300;
  line-height: 1.65;
}

.contacts__person {
  margin-top: 8px;
}

.contacts__phone {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.contacts__phone:focus-visible {
  outline: 2px solid var(--invito-color-highlight);
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .contacts {
    padding-right: 22px;
    padding-left: 22px;
  }
}

.countdown {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  background: #403b36;
  color: var(--invito-color-white);
  text-align: center;
}

.countdown::after {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0.48);
  content: "";
}

.countdown__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.countdown__content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 120px;
  padding: 40px 18px;
}

.countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.countdown__unit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.countdown__number {
  color: inherit;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
  white-space: nowrap;
}

.countdown__label {
  margin-top: 8px;
  color: inherit;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.2;
}

.countdown__message {
  margin-top: 34px;
  color: inherit;
  font-size: clamp(22px, 6vw, 30px);
  font-style: italic;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .countdown__units {
    gap: 4px;
  }

  .countdown__label {
    font-size: 13px;
  }
}
