:root {
  --cream: #f7f3eb;
  --cream-deep: #efe8da;
  --charcoal: #1c1a17;
  --ink-soft: #4a453e;
  --burgundy: #6e2432;
  --burgundy-deep: #4c1520;
  --gold: #c6a15b;
  --gold-deep: #a7843e;
  --white: #fffdf8;
  --line: rgba(110, 36, 50, 0.16);
  --shadow: 0 18px 40px rgba(110, 36, 50, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(247, 243, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--burgundy);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--burgundy);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(76, 21, 32, 0.28) 0%, rgba(76, 21, 32, 0.64) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.5rem;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .eyebrow {
  color: #e7d3ae;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 2rem;
  letter-spacing: 0.06em;
}

.dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
}

.hero .button {
  background: var(--gold);
  color: var(--burgundy-deep);
}

.hero .button:hover,
.hero .button:focus-visible {
  background: #d8bc8d;
}

.button-gold {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--gold);
}

.button-gold:hover,
.button-gold:focus-visible {
  background: var(--gold);
  color: var(--burgundy-deep);
}

.section {
  padding: 5.5rem 6vw;
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--burgundy);
}

.lede {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.featured {
  margin: 0 auto 1.25rem;
  max-width: 68rem;
}

.featured img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 68rem;
  margin: 0 auto;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 2px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.schedule {
  background: var(--cream-deep);
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.time {
  margin: 0 0 0.35rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.time-note {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--burgundy);
}

.place {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.call-card {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.call-label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.call-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.call-list li {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.call-list span {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--burgundy);
}

.call-list a {
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.call-list a:hover,
.call-list a:focus-visible {
  color: var(--gold-deep);
}

.rsvp-form,
.rsvp-success,
.bank-card {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--burgundy);
}

input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  color: var(--charcoal);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.28);
}

.hint {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.radios {
  display: flex;
  gap: 1.5rem;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--charcoal);
}

.radio input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  accent-color: var(--burgundy);
}

.rsvp-form .button {
  width: 100%;
  margin-top: 0.4rem;
}

.form-error {
  margin: 0 0 0.8rem;
  color: #8a2e2e;
  font-size: 0.95rem;
}

.rsvp-success {
  text-align: center;
}

.rsvp-success h3 {
  font-size: 2.4rem;
  color: var(--burgundy);
}

.rsvp-success p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.registry-message {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.bank-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.bank-value {
  margin: 0.15rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--burgundy);
}

.account-number {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.bank-card .button {
  width: 100%;
}

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.15rem 0;
}

.site-footer p:first-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--burgundy);
}

.lightbox {
  width: min(92vw, 72rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(48, 14, 22, 0.88);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  margin: 0 auto;
}

body:has(dialog[open]) .site-header {
  visibility: hidden;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item img {
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .dot {
    display: none;
  }
}
