@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap");

:root {
  --color-bg: #F7F3EC;
  --color-surface: #F7F3EC;
  --color-accent: #76528F;
  --color-accent-soft: rgba(118, 82, 143, 0.14);
  --color-text: #111111;
  --color-muted: rgba(17, 17, 17, 0.68);
  --color-border: #B7B7B7;
  --nav-height: 72px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 243, 236, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--nav-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.site-brand {
  margin: 0;
  font-family: "Edwardian Script ITC", "Palatino Linotype", "Brush Script MT", cursive;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-nav a {
  color: var(--color-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--color-accent-soft);
  border-color: var(--color-border);
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 20px 64px;
}

.page-title {
  margin: 0 0 12px;
  font-size: 2.3rem;
}

.page-subtitle {
  margin: 0 0 24px;
  color: var(--color-muted);
  max-width: 70ch;
  line-height: 1.6;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.login-wrap {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.login-form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(247, 243, 236, 0.94);
}

button {
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #F7F3EC;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.07);
}

.button-secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(247, 243, 236, 0.96);
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
}

.button-secondary:hover,
.button-link:hover {
  background: var(--color-accent-soft);
  filter: none;
}

.login-note,
.login-error {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.login-note {
  color: var(--color-muted);
}

.login-error {
  color: #76528F;
}

.landing-shell {
  min-height: calc(100vh - var(--nav-height));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 42px;
}

.landing-hero {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
}

.landing-title {
  margin: 0;
  text-align: center;
  font-family: "Edwardian Script ITC", "Palatino Linotype", "Brush Script MT", cursive;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
}

.landing-carousel {
  position: relative;
  --carousel-gap: clamp(14px, 3vw, 32px);
  --carousel-side-width: min(24vw, 300px);
  --carousel-center-width: min(34vw, 430px);
  --carousel-center-height: min(46vw, 582px);
  --carousel-window-width: calc((var(--carousel-side-width) * 2) + var(--carousel-center-width) + (var(--carousel-gap) * 2));
  padding: 0 52px;
}

.landing-carousel-viewport {
  width: var(--carousel-window-width);
  max-width: 100%;
  height: var(--carousel-center-height);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.landing-carousel-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--carousel-gap);
  width: max-content;
  height: var(--carousel-center-height);
  will-change: transform;
  transform: translateZ(0);
}

.landing-carousel-track.is-animating {
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.landing-photo {
  flex: 0 0 var(--carousel-side-width);
  aspect-ratio: 0.72;
  height: auto;
  margin: 0;
  border: 3px solid #111111;
  border-radius: 0;
  overflow: hidden;
  background: rgba(183, 183, 183, 0.22);
  box-shadow:
    0 16px 28px rgba(17, 17, 17, 0.16),
    inset 0 0 0 1px rgba(247, 243, 236, 0.62);
  opacity: 0;
  transform: scale(0.2);
  animation: landingPhotoPop 520ms cubic-bezier(0.2, 0.9, 0.24, 1.18) forwards;
  transition: flex-basis 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
  contain: layout paint;
}

.landing-photo--left {
  animation-delay: 140ms;
}

.landing-photo--right {
  animation-delay: 360ms;
}

.landing-photo--center {
  flex-basis: var(--carousel-center-width);
  aspect-ratio: 0.74;
  animation-delay: 620ms;
}

.landing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

@keyframes landingPhotoPop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  72% {
    opacity: 1;
    transform: scale(1.045);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.landing-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font-size: 3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  opacity: 0;
  animation: landingCarouselButtonIn 360ms ease 1180ms forwards;
}

.landing-carousel-btn:disabled {
  cursor: default;
  opacity: 0.48;
}

.landing-carousel-btn--prev {
  left: 4px;
}

.landing-carousel-btn--next {
  right: 4px;
}

.landing-carousel.is-pop-complete .landing-photo {
  opacity: 1;
  transform: scale(1);
  animation: none;
}

@keyframes landingCarouselButtonIn {
  100% {
    opacity: 1;
  }
}

.landing-countdown {
  text-align: center;
  padding: 0;
  color: var(--color-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  animation: landingCountdownPulse 760ms ease-out 1080ms both;
}

@keyframes landingCountdownPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.landing-countdown__meta {
  display: grid;
  gap: 4px;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-countdown__meta p {
  margin: 0;
}

.landing-countdown__value {
  margin: 4px 0 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-countdown__message {
  margin: 6px 0 0;
  min-height: 1.2em;
  font-weight: 600;
  color: var(--color-accent);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  justify-content: center;
}

.site-footer__symbol {
  width: clamp(172px, 24vw, 264px);
  height: auto;
  display: block;
}

.rsvp-shell {
  max-width: 1100px;
}

.rsvp-hero {
  margin-bottom: 24px;
}

.rsvp-panel,
.rsvp-home,
.rsvp-flow,
.rsvp-confirmation,
.rsvp-step-form,
.rsvp-progress,
.rsvp-summary {
  display: grid;
  gap: 16px;
}

.rsvp-home {
  max-width: 560px;
}

.rsvp-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(183, 183, 183, 0.32);
}

.rsvp-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #B7B7B7, #76528F);
  transition: width 0.2s ease;
}

.rsvp-choice-group {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 10px;
}

.rsvp-choice-group legend {
  margin-bottom: 4px;
  font-weight: 600;
}

.rsvp-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(247, 243, 236, 0.78);
}

.rsvp-choice input {
  margin: 0;
}

.rsvp-dish-wrap {
  max-width: 320px;
  display: grid;
  gap: 10px;
}

.rsvp-actions,
.rsvp-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rsvp-test-note,
.rsvp-admin-summary {
  margin: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.rsvp-summary-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(247, 243, 236, 0.75);
}

.rsvp-summary-card h4,
.rsvp-summary-card p {
  margin: 0;
}

.rsvp-summary-card p + p {
  margin-top: 8px;
}

.rsvp-table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.rsvp-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background: var(--color-surface);
}

.rsvp-table th,
.rsvp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.93rem;
}

.rsvp-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(183, 183, 183, 0.24);
}

