@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2");
}

:root {
  --ink: #2f493b;
  color-scheme: light;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
time { font-variant-numeric: lining-nums; }
main { text-align: center; }
.mobile-monogram { display: none; }

.masthead {
  position: relative;
  padding: 120px 4% 10px;
}

.wedding-wordmark {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  background-color: var(--ink);
  -webkit-mask-image: url("assets/our-wedding-desktop.webp");
  mask-image: url("assets/our-wedding-desktop.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}

.wedding-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

h1 {
  position: relative;
  margin: 16px auto;
  padding: 350px 0 10px;
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.date-location {
  position: relative;
  margin: 8px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.city { white-space: nowrap; }

.couple-photo {
  width: min(calc(100% - 64px), 480px);
  margin: 80px auto 0;
}

.couple-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.wedding-details {
  width: min(calc(100% - 48px), 440px);
  margin: 80px auto 0;
}

h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.save-date {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.venue {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 1px;
}

.more-details {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .5px;
}

footer { padding: 90px 16px 56px; }

.footer-monogram {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 3px;
}

@media (max-width: 1500px) {
  h1 { padding-top: 330px; }
}

@media (max-width: 1280px) {
  h1 { padding-top: 260px; }
}

@media (max-width: 1024px) {
  h1 { padding-top: 190px; }
}

@media (min-width: 768px) and (max-width: 900px) {
  h1 { padding-top: 140px; }
}

@media (max-width: 767px) {
  .wedding-wordmark {
    -webkit-mask-image: url("assets/our-wedding-mobile.webp");
    mask-image: url("assets/our-wedding-mobile.webp");
  }

  .mobile-monogram {
    display: block;
    height: 56px;
    padding: 8px 16px;
    font-size: 28px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 3px;
    text-align: center;
  }

  h1 { padding-top: 400px; padding-bottom: 0; letter-spacing: 3px; }
  .couple-photo { width: min(calc(100% - 48px), 320px); margin-top: 16px; }
  .wedding-details { margin-top: 80px; }
  h2 { font-size: 27.2px; }
  .save-date { font-size: 20px; }
  .venue { font-size: 18px; }
  .more-details { font-size: 17px; }
  footer { padding-top: 80px; }
}

@media (max-width: 640px) {
  h1 { padding-top: 330px; font-size: 45px; }
  .date-location { font-size: 17px; }
}

@media (max-width: 600px) {
  h1 { padding-top: 270px; }
}

@media (max-width: 500px) {
  h1 { padding-top: 210px; }
}

@media (max-width: 430px) {
  h1 { padding-top: 170px; }
}

@media (max-width: 380px) {
  h1 { padding-top: 140px; }
}

@media (max-width: 320px) {
  h1 { padding-top: 90px; }
}
