:root {
  --bg: #fbfaf5;
  --bg-warm: #f4efe5;
  --card: rgba(255, 253, 248, 0.86);
  --card-strong: rgba(255, 253, 248, 0.96);
  --ink: #2f2a26;
  --ink-soft: #625a50;
  --gold: #c7a05f;
  --gold-deep: #9c8058;
  --gold-line: rgba(199, 160, 95, 0.34);
  --shadow: rgba(73, 60, 45, 0.16);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", "Georgia", serif;
  --font-hy: "Noto Serif Armenian", "Georgia", serif;
  --font-names: "Allura", "Snell Roundhand", "Apple Chancery", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
  background:
    linear-gradient(90deg, rgba(199, 160, 95, 0.08), transparent 14%, transparent 86%, rgba(199, 160, 95, 0.08)),
    repeating-linear-gradient(90deg, rgba(47, 42, 38, 0.018) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 48%, var(--bg) 100%);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lang-hy {
  font-family: var(--font-hy);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(47, 42, 38, 0.028) 22px 23px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16) 38%, rgba(255, 255, 255, 0.58));
}

a {
  color: inherit;
}

button {
  font: inherit;
}

[hidden],
body.lang-hy [data-hide-in-hy] {
  display: none !important;
}

body:not(.lang-hy) .detail-note {
  display: none !important;
}

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

.page {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
  padding: 18px 0 66px;
}

.frame {
  border: 1px solid rgba(199, 160, 95, 0.24);
  background: rgba(255, 253, 248, 0.5);
  box-shadow: 0 34px 88px rgba(73, 60, 45, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100svh - 36px);
  padding: clamp(26px, 4.6vw, 62px);
  border: 1px solid rgba(199, 160, 95, 0.46);
  background: #fbfaf5;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.58);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.82) 24%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0.9) 78%, rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.54) 24%, rgba(255, 255, 255, 0.42) 52%, rgba(255, 255, 255, 0.66) 78%, rgba(255, 255, 255, 0.96)),
    url("couple-background.jpg");
  background-size: cover;
  background-position: center 43%;
  filter: saturate(0.82) contrast(0.94) brightness(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: clamp(16px, 2.3vw, 28px);
  z-index: 1;
  border: 1px solid rgba(199, 160, 95, 0.56);
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(199, 160, 95, 0.44) 23% 23.08%, transparent 23.08% 76.92%, rgba(199, 160, 95, 0.44) 76.92% 77%, transparent 77%),
    linear-gradient(180deg, transparent 0 23%, rgba(199, 160, 95, 0.32) 23% 23.08%, transparent 23.08% 76.92%, rgba(199, 160, 95, 0.32) 76.92% 77%, transparent 77%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  align-items: center;
  min-height: calc(100svh - 36px - clamp(52px, 9.2vw, 124px));
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.corner {
  position: absolute;
  z-index: 4;
  width: clamp(82px, 12vw, 148px);
  height: clamp(82px, 12vw, 148px);
  color: var(--gold);
  opacity: 0.88;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.corner::before {
  inset: 0;
  border-style: solid;
  border-width: 2px 0 0 2px;
}

.corner::after {
  top: 18%;
  left: 18%;
  width: 42%;
  height: 42%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0.45;
}

.corner-tl { top: clamp(18px, 2.6vw, 34px); left: clamp(18px, 2.6vw, 34px); }
.corner-tr { top: clamp(18px, 2.6vw, 34px); right: clamp(18px, 2.6vw, 34px); transform: scaleX(-1); }
.corner-bl { bottom: clamp(18px, 2.6vw, 34px); left: clamp(18px, 2.6vw, 34px); transform: scaleY(-1); }
.corner-br { right: clamp(18px, 2.6vw, 34px); bottom: clamp(18px, 2.6vw, 34px); transform: scale(-1); }

.scripture {
  width: min(560px, 76%);
  margin: 12px auto 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.34rem);
  font-weight: 400;
  line-height: 1.36;
  color: rgba(47, 42, 38, 0.78);
}

.hero-center {
  align-self: center;
  padding: clamp(34px, 7vw, 92px) 0 clamp(24px, 5vw, 58px);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  margin-bottom: clamp(18px, 3vw, 36px);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  letter-spacing: 0.06em;
  color: rgba(47, 42, 38, 0.76);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(34px, 7vw, 108px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-names);
  font-size: clamp(5.8rem, 15vw, 10.8rem);
  font-weight: 400;
  line-height: 0.74;
  color: #342f2a;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.9);
}

.hero-title .amp {
  display: block;
  margin: 0.05em 0 -0.03em;
  font-family: var(--font-display);
  font-size: 0.18em;
  line-height: 1;
  color: var(--gold-deep);
}

body.lang-hy .hero-title {
  font-family: var(--font-hy);
  font-size: clamp(3.05rem, 8vw, 5rem);
  line-height: 1.1;
}

body.lang-hy .hero-title .amp {
  display: inline;
  margin: 0;
  font-size: 0.58em;
}

.hero-lead {
  max-width: 780px;
  margin: clamp(20px, 4vw, 44px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.3vw, 1.65rem);
  line-height: 1.44;
  color: rgba(47, 42, 38, 0.74);
}

.hero-meta {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 4vw, 42px);
}

.meta-pill {
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 6.4vw, 4.6rem);
  line-height: 1;
  color: var(--gold-deep);
}