.rsvp-muted {
  color: var(--color-muted);
}

.bride-groom-shell {
  max-width: 1540px;
}

.bride-groom-header {
  margin-bottom: 30px;
  text-align: center;
}

.bride-groom-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(500px, 1fr) minmax(250px, 340px);
  gap: 26px;
  align-items: start;
  min-height: 1400px;
}

.timeline-rail,
.timeline-cards,
.timeline-gallery {
  position: relative;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 132px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #B7B7B7, #76528F);
}

.timeline-year-label {
  position: absolute;
  left: 16px;
  transform: translateY(-50%);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.timeline-marker {
  position: absolute;
  left: 132px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #F7F3EC;
  background: #76528F;
  box-shadow: 0 0 0 3px rgba(118, 82, 143, 0.3);
  transform: translate(-50%, -50%);
}

.timeline-marker::after {
  content: attr(data-date);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.81rem;
  color: var(--color-muted);
}

.timeline-cards {
  position: relative;
}

.timeline-cards.timeline-cards--measure {
  position: static;
  display: grid;
  gap: 22px;
  padding: 130px 0 150px;
}

.timeline-cards.timeline-cards--measure .timeline-card {
  position: relative;
  transform: none;
}

.timeline-cards.timeline-cards--measure .timeline-card:hover {
  transform: none;
  box-shadow: none;
}

.timeline-card {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: block;
  border: 1px solid rgba(183, 183, 183, 0.72);
  border-radius: 16px;
  padding: 12px;
  background: rgba(247, 243, 236, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-card:hover {
  transform: translateY(calc(-50% - 4px));
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.15);
  border-color: rgba(118, 82, 143, 0.58);
}

.timeline-card__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
}

.timeline-card__content h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.timeline-card__date {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.timeline-card__description {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text);
}

.timeline-gallery {
  position: relative;
  pointer-events: none;
}

.timeline-gallery-item {
  position: absolute;
  width: clamp(122px, 13vw, 190px);
  margin: 0;
  border-radius: 14px;
  border: 2px solid rgba(247, 243, 236, 0.92);
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.22);
  background: rgba(183, 183, 183, 0.22);
  transform:
    translate(-50%, calc(-50% + var(--parallax-y, 0px)))
    rotate(var(--item-rotate, 0deg))
    scale(var(--item-scale, 1));
  transition: box-shadow 0.25s ease;
  will-change: transform;
}

.timeline-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(86%) sepia(18%);
}

