:root {
  color-scheme: dark;
  --ink: #11100f;
  --ink-soft: #1b1818;
  --ivory: #f8f1e5;
  --ivory-muted: #d7cab8;
  --gold: #d9ad59;
  --rose: #b85b64;
  --teal: #4d8c86;
  --line: rgba(248, 241, 229, 0.16);
  --shadow: rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--ivory);
}

a {
  color: inherit;
}

.invite-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  padding: clamp(28px, 5vw, 72px);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.92), rgba(17, 16, 15, 0.48) 48%, rgba(17, 16, 15, 0.72)),
    linear-gradient(0deg, rgba(17, 16, 15, 0.93) 0%, rgba(17, 16, 15, 0.12) 42%, rgba(17, 16, 15, 0.56) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  right: clamp(28px, 5vw, 72px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 72%);
  opacity: 0.72;
}

.hero__content {
  width: min(760px, 100%);
  padding-block: 64px max(36px, 7svh);
}

.kicker,
.eyebrow,
.detail-card__label {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(4rem, 15vw, 10.5rem);
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ivory-muted);
  font-size: clamp(1.08rem, 2.3vw, 1.45rem);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--gold);
  color: #19120b;
  box-shadow: 0 18px 50px var(--shadow);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(248, 241, 229, 0.08);
  color: var(--ivory);
}

.button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.details-band,
.rsvp-band {
  padding: clamp(46px, 7vw, 92px) clamp(22px, 5vw, 72px);
}

.details-band {
  background:
    linear-gradient(180deg, #11100f, #181414 58%, #151616),
    var(--ink-soft);
}

.rsvp-band {
  background: #f4eadb;
  color: #181513;
}

.section-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.1rem, 5.8vw, 5.5rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 241, 229, 0.045);
}

.detail-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.detail-card span:not(.detail-card__label) {
  margin-top: auto;
  color: var(--ivory-muted);
  line-height: 1.45;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: start;
}

.rsvp-band .eyebrow {
  color: #956f2b;
}

.rsvp-layout p {
  margin: 6px 0 0;
  color: #4b4037;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

@media (max-width: 840px) {
  .hero {
    min-height: 78svh;
  }

  .section-heading,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 24px 20px;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(17, 16, 15, 0.95), rgba(17, 16, 15, 0.58)),
      linear-gradient(0deg, rgba(17, 16, 15, 0.96) 0%, rgba(17, 16, 15, 0.18) 48%, rgba(17, 16, 15, 0.6) 100%);
  }

  h1 {
    font-size: clamp(3.6rem, 20vw, 6.5rem);
  }

  .button {
    width: 100%;
  }

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

  .detail-card {
    min-height: 150px;
  }
}
