:root {
  --ivory: #f7f3ec;
  --cream: #eee7dc;
  --paper: #fbf9f5;
  --sage: #768071;
  --sage-dark: #4b574d;
  --gold: #aa8a58;
  --ink: #36352f;
  --muted: #777269;
  --line: rgba(75, 87, 77, 0.22);
  --shadow: 0 28px 80px rgba(66, 56, 43, 0.13);
  --serif: "Noto Serif Armenian", "Sylfaen", Georgia, serif;
  --sans: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  min-height: 100svh;
  background:
    radial-gradient(circle at 88% 18%, rgba(170, 138, 88, 0.08), transparent 24%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22vw;
  height: 22vw;
  border: 1px solid rgba(170, 138, 88, 0.15);
  border-radius: 50%;
  transform: translate(36%, -42%);
}

.hero__image-wrap {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.82) contrast(0.97) brightness(1.02);
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 74%, rgba(251, 249, 245, 0.25));
  pointer-events: none;
}

.hero__image-line {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  width: 80px;
  height: 80px;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.hero__message {
  align-self: center;
  max-width: 650px;
  padding: 80px clamp(48px, 8vw, 140px);
}

.hero h1 {
  margin: 26px 0 28px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.2vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero__text {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.signature {
  margin: 34px 0 0;
  color: var(--sage-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.ornament {
  display: flex;
  align-items: center;
  width: 62px;
  height: 18px;
  margin-top: 18px;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.ornament span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 3vw, 52px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sage);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  animation: float-arrow 1.8s ease-in-out infinite;
}

.date-section {
  position: relative;
  display: grid;
  min-height: 92svh;
  place-items: center;
  padding: 100px 24px;
  background: var(--sage-dark);
  color: #f7f3ec;
  overflow: hidden;
}

.date-section::before,
.date-section::after {
  content: "";
  position: absolute;
  width: min(40vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.date-section::before {
  top: -24%;
  left: -11%;
}

.date-section::after {
  right: -12%;
  bottom: -26%;
}

.date-section__glow {
  position: absolute;
  inset: 12% 25%;
  background: radial-gradient(circle, rgba(210, 189, 150, 0.12), transparent 66%);
}

.date-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.date-section__intro {
  margin: 22px 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.date-mark {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  column-gap: clamp(28px, 5vw, 78px);
  margin-top: 16px;
}

.date-mark__day {
  font-family: var(--serif);
  font-size: clamp(8rem, 21vw, 17rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.date-mark__month,
.date-mark__year {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-section__weekday {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.countdown {
  width: min(680px, calc(100vw - 48px));
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.countdown__label {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.countdown__item + .countdown__item::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.countdown__value {
  min-width: 2ch;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.countdown__unit {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown__finished {
  margin: 6px 0 0;
  color: #f7f3ec;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.schedule {
  position: relative;
  padding: 130px clamp(24px, 7vw, 110px) 150px;
  background:
    radial-gradient(circle at 10% 55%, rgba(118, 128, 113, 0.07), transparent 23%),
    var(--ivory);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 76px;
  text-align: center;
}

.section-heading h2 {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.event {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  align-items: stretch;
  width: min(1120px, 100%);
  min-height: 490px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event--venue {
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
}

.event--venue .event__image-wrap {
  grid-column: 2;
}

.event--venue .event__content {
  grid-column: 1;
  grid-row: 1;
}

.event__image-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.event__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(25, 25, 22, 0.14));
}

.event__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.94);
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.event--venue .event__image {
  object-position: center;
}

.event:hover .event__image {
  transform: scale(1.025);
}

.event__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 64px);
  overflow: hidden;
}

.event__number {
  position: absolute;
  top: -28px;
  right: 24px;
  color: rgba(75, 87, 77, 0.055);
  font-family: var(--serif);
  font-size: 10rem;
  line-height: 1;
}

.event__time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.event__time svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.event h3 {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  max-width: 100%;
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.event__location {
  position: relative;
  max-width: 350px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 22px;
  min-width: 205px;
  margin-top: 31px;
  padding: 13px 20px;
  border: 1px solid var(--sage-dark);
  background: transparent;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.map-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  transition: transform 200ms ease;
}

.map-button:hover,
.map-button:focus-visible {
  background: var(--sage-dark);
  color: #fff;
  transform: translateY(-2px);
}

.map-button:hover svg,
.map-button:focus-visible svg {
  transform: translateX(4px);
}

.map-button:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.schedule__connector {
  display: grid;
  height: 120px;
  place-items: center;
}

.schedule__connector span {
  display: block;
  width: 1px;
  height: 76px;
  background: var(--line);
}

.schedule__connector span::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 76px 0 0 -3px;
  border: 1px solid var(--gold);
  background: var(--ivory);
  transform: rotate(45deg);
}

.rsvp {
  position: relative;
  padding: 130px 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(210, 189, 150, 0.09), transparent 25%),
    #414a37;
  color: #f7f3ec;
  overflow: hidden;
}

.rsvp::before {
  content: "";
  position: absolute;
  top: -190px;
  left: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.rsvp__inner {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin: 0 auto;
}

.rsvp__heading {
  margin-bottom: 62px;
  text-align: center;
}

.rsvp__heading h2 {
  margin: 15px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.rsvp__heading > p:last-child {
  max-width: 510px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--serif);
}

.rsvp__heading strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.rsvp__form {
  display: grid;
  gap: 46px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp__group legend,
.form-field > span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp__options {
  display: grid;
  gap: 14px;
}

.rsvp__options--inline {
  grid-template-columns: repeat(2, minmax(0, 170px));
  column-gap: 28px;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
}

.radio-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-option__mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.radio-option__mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 180ms ease;
}

.radio-option input:checked + .radio-option__mark {
  border-color: #f7f3ec;
}

.radio-option input:checked + .radio-option__mark::after {
  transform: scale(1);
}

.radio-option input:focus-visible + .radio-option__mark {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.rsvp__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.form-field {
  display: block;
}

.form-field > span {
  margin-bottom: 10px;
}

.form-field input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  outline: 0;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-field input:hover {
  border-color: rgba(255, 255, 255, 0.95);
}

.form-field input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(170, 138, 88, 0.18);
}

.form-field input:user-invalid {
  border-color: #d9a9a0;
}

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

.rsvp__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(100%, 410px);
  min-height: 64px;
  margin: 8px auto 0;
  padding: 16px 28px;
  border: 1px solid var(--paper);
  border-radius: 100px;
  background: var(--paper);
  color: var(--sage-dark);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.rsvp__submit svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 200ms ease;
}

.rsvp__submit:hover,
.rsvp__submit:focus-visible {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.rsvp__submit:hover svg,
.rsvp__submit:focus-visible svg {
  transform: translateX(4px);
}

.rsvp__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.rsvp__submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.rsvp__note {
  margin: -27px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  text-align: center;
}

.rsvp__status {
  margin: -20px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  text-align: center;
}

.rsvp__status.is-error {
  border-color: rgba(217, 169, 160, 0.45);
  color: #f2ccc5;
}

.rsvp__form.is-closed .rsvp__group,
.rsvp__form.is-closed .rsvp__fields,
.rsvp__form.is-closed .rsvp__submit,
.rsvp__form.is-closed .rsvp__note {
  display: none;
}

.footer {
  padding: 82px 24px;
  background: #e9e1d5;
  color: var(--sage-dark);
  text-align: center;
}

.footer__monogram {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
}

.footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer__date {
  margin-top: 12px !important;
  color: var(--muted);
  font-family: var(--sans) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero__message {
    padding: 60px 42px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.7rem);
  }

  .event,
  .event--venue {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .event__content {
    padding: 42px 36px;
  }
}

@media (max-width: 680px) {
  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero__image-wrap {
    width: calc(100% - 30px);
    min-height: auto;
    height: 58svh;
    max-height: 620px;
  }

  .hero__image {
    object-position: center 44%;
  }

  .hero__message {
    padding: 62px 28px 92px;
    text-align: center;
  }

  .hero h1 {
    margin: 22px 0 22px;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero__text {
    margin-inline: auto;
    font-size: 0.98rem;
  }

  .ornament {
    margin-inline: auto;
  }

  .scroll-cue {
    right: 24px;
    bottom: 22px;
  }

  .date-section {
    min-height: 78svh;
    padding: 86px 24px;
  }

  .date-section__intro {
    margin-bottom: 28px;
  }

  .date-mark {
    grid-template-columns: 1fr;
    row-gap: 17px;
  }

  .date-mark__day {
    grid-row: 1;
    font-size: clamp(8.2rem, 42vw, 11rem);
  }

  .date-mark__month {
    grid-row: 2;
  }

  .date-mark__year {
    grid-row: 3;
  }

  .date-mark__month,
  .date-mark__year {
    min-width: 205px;
    padding: 10px 0;
  }

  .countdown {
    margin-top: 40px;
    padding-top: 26px;
  }

  .countdown__item {
    padding-inline: 8px;
  }

  .countdown__value {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .countdown__unit {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

  .schedule {
    padding: 95px 18px 110px;
  }

  .section-heading {
    margin-bottom: 54px;
  }

  .event,
  .event--venue {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .event--venue .event__image-wrap,
  .event--venue .event__content {
    grid-column: auto;
    grid-row: auto;
  }

  .event__image-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .event--venue .event__image-wrap {
    order: 0;
  }

  .event--venue .event__content {
    order: 1;
  }

  .event__content {
    min-height: 340px;
    padding: 44px 30px 48px;
  }

  .event h3 {
    font-size: 2.15rem;
  }

  .event__number {
    top: -10px;
    font-size: 7rem;
  }

  .schedule__connector {
    height: 86px;
  }

  .schedule__connector span {
    height: 52px;
  }

  .schedule__connector span::after {
    margin-top: 52px;
  }

  .footer {
    padding: 66px 24px;
  }

  .rsvp {
    padding: 92px 20px;
  }

  .rsvp__heading {
    margin-bottom: 48px;
  }

  .rsvp__heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .rsvp__form {
    gap: 40px;
  }

  .rsvp__options--inline,
  .rsvp__fields {
    grid-template-columns: 1fr;
  }

  .rsvp__options--inline {
    row-gap: 14px;
  }

  .form-field input {
    height: 56px;
  }

  .rsvp__submit {
    min-height: 60px;
    padding-inline: 22px;
    font-size: 0.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
