:root {
  --cream: #f6f2ed;
  --gold: #b69263;
  --ink: #24211f;
  --serif: "Cormorant Garamond", "Noto Serif Armenian", serif;
  --armenian: "Noto Serif Armenian", "Cormorant Garamond", serif;
  --sans: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--armenian);
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site {
  visibility: hidden;
}

.site.open {
  visibility: visible;
}

.full-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.line-button {
  align-items: center;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  justify-content: center;
  letter-spacing: 3px;
  min-height: 56px;
  padding: 0 21px;
  text-decoration: none;
  transition: background-color 300ms ease, transform 300ms ease;
}

.line-button:focus-visible,
.music-toggle:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.intro {
  background: #171513;
  height: 100svh;
  inset: 0;
  opacity: 1;
  overflow: hidden;
  position: fixed;
  transition: opacity 800ms ease, visibility 800ms ease;
  visibility: visible;
  z-index: 100;
}

.intro.closing {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.intro-image {
  filter: blur(1px);
  transform: scale(1.05);
}

.intro-shade,
.hero-shade,
.countdown-shade,
.ending-shade {
  inset: 0;
  position: absolute;
}

.intro-shade {
  background: rgba(15, 13, 12, 0.55);
}

.intro-content,
.hero-content,
.countdown-content,
.ending-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-align: center;
}

.intro-content {
  animation: intro-content-in 1200ms ease both;
}

.intro-logo {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.22));
  max-width: 50vw;
  width: 162px;
}

.intro-button {
  color: #fff;
  margin-top: 47px;
  min-width: 236px;
}

@keyframes intro-content-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background: #211d1a;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  animation: slow-zoom 16s ease-out forwards;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(to top, rgba(14, 11, 10, 0.64), rgba(14, 11, 10, 0.11) 62%, rgba(14, 11, 10, 0.3));
}

.hero-content {
  color: #fff;
  opacity: 0;
  padding: 22px;
  transform: translateY(36px);
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-logo {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
  margin-bottom: 18px;
  opacity: 0.97;
  width: 118px;
}

.hero-title {
  font-size: clamp(42px, 12vw, 66px);
  font-weight: 300;
  line-height: 1.12;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-title span,
.hero-title small {
  display: block;
}

.hero-title small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 6px;
  margin: 13px 0;
  padding-left: 6px;
}

.hero-date {
  align-items: center;
  display: flex;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  gap: 13px;
  letter-spacing: 7px;
  margin-top: 34px;
  padding-left: 7px;
}

.hero-date::before,
.hero-date::after {
  background: rgba(255, 255, 255, 0.56);
  content: "";
  height: 1px;
  width: 24px;
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.085); }
}

