:root {
  --bg: #f2f2f0;
  --paper: #ffffff;
  --text: #1b1b1b;
  --muted: #5a5a5a;
  --line: #d8d8d4;
  --accent: #223325;
  --hero1: #718b72;
  --hero2: #d6c3ab;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(113, 139, 114, 0.12), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(214, 195, 171, 0.28), transparent 33%),
    var(--bg);
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
}

.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--paper) 92%, #f3f5f1 8%);
  min-height: 100vh;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.site-header {
  text-align: center;
  padding: 2.6rem 1rem 1.2rem;
}

.site-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.site-header .kicker,
.site-header .date {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header.compact {
  padding-bottom: 0.7rem;
}

.site-nav {
  display: flex;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.96rem;
  padding-bottom: 0.2rem;
  border-bottom: 3px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(68vh, 680px);
  display: grid;
  place-items: end center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 650ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 25, 16, 0.18), rgba(15, 25, 16, 0.35)),
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.28), transparent 40%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #f7f7f4;
  margin: 0 1rem 3.2rem;
}

.hero-overlay p {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-overlay h2 {
  margin: 0.5rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  max-width: 680px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 248, 243, 0.66);
  color: #1f231f;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.hero-control-prev {
  left: 1rem;
}

.hero-control-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  padding: 2.2rem 1rem 3rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.2rem;
  animation: rise 560ms ease both;
}

.card h3,
.content-page h2 {
  font-family: "Cormorant Garamond", serif;
  margin-top: 0;
  font-size: 1.6rem;
}

.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
  line-height: 1.7;
}

.timeline p {
  border-left: 2px solid var(--line);
  margin: 0;
  padding: 0.9rem 0 0.9rem 1rem;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.party-member {
  text-align: center;
}

.party-name {
  margin: 0 0 0.55rem;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(0, 0, 0, 0.06)),
    linear-gradient(120deg, #cfdccf, #dfd3c6);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.gallery-grid div {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.1)),
    linear-gradient(120deg, #a9bda8, #d8c9b8);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.rsvp-form {
  display: grid;
  gap: 0.9rem;
  max-width: 420px;
}

.rsvp-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form button {
  padding: 0.7rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}

.rsvp-form button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border-color: var(--accent);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 0.8rem 1rem 2rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 1.6rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    scrollbar-width: thin;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 52vh;
  }

  .hero-control {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.4rem;
  }
}
