:root {
  color-scheme: dark;
  --ink: #f8f1e5;
  --muted: #c8bdad;
  --soft: #9f927f;
  --night: #070912;
  --navy: #0c1327;
  --navy-2: #121b34;
  --gold: #d6ad59;
  --gold-2: #f0cf83;
  --rose: #7b3e3f;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(8, 10, 20, 0.62);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Lora, Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 173, 89, 0.14), transparent 30%),
    linear-gradient(180deg, var(--night), var(--navy) 42%, #080a13 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--gold);
  color: #15100a;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 14, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 60px rgba(0,0,0,.26);
}

.brand {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--gold-2);
  line-height: 1;
  text-shadow: 0 10px 30px rgba(214,173,89,.2);
}

.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: "Playfair Display", serif;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.nav a:hover, .nav a:focus-visible { background: rgba(214,173,89,.14); color: var(--gold-2); outline: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 132px 20px 72px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, var(--night), transparent);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,14,.92), rgba(5,7,14,.55) 44%, rgba(5,7,14,.7)),
    url('/assets/hero-1.png') center/cover no-repeat;
  transform: scale(1.03);
  animation: slowZoom 22s ease-in-out infinite alternate;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(214,173,89,.18), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  margin-right: min(18vw, 260px);
}
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  color: var(--gold-2);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
}
.hero h1, .section h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  letter-spacing: -.04em;
  line-height: .95;
}
.hero h1 { font-size: clamp(3.6rem, 9vw, 8.8rem); max-width: 900px; }
.hero h1 span { font-family: "Great Vibes", cursive; color: var(--gold-2); font-weight: 400; letter-spacing: 0; }
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.75;
  margin: 28px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17100a; box-shadow: 0 18px 45px rgba(214,173,89,.2); }
.button.ghost { border: 1px solid rgba(255,255,255,.24); color: var(--ink); background: rgba(255,255,255,.04); }

.couple-card {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 72px;
  width: min(330px, calc(100% - 40px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}
.couple-card p { margin: 0; font-family: "Great Vibes", cursive; font-size: 3.1rem; color: var(--ink); line-height: .92; }
.couple-card span { display: block; color: var(--gold-2); font-size: 2rem; margin: 6px 0; }
.couple-card small { display: block; margin-top: 16px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}
.section h2 { font-size: clamp(2.4rem, 5.8vw, 5.4rem); max-width: 930px; }
.message-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 44px; }
.note-card, .moment-card, .family-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.note-card { padding: clamp(28px, 5vw, 58px); }
.note-card p { color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.85; margin: 0 0 22px; }
.note-card .signature { font-family: "Great Vibes", cursive; font-size: 3rem; color: var(--gold-2); margin-top: 30px; }
.moment-card { padding: 34px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.moment-number { font-family: "Playfair Display", serif; font-size: 5rem; color: var(--gold-2); line-height: 1; }
.moment-card p { margin: 6px 0 30px; color: var(--muted); font-size: 1rem; }

.photos { display: grid; grid-template-columns: .82fr 1.18fr; gap: 42px; align-items: center; }
.photos-copy { position: sticky; top: 130px; align-self: start; }
.photos-copy p, .family-panel p { color: var(--muted); font-size: 1.15rem; line-height: 1.8; }
.status-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(214,173,89,.28);
  border-radius: 999px;
  background: rgba(214,173,89,.08);
  color: var(--gold-2);
  font-weight: 700;
}
.status-pill span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 8px rgba(214,173,89,.12); }
.gallery-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-preview figure {
  position: relative;
  margin: 0;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-2);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.gallery-preview figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5,7,14,.74));
  pointer-events: none;
}
.gallery-preview figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(8,10,20,.68);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--gold-2);
  font-family: "Playfair Display", serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.gallery-preview figure:nth-child(2), .gallery-preview figure:nth-child(3) { transform: translateY(44px); }

.families { padding-top: 124px; }
.family-panel {
  min-height: 480px;
  display: grid;
  align-content: end;
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(5,7,14,.92), rgba(5,7,14,.44)),
    url('/assets/hero-2.png') center/cover no-repeat;
}
.family-panel h2 { max-width: 760px; }
.family-panel p:not(.section-kicker) { max-width: 660px; }

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.footer-brand { margin: 0 0 8px; }
.tiny { color: var(--soft); font-size: .92rem; }

.reveal { opacity: 1; transform: none; transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes slowZoom { from { transform: scale(1.03); } to { transform: scale(1.09); } }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; border-radius: 28px; }
  .nav { max-width: 360px; }
  .nav a { font-size: .68rem; padding: 8px 10px; }
  .hero { place-items: end start; }
  .hero-content { margin-right: 0; }
  .couple-card { position: relative; right: auto; bottom: auto; margin-top: 42px; }
  .message-grid, .photos { grid-template-columns: 1fr; }
  .photos-copy { position: static; }
}

@media (max-width: 640px) {
  .site-header { top: 10px; width: calc(100% - 20px); padding: 12px 14px; }
  .brand { font-size: 2rem; }
  .nav { display: none; }
  .hero { padding: 110px 18px 56px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .button { width: 100%; }
  .section { width: calc(100% - 28px); padding: 72px 0; }
  .gallery-preview { grid-template-columns: 1fr; }
  .gallery-preview figure { min-height: 430px; }
  .gallery-preview figure:nth-child(2), .gallery-preview figure:nth-child(3) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
