*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "AgoniaLyubvi";
  src: url("https://static.tildacdn.com/tild3666-6136-4361-a462-643934623335/AgoniaLyubviRegular.woff")
    format("woff");
  font-weight: 500;
  font-style: normal;
}

:root {
  color-scheme: light;
  --font-serif: "Forum", serif;
  --font-sans:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-script: "AgoniaLyubvi", cursive;
  --color-bg: #f8f4ec;
  --color-text: #2f2f2f;
  --color-muted: rgba(47, 47, 47, 0.72);
  --color-primary: #14312c;
  --color-primary-contrast: #ffffff;
  --color-accent: #c77b58;
  --color-gold: #d7b975;
  --color-surface: rgba(255, 255, 255, 0.86);
  --shadow-soft: 0 18px 40px rgba(17, 36, 32, 0.18);
  --container-max: 960px;
  --flow-spacing: clamp(3rem, 4vw, 4.5rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

main,
main section {
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.2em;
}

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

ul {
  list-style: none;
  padding: 0;
}

.container {
  width: min(90%, var(--container-max));
  margin-inline: auto;
}

.container.split {
  display: grid;
  gap: 0rem;
  align-items: start;
}

.container.narrow {
  width: min(75ch, 90%);
}

main section {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-primary-contrast);
  text-align: center;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2rem;
  min-width: 0;
}

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-weight: 100;
  font-size: 1rem;
}

.hero h1 {
  margin: 0 0 clamp(1.2rem, 3vh, 2.5rem);
  padding-top: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  min-width: 0;
  max-width: 100%;
}

.hero h1 .script {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 1.08em;
  line-height: 1.35;
  display: inline-block;
  letter-spacing: normal;
  padding: 0.3em 0.4em 0.25em;
  margin-block: 0.1em;
  max-width: 100%;
}

.hero h1 .ampersand {
  font-family: var(--font-script);
  font-size: 0.7em;
  color: rgba(255, 255, 255, 255);
}

.hero-date {
  letter-spacing: 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  margin-top: clamp(1.4rem, 3vh, 2.4rem);
  font-family: var(--font-serif);
  font-weight: 100;
}

.hero-date-month,
.hero-date-year {
  color: rgba(255, 255, 255, 0.82);
}

.hero-date-day {
  color: #ffffff;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
  cursor: pointer;
  border: none;
  height: 3rem;
}

.button.primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  color: var(--color-primary-contrast);
  box-shadow: 0 16px 32px rgba(199, 123, 88, 0.35);
}

.button.secondary {
  background: rgba(20, 49, 44, 0.12);
  color: var(--color-primary);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-primary-contrast);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(20, 49, 44, 0.2);
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(12px);
  }
}

.details {
  margin-top: -4rem;
}

.details-card {
  background: var(--color-surface);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  color: rgba(20, 49, 44, 0.92);
  text-align: center;
}

.details-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-primary);
}

.details-info {
  display: grid;
  gap: 1.25rem;
  font-weight: 600;
}

.details-info li {
  display: block;
}

.details-info span {
  display: block;
}

.details-info span + span {
  margin-top: 0.4rem;
  color: rgba(20, 49, 44, 0.72);
  font-weight: 400;
}

.details-actions {
  margin-top: 2rem;
}

.welcome {
  text-align: center;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.welcome h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  color: var(--color-primary);
}

.calendar .container {
  text-align: center;
  display: grid;
  gap: 1.5rem;
}

.calendar {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.calendar h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  color: var(--color-primary-contrast);
}

.calendar-subtitle {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.55rem, 2vw, 0.85rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 48px rgba(17, 36, 32, 0.18);
}

.calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.6rem, 6vw, 3.1rem);
  font-weight: 600;
  color: var(--color-text);
  border-radius: 999px;
}

.calendar-cell--label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 49, 44, 0.6);
}

.calendar-cell--empty {
  visibility: hidden;
}

.calendar-cell--highlight {
  position: relative;
  isolation: isolate;
  color: #000000;
  font-weight: 700;
  transform: translateY(-2px);
}

.calendar-cell--highlight::before {
  content: "";
  position: absolute;
  inset: -10px -12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.8l-1.3-1.2C5.8 15.3 3 12.7 3 9.3 3 6.6 5.1 4.5 7.8 4.5c1.5 0 3 .7 4.2 2 1.2-1.3 2.7-2 4.2-2 2.7 0 4.8 2.1 4.8 4.8 0 3.4-2.8 6-7.5 10.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}

.welcome .container {
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.welcome p {
  color: rgba(20, 49, 44, 0.86);
}

.schedule {
  color: var(--color-primary-contrast);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.schedule .section-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.schedule h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.schedule-days {
  display: grid;
  gap: 2rem;
}

.schedule-day {
  background: rgba(11, 31, 28, 0.76);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(215, 185, 117, 0.3);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.25);
}

.schedule-day h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 0.06em;
}

