/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #faf7f4;
  --warm:    #f0ebe4;
  --accent:  #b0956b;
  --dark:    #2c2825;
  --muted:   #7a7067;
  --serif:   'Georgia', 'Times New Roman', serif;
  --sans:    'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 1rem;
}

/* ─── Nav ───────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem 2rem;
  background: rgba(250, 247, 244, 0.88);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

/* ─── Sections ──────────────────────────────────────────────────── */
section {
  padding: 6rem 1.5rem;
  text-align: center;
}

section:nth-child(even) { background: var(--warm); }

.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto 2rem;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  background: var(--cream);
}

#hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

#hero h1 .amp {
  font-style: italic;
  color: var(--accent);
  font-size: 0.85em;
}

#hero .date {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

#hero .scroll-hint {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#hero .scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent);
}

/* ─── Story ─────────────────────────────────────────────────────── */
#story .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

#story .card {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  border: 1px solid #e5ded6;
  border-radius: 2px;
}

#story .card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

#story .card h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

#story .card p { font-size: 0.88rem; margin: 0; }

/* ─── Schedule ──────────────────────────────────────────────────── */
#schedule .events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

#schedule .event {
  flex: 1 1 200px;
  max-width: 260px;
}

#schedule .event .time {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

#schedule .event h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

#schedule .event p { font-size: 0.88rem; }

/* ─── Wedding Party ─────────────────────────────────────────────── */
#party .members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

#party .member {
  flex: 1 1 140px;
  max-width: 170px;
}

#party .member .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ddd5c8;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.5rem;
}

#party .member h3 { font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 0.2rem; }

#party .member p { font-size: 0.78rem; margin: 0; }

/* ─── RSVP ──────────────────────────────────────────────────────── */
#rsvp form {
  max-width: 480px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

#rsvp label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}

#rsvp input,
#rsvp select,
#rsvp textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8d0c6;
  border-radius: 2px;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

#rsvp input:focus,
#rsvp select:focus,
#rsvp textarea:focus { border-color: var(--accent); }

#rsvp textarea { height: 110px; resize: vertical; }

#rsvp button {
  padding: 0.75rem 2.2rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

#rsvp button:hover { background: var(--accent); color: var(--cream); }

/* ─── Gallery ───────────────────────────────────────────────────── */
#gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 2.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

#gallery .grid .cell {
  background: #ddd5c8;
  aspect-ratio: 1;
  border-radius: 2px;
}

#gallery .grid .cell:nth-child(3n+1) { background: #d4cabc; }
#gallery .grid .cell:nth-child(3n+2) { background: #ccc2b3; }

/* ─── Footer ────────────────────────────────────────────────────── */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--dark);
  color: #8c8078;
}

footer .monogram {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

footer p { color: #8c8078; font-size: 0.78rem; letter-spacing: 0.1em; max-width: none; }
