:root {
  color-scheme: only dark;
  --header-height: 0px;
  --alt-background: rgba(255, 255, 255, 0.12);
  --content-max-width: 600px;
  --page-background: #4f752a;
  --text-color: #ffffff;
  --accent-color: #ffffff;
  --card-background: rgba(255, 255, 255, 0.16);
  --border-color: rgba(255, 255, 255, 0.5);
  --overlay-background: rgba(79, 117, 42, 0.96);
  --input-border: rgba(255, 255, 255, 0.75);
  --input-background: #4f752a;
  --input-text: #ffffff;
  --map-container-max-width: 960px;
}

html {
  scroll-snap-type: y mandatory;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Stack Sans Headline', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background-color: var(--page-background);
  color: var(--text-color);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body.nav-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 1.5rem 0 0.5rem;
  position: relative;
  z-index: 200;
}

.page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-nav {
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: 0 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  background: transparent;
  color: var(--accent-color);
  cursor: pointer;
  transition: color 0.3s ease;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.nav-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -0.45rem;
  left: 0;
}

.nav-toggle-icon::after {
  position: absolute;
  bottom: -0.45rem;
  left: 0;
}

.site-nav.open .nav-toggle-icon {
  background: transparent;
}

.site-nav.open .nav-toggle-icon::before {
  transform: translateY(0.45rem) rotate(45deg);
}

.site-nav.open .nav-toggle-icon::after {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: fixed;
  inset: 0;
  padding: 5.5rem 1.5rem 2.5rem;
  background: var(--overlay-background);
  align-items: flex-end;
  text-align: right;
  font-size: 1.25rem;
  overflow-y: auto;
  justify-content: flex-start;
}

.site-nav.open .nav-links {
  display: flex;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

.nav-links a:focus,
.nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.section {
  width: 100%;
  padding: 3.5rem 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
}

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

.section-content {
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

#schedule .section-content {
  align-items: center;
  text-align: center;
}

#guide .section-content {
  width: min(100%, var(--map-container-max-width));
}

.section-content h2 {
  margin: 0;
  font-size: 1.5rem;
}

.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 1.5rem 4rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: min(100%, var(--map-container-max-width));
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.hero-names {
  margin: 0;
  font-size: clamp(2.4375rem, 7.5vw, 3.75rem);
  line-height: 1.1;
  text-align: center;
}

