:root {
  --plum: #6b3a47;
  --plum-soft: #8a5a66;
  --rose: #b07a86;
  --rose-deep: #a8686f;
  --blush: #f6dccf;
  --cream: #f8f3ee;
  --line: rgba(176, 122, 134, 0.35);
  --serif: "Noto Serif Armenian", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;
  --nav-h: 64px;
  --wrap: 1120px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--plum);
  background:
    radial-gradient(1200px 600px at 50% 0, #fbf7f3, transparent), var(--cream);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}
section[id],
.hero-content {
  scroll-margin-top: var(--nav-h);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 4vw;
  background: rgba(251, 247, 243, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.logo,
.nav-heart {
  display: inline-flex;
  color: var(--plum-soft);
}
.menu {
  display: flex;
  gap: clamp(20px, 3.4vw, 52px);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.menu a {
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s;
}
.menu a:hover,
.menu a.active {
  border-color: var(--plum-soft);
}
.burger {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--plum);
  transition: transform 0.25s;
}
.burger span:first-child {
  top: 8px;
}
.burger span:last-child {
  top: 15px;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  --fx: 80%;
  --fy: 30%;
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--cream);
}
.couple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx) var(--fy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--cream) 0, transparent 14%),
    linear-gradient(
      90deg,
      rgba(248, 243, 238, 0.97) 0,
      rgba(248, 243, 238, 0.9) 24%,
      rgba(248, 243, 238, 0.5) 42%,
      transparent 60%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(52vw, 720px);
  padding: 0 0 0 4.3vw;
  text-align: center;
}
.names {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(320px, 70%);
  margin: 22px auto 24px;
  color: var(--plum-soft);
}
.divider span {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.divider.sm {
  width: min(230px, 60%);
  margin: 12px auto 0;
}
.subtitle {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 30em;
  margin: 0 auto;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: clamp(26px, 3.6vw, 46px);
}
.card {
  overflow: hidden;
  flex: 0 0 clamp(72px, 8.6vw, 118px);
  min-width: 0;
  aspect-ratio: 1 / 1.08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.66)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 40px -12px rgba(107, 58, 71, 0.28),
    0 2px 6px rgba(107, 58, 71, 0.08),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  background: linear-gradient(180deg, var(--plum), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card span {
  font-family: var(--serif);
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  letter-spacing: 0.04em;
  color: var(--plum-soft);
  white-space: nowrap;
}
.card strong.tick {
  animation: tick 0.45s ease;
}
@keyframes tick {
  from {
    opacity: 0;
    transform: translateY(-35%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.sec {
  position: relative;
  width: min(100% - 8vw, var(--wrap));
  margin: 0 auto 28px;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 56px);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.2)
  );
}
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  text-align: center;
}
.sprig {
  position: absolute;
  width: clamp(60px, 8vw, 110px);
  height: auto;
  color: var(--rose);
  opacity: 0.55;
  pointer-events: none;
}
.sprig.l {
  left: 6px;
  top: 46%;
}
.sprig.r {
  right: 6px;
  top: 46%;
  transform: scaleX(-1);
}
.sprig.tl {
  left: 14px;
  top: 18px;
  transform: rotate(-20deg);
}
.sprig.tr {
  right: 14px;
  top: 18px;
  transform: scaleX(-1) rotate(-20deg);
}

/* Gallery */
.gallery {
  position: relative;
  margin-top: 22px;
  --vis: 5;
  --gap: clamp(10px, 1.6vw, 22px);
}
.track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 28px 6px 30px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar {
  display: none;
}
.shot {
  flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis));
  aspect-ratio: 3 / 4.1;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(107, 58, 71, 0.4);
  scroll-snap-align: start;
  transition: transform 0.3s;
}
.shot:nth-child(odd) {
  transform: rotate(-2.5deg);
}
.shot:nth-child(even) {
  transform: rotate(2deg);
}
.shot:hover {
  transform: rotate(0) scale(1.03);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  background: var(--blush);
}
.arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--plum-soft);
  box-shadow: 0 6px 18px rgba(107, 58, 71, 0.2);
  cursor: pointer;
}
.prev {
  left: -10px;
}
.prev svg {
  transform: scaleX(-1);
}
.next {
  right: -10px;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(176, 122, 134, 0.35);
  cursor: pointer;
}
.dots button.on {
  background: var(--rose-deep);
}

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 36px auto 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(var(--rose), var(--rose-deep));
  opacity: 0.6;
}
.timeline li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
}
.dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: var(--rose-deep);
  box-shadow:
    0 0 0 5px #f3e6df,
    0 8px 18px -6px rgba(107, 58, 71, 0.5);
}
.tcard {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  padding: 14px 22px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px -14px rgba(107, 58, 71, 0.3);
}
.thumb {
  flex: 0 0 clamp(84px, 11vw, 120px);
  aspect-ratio: 1.15;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(107, 58, 71, 0.35);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  background: var(--blush);
}
.tcard h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.time {
  margin: 6px 0;
  color: var(--plum-soft);
  font-family: var(--serif);
}
.addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--plum-soft);
}
.addr svg {
  color: var(--rose-deep);
  flex: none;
}

