:root {
  --ink: #111111;
  --olive: #171717;
  --olive-dark: #171717;
  --paper: #f4f4f2;
  --sand: #d2d2d2;
  --line: rgba(17, 17, 17, 0.2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  background: #8d8d8d;
}

.media-placeholder {
  display: grid;
  place-content: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(255, 255, 255, 0.16) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgba(255, 255, 255, 0.16) 50%, transparent 50.2%),
    #8d8d8d;
  text-align: center;
  letter-spacing: 0.18em;
}

.media-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
}

.media-placeholder small {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.media-placeholder--hero {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero.has-image .media-placeholder--hero {
  color: transparent;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(1px);
  transform: scale(1.006);
}

.hero.has-image .media-placeholder--hero small {
  display: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 25, 21, 0.15), rgba(22, 25, 21, 0.2) 50%, rgba(22, 25, 21, 0.48));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100svh;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 2.5rem;
  text-align: center;
}

.eyebrow,
.script-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
}

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

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 300;
  line-height: 0.85;
}

h1 i,
.contact h2 i {
  font-weight: 300;
}

.hero__date {
  margin: 2rem 0 0;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.scroll-link {
  font-size: 2.2rem;
  font-weight: 200;
  line-height: 1;
  text-decoration: none;
  animation: float 1.8s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(8px); }
}

.section {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) max(1.5rem, calc((100vw - 1120px) / 2));
  text-align: center;
}

.section-number {
  margin-bottom: 1.5rem;
  color: var(--olive);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.script-title {
  color: var(--olive);
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h2 {
  margin: 1rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.92;
}

h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.ornament {
  margin-top: 3rem;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 3rem;
}

.countdown-section {
  color: white;
  background: var(--olive);
}

.overline {
  margin-bottom: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.countdown div {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown div:last-child {
  border: 0;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.schedule {
  background: var(--paper);
}

.schedule__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.schedule__grid::before {
  display: none;
}

.schedule article {
  position: relative;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
}

.schedule time {
  display: inline-block;
  padding-bottom: 1.2rem;
  color: var(--olive-dark);
  font-family: var(--serif);
  font-size: 2.4rem;
}

.schedule p,
.details p {
  font-size: 0.9rem;
}

.schedule a {
  text-decoration-color: rgba(17, 17, 17, 0.35);
  text-underline-offset: 0.2em;
}

.media-placeholder--wide {
  min-height: min(70vw, 720px);
}

.story-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: #171717;
}

.location {
  color: white;
  background: var(--olive-dark);
}

.location .section-number,
.location .script-title {
  color: #d2d2d2;
}

.button {
  display: inline-flex;
  min-width: 220px;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--outline {
  margin-top: 2.5rem;
}

.button--outline:hover {
  color: var(--olive-dark);
  background: white;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 4rem;
}

.details__icon {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 3rem;
}

.dress-code {
  background: var(--sand);
}

.palette {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  margin: 3rem 0 4rem;
}

.palette span {
  width: clamp(3.5rem, 8vw, 6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.media-placeholder--dress {
  max-width: 900px;
  min-height: 450px;
  margin: 0 auto;
  color: rgba(17, 17, 17, 0.68);
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(17, 17, 17, 0.12) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgba(17, 17, 17, 0.12) 50%, transparent 50.2%),
    #bdbdbd;
}

.dress-code-image {
  display: block;
  width: min(100%, 576px);
  height: auto;
  margin: 0 auto;
}

.rsvp {
  color: white;
  background: var(--olive);
}

.rsvp .section-number,
.rsvp .script-title {
  color: #d2d2d2;
}

.rsvp-form {
  max-width: 760px;
  margin: 4rem auto 0;
  text-align: left;
}

fieldset {
  padding: 0;
  border: 0;
}

.rsvp-form fieldset,
.text-field {
  display: block;
  margin-bottom: 3rem;
}

legend,
.text-field > span {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
}

.field-hint {
  margin: -0.8rem 0 1.2rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.7rem 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.choice span::before {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  content: "";
}

.choice input:checked + span::before {
  background: white;
  box-shadow: inset 0 0 0 4px var(--olive);
}

.choice input:focus-visible + span::before {
  outline: 2px solid white;
  outline-offset: 3px;
}

.text-field input {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.text-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.text-field input:focus {
  border-color: white;
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}

.button--solid {
  border-color: white;
  color: var(--olive-dark);
  background: white;
  cursor: pointer;
}

.button--solid:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  min-height: 1.6em;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.form-status.is-error {
  color: #ffe0d8;
}

.contact {
  padding-bottom: clamp(7rem, 16vw, 13rem);
}

.contact h2 {
  font-size: clamp(4rem, 10vw, 8rem);
}

.contact a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--olive-dark);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.contact__people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}

.contact__people a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact__people span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.contact__telegram {
  max-width: 640px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.contact .telegram-button {
  margin-top: 1.2rem;
  color: white;
  background: var(--olive-dark);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.contact .telegram-button:hover {
  color: var(--olive-dark);
  background: transparent;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem max(1.5rem, calc((100vw - 1120px) / 2));
  color: white;
  background: var(--olive-dark);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .hero__date {
    letter-spacing: 0.3em;
  }

  .countdown strong {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .countdown span {
    letter-spacing: 0.08em;
  }

  .schedule__grid,
  .details__grid {
    grid-template-columns: 1fr;
  }

  .schedule__grid {
    gap: 1.5rem;
  }

  .schedule article {
    padding: 1.5rem;
    background: var(--paper);
  }

  .schedule time {
    padding-bottom: 0.2rem;
  }

  .details__grid {
    gap: 2.5rem;
  }

  .media-placeholder--dress {
    min-height: 300px;
  }

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

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

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