:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #33251d;
  background: #fbf4ed;
  --ink: #33251d;
  --muted: #816d61;
  --ivory: #fff9f1;
  --paper: #fbf0e7;
  --blush: #e9b9ad;
  --rose: #d99685;
  --gold: #b98438;
  --line: rgba(185, 132, 56, 0.36);
  --shadow: 0 26px 70px rgba(104, 70, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(233, 185, 173, 0.34), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(185, 132, 56, 0.18), transparent 32%),
    linear-gradient(135deg, #fffaf4 0%, #fbf0e7 52%, #fff7ef 100%);
}

body.invitation-open {
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}

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

.button {
  min-width: 142px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 24px;
  color: #7a5526;
  background: rgba(255, 249, 241, 0.74);
  font: 700 0.78rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(104, 70, 45, 0.14);
}

.button--ivory {
  min-width: 220px;
  border-radius: 999px;
  border-color: rgba(185, 132, 56, 0.5);
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 18px 44px rgba(104, 70, 45, 0.16);
}

.button--blush {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, #e3a99c, #ca8673);
}

.button--outline {
  background: transparent;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #fbf0e7;
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.75, 0, 0.25, 1), visibility 850ms ease;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 15% 6% auto;
  height: 42%;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, rgba(229, 172, 158, 0.16), rgba(172, 111, 83, 0.24));
  clip-path: polygon(0 0, 50% 64%, 100% 0, 100% 100%, 0 100%);
  transform-origin: top center;
  transition: transform 850ms cubic-bezier(0.75, 0, 0.25, 1), opacity 650ms ease;
  pointer-events: none;
}

.splash__photo {
  position: absolute;
  inset: 0;
  background-image: url("./assets/splash-envelope.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: transform 850ms cubic-bezier(0.75, 0, 0.25, 1), filter 850ms ease;
}

.splash__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.28), rgba(255, 246, 238, 0.06) 46%, rgba(102, 63, 35, 0.14)),
    radial-gradient(circle at center 18%, rgba(255, 250, 245, 0.44), transparent 36%);
}

.splash__content {
  position: relative;
  width: min(88vw, 760px);
  margin-top: -7vh;
  text-align: center;
  color: #7a5526;
}

.crest,
.topbar__mark span,
.registry-mark {
  font-family: Georgia, "Times New Roman", serif;
}