.meta-pill strong {
  display: none;
}

.hero-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 64px);
  align-items: start;
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: clamp(16px, 3vw, 36px);
  border-top: 1px solid rgba(199, 160, 95, 0.44);
}

.event-card {
  min-height: 226px;
  padding: 0 clamp(18px, 3vw, 34px);
  color: var(--ink);
}

.event-card + .event-card {
  border-left: 1px solid rgba(199, 160, 95, 0.58);
}

.event-label,
.event-arrivals,
.rsvp-line,
.section-label,
.detail-card strong,
.detail-links a,
.map-links a,
.app-downloads a,
.save-note {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-label {
  margin: 0;
  font-size: 1.12rem;
  color: var(--gold-deep);
}

.event-time {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--ink);
}

.event-venue {
  margin: 16px 0 0;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.2;
  color: var(--ink);
}

.event-address {
  margin: 4px 0 0;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink-soft);
}

.event-arrivals {
  max-width: 270px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(199, 160, 95, 0.42);
  font-size: 0.88rem;
  color: var(--gold-deep);
}

.rsvp-line {
  grid-column: 1 / -1;
  margin: clamp(4px, 1vw, 16px) 0 0;
  font-size: 1.05rem;
  color: rgba(47, 42, 38, 0.78);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  margin: 0;
  background: rgba(255, 253, 248, 0.86);
  border-right: 1px solid rgba(199, 160, 95, 0.24);
  border-left: 1px solid rgba(199, 160, 95, 0.24);
}

.panel,
.quote-panel {
  padding: clamp(30px, 4.4vw, 58px);
  border-bottom: 1px solid rgba(199, 160, 95, 0.22);
  background: transparent;
}

.quote-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0.9)),
    url("couple-background.jpg");
  background-size: cover;
  background-position: center 56%;
  border-left: 1px solid rgba(199, 160, 95, 0.22);
}

body.lang-hy .quote-panel {
  grid-column: 1 / -1;
}

.section-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--gold-deep);
}

.panel h2,
.quote-panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 3.35rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.panel p,
.quote-panel p {
  margin: 0 0 18px;
  font-size: 1.12rem;
  line-height: 1.76;
}

.story-grid,
.detail-grid,
.travel-layout {
  display: grid;
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(199, 160, 95, 0.2);
}

.story-cell,
.detail-card,
.travel-layout .notes-list,
.save-box,
.map-card,
.tip-card {
  background: rgba(255, 253, 248, 0.82);
}

.story-cell {
  padding: 22px;
}

.story-cell strong,
.story-cell span {
  display: block;
}

.story-cell strong {
  margin-bottom: 4px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  background: rgba(199, 160, 95, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-card {
  padding: 24px;
  border: 1px solid rgba(199, 160, 95, 0.2);
}

.detail-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--gold-deep);
}

.detail-card p {
  color: var(--ink);
}

.detail-links,
.map-links,
.app-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-links a,
.map-links a,
.app-downloads a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(199, 160, 95, 0.28);
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.detail-links a:hover,
.map-links a:hover,
.app-downloads a:hover,
.lang-actions button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(199, 160, 95, 0.62);
}

.detail-note {
  margin-top: 22px;
}

.detail-subtitle {
  margin-top: clamp(32px, 3.25vw, 46px);
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-grid + .detail-subtitle {
  margin-top: clamp(32px, 3.25vw, 46px);
}

.detail-agenda,
.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-agenda {
  margin-top: 14px;
}

.detail-agenda li,
.notes-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(199, 160, 95, 0.26);
}

.notes-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-mark,
.list-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(199, 160, 95, 0.16);
  color: var(--gold-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.travel-panel {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 246, 239, 0.94));
}