.timeline-gallery-item.slower {
  width: clamp(132px, 14vw, 198px);
  z-index: 1;
}

.timeline-gallery-item.slower1 {
  width: clamp(126px, 13vw, 186px);
  z-index: 2;
}

.timeline-gallery-item.slower2 {
  width: clamp(140px, 15vw, 210px);
  z-index: 3;
}

.timeline-gallery-item.faster {
  width: clamp(118px, 12vw, 176px);
  z-index: 4;
}

.timeline-gallery-item.faster1 {
  width: clamp(112px, 11vw, 166px);
  z-index: 5;
}

.timeline-gallery-item.vertical img {
  aspect-ratio: 3 / 4.5;
}

.schedule-shell {
  max-width: var(--max-width);
  padding: 28px 20px 72px;
}

.schedule-journey {
  display: grid;
  gap: 22px;
}

.schedule-intro {
  max-width: 760px;
}

.schedule-intro .page-title {
  margin-bottom: 6px;
}

.schedule-intro .page-subtitle {
  margin: 0;
  max-width: 60ch;
}

.schedule-actions {
  margin-top: 12px;
}

.schedule-simple-btn {
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(247, 243, 236, 0.94);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.schedule-simple-btn:hover {
  background: var(--color-accent-soft);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  min-height: min(680px, calc(100vh - var(--nav-height) - 160px));
}

.schedule-timeline-frame,
.schedule-map-frame {
  min-height: 0;
  border: 3px solid #111111;
  background: rgba(247, 243, 236, 0.78);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.13);
}

.schedule-timeline-frame {
  overflow: hidden;
}

.schedule-steps {
  height: 100%;
  max-height: calc(100vh - var(--nav-height) - 160px);
  min-height: 520px;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  scrollbar-color: var(--color-accent) rgba(183, 183, 183, 0.32);
}

