:root {
  --cream: hsl(40, 24%, 95%);
  --cream-soft: #fcfbf9;
  --paper: hsl(50, 45%, 89%);
  --gold: hsl(38, 43%, 60%);
  --gold-deep: hsl(38, 43%, 40%);
  --gold-warm: hsl(38, 43%, 50%);
  --brown: hsl(38, 43%, 40%);
  --text: hsl(33, 47%, 35%);
  --line: rgba(146, 114, 58, 0.22);
  --shadow: 0 24px 64px rgba(131, 93, 47, 0.12);
  --script: "sweet-fancy-script", "Great Vibes", cursive;
  --serif: "arek-armenian", "Cormorant Garamond", serif;
  --alt-serif: "arek-armenian", "Instrument Serif", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream-soft);
  font-family: var(--serif);
  overflow-x: hidden;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(130, 100, 55, 0.08) 0 0.65px, transparent 0.7px),
    radial-gradient(circle at 65% 40%, rgba(130, 100, 55, 0.07) 0 0.55px, transparent 0.65px),
    radial-gradient(circle at 40% 75%, rgba(130, 100, 55, 0.06) 0 0.6px, transparent 0.7px);
  background-size: 120px 120px;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-shell.is-hidden {
  display: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(180deg, #f6efe4 0%, #efe6d7 100%);
  z-index: 20;
  transition: opacity 1200ms ease, visibility 1200ms ease;
  cursor: pointer;
}

.intro-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
}

.intro-poster,
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 250ms ease-out;
}

.intro-video {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.is-playing .intro-video {
  opacity: 1;
}

.intro-overlay.is-playing .intro-poster {
  opacity: 0;
}
.lang-switch {
  position: fixed;
  top: 1.3rem;
  right: 1.3rem;
  z-index: 5;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid rgba(157, 110, 50, 0.12);
  box-shadow: 0 8px 20px rgba(121, 89, 44, 0.08);
}

.lang-pill {
  min-width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1rem;
  cursor: default;
}

.lang-pill--active {
  background: var(--gold-deep);
  color: white;
}

.music-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 5;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(157, 110, 50, 0.18);
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.96);
  color: var(--brown);
  box-shadow: 0 10px 28px rgba(121, 89, 44, 0.1);
  cursor: pointer;
}

.music-toggle.is-hidden {
  display: none;
}

.music-toggle__status {
  font-size: 0.78rem;
}

.section {
  position: relative;
  padding: 6rem 1rem;
}

.section-paper {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(180deg, #f7f2e8 0%, #f5efe6 100%);
}

.section-plain {
  background: #faf7f2;
}

.section-gold {
  background: #cdad71;
}

.section-heading {
  width: min(92vw, 900px);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading--left {
  text-align: left;
}

.section-heading--light .script-title,
.section-heading--light .section-subtitle,
.section-subtitle--light {
  color: #fffefb;
}

.script-title {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: 0.95;
  color: var(--brown);
  font-weight: 400;
}

.section-label,
.section-subtitle,
.hero-kicker,
.hero-date,
.hero-rsvp,
.maps-link,
.submit-button,
.venue-meta,
.venue-address-line--muted {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.section-label,
.section-subtitle,
.venue-meta,
.hero-kicker,
.hero-rsvp,
.maps-link,
.submit-button {
  color: #fffefb;
}
.section-plain .section-label,
.section-plain .section-subtitle,
.section-plain .venue-meta,
.section-plain .hero-kicker,
.section-plain .maps-link,
.section-plain .submit-button,
.section-paper .section-label,
.section-paper .section-subtitle,
.section-paper .venue-meta,
.section-paper .hero-kicker,
.section-paper .maps-link,
.section-paper .submit-button {
  color: var(--text);
}

.section-subtitle,
.section-label {
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
}

.hero-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(252, 248, 240, 0.5), rgba(248, 241, 230, 0.28)),
    linear-gradient(180deg, #f7f1e7 0%, #efe6d8 100%);
}

.hero-art-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.65) contrast(1.05) saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  text-align: center;
  color: white;
}