/* RSVP */
.lead {
  max-width: 34em;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--plum-soft);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  max-width: 760px;
  margin: 26px auto 0;
}
.field {
  position: relative;
  display: block;
}
.field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--rose);
  pointer-events: none;
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 0.92rem;
  color: var(--plum);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b07a86' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field input::placeholder {
  color: var(--plum-soft);
  opacity: 0.8;
}
.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(168, 104, 112, 0.15);
}
.btn {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #b47b80, var(--rose-deep));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(168, 104, 112, 0.8);
}
.status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.85rem;
  color: var(--plum-soft);
}

/* Footer */
.footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 4vw 40px;
  color: var(--rose-deep);
}
.foot-line {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(var(--wrap), 100%);
  font-size: 0.85rem;
  color: var(--plum-soft);
}
.foot-line span {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.foot-line i {
  margin: 0 8px;
  font-style: normal;
  opacity: 0.6;
}
.closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  text-align: center;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero {
    --fx: 85%;
  }
  .hero-content {
    width: 58vw;
    padding-left: 3.5vw;
  }
  .names {
    font-size: 5.4vw;
  }
  .gallery {
    --vis: 4;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav {
    padding: 0 20px;
  }
  .burger {
    display: block;
    order: 3;
  }
  .nav-heart {
    display: none;
  }
  .menu {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    font-size: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(120, 70, 80, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s;
  }
  .menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero {
    --fx: 88%;
    --fy: 20%;
    --ph: clamp(300px, 54svh, 520px);
    display: block;
    min-height: 0;
  }
  .couple {
    position: relative;
    inset: auto;
    height: var(--ph);
  }
  .hero-bg {
    inset: var(--nav-h) 0 auto 0;
    height: var(--ph);
    background: linear-gradient(180deg, transparent 50%, var(--cream) 97%);
  }
  .hero-content {
    width: 100%;
    margin-top: -76px;
    padding: 0 16px 34px;
  }
  .names {
    font-size: min(10.5vw, 35px);
  }
  .divider {
    margin: 14px auto 16px;
  }
  .subtitle {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
    padding: 0 6px;
  }
  .countdown {
    gap: 8px;
    margin-top: 22px;
  }
  .card {
    flex: 1 1 0;
    max-width: 96px;
    aspect-ratio: auto;
    padding: 16px 2px 14px;
    border-radius: 16px;
    gap: 6px;
  }
  .card strong {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .card span {
    font-size: clamp(0.62rem, 2.8vw, 0.8rem);
    letter-spacing: 0.02em;
  }

  .sec {
    width: calc(100% - 24px);
    padding: 34px 14px 40px;
    border-radius: 22px;
  }
  .gallery {
    --vis: 3;
    --gap: 8px;
  }
  .arrow {
    width: 34px;
    height: 34px;
  }
  .prev {
    left: -4px;
  }
  .next {
    right: -4px;
  }
  .sprig.l,
  .sprig.r {
    display: none;
  }
  .sprig {
    width: 54px;
  }

  .timeline {
    margin-top: 26px;
    gap: 14px;
  }
  .timeline::before {
    left: 19px;
  }
  .timeline li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .dot {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 0 4px #f3e6df;
  }
  .dot svg {
    width: 18px;
    height: 18px;
  }
  .tcard {
    padding: 10px 12px 10px 10px;
    gap: 12px;
  }
  .thumb {
    flex-basis: 74px;
    aspect-ratio: 1;
  }
  .addr {
    align-items: flex-start;
    font-size: 0.74rem;
  }
  .addr svg {
    margin-top: 2px;
  }

  .form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn {
    width: 100%;
  }
  .foot-line {
    gap: 10px;
    font-size: 0.78rem;
  }
}
@media (max-width: 360px) {
  .names {
    font-size: 9.5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card strong.tick {
    animation: none;
  }
  * {
    transition: none !important;
  }
}

/* Calendar */
.cal {
  max-width: 440px;
  margin: 30px auto 0;
  padding: 22px clamp(14px, 3vw, 28px) 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px -18px rgba(107, 58, 71, 0.35);
}
.cal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-align: center;
  margin-bottom: 18px;
}
.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cal-week {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--plum-soft);
}
.cal-grid {
  row-gap: 6px;
}
.day {
  display: grid;
  place-items: center;
  height: 40px;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.day.wed {
  color: #fff;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath fill='%23b87a80' d='M12 21C4 15 1 11 1 7.500 1 4.500 3.300 2 6.500 2 9 2 11 3.300 12 5.300 13 3.300 15 2 17.500 2 20.700 2 23 4.500 23 7.500 23 11 20 15 12 21z'/%3E%3C/svg%3E")
    center / 42px no-repeat;
  filter: drop-shadow(0 6px 8px rgba(168, 104, 112, 0.35));
}
@media (max-width: 760px) {
  .cal {
    margin-top: 24px;
  }
  .day {
    height: 36px;
  }
}


/* Music button */
.music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #b47b80, var(--rose-deep));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(107, 58, 71, 0.55);
}
.music svg { grid-area: 1 / 1; }
.music .ic-pause { display: none; }
.music.playing .ic-note { display: none; }
.music.playing .ic-pause { display: block; }
.music.playing::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.7; }
  to { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .music.playing::before { animation: none; }
}