/* Fix color overrides from bundled Tailwind export */
.text-dusty-rose {
  color: hsl(var(--dusty-rose));
}

.text-gold-dark\/80 {
  color: hsl(var(--gold) / 0.8);
}

.text-gold\/40 {
  color: hsl(var(--gold) / 0.4);
}

/* Scroll reveal + toast + form helpers */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Keep Our Story icons inline (bundle forces svg { display: block }) */
#our-story .story-icon {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.2em;
  vertical-align: -0.12em;
  color: hsl(var(--dusty-rose));
  flex-shrink: 0;
}

.hero-overlay-text {
  mix-blend-mode: multiply;
}

.intro-text .intro-text-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}

.intro-text.visible .intro-text-line {
  opacity: 1;
  transform: translateY(0);
}

.intro-text.visible .intro-text-date {
  transition-delay: 0.6s;
}

.hero-overlay-text p:first-child {
  color: rgba(75, 88, 82, 0.85);
}

.hero-overlay-text p:last-child,
.hero-overlay-text .hero-date {
  color: rgba(90, 104, 97, 0.8);
}

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.875rem 1.25rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: hsl(143, 85%, 96%);
  border: 1px solid hsl(145, 92%, 91%);
  color: hsl(140, 100%, 27%);
}

.toast-error {
  background: hsl(359, 100%, 97%);
  border: 1px solid hsl(359, 100%, 94%);
  color: hsl(360, 100%, 45%);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input[type='radio'] {
  margin-top: 0.125rem;
  accent-color: hsl(var(--sage-dark));
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid hsl(var(--sage-dark) / 0.3);
  padding-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--sage-dark) / 0.7);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.action-link:hover {
  color: hsl(var(--sage-dark));
  border-color: hsl(var(--sage-dark));
}

.action-link svg {
  width: 0.625rem;
  height: 0.625rem;
}

.action-link-lg svg {
  width: 0.875rem;
  height: 0.875rem;
}

.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid hsl(var(--sage-dark) / 0.25);
  border-radius: 9999px;
  background-color: hsl(var(--ivory) / 0.92);
  color: hsl(var(--sage-dark));
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px hsl(30 24% 20% / 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.music-toggle:hover {
  background-color: hsl(var(--ivory));
  border-color: hsl(var(--sage-dark) / 0.45);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle .music-icon-off {
  display: none;
}

.music-toggle.is-muted .music-icon-on {
  display: none;
}

.music-toggle.is-muted .music-icon-off {
  display: block;
}

.intro-section.started {
  cursor: default;
}

/* Phones clear the video poster on play() before the first frame is painted.
   The section fill is ivory, so that gap flashes white. */
#intro-section {
  background-color: #7f8b74;
  background-image: url('../assets/intro-doors.png');
  background-size: cover;
  background-position: center;
}

#intro-video,
#intro-poster {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

#intro-video {
  background: url('../assets/intro-doors.png') center / cover no-repeat;
}

#intro-poster {
  z-index: 2;
}

#intro-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-text {
  z-index: 3;
}

.intro-play-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 20;
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.42em;
  /* color: hsl(var(--sage-dark) / 0.75); */
  color: white;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: intro-tap-pulse 2.4s ease-in-out infinite;
  font-size: 17px;
}

.intro-play-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes intro-tap-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.timeline-line {
  background-image: repeating-linear-gradient(
    to bottom,
    hsl(var(--olive)) 0px,
    hsl(var(--olive)) 4px,
    transparent 4px,
    transparent 12px
  );
}

/* Centered phone-column invitation shell */
body {
  background-color: hsl(var(--ivory));
}

.site-shell {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 0 40px hsl(30 24% 20% / 0.06);
}

@media (max-width: 560px) {
  .site-shell {
    box-shadow: none;
  }
}

/* Countdown: fit three medallions inside the phone column */
#countdown .relative.aspect-square {
  width: min(28vw, 140px);
  max-width: 140px;
}

@media (min-width: 480px) {
  #countdown .relative.aspect-square {
    width: min(26vw, 160px);
    max-width: 160px;
  }
}

#countdown .flex.w-full.items-start.justify-center > div {
  margin-inline: -0.25rem;
}

@media (min-width: 480px) {
  #countdown .flex.w-full.items-start.justify-center > div {
    margin-inline: -0.5rem;
  }
}

#countdown {
  min-height: auto;
  padding-bottom: 8rem;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  #countdown {
    padding-bottom: 10rem;
    padding-top: 5rem;
  }
}

/* Ceremony garland: keep vines inside the invitation column */
#wedding-events .absolute.top-full {
  width: 100%;
  max-width: 100%;
}

#garland {
  width: 100%;
  max-width: 100%;
}

/* RSVP: keep decorative topiary and form inside shell */
#rsvp {
  overflow-x: hidden;
}

#rsvp form input,
#rsvp form textarea,
#rsvp form button[type='submit'] {
  max-width: 100%;
  box-sizing: border-box;
}

.guest-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid hsl(var(--sage-dark) / 0.22);
  border-radius: 0.75rem;
  background: hsl(40 45% 98%);
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  color: hsl(var(--sage-dark));
  font-family: var(--font-body);
}

.guest-table th,
.guest-table td {
  padding: 0.85rem 0.65rem;
  vertical-align: top;
}

.guest-table th {
  background: hsl(var(--sage-dark) / 0.1);
  border-bottom: 1px solid hsl(var(--sage-dark) / 0.22);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--sage-dark));
}

.guest-table td {
  border-bottom: 1px solid hsl(var(--sage-dark) / 0.12);
  font-size: 0.95rem;
  line-height: 1.4;
}

.guest-table tbody tr:nth-child(even) td {
  background: hsl(var(--sage-dark) / 0.04);
}

.guest-table tbody tr:last-child td {
  border-bottom: 0;
}

.guest-name {
  width: 30%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.guest-count {
  width: 14%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.guest-note {
  width: 34%;
  font-style: italic;
  overflow-wrap: break-word;
  color: hsl(var(--sage-dark) / 0.88);
}

.guest-when {
  width: 22%;
  font-size: 0.75rem;
  line-height: 1.35;
  color: hsl(var(--sage-dark) / 0.72);
}

.guest-when span {
  display: block;
}

.guest-table th:nth-child(2) {
  text-align: center;
}

.guest-empty,
.guest-error {
  text-align: center;
  color: hsl(var(--sage-dark) / 0.75);
  font-family: var(--font-body);
  font-style: italic;
}

@media (max-width: 390px) {
  #rsvp .max-w-xl {
    padding-inline: 0.25rem;
  }
}