.hero-kicker {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-names {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(5.5rem, 11vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
  color: white;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.25);
}

.hero-ampersand {
  font-size: 0.52em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.6rem auto;
  width: min(22rem, 50vw);
  color: rgba(255, 255, 255, 0.92);
}

.hero-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-date {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2.35rem);
  color: white;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-rsvp,
.maps-link,
.submit-button {
  display: inline-block;
  margin-top: 1.6rem;
  border: none;
  background: none;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

.hero-rsvp {
  color: white;
}

.hero-scroll {
  margin-top: 0.8rem;
  color: white;
  font-size: 1.5rem;
}

.countdown-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.countdown-block {
  min-width: 8rem;
  text-align: center;
}

.countdown-block strong {
  display: block;
  font-family: var(--alt-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--brown);
}

.countdown-block span {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(157, 110, 50, 0.7);
}

.welcome-copy {
  width: min(92vw, 980px);
  margin: 1.4rem auto 0;
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.35;
  color: var(--brown);
}

.gallery-strip {
  width: min(94vw, 1800px);
  margin: 3rem auto 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.gallery-tile {
  aspect-ratio: 0.72;
  border: 1px solid rgba(157, 110, 50, 0.12);
  background: #fdfaf3;
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
}

.ornament {
  width: 100%;
  text-align: center;
  color: rgba(207, 172, 109, 0.95);
  font-size: 6rem;
  line-height: 1;
}

.ornament-vase {
  height: 120px;
  background: url('/assets/vase.svg') center/contain no-repeat;
  margin-top: 1.5rem;
  color: transparent;
}
.ornament-vase::before {
  display: none;
}

.ornament-champagne::before {
  content: "🥂";
}

.watermark-cupid {
  position: absolute;
  right: -5%;
  top: 40%;
  width: 14vw;
  min-width: 120px;
  max-width: 160px;
  aspect-ratio: 1;
  background: url('/assets/cupid.svg') center/contain no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}
@media (max-width: 1200px) {
  .watermark-cupid {
    right: 5%;
  }
}
@media (max-width: 768px) {
  .watermark-cupid {
    top: 65%;
    right: 5%;
    width: 25vw;
  }
}

.venue-card,
.dress-card,
.gifts-card,
.rsvp-form {
  width: min(92vw, 880px);
  margin: 0 auto;
  border-radius: 1.6rem;
  background: var(--paper);
  border: 1px solid rgba(157, 110, 50, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.venue-card {
  padding: 2.4rem;
  text-align: center;
}

.venue-illustration {
  width: min(100%, 640px);
  margin: 0 auto 1.3rem;
  aspect-ratio: 1.18;
  border-radius: 1.1rem;
  background: #fffcf7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.venue-house {
  position: relative;
  width: 62%;
  height: 68%;
}

.venue-house__body {
  position: absolute;
  inset: 13% 8% 0;
  border: 3px solid rgba(181, 137, 68, 0.78);
  background: rgba(255, 255, 255, 0.25);
}

.venue-house__roof {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 4%;
  height: 14%;
  border: 3px solid rgba(181, 137, 68, 0.78);
  border-bottom: none;
}

.venue-house__door {
  position: absolute;
  left: 44%;
  width: 12%;
  bottom: 0;
  height: 30%;
  border: 3px solid rgba(181, 137, 68, 0.78);
}

.venue-house__window {
  position: absolute;
  width: 10%;
  height: 18%;
  border: 3px solid rgba(181, 137, 68, 0.78);
}

.venue-house__window--a { left: 19%; top: 24%; }
.venue-house__window--b { right: 19%; top: 24%; }
.venue-house__window--c { left: 19%; top: 50%; }
.venue-house__window--d { right: 19%; top: 50%; }

.venue-name {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--brown);
}

.venue-meta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.2rem 0;
  font-size: 1rem;
}

.venue-address-line {
  margin: 0.5rem 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.programme-timeline {
  width: min(92vw, 760px);
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}

.programme-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(157, 110, 50, 0.38);
}

.programme-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
  align-items: center;
}

.programme-item::before {
  content: "";
  position: absolute;
  left: calc(50% - 9px);
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(157, 110, 50, 0.5);
}

.programme-item:nth-child(odd) .programme-time,
.programme-item:nth-child(even) .programme-label {
  text-align: right;
}

.programme-item:nth-child(odd) .programme-label,
.programme-item:nth-child(even) .programme-time {
  text-align: left;
}

.programme-time,
.programme-label {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--brown);
}

.programme-time {
  font-weight: 600;
}

.programme-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dress-panel {
  overflow: hidden;
  min-height: 60rem;
  display: grid;
  align-items: center;
}

.dress-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.2), rgba(255, 248, 237, 0.08)),
    linear-gradient(90deg, transparent 28%, rgba(123, 92, 48, 0.14) 28.3%, rgba(123, 92, 48, 0.14) 31%, transparent 31.3%),
    linear-gradient(90deg, transparent 69%, rgba(123, 92, 48, 0.14) 69.3%, rgba(123, 92, 48, 0.14) 72%, transparent 72.3%),
    linear-gradient(180deg, rgba(135, 108, 74, 0.42), rgba(135, 108, 74, 0.22)),
    linear-gradient(135deg, #826c55, #cdb385 45%, #8e7453);
  filter: blur(0.3px);
}

