:root {
  --bg: #ebe6e7;
  --text: #272c2c;
  --accent: #cbcbcd;
  --light: #d3ccd0;
  --rule: #33312f;

  --font-display: "Montserrat", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background: linear-gradient(120deg, #f3f3f3 0%, #f3efef 45%, #f5f2f2 100%);
  display: flex;
  justify-content: center;
}

.animate-on-load,
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

body.js .animate-on-load {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s ease forwards;
  animation-delay: var(--stagger, 0s);
}

body.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

body.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

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

main.page {
  --page-inline-padding: 24px;
  width: min(360px, 100vw);
  background-color: var(--bg);
  padding: 32px var(--page-inline-padding) 48px;
  display: flex;
  flex-direction: column;
  row-gap: 56px;
  position: relative;
}

section {
  text-align: center;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__figure {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hero__names {
  display: flex;
  justify-content: center;
  gap: 28px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  margin-top: 20px;
}

.hero__date {
  margin: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-hint {
  margin: 8px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  display: flex;
  justify-content: center;
}

.scroll-hint:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 4px;
}

.scroll-hint__track {
  position: relative;
  display: block;
  width: 48px;
  height: 108px;
}

.scroll-hint__line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: var(--rule);
  border-radius: 2px;
  display: none;
}

.scroll-hint__ring {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 48px;
  border: 2px solid var(--rule);
  border-radius: 10%;
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-hint__dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rule);
  animation: scroll-dot-cycle 1.9s ease-in-out infinite;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-hint:hover .scroll-hint__ring,
.scroll-hint:focus-visible .scroll-hint__ring {
  transform: translateX(-50%) scale(1.08);
  border-color: var(--light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.scroll-hint:hover .scroll-hint__dot,
.scroll-hint:focus-visible .scroll-hint__dot {
  animation: none;
  transform: translate(-50%, 84px);
  background: var(--light);
}

.intro-nav {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  padding-right: 16px;
  margin-inline: calc(-1 * var(--page-inline-padding));
  margin-bottom: 16px;
  border-top: 1px solid var(--accent);
}

.monogram {
  font-size: 1.8rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin: 0;
}

.introduction h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 12px 0 16px;
}

.intro-text {
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  margin-top: 12px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  align-self: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
}

.section-heading .rule {
  align-self: center;
  width: 56px;
  height: 2px;
  background-color: var(--rule);
}

.story {
  display: flex;
  flex-direction: column;
  position: relative;
}

.bloc {
  align-self: flex-end;
  position: absolute;
  bottom: 60px;
  height: 120px;
  width: 60%;
  background-color: var(--accent);
}

.story-ctn {
  position: relative;
  z-index: 1001;
  text-align: start;
}

.story-ctn h2 {
  text-transform: uppercase;
  align-self: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
}

.story-ctn p {
  text-transform: initial;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: normal;
}

.program {
  text-align: left;
  padding: 0 16px;
}

.program .section-heading {
  align-items: flex-start;
}

.program .venue {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.program .venue__name {
  font-weight: 500;
  margin: 0 0 4px;
}

.program .venue__details {
  margin: 0;
}

.program a {
  color: inherit;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.timeline div {
  border-left: 2px solid var(--rule);
  padding-left: 16px;
}

.timeline dt {
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.timeline dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-inline: calc(-1 * var(--page-inline-padding));
  padding-block: 18px;
  padding-inline: var(--page-inline-padding);
  text-transform: uppercase;
  font-size: 0.8rem;
  background-color: var(--light);
}

.countdown__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.faq {
  text-align: left;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.faq__icon {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}


.faq__answer {
  margin: 0;
  padding-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(29, 28, 28, 0.82);
}

body.js .faq__answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.44s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.28s ease,
    padding 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: max-height, opacity, padding;
}

body.js .faq__question[aria-expanded="true"]+.faq__answer {
  opacity: 1;
  padding-bottom: 14px;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  body.js .faq__answer {
    transition-duration: 0.01ms;
  }
}

.rsvp {
  display: flex;
  justify-content: center;
}

.rsvp__card {
  background-color: var(--accent);
  padding: 28px 20px;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 16px;
}

.rsvp__card h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}

.rsvp__button {
  display: inline-block;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp__button:hover,
.rsvp__button:focus-visible {
  background-color: var(--rule);
  color: var(--bg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.rsvp__button:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

.closing {
  margin-top: 56px;
  text-align: center;
  display: grid;
  gap: 16px;
}

.closing figure {
  margin: 0;
}

.closing__names {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1.1rem;
  margin: 0;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-dot-cycle {
  0% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 86px);
  }

  100% {
    transform: translate(-50%, 0);
  }
}

@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;
  }
}

@media (min-width: 768px) {

  main.page {
    --page-inline-padding: 64px;
    width: min(640px, 90vw);
    padding: 48px var(--page-inline-padding) 72px;
    row-gap: 72px;
  }

  .program {
    padding: 0 32px;
  }

  .countdown {
    font-size: 0.9rem;
    padding-block: 24px;
  }

  .countdown__value {
    font-size: 2.4rem;
  }
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: 24px 20px;
  background-color: var(--accent);
  border: 1px solid rgba(39, 44, 44, 0.1);
  text-align: left;
}

.form__group {
  display: grid;
  gap: 8px;
}

.form__group label,
.form__group legend {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

.form__group input[type="text"],
.form__group input[type="email"],
.form__group textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(39, 44, 44, 0.25);
  background-color: var(--bg);
  color: var(--text);
}

.form__group input[type="text"]:focus,
.form__group input[type="email"]:focus,
.form__group textarea:focus {
  outline: 2px solid var(--rule);
  outline-offset: 2px;
}

.form__group textarea {
  resize: vertical;
  min-height: 108px;
}

fieldset.form__group {
  border: 1px solid rgba(39, 44, 44, 0.16);
  padding: 16px;
}

fieldset.form__group legend {
  padding: 0 6px;
}

.form__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.form__choice input[type="radio"] {
  accent-color: var(--rule);
}

.rsvp-submit {
  justify-self: start;
  padding: 12px 28px;
  border: none;
  background-color: var(--rule);
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
  background-color: #1d2121;
  color: var(--bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.rsvp-submit:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

.site-nav-button {
  width: 60px;
  height: 36px;
  border-radius: 2px;
  border: none;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
}

.site-nav-button:hover,
.site-nav-button:focus-visible {
  background-color: rgba(39, 44, 44, 0.12);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.site-nav-button:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

.site-nav-button__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 14px;
}

.site-nav-button__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--rule);
  border-radius: 1px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: center;
  z-index: 1000;
}

body.js .modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

body.js .modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f3f3f3 0%, #f3efef 45%, #f5f2f2 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.modal.is-open .modal__overlay {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  width: 100%;
  max-height: none;
  padding: 32px clamp(24px, 6vw, 64px) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: none;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.modal.is-open .modal__dialog {
  transform: translateX(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal__header h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(39, 44, 44, 0.2);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.modal__close span {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--rule);
}

.modal__close span:first-child {
  transform: rotate(45deg);
}

.modal__close span:last-child {
  transform: rotate(-45deg);
}

.modal__close:hover,
.modal__close:focus-visible {
  background-color: rgba(39, 44, 44, 0.08);
}

.modal__close:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 2px;
}

.modal__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal__nav a,
.modal__nav button {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  border: 1px solid rgba(39, 44, 44, 0.2);
  padding: 8px 16px;
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.modal__nav a:hover,
.modal__nav a:focus-visible,
.modal__nav button:hover,
.modal__nav button:focus-visible {
  background-color: var(--rule);
  color: var(--bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.modal__nav button[aria-pressed="true"] {
  background-color: var(--rule);
  color: var(--bg);
}

.modal__panels {
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 18px;
  flex: 1;
}

.modal__panel {
  text-align: left;
}

.modal__panel[data-modal-panel="default"] {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(39, 44, 44, 0.72);
}

.modal__panel h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.menu-section {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-section h4 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.menu-section p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.menu-list__separator {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(39, 44, 44, 0.6);
  justify-self: center;
}

.menu-section__note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(39, 44, 44, 0.85);
}

@media (prefers-reduced-motion: reduce) {

  body.js .modal,
  body.js .modal.is-open {
    transition: none;
  }

  .modal__overlay,
  body.js .modal.is-open .modal__overlay {
    transition: none;
  }

  .modal__dialog,
  body.js .modal.is-open .modal__dialog {
    transition: none;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .rsvp-form {
    padding: 32px 28px;
  }

  .modal__dialog {
    --page-inline-padding: 64px;
    width: min(640px, 90vw);
    padding: 48px var(--page-inline-padding) 72px;
    row-gap: 72px;
    gap: 24px;
  }

  .modal__nav a,
  .modal__nav button {
    font-size: 0.75rem;
    padding: 10px 20px;
  }
}