:root {
  --paper: #f7f0e4;
  --wine: #6e2f2a;
  --gold: #b08948;
  --ink: #2c2218;
  --soft: #e9dcc8;
  --serif: "Libre Baskerville", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.top {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  color: #f7f0e4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.top nav { display: flex; gap: 1.6rem; font-size: 0.95rem; }
.top nav a:hover { color: var(--gold); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(247, 240, 228, 0.5);
  color: #f7f0e4;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100svh;
  padding: 5.5rem 1.25rem 2rem;
  color: #f7f0e4;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-veil {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(44, 34, 24, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(20, 14, 10, 0.22);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.script {
  font-family: var(--script);
  font-size: 2rem;
  color: #e8c989;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.2;
  margin: 0.4rem 0 1rem;
}
.times {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.6rem;
}
.btn {
  background: var(--wine);
  color: #f7f0e4;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
}
.btn:hover { background: #56241f; }

.letter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.letter figure {
  overflow: hidden;
  min-height: 0;
}
.letter figure img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  object-position: center top;
}
.letter article {
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  color: var(--wine);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}
.letter h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0.8rem 0 1.2rem;
}
.letter p { max-width: 34rem; }
.sign {
  margin-top: 1.4rem;
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--wine);
}

.gather { padding: 5rem 2rem; text-align: center; background: var(--soft); }
.gather h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}
.gather header p { color: #5c5042; margin: 0.5rem 0 2.4rem; }
.gather ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.gather li {
  background: var(--paper);
  padding: 1.8rem 1rem;
  border-top: 3px solid var(--wine);
}
.gather strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.gather span { display: block; color: #5c5042; font-size: 0.95rem; }

.moments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.moments figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.moments figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.moments figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 5rem 3rem;
}
.visit h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.addr { margin-top: 1.2rem; color: var(--wine); font-weight: 700; }
form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
input, select {
  background: #fff;
  border: 1px solid #d8cbb6;
  padding: 0.7rem 0.8rem;
  border-radius: 4px;
}
form button {
  background: var(--wine);
  color: #f7f0e4;
  border: none;
  padding: 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.4rem;
}
form button:hover { background: #56241f; }

footer {
  text-align: center;
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
}
.powered {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #cbbca8;
}
.powered a {
  color: #e8c989;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .menu-btn { display: block; }
  .top {
    padding: 1rem 1.15rem;
  }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.8rem;
    text-shadow: none;
  }
  .top.open nav { display: flex; }
  .hero {
    min-height: 100svh;
    padding: 4.8rem 1rem 1.2rem;
    align-items: flex-end;
  }
  .hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
  .hero-veil {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    padding: 1.4rem 1.2rem;
    background: rgba(44, 34, 24, 0.26);
  }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .letter, .gather ul, .moments, .visit { grid-template-columns: 1fr; }
  .letter figure {
    aspect-ratio: 4 / 5;
  }
  .letter figure img {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }
  .letter article, .visit { padding: 2.2rem 1.15rem; }
  .gather { padding: 3rem 1.15rem; }
  .moments figure { aspect-ratio: 4 / 3; }
  .btn, form button { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .script { font-size: 1.55rem; }
  .times { letter-spacing: 0.08em; }
}

/* Motion */
.hero-veil > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-veil > *:nth-child(1) { animation-delay: 0.1s; }
.hero-veil > *:nth-child(2) { animation-delay: 0.25s; }
.hero-veil > *:nth-child(3) { animation-delay: 0.4s; }
.hero-veil > *:nth-child(4) { animation-delay: 0.55s; }

.hero,
.letter figure,
.moments figure {
  overflow: hidden;
}
.hero > img {
  animation: kenburns 24s ease-out forwards;
}
.letter figure img,
.moments figure img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.letter figure:hover img,
.moments figure:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.btn,
form button {
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover,
form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(110, 47, 42, 0.28);
}

.gather li {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gather li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44, 34, 24, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-veil > *,
  .hero > img,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