.schedule-step {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(247, 243, 236, 0.86);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-step:hover,
.schedule-step:focus,
.schedule-step.is-active {
  border-color: var(--color-accent);
  background: #fffaf2;
  box-shadow: inset 4px 0 0 var(--color-accent);
  outline: none;
}

.schedule-step.is-active {
  transform: translateX(3px);
}

.schedule-step__date {
  margin-bottom: 8px;
  color: var(--color-accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-step__body {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.schedule-step__number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #111111;
  border-radius: 999px;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-step h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.34rem;
  line-height: 1.1;
}

.schedule-step p {
  margin: 0;
  line-height: 1.4;
}

.schedule-step__time {
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.schedule-step__venue {
  margin-top: 6px;
  color: var(--color-accent);
  font-weight: 700;
}

.schedule-step__address {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.schedule-map-frame {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  height: min(680px, calc(100vh - var(--nav-height) - 52px));
  overflow: hidden;
}

.schedule-map-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247, 243, 236, 0.82);
  pointer-events: none;
  z-index: 405;
}

.schedule-map {
  width: 100%;
  height: 100%;
}

.schedule-popup {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 430;
  background: rgba(247, 243, 236, 0.97);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.18);
}

.schedule-popup h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
}

.schedule-popup p {
  margin: 0;
  line-height: 1.45;
}

.schedule-popup .schedule-popup__venue {
  margin-bottom: 5px;
  color: var(--color-accent);
  font-weight: 600;
}

.schedule-popup .schedule-popup__address {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.schedule-popup .schedule-popup__time {
  color: var(--color-text);
  font-size: 0.95rem;
}

.schedule-location-marker {
  border-radius: 999px;
  background: #111111;
  color: #F7F3EC;
  border: 2px solid #F7F3EC;
  box-shadow: 0 0 0 3px rgba(118, 82, 143, 0.28), 0 8px 18px rgba(17, 17, 17, 0.22);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-location-marker span {
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.schedule-location-marker--active {
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(118, 82, 143, 0.18), 0 12px 24px rgba(17, 17, 17, 0.3);
}

.schedule-location-marker--active span {
  font-size: 0.72rem;
}

.schedule-marker-tooltip {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.98);
  color: var(--color-text);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.16);
}

.schedule-marker-tooltip ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

.simple-schedule {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.simple-schedule h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.simple-schedule-list {
  margin: 14px 0 0;
  display: grid;
  gap: 18px;
}

.simple-schedule-group {
  background: rgba(247, 243, 236, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
}

.simple-schedule-group h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.simple-schedule-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.simple-schedule-group__list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.simple-schedule-group__list h5 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.simple-schedule-group__list p {
  margin: 0;
  line-height: 1.45;
  color: var(--color-text);
  font-size: 0.95rem;
}

.bridal-header {
  max-width: 1040px;
  min-height: calc(100vh - var(--nav-height) - 60px);
  margin: 0 auto 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bridal-roster {
  margin: 26px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.roster-column {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.roster-column h3 {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 1.08rem;
}

.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.roster-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-list img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: rgba(183, 183, 183, 0.22);
}

.roster-list span {
  font-size: 0.96rem;
}

.scroll-prompt {
  margin: 24px 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.l-cards {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.c-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  min-height: 560px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.c-card__description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.c-card__tagline {
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.c-card__title {
  margin: 0 0 12px;
  font-size: 2rem;
}

.c-card__role {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--color-accent);
}

.c-card__excerpt {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text);
}

.c-card__figure {
  position: relative;
  background: rgba(183, 183, 183, 0.22);
}

.c-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 236, 0.8);
  background: rgba(17, 17, 17, 0.45);
  color: #F7F3EC;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.carousel-btn--prev {
  left: 12px;
}

.carousel-btn--next {
  right: 12px;
}

.carousel-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.58);
  color: #F7F3EC;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 5px 10px;
}

.spacer {
  width: 100%;
  height: 30vh;
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .c-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .c-card__figure {
    min-height: 380px;
  }

  .bridal-header {
    min-height: auto;
  }

  .bridal-roster {
    grid-template-columns: 1fr;
  }

  .schedule-shell {
    padding-top: 22px;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .schedule-map-frame {
    position: relative;
    top: auto;
    height: 520px;
    order: -1;
  }

  .schedule-steps {
    max-height: none;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .simple-schedule {
    padding-top: 30px;
  }

  .bride-groom-timeline {
    grid-template-columns: 190px minmax(0, 1fr) minmax(190px, 240px);
    gap: 16px;
  }

  .timeline-spine,
  .timeline-marker {
    left: 106px;
  }

  .timeline-card {
    padding: 10px;
  }

  .timeline-marker::after {
    left: 20px;
    font-size: 0.74rem;
  }

  .timeline-gallery-item {
    width: clamp(94px, 15vw, 138px);
  }

  .landing-shell {
    min-height: calc(100vh - 98px);
    padding-top: 18px;
  }

  .landing-hero {
    gap: 12px;
  }

  .landing-carousel {
    --carousel-gap: 10px;
    --carousel-side-width: min(25vw, 220px);
    --carousel-center-width: min(36vw, 320px);
  }

  .rsvp-actions,
  .rsvp-admin-actions {
    flex-direction: column;
  }

  .rsvp-actions button,
  .rsvp-actions .button-link,
  .rsvp-admin-actions button,
  .rsvp-admin-actions .button-link {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 1.9rem;
  }

  .c-card__description {
    padding: 24px;
  }

  .c-card__title {
    font-size: 1.6rem;
  }

  .schedule-intro .page-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .schedule-map-frame {
    height: 430px;
  }

  .schedule-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .schedule-popup h3 {
    font-size: 1.12rem;
  }

  .schedule-step {
    padding: 14px;
  }

  .schedule-step__body {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  .landing-title {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .landing-carousel {
    --carousel-gap: 8px;
    --carousel-side-width: min(24vw, 110px);
    --carousel-center-width: min(42vw, 190px);
  }

  .landing-countdown {
    font-size: clamp(0.98rem, 4.2vw, 1.22rem);
  }
}

@media (max-width: 760px) {
  .bride-groom-timeline {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .timeline-rail,
  .timeline-gallery {
    display: none;
  }

  .timeline-cards {
    position: static;
    display: grid;
    gap: 14px;
    height: auto !important;
  }

  .timeline-cards.timeline-cards--measure {
    position: static;
    padding: 0;
  }

  .timeline-card {
    position: static;
    transform: none;
    grid-template-columns: 1fr;
    padding: 0;
    border: none;
    background: transparent;
  }

  .timeline-card:hover {
    transform: none;
    box-shadow: none;
  }
}