.travel-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 1px;
  margin-top: 28px;
  background: rgba(199, 160, 95, 0.22);
  border: 1px solid rgba(199, 160, 95, 0.22);
}

.travel-layout .notes-list,
.save-box,
.map-card,
.tip-card {
  padding: 24px;
}

.travel-side,
.travel-toolkit {
  display: grid;
  gap: 1px;
  background: rgba(199, 160, 95, 0.22);
}

.map-card h3,
.tip-card h3,
.save-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.city-map {
  min-height: 260px;
  margin: 18px 0;
  background: #f8f6ef;
  overflow: hidden;
}

.city-map iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

.tip-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tip-item {
  padding-top: 12px;
  border-top: 1px solid rgba(199, 160, 95, 0.22);
}

.save-box {
  min-height: 100%;
  display: grid;
  align-content: center;
  text-align: center;
}

.save-heading {
  font-size: 2.5rem;
}

.save-note {
  margin: 0;
  color: var(--gold-deep);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(22px, 4vw, 48px) 30px;
  border: 1px solid rgba(199, 160, 95, 0.24);
  border-top: 0;
  background: rgba(255, 253, 248, 0.86);
}

.footer strong {
  color: var(--gold-deep);
  font-weight: 500;
}

body:not(.lang-hy) .footer [data-i18n="footerNames"] {
  font-family: var(--font-names);
  font-size: 3.5rem;
  line-height: 1;
}

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 246, 239, 0.86)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.94)),
    url("couple-background.jpg");
  background-size: cover;
  background-position: center 42%;
}

.lang-card {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(34px, 7vw, 68px);
  text-align: center;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(199, 160, 95, 0.46);
  box-shadow: 0 28px 80px rgba(73, 60, 45, 0.18);
}

.lang-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(199, 160, 95, 0.34);
  pointer-events: none;
}

.lang-arch {
  width: 94px;
  height: 118px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold-line);
  border-bottom: 0;
  border-radius: 54px 54px 0 0;
  opacity: 0.72;
}

.lang-invite {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-title {
  margin: 12px 0 28px;
  font-family: var(--font-names);
  font-size: clamp(4.4rem, 10vw, 6.4rem);
  font-weight: 400;
  line-height: 0.82;
  color: var(--ink);
}

.lang-title small {
  display: block;
  margin-top: 18px;
  font-family: var(--font-hy);
  font-size: 0.28em;
  line-height: 1.2;
  color: var(--ink-soft);
}

.lang-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.lang-actions button,
.lang-switch button {
  min-height: 44px;
  border: 1px solid rgba(199, 160, 95, 0.38);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  cursor: pointer;
}

.lang-actions button {
  min-width: 142px;
  padding: 12px 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(199, 160, 95, 0.34);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 40px rgba(73, 60, 45, 0.14);
}

.lang-switch button {
  width: 46px;
  min-height: 38px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fffaf4;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.await-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

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

.hero .reveal {
  animation: heroReveal 920ms var(--ease) both;
}

.hero .delay-1 {
  animation-delay: 180ms;
}

.hero .delay-2 {
  animation-delay: 360ms;
}

.delay-3 {
  transition-delay: 90ms;
}

.delay-4 {
  transition-delay: 130ms;
}

.gate-reveal {
  animation: heroReveal 760ms var(--ease) both;
}

.gate-delay-1 { animation-delay: 120ms; }
.gate-delay-2 { animation-delay: 220ms; }
.gate-delay-3 { animation-delay: 340ms; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 960px) {
  .content-grid,
  .travel-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .detail-grid,
  .hero-events {
    grid-template-columns: 1fr;
  }

  .hero-events {
    gap: 28px;
  }

  .event-card {
    min-height: auto;
  }

  .event-card + .event-card {
    padding-top: 28px;
    border-top: 1px solid rgba(199, 160, 95, 0.44);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(100% - 16px, 1220px);
  }

  .hero {
    min-height: auto;
    padding: 58px 20px 48px;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.62);
  }

  .hero-inner {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .scripture {
    width: min(94%, 440px);
  }

  .eyebrow {
    display: block;
  }

  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }

  .panel,
  .quote-panel,
  .detail-card,
  .travel-layout .notes-list,
  .save-box,
  .map-card,
  .tip-card {
    padding: 22px;
  }

  .corner {
    width: 66px;
    height: 66px;
  }

  .footer {
    display: grid;
    padding-bottom: 72px;
  }

  .lang-actions {
    display: grid;
  }
}

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