@font-face {
  font-family: "Shekasteh";
  src: url("/assets/fonts/Shekasteh-V2.0.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2a18;
  --ink-soft: #3d4f38;
  --sage: #6f8f62;
  --sage-deep: #3f5c38;
  --mist: #d7e3cf;
  --sky: #e4eddc;
  --petal: #c86b5a;
  --path: #b8a66a;
  --paper: #f2f6ee;
  --white: #fbfdf9;
  --shadow: rgba(28, 42, 24, 0.18);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --font-ui: "Jost", "Segoe UI", sans-serif;
  --font-fa-display: "Shekasteh", "Vazirmatn", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.lang-switch {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 50;
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(63, 92, 56, 0.28);
  background: rgba(251, 253, 249, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(28, 42, 24, 0.12);
}

html[dir="rtl"] .lang-switch {
  right: auto;
  left: max(0.75rem, env(safe-area-inset-left));
}

.lang-switch a {
  min-width: 2.4rem;
  padding: 0.45rem 0.65rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a.is-active {
  background: var(--sage-deep);
  color: var(--white);
}

.lang-switch a:not(.is-active):hover,
.lang-switch a:not(.is-active):focus-visible {
  background: rgba(111, 143, 98, 0.16);
  color: var(--ink);
  outline: none;
}

.music-toggle {
  position: fixed;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  right: max(0.9rem, env(safe-area-inset-right));
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(63, 92, 56, 0.28);
  border-radius: 50%;
  background: rgba(251, 253, 249, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(28, 42, 24, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

html[dir="rtl"] .music-toggle {
  right: auto;
  left: max(0.9rem, env(safe-area-inset-left));
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.music-toggle__icon {
  width: 1rem;
  height: 1rem;
  background: var(--sage-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 10v4h4l5 5V5L7 10H3zm13.5 2c0-1.77-1-3.29-2.5-4.03v8.05c1.5-.74 2.5-2.26 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 10v4h4l5 5V5L7 10H3zm13.5 2c0-1.77-1-3.29-2.5-4.03v8.05c1.5-.74 2.5-2.26 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.music-toggle.is-muted .music-toggle__icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.5 12c0-1.77-1-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v4h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.5 12c0-1.77-1-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v4h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  background:
    radial-gradient(120% 80% at 50% -10%, #f7faf4 0%, transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 38%, #e8f0e2 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[lang="fa"] body {
  font-family: "Vazirmatn", var(--font-ui);
  font-weight: 400;
}

html[lang="fa"] .eyebrow,
html[lang="fa"] .cover__hint,
html[lang="fa"] .hero__date,
html[lang="fa"] .hero__cta,
html[lang="fa"] .countdown__label,
html[lang="fa"] .rsvp-form span,
html[lang="fa"] .rsvp-form legend,
html[lang="fa"] .submit,
html[lang="fa"] .footer__date {
  letter-spacing: 0.06em;
}

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

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

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}

.amp {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--petal);
  padding: 0 0.12em;
}

/* --- Cover --- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(165deg, #dce8d4 0%, #c5d6b8 45%, #a8c094 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.cover.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover__card {
  width: min(100%, 22rem);
  max-height: calc(100svh - 2rem);
  min-height: min(28rem, calc(100svh - 2rem));
  padding: clamp(1.25rem, 4vh, 3rem) 1.75rem;
  border: 1px solid rgba(63, 92, 56, 0.28);
  background:
    linear-gradient(180deg, rgba(251, 253, 249, 0.92), rgba(232, 240, 226, 0.88));
  box-shadow: 0 24px 60px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.5vh, 1.4rem);
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: auto;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  animation: card-float 5.5s ease-in-out infinite;
}

.cover__card:hover,
.cover__card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 70px rgba(28, 42, 24, 0.24);
  outline: none;
}

.cover__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  text-align: center;
}

.cover__line {
  display: block;
}

.cover__names .amp {
  font-size: 0.72em;
  line-height: 1;
  padding: 0;
}

.rings {
  width: 3.2rem;
  color: var(--sage);
  opacity: 0.85;
}

.cover__hint {
  margin: 1.5rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Invitation shell --- */
.invitation[hidden] {
  display: none;
}

.invitation.is-visible {
  animation: invite-in 0.9s var(--ease) both;
}

@keyframes invite-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero --- */
/* Image is 2000x2667. Frame always fits inside the viewport, so the full
   illustration is visible on phone, tablet, and desktop without cropping. */
.hero {
  --hero-w: 2000;
  --hero-h: 2667;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(0.5rem, env(safe-area-inset-top))
    max(0.5rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
  color: var(--white);
  background: #d5e2cb;
}

.hero__frame {
  position: relative;
  container-type: size;
  /* Largest size that still fits both viewport width and height.
     Width is derived from height so aspect-ratio never overflows. */
  width: min(100%, calc((100vh - 1rem) * var(--hero-w) / var(--hero-h)));
  height: auto;
  aspect-ratio: var(--hero-w) / var(--hero-h);
  box-shadow: 0 18px 48px rgba(28, 42, 24, 0.18);
}

@supports (height: 100svh) {
  .hero__frame {
    width: min(100%, calc((100svh - 1rem) * var(--hero-w) / var(--hero-h)));
  }
}

@supports (height: 100dvh) {
  .hero__frame {
    width: min(100%, calc((100dvh - 1rem) * var(--hero-w) / var(--hero-h)));
  }
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 42, 24, 0.38) 0%, rgba(28, 42, 24, 0.18) 28%, rgba(28, 42, 24, 0.02) 50%, transparent 62%);
  pointer-events: none;
}

.hero__copy {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  width: 100%;
  padding: clamp(0.75rem, 4cqi, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero__eyebrow {
  color: rgba(247, 250, 244, 0.82);
  margin-bottom: 0.85rem;
  font-size: clamp(0.58rem, 2.8cqi, 0.72rem);
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero__names {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 14cqi, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: rise 0.9s var(--ease) 0.28s both;
}

.hero__names .amp {
  color: #f0b4a8;
}

.hero__lede {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 4.2cqi, 1.4rem);
  font-style: italic;
  color: rgba(247, 250, 244, 0.9);
  animation: rise 0.9s var(--ease) 0.4s both;
}

.hero__date {
  margin: 0.85rem 0 0;
  font-size: clamp(0.62rem, 2.8cqi, 0.78rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 250, 244, 0.78);
  animation: rise 0.9s var(--ease) 0.5s both;
}

.hero__cta {
  display: inline-block;
  margin-top: clamp(0.8rem, 3.5cqi, 1.5rem);
  padding: 0.75rem 1.35rem;
  border: 1px solid rgba(247, 250, 244, 0.55);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(0.6rem, 2.6cqi, 0.72rem);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  animation: rise 0.9s var(--ease) 0.6s both;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: rgba(247, 250, 244, 0.92);
  color: var(--ink);
  border-color: transparent;
  outline: none;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(0.7rem, 3cqi, 1.4rem);
  left: 50%;
  z-index: 1;
  width: 1.4rem;
  height: 2.2rem;
  border: 1px solid rgba(247, 250, 244, 0.55);
  border-radius: 999px;
  transform: translateX(-50%);
  text-decoration: none;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-radius: 50%;
  background: rgba(247, 250, 244, 0.9);
  animation: cue-fall 1.6s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cue-fall {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0.9rem); }
}

/* --- Sections --- */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.section h2 {
  margin: 0.55rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.section__text {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.countdown-section {
  padding-top: 3.5rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.8rem 0 2rem;
}

.countdown__unit {
  padding: 0.4rem 0;
}

.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.countdown__num.is-tick {
  transform: translateY(-3px);
  color: var(--sage-deep);
}

.countdown__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  width: min(100%, 28rem);
  text-align: left;
  border-left: 1px solid rgba(111, 143, 98, 0.35);
}

.timeline__item {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 0 0 1.85rem 1.35rem;
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline time {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.timeline h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-preview {
  position: relative;
  width: min(100%, 28rem);
  margin: 1.75rem auto 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(111, 143, 98, 0.35);
  background:
    linear-gradient(160deg, #d7e3cf 0%, #c5d4b8 55%, #b7c9a8 100%);
  box-shadow: 0 14px 36px rgba(28, 42, 24, 0.12);
}

.map-preview__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-preview__hit {
  position: absolute;
  inset: 0;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.map-preview__hit:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: -2px;
}

.map-preview__hit:hover {
  box-shadow: inset 0 0 0 2px rgba(63, 92, 56, 0.28);
}

html[lang="fa"] .section h2,
html[lang="fa"] .hero__names,
html[lang="fa"] .cover__names,
html[lang="fa"] .footer__names,
html[lang="fa"] .timeline h3 {
  font-family: var(--font-fa-display);
  line-height: 1.35;
}

html[lang="fa"] .rsvp h2 {
  font-family: "Vazirmatn", var(--font-display);
  line-height: 1.15;
}

html[lang="fa"] .cover__names {
  font-size: clamp(2.85rem, 9.5vw, 3.85rem);
}

html[lang="fa"] .hero__names {
  font-size: clamp(2.35rem, 16cqi, 5.4rem);
}

html[lang="fa"] .section:not(.rsvp) h2 {
  font-size: clamp(2.55rem, 7.2vw, 3.4rem);
}

html[lang="fa"] .timeline h3 {
  font-size: clamp(1.55rem, 4.5vw, 1.85rem);
}

html[lang="fa"] .footer__names {
  font-size: clamp(2.35rem, 6vw, 2.7rem);
}

html[lang="fa"] .countdown__num {
  font-family: "Vazirmatn", var(--font-display);
}

html[lang="fa"] .hero__lede,
html[lang="fa"] .section__text,
html[lang="fa"] .timeline p,
html[lang="fa"] .footer__wish,
html[lang="fa"] .choice span,
html[lang="fa"] .form-status {
  font-family: "Vazirmatn", var(--font-display);
}

html[lang="fa"] .timeline {
  text-align: right;
  border-left: 0;
  border-right: 1px solid rgba(111, 143, 98, 0.35);
}

html[lang="fa"] .timeline__item {
  padding: 0 1.35rem 1.85rem 0;
}

html[lang="fa"] .timeline__item::before {
  left: auto;
  right: -0.28rem;
}

html[lang="fa"] .timeline__item:last-child {
  padding-bottom: 0;
}

/* RSVP */
.rsvp-form {
  margin: 2rem auto 0;
  width: min(100%, 24rem);
  text-align: left;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(251, 253, 249, 0.72);
  border: 1px solid rgba(111, 143, 98, 0.28);
  backdrop-filter: blur(6px);
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 0.4rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.rsvp-form span,
.rsvp-form legend {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.rsvp-form em {
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.7;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(111, 143, 98, 0.35);
  background: var(--white);
  border-radius: 0;
}

.rsvp-form input:focus-visible,
.rsvp-form textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.choice {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  grid-template-columns: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}

.choice span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
  color: var(--ink);
}

.guests-field.is-hidden {
  display: none;
}

.submit {
  margin-top: 0.35rem;
  padding: 0.95rem 1.2rem;
  border: 0;
  background: var(--sage-deep);
  color: var(--white);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.submit:hover,
.submit:focus-visible {
  background: var(--ink);
  outline: none;
}

.submit:active {
  transform: translateY(1px);
}

.form-status {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sage-deep);
}

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

/* Footer */
.footer {
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(111, 143, 98, 0.12));
}

.footer__names {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.footer__date {
  margin: 0.55rem 0 0;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--sage);
}

.footer__wish {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 420px) {
  .countdown {
    gap: 0.35rem;
  }

  .timeline__item {
    grid-template-columns: 3.5rem 1fr;
  }

  .section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cover__card {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    width: min(100%, 36rem);
    gap: 0.75rem 1.5rem;
  }

  .cover__names {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .cover__hint {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cover__card,
  .scroll-cue span,
  .invitation.is-visible,
  .hero__eyebrow,
  .hero__names,
  .hero__lede,
  .hero__date,
  .hero__cta,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