.dress-card {
  position: relative;
  padding: 3.2rem 2rem;
  text-align: center;
}

.dress-item h3 {
  margin: 1rem 0 0.4rem;
  font-family: var(--script);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.dress-item p {
  margin: 0;
  font-size: 1.55rem;
}

.dress-divider {
  width: 6rem;
  height: 1px;
  margin: 2rem auto;
  background: rgba(157, 110, 50, 0.34);
}

.travel-grid,
.extras-grid {
  width: min(92vw, 1120px);
  margin: 0 auto;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(157, 110, 50, 0.14);
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.75);
}

.stack-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--alt-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
}

.stack-card p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.extra-card {
  padding: 1.7rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(157, 110, 50, 0.14);
  background: rgba(255, 252, 246, 0.78);
}

.extra-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--alt-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
}

.extra-card p {
  margin: 0.25rem 0;
  font-size: 1.3rem;
}

.gifts-card {
  padding: 2.4rem;
  text-align: center;
}

.gift-copy {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.45;
  color: var(--brown);
}

.gift-bank-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gift-bank {
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(157, 110, 50, 0.16);
}

.gift-bank h3 {
  margin: 0 0 0.4rem;
  font-family: var(--alt-serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
}

.gift-bank p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.venue-sketch-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 1rem auto 2rem;
  display: block;
}

.venue-divider {
  width: 40px;
  height: 1px;
  background: var(--line);
  margin: 1.5rem auto;
}

.venue-map {
  margin: 1.5rem auto;
  border-radius: 8px;
  overflow: hidden;
}

.map-pin-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.rsvp-panel {
  padding-bottom: 6rem;
}

.rsvp-card {
  background: white;
  border-radius: 8px;
  width: min(92vw, 640px);
  margin: 0 auto;
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  text-align: left;
}

.rsvp-form {
  width: 100%;
}

.form-group {
  margin-bottom: 2rem;
}

.rsvp-question {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rsvp-question-small {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--gold-deep);
  border-radius: 50%;
}

.counter-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.counter-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  outline: none;
}

.counter-input input {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  background: none;
  pointer-events: none;
  font-family: var(--serif);
  color: var(--text);
}

.rsvp-person-box {
  background: var(--cream-soft);
  padding: 1.5rem;
  border-radius: 8px;
}

.input-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.9rem;
  font-size: 1rem;
  font-family: var(--serif);
  background: transparent;
  color: var(--text);
  margin-bottom: 1rem;
  resize: vertical;
}

.input-field::placeholder {
  color: #a99a80;
}

.submit-button--gold {
  background: var(--gold-warm);
  width: 100%;
  border-radius: 4px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1.1rem;
}

.form-feedback {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 1.1rem;
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 0 0 4rem;
}

.footer-rings {
  margin: -60px auto 40px;
  width: 160px;
}

.footer-rings img {
  width: 100%;
  height: auto;
}

.footer-names {
  line-height: 1;
}

.footer-date {
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

.footer-credit {
  margin-top: 4rem;
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
  font-family: var(--serif);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 900px) {
  .travel-grid,
  .extras-grid,
  .choice-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .programme-timeline::before {
    left: 50%;
  }

  .programme-item {
    gap: 1rem;
  }

  .countdown-inline {
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0.8rem;
  }

  .hero-names {
    font-size: clamp(4.4rem, 18vw, 6.6rem);
  }

  .hero-kicker,
  .section-label,
  .section-subtitle {
    font-size: 0.9rem;
  }

  .venue-card,
  .dress-card,
  .gifts-card,
  .rsvp-form {
    padding: 1.4rem;
  }

  .gallery-strip {
    grid-auto-columns: 64vw;
  }

  .programme-item {
    grid-template-columns: 1fr 1fr;
  }

  .envelope-letter__content {
    padding-top: 2.2rem;
  }
}
