:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #666666;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --max: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", cursive;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.site-nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.menu-button {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 90px max(30px, calc((100vw - var(--max)) / 2 + 30px)) 72px;
  text-align: center;
}

[data-section] {
  --section-photo: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80");
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

[data-section]::before,
[data-section]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

[data-section]::before {
  z-index: -2;
  background: var(--section-photo) center/cover;
  filter: grayscale(1);
}

[data-section]::after {
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
}

[data-section] > * {
  position: relative;
}

#welcome {
  --section-photo: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80");
}

#letter {
  --section-photo: url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80");
}

#family {
  --section-photo: url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=1800&q=80");
}

#rsvp {
  --section-photo: url("https://images.unsplash.com/photo-1469371670807-013ccf25f16a?auto=format&fit=crop&w=1800&q=80");
}

#schedule {
  --section-photo: url("https://images.unsplash.com/photo-1505236858219-8359eb29e329?auto=format&fit=crop&w=1800&q=80");
}

#stay {
  --section-photo: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=80");
}

#travel {
  --section-photo: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1800&q=80");
}

#qa {
  --section-photo: url("https://images.unsplash.com/photo-1499678329028-101435549a4e?auto=format&fit=crop&w=1800&q=80");
}

#registry {
  --section-photo: url("https://images.unsplash.com/photo-1513201099705-a9746e1e201f?auto=format&fit=crop&w=1800&q=80");
}

#moments {
  --section-photo: url("https://images.unsplash.com/photo-1529636798458-92182e662485?auto=format&fit=crop&w=1800&q=80");
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", cursive;
  font-size: 128px;
  font-weight: 500;
  line-height: 0.92;
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: #242424;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions a,
.rsvp-form button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:last-child,
.inline-link {
  background: #fff;
  color: var(--ink);
}

.content-section {
  padding: 110px max(30px, calc((100vw - var(--max)) / 2 + 30px));
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Didot", "Bodoni 72", "Bodoni 72 Oldstyle", "Iowan Old Style", Georgia, serif;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 400;
  line-height: 1.06;
}

.text-block {
  max-width: 760px;
  color: #222;
  font-size: 18px;
}

.text-block p {
  margin-top: 0;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid article,
.timeline article,
.faq-list details {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.card-grid h3,
.timeline h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card-grid p,
.timeline p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 840px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: #222;
  font-weight: 800;
}

.rsvp-form label:nth-child(4) {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.rsvp-form button {
  width: max-content;
  border-radius: 0;
  cursor: pointer;
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.timeline article {
  min-height: 0;
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
}

.faq-list details {
  min-height: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.moments-grid div {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 49%, #dcdcdc 49% 51%, transparent 51%),
    var(--soft);
}

footer {
  padding: 44px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    white-space: normal;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .card-grid.two,
  .card-grid.three,
  .rsvp-form,
  .moments-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 82px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 20px;
  }

  main {
    padding: 0;
  }

  .hero {
    min-height: 680px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .content-section {
    padding: 72px 20px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 42px;
  }
}
