:root {
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-bg: #fff;
  --color-bg-alt: #f8f6f3;
  --color-accent: #000;
  --max-width: 960px;
  --narrow-width: 720px;
  --hero-frame-width: 540px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--narrow-width));
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  padding: 0;
}

.hero__video-wrap {
  width: min(100%, var(--hero-frame-width));
  overflow: hidden;
  background: #111;
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.invitation {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
}

.invitation p {
  margin: 0 0 1.5rem;
}

.invitation__greeting {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 2rem !important;
}

.invitation__date {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 2rem 0 !important;
}

.invitation__sign {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2.5rem;
}

.subsection__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-align: center;
  margin: 2rem 0 1rem;
}

.venue__time {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin: 1.5rem 0 0;
}

.map {
  margin-top: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  position: relative;
  padding: 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.details-list li::before {
  content: "~";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.dress-code__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.dress-code__gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.footer {
  padding: 3rem 1rem;
  text-align: center;
  background: #000;
  color: #fff;
}

.footer p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  :root {
    --hero-frame-width: 100%;
  }

  .hero {
    background: #111;
  }

  .dress-code__gallery {
    grid-template-columns: 1fr;
  }

  .invitation {
    font-size: 1rem;
    text-align: left;
  }

  .invitation__greeting,
  .invitation__date,
  .invitation__sign {
    text-align: center;
  }
}
