@font-face {
  font-family: "Season Serif";
  src: url("fonts/SeasonSerif-TRIAL-LightItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300;
  font-display: block;
}

@font-face {
  font-family: "Season Serif";
  src: url("fonts/SeasonSerif-TRIAL-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Season Serif";
  src: url("fonts/SeasonSerif-TRIAL-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Season Serif";
  src: url("fonts/SeasonSerif-TRIAL-MediumItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "Season Sans";
  src: url("fonts/SeasonSans-TRIAL-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Season Sans";
  src: url("fonts/SeasonSans-TRIAL-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

:root {
  --red: #cf0037;
  --cream: #fff4ef;
  --lavender: #b9b9dc;
  --deep: #18173f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--red);
  color: var(--cream);
  font-family: "Season Sans", sans-serif;
}

.wrap {
  width: min(1366px, calc(100% - 64px));
  margin: 0 auto;
}

.top-nav {
  padding-top: 34px;
}

.top-nav nav {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
}

.top-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: "Season Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.46vw, 20px);
}

.hero {
  padding: 110px 0 80px;
}

.hero-headline {
  position: relative;
  min-height: clamp(250px, 33vw, 430px);
}

.hero .name {
  margin: 0;
  font-family: "Season Serif", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(78px, 19vw, 270px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero .name-left {
  text-align: left;
}

.hero .name-right {
  text-align: right;
}

.hero .name-right .amp {
  display: inline-block;
  font-size: clamp(66px, 16.2vw, 230px);
  padding-bottom: 0.08em;
  margin-right: 0.04em;
  line-height: 1;
  vertical-align: 0.26em;
  transform: translateY(-0.03em);
}

.hero .date {
  position: absolute;
  top: 0.06em;
  right: 0;
  font-style: normal;
  font-family: "Season Serif", serif;
  font-size: clamp(34px, 5.8vw, 80px);
  margin: 0;
}

.hero .time {
  position: absolute;
  left: 0;
  bottom: 8px;
  margin: 0;
  font-family: "Season Serif", serif;
  font-size: clamp(34px, 5.8vw, 80px);
}

.info {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 72px;
  align-items: end;
  padding-top: 70px;
}

.info-text {
  align-self: center;
}

.info h2,
.cards h3,
.program h2,
.travel h2,
.rsvp h2 {
  margin: 0 0 18px;
  font-family: "Season Serif", serif;
  font-style: italic;
  font-weight: 500;
}

.info h2,
.program h2,
.travel h2,
.rsvp h2 {
  font-size: clamp(34px, 3.8vw, 50px);
}

.info p,
.cards p,
.travel p,
.rsvp p {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.46vw, 20px);
  line-height: 1.28;
  max-width: 44ch;
}

.cards a {
  color: inherit;
  text-decoration: none;
}

.info-image {
  margin: 0;
}

.info-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
}

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

.cards article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cards h3 {
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 14px;
}

.program {
  padding-bottom: 140px;
}

.timeline {
  position: relative;
  margin-top: 50px;
  min-height: 160px;
}

.track {
  position: absolute;
  left: 0;
  right: 0;
  top: 62px;
  height: 3px;
  background: var(--cream);
}

.point {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}

.point::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 51px;
  transform: translateX(-50%);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--red);
}

.hour,
.label {
  display: block;
  font-family: "Season Serif", serif;
}

.hour {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  margin-bottom: 58px;
}

.label {
  margin-top: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
}

.travel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 120px;
}

.rsvp {
  background: var(--lavender);
  color: var(--deep);
  padding: 100px 0;
  text-align: center;
}

.rsvp-inner {
  max-width: 900px;
}

.rsvp-inner p {
  margin-inline: auto;
}

.rsvp-link {
  display: inline-block;
  margin: 28px 0;
  color: var(--deep);
  font-weight: 700;
  text-decoration: underline;
}

.signature {
  font-family: "Season Serif", serif;
  font-style: italic;
  font-size: clamp(16px, 1.1vw, 20px);
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .label {
    font-size: clamp(20px, 1.8vw, 30px);
  }

  .hour {
    font-size: clamp(20px, 1.8vw, 30px);
  }
}

@media (max-width: 800px) {
  .wrap {
    width: min(1366px, calc(100% - 36px));
  }

  .top-nav nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-headline {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .hero .name,
  .hero .name-left,
  .hero .name-right {
    text-align: left;
  }

  .hero .name-right .amp,
  .hero .name-right .michael {
    display: inline;
    margin: 0;
    padding: 0;
  }

  .hero .date,
  .hero .time {
    position: static;
    font-size: clamp(28px, 7vw, 44px);
  }

  .hero .date {
    margin-top: 18px;
  }

  .info,
  .travel,
  .cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .program {
    padding-bottom: 50px;
  }

  .timeline {
    min-height: 0;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }

  .timeline::before {
    display: none;
  }

  .track {
    display: none;
  }

  .point {
    position: relative;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .point::after {
    display: none;
  }

  .hour {
    grid-column: 1;
    min-width: 0;
    font-size: clamp(18px, 5vw, 26px);
    margin-bottom: 0;
  }

  .label {
    grid-column: 2;
    margin: 0;
    font-size: clamp(18px, 5vw, 24px);
  }
}