.hero-date {
  margin: 0;
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-location {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
}

.primary {
  background: #ffffff;
  color: #4f752a;
  border: none;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Stack Sans Headline', system-ui, sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.primary:focus,
.primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Stack Sans Headline', system-ui, sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.secondary:focus,
.secondary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.scroll-invite {
  margin-top: 2.5rem;
  font-size: 2.25rem;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  animation: scroll-cue 2.5s ease-in-out infinite;
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  z-index: 1;
}

@keyframes scroll-cue {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (min-width: 768px) {
  .hero-image {
    object-position: center;
  }
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(100%, 520px);
  text-align: left;
  align-self: center;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(4.25rem, auto) 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline time {
  font-weight: bold;
  letter-spacing: 0.05em;
  justify-self: end;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
}

.event-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.event-location {
  font-size: 0.95rem;
  line-height: 1.4;
}

.map-section {
  padding-top: 2.5rem;
}

.map-section .section-content {
  gap: 1.5rem;
}

.map-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.map-replay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-replay-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.map-replay-button:disabled {
  cursor: default;
  opacity: 0.5;
  transform: none;
}

.map-replay-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.map-replay-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.map-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0 0 1.75rem;
}

.map {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.mapboxgl-ctrl-group {
  border-radius: 0;
  box-shadow: none;
}

.mapboxgl-ctrl button {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 0;
}

.section-title--center {
  text-align: center;
  align-self: center;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0.75rem 0 0.625rem;
  scroll-snap-type: x mandatory;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Stack Sans Headline', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  transition: background 0.3s ease, border-color 0.3s ease;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.guide-tab.is-active,
.guide-tab[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.guide-tab:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.guide-panel {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.guide-panel[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .map-container {
    width: min(100%, var(--map-container-max-width));
    padding: 0 1.5rem 2.25rem;
  }

  .map {
    height: 420px;
  }
}

.guide-intro {
  margin: 0 auto;
  width: min(100%, 860px);
  max-width: calc(100% - 2.5rem);
  padding: 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.guide-carousel {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  padding: 0 0 2.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  --carousel-gap: 1.5rem;
  --carousel-media-height: 360px;
  --carousel-control-inset: 1rem;
}

.carousel-track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.45s ease;
  will-change: transform;
  touch-action: pan-y;
  gap: var(--carousel-gap);
}

.guide-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3);
  max-width: calc((100% - (var(--carousel-gap) * 2)) / 3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
  position: relative;
}

.guide-card__media {
  margin: 0;
  width: 100%;
  height: var(--carousel-media-height);
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  touch-action: pan-y;
}

.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.guide-card__body {
  width: 100%;
  background: rgba(31, 52, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 1.125rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(6px);
}

.guide-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.guide-card__body p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.guide-card__links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.guide-card__links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.guide-card__links .material-icons {
  font-size: 1.35rem;
}

.carousel-control {
  position: absolute;
  top: calc(var(--carousel-media-height) / 2);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #1d3412;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.carousel-control:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.45);
}

.carousel-control--prev {
  left: var(--carousel-control-inset);
}

.carousel-control--next {
  right: var(--carousel-control-inset);
}

.carousel-control[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot[aria-current='true'] {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}

.carousel-dot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .site-header {
    padding: 0;
  }

  .site-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: none;
  }

  .nav-toggle {
    top: 1.25rem;
    right: 1.25rem;
  }

  .hero-section {
    padding-top: 6rem;
  }

  .nav-links {
    gap: 1.75rem;
  }

  .hero-image {
    object-position: center;
  }

  .guide-intro {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  .guide-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100vw;
    margin: 0.75rem calc(50% - 50vw) 0.625rem;
    padding: 0 1.5rem;
    gap: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .guide-carousel {
    width: 100vw;
    margin: 1rem calc(50% - 50vw) 0;
    padding: 3.5rem 0 3.25rem;
    --carousel-media-height: min(70vh, 420px);
    --carousel-control-inset: 0.75rem;
  }

  .guide-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .guide-card__media {
    width: 100%;
    height: var(--carousel-media-height);
    border-radius: 0;
  }

  .guide-card__body {
    width: 100%;
    border-radius: 0;
    padding: 0.95rem 1.125rem;
  }

  .carousel-control {
    top: calc(3.5rem + (var(--carousel-media-height) / 2));
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .guide-carousel {
    padding: 0 0 2.5rem;
    --carousel-control-inset: 0.5rem;
  }
}

@media (min-width: 768px) {
  .guide-card__body {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item button,
.accordion-panel,
.accordion-panel h3 {
  font-family: inherit;
}

.accordion-item button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  color: var(--text-color);
}

.accordion-item button::after {
  content: '+';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-item button[aria-expanded='true']::after {
  transform: rotate(45deg);
}

.accordion-panel {
  border: 1px solid var(--border-color);
  border-top: none;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.accordion-panel.open {
  padding: 1rem;
}

.site-footer {
  width: min(100%, var(--content-max-width));
  margin: 0 auto 2rem;
  padding: 2rem 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(79, 117, 42, 0.6);
}

.modal-content {
  position: relative;
  width: min(94vw, 500px);
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  backdrop-filter: blur(12px);
  color: var(--text-color);
  border-radius: 24px;
  overflow: hidden;
}

.modal.open .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.rsvp-page .section-content {
  gap: 2rem;
}

.rsvp-panel {
  width: min(100%, 640px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-color);
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rsvp-body {
  padding: 2rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.rsvp-access {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rsvp-access-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.rsvp-access-title {
  margin: 0;
  font-size: 1.05rem;
}

.rsvp-access-intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

#rsvp-access-feedback {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rsvp-steps {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rsvp-steps[hidden] {
  display: none;
}

.rsvp-steps::before {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.rsvp-step-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  gap: 0.35rem;
  padding: 0;
  min-height: 1.6rem;
  font-size: 0.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

.rsvp-step-indicator::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.rsvp-step-label {
  display: block;
  width: 100%;
  text-align: center;
}

.rsvp-step-indicator:first-child {
  align-items: flex-start;
}

.rsvp-step-indicator:last-child {
  align-items: flex-end;
}

.rsvp-step-indicator:first-child .rsvp-step-label {
  text-align: left;
}

.rsvp-step-indicator:last-child .rsvp-step-label {
  text-align: right;
}

.rsvp-step-indicator.is-active {
  color: #ffffff;
}

.rsvp-step-indicator.is-active::before {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.85);
}

.rsvp-step-indicator.is-complete {
  color: #ffffff;
}

.rsvp-step-indicator.is-complete::before {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 600px) {
  .rsvp-step-indicator {
    min-width: 1.8rem;
    min-height: 1.8rem;
  }

  .rsvp-step-indicator.is-active {
    min-width: 2rem;
  }
}

.rsvp-step-title {
  margin: 0;
  font-size: 1.2rem;
}

.rsvp-step-intro {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.rsvp-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-rsvp-step][hidden] {
  display: none;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field[hidden] {
  display: none;
}

.form-field label {
  font-size: 0.95rem;
}

.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.rsvp-actions [data-step-next],
.rsvp-actions [data-step-submit] {
  margin-left: auto;
}

#rsvp-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--input-background);
  color: var(--input-text);
  border-radius: 12px;
  font-family: 'Stack Sans Headline', system-ui, sans-serif;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
  resize: vertical;
  min-height: 4.5rem;
}

#rsvp-form .form-control:focus {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

#rsvp-form fieldset {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 0;
  background: transparent;
}

#rsvp-form fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.guest-response {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.guest-response.collapsed {
  background: transparent;
  border-color: transparent;
}

.guest-response__header {
  margin: 0;
}

.guest-title {
  margin: 0;
}

.guest-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  color: inherit;
  border: none;
  padding: 0.25rem 0.25rem 0;
  cursor: pointer;
  text-align: left;
}

.guest-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
  border-radius: 12px;
}

.guest-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.guest-toggle-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  transition: background 0.3s ease;
}

.guest-toggle:hover .guest-toggle-icon,
.guest-toggle:focus-visible .guest-toggle-icon {
  background: rgba(255, 255, 255, 0.28);
}

.guest-toggle-icon::before,
.guest-toggle-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.guest-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.guest-toggle-icon::after {
  width: 2px;
  height: 12px;
}

.guest-response:not(.collapsed) .guest-toggle-icon::after {
  transform: scaleY(0);
}

.guest-response__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rsvp-email {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

#rsvp-feedback {
  margin: 0;
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .modal {
    align-items: stretch;
  }

  .modal-content {
    width: 100vw;
    max-width: none;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .modal-body {
    padding: 1.5rem 1.25rem calc(env(safe-area-inset-bottom) + 1.75rem);
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .rsvp-panel {
    border-radius: 20px;
  }

  .rsvp-body {
    padding: 1.5rem 1.25rem 0.75rem;
  }

  #rsvp-form {
    gap: 1.25rem;
  }

  #rsvp-form fieldset {
    padding: 0.75rem;
  }

  textarea.form-control {
    min-height: 4.5rem;
  }

  .guest-toggle {
    font-size: 1rem;
    padding: 0.5rem 0.25rem 0.25rem;
  }
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsvp-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding-top: 2rem;
  }

  .site-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-bottom: none;
    padding-bottom: 0;
  }

  .section-content {
    align-items: flex-start;
    text-align: left;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .timeline li {
    grid-template-columns: 6rem 1fr;
  }

  #schedule .section-content {
    align-items: center;
    text-align: center;
  }

  .rsvp-panel {
    max-height: calc(100dvh - var(--header-height) - 7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

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