/* ---------------------------------------------------------------
   Type scale
--------------------------------------------------------------- */
.eyebrow {
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--sage);
}

.heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--ink);
}

.body-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
}

.signature {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   Gate
--------------------------------------------------------------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  transition: opacity 1.1s ease;
}

#gate.is-opened {
  opacity: 0;
  pointer-events: none;
}

#gate .scene__content {
  margin-top: auto;
  margin-bottom: calc(var(--space-5) + var(--safe-bottom));
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero-scrim {
  background: linear-gradient(
    to top,
    rgba(20, 28, 18, 0.55) 0%,
    rgba(20, 28, 18, 0.28) 32%,
    rgba(20, 28, 18, 0) 62%
  );
}

#hero .scene__content {
  margin-top: auto;
  margin-bottom: calc(var(--space-5) + var(--safe-bottom));
  gap: 0.9rem;
}

.hero-kicker {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fdfbf6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
}

.hero-names span {
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.hero-names .hero-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: #fdfbf6;
  margin: 0.25em 0;
  opacity: 0.9;
}

.hero-date {
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #fdfbf6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 300px;
  color: #f3f6ef;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  margin-top: 0.4em;
}

.scroll-cue {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 20px;
  height: 20px;
  color: #ffffff;
  opacity: 0.8;
  animation: scroll-cue-bob 2.2s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------------------------------------------------------------
   Speaker toggle — persistent, fixed bottom-right
--------------------------------------------------------------- */
.audio-toggle {
  position: fixed;
  z-index: 40;
  right: calc(var(--safe-right) + var(--space-2));
  bottom: calc(var(--safe-bottom) + var(--space-2));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(59, 74, 52, 0.55);
  backdrop-filter: blur(4px);
  color: #f6f1e7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.audio-toggle.is-visible {
  opacity: 1;
  transform: scale(1);
}

.audio-toggle svg {
  width: 20px;
  height: 20px;
}

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

/* ---------------------------------------------------------------
   Invite letter
--------------------------------------------------------------- */
#invite-letter {
  background: var(--paper);
}

#invite-letter .letter-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

#invite-letter .letter-lines p {
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
}

#invite-letter .signature {
  margin-top: var(--space-2);
  font-size: 2.6rem;
}

/* ---------------------------------------------------------------
   Our story
--------------------------------------------------------------- */
.story-content {
  max-width: 340px;
}

.story-heading {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.25rem;
}

#our-story .story-intro {
  font-style: italic;
}

.story-rows {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.story-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-row--right {
  flex-direction: row-reverse;
}

.story-row--right .story-caption {
  text-align: right;
  align-items: flex-end;
}

.polaroid {
  flex-shrink: 0;
  width: 108px;
  background: #fdfcf8;
  padding: 7px 7px 22px;
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(59, 74, 52, 0.2);
}

.story-row:nth-child(1) .polaroid { transform: rotate(-4deg); }
.story-row:nth-child(2) .polaroid { transform: rotate(3deg); }
.story-row:nth-child(3) .polaroid { transform: rotate(-3deg); }

.polaroid__photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--sage-soft), var(--blossom));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.polaroid__photo svg {
  width: 32px;
  height: 32px;
}

.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.story-caption {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.story-caption .year {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
}

.story-caption .caption {
  font-style: italic;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   The day / countdown
--------------------------------------------------------------- */
.date-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.date-display .date-day {
  font-size: 5.5rem;
  font-weight: 600;
  color: var(--ink);
}

.date-display .date-month {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-top: 0.2em;
}

.date-display .date-year {
  font-size: 1.6rem;
  color: var(--sage);
}

.countdown {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.countdown[hidden] {
  display: none;
}

.countdown .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.countdown .value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.countdown .label {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--sage);
}

/* ---------------------------------------------------------------
   Schedule
--------------------------------------------------------------- */
.schedule-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-subheading {
  text-align: center;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
}

.day-schedule {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  background: rgba(246, 241, 231, 0.82);
  border-radius: 18px;
  box-shadow: 0 1px 24px rgba(59, 74, 52, 0.06);
}

.day-schedule li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.schedule-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.schedule-icon svg {
  width: 20px;
  height: 20px;
}

.schedule-text {
  display: flex;
  flex-direction: column;
}

.day-schedule .time {
  display: block;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.1rem;
}

.day-schedule .label {
  display: block;
  font-style: italic;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   Venue
--------------------------------------------------------------- */
.venue-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--ink);
}

#venue .scene__content {
  background: rgba(246, 241, 231, 0.82);
  border-radius: 18px;
  padding: var(--space-3);
  box-shadow: 0 1px 24px rgba(59, 74, 52, 0.06);
}

.venue-link {
  display: inline-block;
  margin-top: var(--space-1);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

.venue-link::after,
.rsvp-submit::after {
  content: " \2192";
}

/* ---------------------------------------------------------------
   RSVP
--------------------------------------------------------------- */
#rsvp form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

#rsvp form[hidden] {
  display: none;
}

.rsvp-options {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: center;
}

.rsvp-option {
  appearance: none;
  border: 1px solid var(--sage-soft);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.rsvp-option.is-selected {
  background: var(--blossom);
  border-color: var(--blossom);
  color: #4a2f2c;
}

.rsvp-greeting {
  font-style: italic;
  color: var(--sage);
}

#rsvp textarea {
  width: 100%;
  min-height: 5.5em;
  resize: vertical;
  border: 1px solid var(--sage-soft);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 0.8em 1em;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

#rsvp textarea::placeholder {
  color: var(--sage-soft);
  font-style: italic;
}

#rsvp textarea:focus,
.rsvp-option:focus-visible,
.rsvp-submit:focus-visible,
.audio-toggle:focus-visible,
.gate-open-button:focus-visible,
.venue-link:focus-visible,
.action-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp-submit {
  appearance: none;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0.75em 2.2em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.rsvp-submit:active {
  transform: scale(0.97);
}

.rsvp-thankyou {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------
   Final message — quiet closing line over the lantern-lit garden
--------------------------------------------------------------- */
.sprig--light {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-1);
}

.closing-line {
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--dusk-ink);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------
   The end — the closing invitation, back in the daylight garden
--------------------------------------------------------------- */
.final-cta {
  background: rgba(246, 241, 231, 0.82);
  border-radius: 20px;
  padding: var(--space-4) var(--space-3);
  box-shadow: 0 1px 24px rgba(59, 74, 52, 0.08);
}

.final-cta .heading {
  font-size: 1.7rem;
}

.final-cta .signature {
  margin-top: 0.2em;
  font-size: 3.1rem;
  color: var(--ink);
}

.final-cta .final-date {
  color: var(--gold);
  letter-spacing: 0.1em;
}

.final-actions {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

.action-button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font-style: italic;
  font-size: 1rem;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.action-button:active {
  background: rgba(184, 146, 90, 0.15);
}