.schedule-day__subtitle {
  margin: 0.25rem 0 1.5rem;
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-day ul {
  display: grid;
  gap: 1.5rem;
}

.schedule-day li {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 1rem;
  align-items: start;
}

.schedule-day time {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-size: 0.9rem;
}

.schedule-day strong {
  font-family: var(--font-serif);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.schedule-day span {
  color: rgba(255, 255, 255, 0.8);
}

.tips {
  color: var(--color-primary-contrast);
}

.tips .section-heading {
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.tips h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.06em;
}

.tips .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

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

.tips-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(215, 185, 117, 0.28);
  border-radius: var(--radius-md);
  background: rgba(11, 31, 28, 0.6);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.tips-card h3 {
  margin: 0 0 0.7rem;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tips-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.tips-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
}

.tips-contacts li {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-contrast);
}

.tips-contacts a {
  color: var(--color-gold);
}

.tips-phone {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.tips-phone svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.tips-phone:hover,
.tips-phone:focus-visible {
  background: var(--color-gold);
  color: var(--color-primary);
}

.dress {
  background: transparent;
  color: #14312c;
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.dress .section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.dress h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-primary-contrast);
}

.dress .section-heading p {
  color: var(--color-primary-contrast);
}

.dress-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--tone);
  box-shadow:
    inset 0 0 0 1px rgba(47, 47, 47, 0.08),
    0 18px 28px rgba(20, 49, 44, 0.14);
}

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

.dress-guidelines h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.dress-guidelines ul {
  list-style: disc;
  padding-inline-start: 1.1rem;
  color: var(--color-primary-contrast);
}

.rsvp {
  position: relative;
}

.rsvp::before {
  position: absolute;
  inset: 10% auto auto -8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(215, 185, 117, 0.5),
    transparent 70%
  );
  filter: blur(4px);
  opacity: 0.65;
  pointer-events: none;
}

.rsvp-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-primary-contrast);
}

.rsvp-copy p {
  color: var(--color-primary-contrast);
}

.rsvp-note {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.rsvp-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.rsvp-form {
  background: #ffffff;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 40px rgba(17, 36, 32, 0.18);
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
  padding-top: 10px;
}

label,
legend {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(20, 49, 44, 0.75);
}

input,
textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 49, 44, 0.18);
  background: rgba(255, 255, 255, 0.92);
  transition:
    border 200ms ease,
    box-shadow 200ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(199, 123, 88, 0.15);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.toggle {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2rem;
  align-items: center;
  font-weight: 100;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text);
}

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-feedback.error {
  color: #b5524c;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.footer-signature {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1rem, 2vw, 3.2rem);
  line-height: 3;
  color: var(--color-primary-contrast);
}

.floating-rsvp {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(20, 49, 44, 0.3);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
  z-index: 950;
}

.floating-rsvp.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.floating-rsvp:hover,
.floating-rsvp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(20, 49, 44, 0.35);
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.9) brightness(0.55);
}

.overlay-gradient {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 49, 44, 0.6) 0%,
      rgba(20, 49, 44, 0.25) 40%,
      rgba(20, 49, 44, 0.6) 100%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(199, 123, 88, 0.28),
      transparent 60%
    );
  z-index: -1;
  pointer-events: none;
}

[data-observe] {
  opacity: 0;
  transform: translate3d(
    var(--observe-offset-x, 0),
    var(--observe-offset-y, 35px),
    0
  );
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-observe].is-visible {
  opacity: 1;
  --observe-offset-y: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .scroll-line {
    animation: none;
  }

  [data-observe] {
    transition: none;
    opacity: 1 !important;
    --observe-offset-y: 0 !important;
  }
}

@media (max-width: 1024px) {
  .container.split {
    grid-template-columns: 1fr;
  }

  .details {
    margin-top: -2rem;
  }

  .schedule-day li {
    grid-template-columns: 1fr;
  }

  .dress-guidelines {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main {
    overflow-x: clip;
  }

  .container,
  .container.narrow {
    width: calc(100% - 2rem);
    max-width: none;
    margin-inline: auto;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .hero .container {
    gap: 3rem;
  }

  .hero h1 {
    margin-bottom: 0.8rem;
    width: 100%;
    font-size: clamp(2.2rem, 10vw, 3rem);
    gap: 2.2rem;
  }

  .hero h1 .script {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.35;
    padding-inline: 0.1em;
    white-space: nowrap;
  }

  .hero-date {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  .details-card,
  .rsvp-form {
    padding: 1.8rem;
  }

  .schedule-day {
    padding: 1.6rem;
  }

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

  .dress-grid {
    grid-template-columns: repeat(5, minmax(40px, 1fr));
  }

  .floating-rsvp {
    right: 1rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .button {
    padding: 0.7rem 1.4rem;
  }
}

@media (max-width: 560px) {
  .hero-date {
    letter-spacing: 0.18em;
  }

  .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .dress-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-grid {
    padding: 1.1rem;
    gap: 0.4rem;
  }

  .calendar-cell {
    min-height: 2.2rem;
    font-size: 0.85rem;
  }

  .calendar-cell--label {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 3rem);
  }

  .hero-date {
    padding: 0.6rem 1.2rem;
  }

  .floating-rsvp {
    padding: 0.7rem 1.2rem;
    letter-spacing: 0.14em;
  }
}

@media (max-height: 720px) {
  .hero {
    padding-bottom: 7rem;
  }
}
