:root {
  --bg: #eeeded;
  --ink: #82120d;
  --ink-soft: #9f4a45;
  --paper: #fbfaf8;
  --line: rgba(130, 18, 13, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.asset-heading {
  margin: 0;
  line-height: 0;
}

.site-nav {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(238, 237, 237, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(130, 18, 13, 0.12);
  font-size: 1rem;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 600px) minmax(220px, 0.9fr);
  align-items: center;
  gap: 24px;
  padding: 80px clamp(24px, 8vw, 110px) 48px;
  overflow: clip;
}

.hero__center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__names-logo {
  width: min(54vw, 760px);
  max-width: none;
  height: auto;
}

.rings {
  width: min(470px, 75vw);
  height: auto;
  margin: -8px auto 52px;
}

.hero__headline {
  margin: 0;
  line-height: 0;
}

.hero__headline img {
  width: min(340px, 62vw);
  height: auto;
}

.hero__date,
.hero__place {
  align-self: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.45rem;
}

.hero__date strong,
.hero__place strong {
  display: block;
  font-weight: 300;
}

.hero__date span,
.hero__date strong,
.hero__place span,
.hero__place strong {
  white-space: nowrap;
}

.ornament-line {
  width: 128px;
  height: auto;
  margin: 18px auto 0;
}

section {
  min-height: 100svh;
  padding: clamp(72px, 10vw, 128px) clamp(24px, 8vw, 112px);
  scroll-margin-top: 96px;
}

.countdown-section {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.countdown-heading {
  margin-bottom: clamp(48px, 8vw, 94px);
}

.countdown-heading img {
  width: min(520px, 90vw);
  height: auto;
}

.countdown {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 3vw, 34px);
}

.countdown div {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 4vw, 36px) 8px;
}

.countdown strong {
  display: block;
  font-weight: 300;
  font-size: 5rem;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  font-size: 1rem;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(340px, 700px);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  justify-content: center;
}

.cherub {
  width: min(180px, 24vw);
  justify-self: center;
}

.intro-media {
  display: grid;
  justify-items: center;
}

.monogram-logo {
  width: min(170px, 42vw);
  height: auto;
  margin-bottom: 28px;
}

.photo-frame {
  position: relative;
  width: min(700px, 100%);
  margin: 0;
}

.photo-frame__image {
  width: 100%;
  aspect-ratio: 447 / 296;
  object-fit: cover;
  filter: grayscale(1);
}

.photo-frame__border {
  position: absolute;
  inset: -4.5% -3.5%;
  width: 107%;
  height: 109%;
  max-width: none;
  pointer-events: none;
}

.lead {
  grid-column: 1 / -1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.9rem;
}

.location-section {
  display: grid;
  place-items: center;
  text-align: center;
}

.venue-building {
  width: min(190px, 42vw);
  height: auto;
  margin-bottom: 12px;
}

.venue-heading {
  margin-bottom: 42px;
}

.venue-heading img {
  width: min(620px, 90vw);
  height: auto;
}

.location-list {
  width: min(900px, 100%);
  display: grid;
  gap: 26px;
  justify-items: center;
}

.location-list article {
  width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px dotted var(--line);
}

h3 {
  margin: 0 0 6px;
  font-weight: 300;
  font-size: 2.25rem;
}

.location-list p,
.info-list p {
  margin: 0;
}

.schedule-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
  gap: clamp(42px, 8vw, 104px);
  align-items: center;
}

.schedule-visual,
.info-visual,
.rsvp-visual {
  display: grid;
  justify-items: center;
  text-align: center;
}

.schedule-heading {
  margin-bottom: 28px;
}

.schedule-heading img {
  width: min(280px, 70vw);
  height: auto;
}

.schedule-table {
  width: min(430px, 86vw);
  height: auto;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px dotted var(--line);
}

.timeline time {
  font-size: 2.25rem;
}

.timeline strong {
  display: block;
  font-weight: 300;
  font-size: 2rem;
}

.timeline span {
  display: block;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.info-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(400px, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.info-heading {
  margin-bottom: 26px;
}

.info-heading img {
  width: min(320px, 72vw);
  height: auto;
}

.info-couple {
  width: min(320px, 72vw);
  height: auto;
}

.info-list {
  display: grid;
  gap: 0;
}

.info-list article {
  padding: 22px 0;
  border-bottom: 1px dotted var(--line);
}

.rsvp-section {
  min-height: 90svh;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
}

.rsvp-heading img {
  width: min(650px, 92vw);
  height: auto;
}

.rsvp-bouquet {
  width: min(300px, 66vw);
  height: auto;
  margin-top: 28px;
}

.contacts {
  margin-top: 44px;
  display: grid;
  gap: 24px;
  font-size: 2rem;
}

.contacts p {
  margin: 0;
}

.contacts strong,
.contacts a {
  display: block;
  font-weight: 300;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px dotted var(--line);
}

label {
  display: grid;
  gap: 8px;
  font-size: 19px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(130, 18, 13, 0.35);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font: 22px var(--serif);
  padding: 13px 14px;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

button {
  border-radius: 0;
  cursor: pointer;
}

.rsvp-submit {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 14px 22px;
}

.rsvp-submit img {
  width: min(380px, 100%);
  height: auto;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
  background: rgba(130, 18, 13, 0.08);
}

.site-footer {
  min-height: 42svh;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 70px 24px;
  text-align: center;
}

.footer__names-logo {
  width: min(420px, 76vw);
  height: auto;
}

@media (max-width: 850px) {
  .site-nav {
    width: calc(100% - 24px);
    justify-content: center;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .hero__date,
  .hero__place {
    align-self: auto;
  }

  .hero__center {
    order: -1;
    margin-top: 42px;
  }

  .hero__names-logo {
    width: min(86vw, 560px);
  }

  .rings {
    width: min(440px, 78vw);
    margin-bottom: 42px;
  }

  .hero__headline img {
    width: min(330px, 72vw);
  }

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

  .countdown strong {
    font-size: 3.6rem;
  }

  .lead,
  .contacts {
    font-size: 1.55rem;
  }

  .intro-section,
  .schedule-section,
  .info-section,
  .rsvp-section {
    grid-template-columns: 1fr;
  }

  .cherub {
    width: min(170px, 44vw);
  }

  .schedule-section,
  .info-section,
  .rsvp-section {
    text-align: center;
  }

  .timeline {
    width: 100%;
  }

  .timeline li {
    grid-template-columns: 92px 1fr;
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 18px;
  }

  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero__names-logo {
    width: min(84vw, 420px);
  }

  .rings {
    width: min(350px, 82vw);
  }

  .countdown-heading img,
  .venue-heading img,
  .rsvp-heading img {
    width: 92vw;
  }

  .countdown strong {
    font-size: 2.8rem;
  }

  h3,
  .timeline time,
  .timeline strong {
    font-size: 1.75rem;
  }

  .countdown {
    gap: 10px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