.crest {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff8ec;
  background: radial-gradient(circle at 35% 25%, #d4a250, #8f5f21 72%);
  border: 2px solid rgba(255, 245, 220, 0.62);
  box-shadow: inset 0 0 0 5px rgba(105, 65, 28, 0.24), 0 18px 34px rgba(93, 57, 25, 0.22);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.splash h1,
.hero h2,
.section-title h2,
.welcome h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.splash h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.94;
  text-shadow: 0 2px 16px rgba(255, 250, 245, 0.8);
}

.splash p:not(.crest) {
  margin: 18px 0 30px;
  color: #bd8740;
  font-size: clamp(0.86rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.invitation-open .splash {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

.invitation-open .splash::before {
  transform: rotateX(72deg) translateY(-24%);
  opacity: 0;
}

.invitation-open .splash__photo {
  transform: scale(1.08) translateY(-4%);
  filter: blur(2px);
}

.skip-splash .splash {
  display: none;
}

.site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site::before,
.site::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(185, 132, 56, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.site::before {
  left: -150px;
  top: 430px;
}

.site::after {
  right: -170px;
  bottom: 320px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr 104px 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(185, 132, 56, 0.22);
  background: rgba(255, 249, 241, 0.82);
  backdrop-filter: blur(18px);
}

.topbar__link {
  color: #8d642d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar__mark {
  width: 104px;
  height: 86px;
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 132, 56, 0.25);
  border-top: 0;
  border-radius: 0 0 52px 52px;
  background: rgba(255, 249, 241, 0.95);
  color: #966a2e;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.topbar__mark span {
  font-size: 1.6rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
  padding: 88px max(28px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(255, 249, 241, 0.95) 0%, rgba(255, 249, 241, 0.72) 54%, rgba(255, 249, 241, 0.94) 100%),
    radial-gradient(circle at 88% 24%, rgba(233, 185, 173, 0.52), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(185, 132, 56, 0.18), transparent 28%),
    linear-gradient(135deg, #fffaf4, #faece1);
}

.hero__copy {
  width: min(100%, 520px);
  text-align: center;
}

.hero__image {
  position: relative;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 241, 0.66);
  box-shadow: var(--shadow);
}

.hero__image::before,
.hero__image::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(185, 132, 56, 0.22);
  pointer-events: none;
}

.hero__image::before {
  top: -12px;
  left: -12px;
  border-right: 0;
  border-bottom: 0;
}

.hero__image::after {
  right: -12px;
  bottom: -12px;
  border-top: 0;
  border-left: 0;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 31%;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  color: #8a632f;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h2 span {
  display: block;
  font-size: 0.58em;
  line-height: 1.05;
}

.divider {
  width: 168px;
  height: 1px;
  margin: 26px auto 34px;
  background: var(--line);
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  inset: -5px 0 0;
  margin: auto;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.welcome,
.schedule,
.cards,
.footer {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.welcome {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 74px 0 44px;
}

.script {
  margin: 0 0 4px;
  color: #c99854;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.8;
}

.welcome h2,
.section-title h2 {
  margin: 0;
  color: #8a632f;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.welcome p:not(.script):not(.signature) {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.8;
}

.signature {
  margin: 22px 0 0;
  color: #b98438;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
}

.welcome__image {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 241, 0.72);
  box-shadow: var(--shadow);
}

.welcome__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.details-strip {
  width: min(100% - 48px, 1180px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px auto 68px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 241, 0.72);
  box-shadow: 0 18px 46px rgba(104, 70, 45, 0.09);
}

.details-strip article {
  min-height: 132px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.details-strip article:last-child {
  border-right: 0;
}

.details-strip span,
.info-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details-strip strong,
.timeline strong {
  display: block;
  color: #7d5b2d;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-strip p,
.timeline p,
.info-card p,
.footer span {
  color: var(--muted);
  line-height: 1.6;
}

.section-title {
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.timeline article {
  position: relative;
  min-height: 144px;
  padding: 28px 18px;
  text-align: center;
}

.timeline article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: #b98438;
  background: #fff8ef;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 62px 0 44px;
}

.info-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(185, 132, 56, 0.28);
  background: rgba(255, 249, 241, 0.76);
  box-shadow: 0 16px 38px rgba(104, 70, 45, 0.1);
}

.info-card img,
.swatch,
.registry-mark {
  width: calc(100% - 28px);
  height: 136px;
  margin: 14px;
}

.info-card img,
.swatch {
  object-fit: cover;
}

.info-card img {
  object-position: center 31%;
}

.swatch {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(90deg, #fff8ef, #e9b9ad 44%, #b98438 44%, #b98438 52%, #fffdf8 52%);
}

.registry-mark {
  display: grid;
  place-items: center;
  color: #fff8ec;
  background: radial-gradient(circle at 35% 25%, #d4a250, #8f5f21 72%);
  font-size: 2.2rem;
  box-shadow: inset 0 0 0 7px rgba(105, 65, 28, 0.22);
}

.info-card div:last-child {
  padding: 4px 24px 28px;
  text-align: center;
}

.info-card h3 {
  margin: 0 0 14px;
  color: #8a632f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #a96f31;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card--rsvp {
  justify-content: center;
  min-height: 304px;
  background:
    linear-gradient(135deg, rgba(233, 185, 173, 0.78), rgba(255, 249, 241, 0.86)),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.9), transparent 30%);
}

.footer {
  padding: 26px 0 52px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #8a632f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer span {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr 88px 1fr;
    height: 68px;
  }

  .topbar__link:nth-of-type(2),
  .topbar__link:nth-of-type(4) {
    display: none;
  }

  .topbar__mark {
    width: 88px;
    height: 76px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: calc(100vh - 68px);
    align-items: center;
    padding-block: 54px;
    background:
      radial-gradient(circle at 50% 0%, rgba(233, 185, 173, 0.42), transparent 32%),
      linear-gradient(135deg, #fffaf4, #faece1);
  }

  .hero__copy {
    margin: 0 auto;
  }

  .hero__image {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .welcome,
  .details-strip,
  .timeline,
  .cards {
    grid-template-columns: 1fr;
  }

  .welcome {
    gap: 32px;
  }

  .details-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .details-strip article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .splash__photo {
    background-position: center center;
    background-size: auto 128%;
  }

  .splash__shade {
    background:
      linear-gradient(180deg, rgba(255, 250, 245, 0.86), rgba(255, 246, 238, 0.58) 34%, rgba(255, 246, 238, 0.26) 62%, rgba(102, 63, 35, 0.16)),
      radial-gradient(circle at center 45%, rgba(255, 250, 245, 0.62), transparent 38%);
  }

  .splash__content {
    margin-top: -2vh;
  }

  .splash h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .splash p:not(.crest) {
    letter-spacing: 0.22em;
  }

  .topbar {
    padding-inline: 14px;
  }

  .topbar__link:first-of-type {
    grid-column: 1;
    justify-self: center;
  }

  .topbar__mark {
    grid-column: 2;
  }

  .topbar__link:last-of-type {
    display: none;
  }

  .topbar__link {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.64rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: min(100%, 260px);
  }

  .welcome,
  .schedule,
  .cards,
  .footer,
  .details-strip {
    width: min(100% - 32px, 1180px);
  }
}
