/* Engagement — maroon silk and zari gold.
   A jewel-box counterpart to the ivory wedding invitation. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: dark;
  --silk: #5c1a2e;
  --silk-deep: #3a1220;
  --silk-raised: #6e243a;
  --zari: #e6c98a;
  --zari-deep: #b8893a;
  --jasmine: #f6efe4;
  --jasmine-soft: rgba(246, 239, 228, 0.88);
  --line: rgba(230, 201, 138, 0.38);
  --display: "Cormorant Garamond", Georgia, serif;
  --engraved: "Cinzel", "Times New Roman", serif;
  --gutter: clamp(22px, 5.5vw, 88px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  background: var(--silk-deep);
  color: var(--jasmine);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--zari); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 16px 34px; cursor: pointer;
  border: 1px solid var(--zari); border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-primary { background: var(--zari); color: var(--silk-deep); }
.btn-primary:hover { background: var(--jasmine); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--zari); }
.btn-outline:hover { background: var(--zari); color: var(--silk-deep); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  background: rgba(58, 18, 32, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
.nav.scrolled { background: rgba(58, 18, 32, 0.96); border-bottom-color: var(--line); padding: 12px 0; }
.nav-inner { padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.monogram {
  font-family: var(--engraved); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--zari);
}
.monogram span { color: var(--jasmine); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--jasmine-soft);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--zari); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 1px; background: var(--zari); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- COVER: portrait in a zari frame, names engraved beside it ---------- */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 120px var(--gutter) 72px;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(230, 201, 138, 0.08), transparent 46%),
    linear-gradient(165deg, #6e243a 0%, var(--silk) 42%, var(--silk-deep) 100%);
}

.portrait {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--zari);
  background: var(--silk-deep);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(230, 201, 138, 0.45);
  pointer-events: none;
  z-index: 2;
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
}

.prelude {
  font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--zari); margin-bottom: 18px;
}
.couple {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3.2rem, 6.2vw, 6rem); line-height: 0.92; color: var(--jasmine);
}
.amp {
  display: inline-block;
  font-style: italic;
  color: var(--zari);
  font-size: 0.62em;
  margin: 0 0.12em;
}
.tagline {
  margin-top: 22px;
  max-width: 28rem;
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  color: var(--jasmine-soft);
  line-height: 1.6;
}
.cover-meta {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px);
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.cover-meta dt {
  font-family: var(--engraved); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--zari); margin-bottom: 6px;
}
.cover-meta dd {
  font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.03em; color: var(--jasmine);
}

/* ---------- INVITATION ---------- */
.invitation, .families, .events, .verse {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.invitation { background: var(--silk); }
.col-body { max-width: 740px; }
.verse-text {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem); line-height: 1.45; color: var(--jasmine);
}
.verse-ref {
  font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--zari); margin-top: 16px;
}
.invitation-message { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.invitation-message p { color: var(--jasmine-soft); font-size: 1.15rem; font-weight: 500; line-height: 1.85; }
.invitation-message p + p { margin-top: 18px; }

/* ---------- SPLIT ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--silk-deep); border-block: 1px solid var(--line);
}
.split-photo { position: relative; padding: 18px; }
.split-photo::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(230, 201, 138, 0.4);
  pointer-events: none; z-index: 2;
}
.split-photo img { width: 100%; height: 100%; min-height: clamp(320px, 56vh, 580px); object-fit: cover; object-position: 50% 30%; }
.split-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(40px, 7vw, 80px);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(230, 201, 138, 0.1), transparent 62%),
    var(--silk-deep);
}
.split-script { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4rem); color: var(--zari); line-height: 1.15; }
.split-note {
  margin-top: 14px; font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--jasmine-soft);
}

/* ---------- FAMILIES ---------- */
.families { background: #4a1830; }
.families-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.family-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.65rem, 2.8vw, 2rem); line-height: 1.2; color: var(--jasmine); }
.family-parents { font-style: italic; font-weight: 500; color: var(--jasmine-soft); margin-top: 8px; font-size: 1.1rem; }
.family-house { margin-top: 14px; font-size: 1.08rem; font-weight: 500; }
.family-address { color: var(--jasmine-soft); font-size: 1.02rem; font-weight: 500; }
.families-request {
  margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line);
  font-style: italic; font-weight: 500; color: var(--jasmine-soft); font-size: 1.1rem; max-width: 34rem;
}

/* ---------- EVENT PLAQUE ---------- */
.events { background: var(--silk-deep); text-align: center; }
.events-grid { display: flex; justify-content: center; }
.event-card {
  max-width: 460px; width: 100%; padding: 52px 36px 44px;
  background: linear-gradient(180deg, var(--silk-raised), #4a1830);
  border: 1px solid var(--zari);
  box-shadow: inset 0 0 0 6px var(--silk-deep), 0 24px 60px rgba(0, 0, 0, 0.28);
}
.event-card h2 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; font-style: italic; }
.event-meta {
  font-family: var(--engraved); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--zari); margin-top: 12px;
}
.event-venue { margin-top: 22px; font-family: var(--display); font-size: 1.38rem; font-weight: 500; }
.event-address { color: var(--jasmine-soft); font-size: 1.06rem; font-weight: 500; }
.event-actions { margin-top: 28px; }
.events-cta { margin-top: 36px; }

/* ---------- CLOSING ---------- */
.verse { background: var(--silk); border-top: 1px solid var(--line); }
.closing-message {
  max-width: 760px; margin: 0 auto; text-align: center; font-style: italic;
  font-size: clamp(1.28rem, 2.4vw, 1.65rem); line-height: 1.7; font-weight: 500; color: var(--jasmine);
}

.finale {
  position: relative; min-height: clamp(380px, 62vh, 640px);
  overflow: hidden; border-top: 1px solid var(--line);
}
.finale-photo { position: absolute; inset: 0; }
.finale-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  opacity: 0.42; filter: saturate(0.7) contrast(0.95); transform: scale(1.04);
}
.finale::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--silk) 0%, rgba(74, 18, 36, 0.35) 42%, var(--silk-deep) 100%);
}

.footer { padding: clamp(56px, 8vw, 88px) var(--gutter); text-align: center; background: var(--silk-deep); }
.footer-couple { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2.5rem; color: var(--zari); }
.footer-couple span { color: var(--jasmine); }
.footer-note {
  font-family: var(--engraved); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--jasmine-soft); margin-top: 10px;
}
.footer-made { margin-top: 16px; font-style: italic; font-weight: 600; font-size: 1.15rem; color: var(--zari); }

@media (min-width: 900px) {
  .families-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split-photo img { min-height: 420px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(58, 18, 32, 0.98);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 240px; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px var(--gutter); }

  .cover {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 96px var(--gutter) 56px;
  }
  .portrait img { aspect-ratio: 4 / 5; }
  .couple { font-size: clamp(3rem, 13vw, 4.4rem); font-weight: 500; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