.music-toggle {
  align-items: center;
  backdrop-filter: blur(11px);
  background: rgba(36, 33, 31, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(20, 17, 15, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 54px;
  justify-content: center;
  position: fixed;
  right: 16px;
  top: 16px;
  width: 54px;
  z-index: 20;
}

.music-toggle-ring {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  inset: 6px;
  position: absolute;
}

.player-icon {
  position: relative;
  z-index: 1;
}

.player-play {
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  display: block;
  margin-left: 3px;
}

.player-pause {
  display: none;
  gap: 4px;
}

.player-pause i {
  background: #fff;
  border-radius: 1px;
  display: block;
  height: 15px;
  width: 4px;
}

.music-toggle.playing .player-play {
  display: none;
}

.music-toggle.playing .player-pause {
  display: flex;
}

.save-date {
  background: linear-gradient(180deg, #f8f5f1 0%, var(--cream) 100%);
  padding: 96px 20px 28px;
  text-align: center;
}

.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  padding-left: 5px;
}

.gold {
  color: var(--gold);
}

.save-date-value {
  font-family: var(--serif);
  font-size: 51px;
  font-weight: 400;
  line-height: 1;
  margin-top: 18px;
}

.love-section {
  background: var(--cream);
  overflow: hidden;
  padding: 13px 0 54px;
}

.love-gallery {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1.17fr 1fr;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 8px;
}

.love-frame {
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(62, 47, 37, 0.1);
  overflow: hidden;
  position: relative;
  will-change: transform;
}

.love-frame + .love-frame {
  margin-left: -4px;
}

.love-frame img {
  filter: saturate(0.91) contrast(0.98);
  height: clamp(176px, 48vw, 365px);
  object-fit: cover;
  transition: filter 700ms ease, transform 1100ms ease;
  width: 100%;
}

.love-center {
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(62, 47, 37, 0.17);
  z-index: 2;
}

.love-center img {
  height: clamp(214px, 58vw, 430px);
}

.love-letter {
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--serif);
  font-size: clamp(76px, 23vw, 180px);
  font-weight: 300;
  left: 50%;
  line-height: 0.82;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.love-center .love-letter {
  font-size: clamp(60px, 18vw, 148px);
}

.invitation {
  background: linear-gradient(180deg, var(--cream) 0%, #f8f5f1 100%);
  padding: 58px 20px 112px;
  text-align: center;
}

.invitation p {
  font-size: clamp(21px, 5.7vw, 29px);
  line-height: 2.08;
}

.invitation::after {
  background: var(--gold);
  content: "";
  display: block;
  height: 1px;
  margin: 36px auto 0;
  opacity: 0.55;
  width: 42px;
}

.countdown,
.ending {
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.countdown-image {
  filter: grayscale(1);
}

.countdown-shade {
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.48), rgba(13, 11, 10, 0.67));
}

.countdown-content {
  color: #fff;
  padding: 18px;
}

.countdown-heading {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  margin-bottom: 31px;
  padding-left: 4px;
}

.countdown-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.countdown-unit {
  min-width: 160px;
}

.countdown-unit strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 70px;
  font-weight: 400;
  line-height: 0.94;
}

.countdown-unit span {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 4px;
  margin-top: 7px;
  padding-left: 4px;
}

.location {
  background: linear-gradient(180deg, #f8f5f1 0%, var(--cream) 100%);
  padding: 112px 22px 54px;
  position: relative;
  text-align: center;
}

.home-stop {
  background: linear-gradient(180deg, #f8f5f1 0%, var(--cream) 100%);
  padding-bottom: 48px;
}

.bride-home {
  background: var(--cream);
  padding-top: 52px;
}

.church {
  background: var(--cream);
  padding-top: 58px;
}

.restaurant {
  background: var(--cream);
  padding-bottom: 114px;
  padding-top: 52px;
}

.location-logo {
  filter: drop-shadow(0 6px 12px rgba(85, 65, 48, 0.1));
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.9;
}

.church-logo {
  width: 114px;
}

.home-logo {
  height: 148px;
  width: 148px;
}

.restaurant-logo {
  height: 65px;
  width: 168px;
}

.location-time {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 51px;
  line-height: 1;
  margin-top: 28px;
}

.location h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 17px;
}

.location-address {
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.65;
}

.map-button {
  color: var(--gold);
  margin-top: 29px;
  min-width: 226px;
}

.dress-code {
  background: var(--cream);
  padding: 112px 18px;
  text-align: center;
}

.section-icon {
  filter: drop-shadow(0 6px 12px rgba(85, 65, 48, 0.08));
  margin: 0 auto 22px;
  object-fit: contain;
  opacity: 0.9;
}

.dress-code-icon {
  height: 148px;
  width: 148px;
}

.dress-text {
  font-size: clamp(20px, 5.7vw, 27px);
  line-height: 1.9;
  margin-top: 32px;
}

.rsvp {
  background: linear-gradient(180deg, var(--cream) 0%, #f8f5f1 100%);
  padding: 112px 20px 118px;
  text-align: center;
}

.rsvp-inner {
  margin: 0 auto;
  max-width: 620px;
}

.rsvp-icon {
  height: 134px;
  width: 134px;
}

.rsvp h2 {
  font-size: clamp(31px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.32;
  margin-top: 18px;
}

.rsvp-description {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 13px;
  opacity: 0.62;
}

#rsvpForm {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 47px;
}

.form-field span {
  color: rgba(36, 33, 31, 0.52);
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

input,
select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(36, 33, 31, 0.18);
  border-radius: 0 0 10px 10px;
  color: var(--ink);
  font-family: var(--armenian);
  font-size: 19px;
  height: 51px;
  outline: 0;
  text-align: center;
  transition: border-color 300ms ease;
  width: 100%;
}

input:focus,
select:focus {
  border-bottom-color: var(--gold);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 22px, calc(100% - 9px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.rsvp-button {
  color: var(--gold);
  margin-top: 15px;
  width: 100%;
}

.form-message {
  display: none;
  font-size: 17px;
  line-height: 1.6;
  margin-top: 22px;
}

.success {
  color: var(--gold);
}

.error {
  color: #8b4038;
}

.ending-shade {
  background: linear-gradient(to top, rgba(13, 11, 10, 0.78), rgba(13, 11, 10, 0.03) 58%, rgba(13, 11, 10, 0.05));
}

.ending .full-image {
  object-position: 46% 14%;
}

.ending-content {
  color: #fff;
  justify-content: flex-end;
  padding: 0 20px 104px;
}

.ending-content h2 {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.45;
}

.ending-content p {
  font-size: 18px;
  letter-spacing: 1px;
  margin-top: 13px;
}

.ending.visible .full-image {
  animation: ending-zoom 12s ease-out forwards;
}

@keyframes ending-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.065); }
}

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

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

@media (hover: hover) {
  .line-button:hover {
    background: rgba(182, 146, 99, 0.1);
    transform: translateY(-2px);
  }

  .intro-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .love-frame:hover img {
    filter: saturate(1) contrast(1);
    transform: scale(1.035);
  }
}

@media (min-width: 700px) {
  .love-gallery {
    padding: 0 24px;
  }

  .love-frame + .love-frame {
    margin-left: -8px;
  }

  .countdown-list {
    gap: 18px;
  }

  .countdown-unit strong {
    font-size: 77px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
