@font-face {
  font-family: "Pinyon Script";
  src: url("assets/pinyon-script.woff2") format("woff2");
  font-display: swap;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #202020;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  padding: 0 max(1rem, env(safe-area-inset-right))
    calc(clamp(1.75rem, 7vh, 4.5rem) + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.portrait,
.hero::before {
  position: absolute;
  inset: 0;
}

.portrait {
  z-index: -2;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 16%;
}

.hero::before {
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgb(10 9 8 / 28%) 63%, rgb(10 9 8 / 73%) 100%);
}

.announcement {
  text-align: center;
  text-shadow: 0 1px 18px rgb(0 0 0 / 55%);
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;
  font-size: min(23vw, 14vh, 9rem);
  font-weight: 400;
  line-height: .93;
}

h1 span {
  display: block;
}

.names {
  margin-top: .85em;
  font-size: clamp(1rem, 5.5vw, 2rem);
  letter-spacing: .105em;
  line-height: 1.15;
  text-transform: uppercase;
}

.details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .62em;
  margin-top: .35em;
  font-size: clamp(1rem, 5vw, 1.9rem);
  font-variant-numeric: lining-nums;
  line-height: 1.15;
  letter-spacing: .045em;
}

.divider {
  width: 1px;
  height: .8em;
  background: currentColor;
  opacity: .72;
}

@media (min-width: 640px) and (min-aspect-ratio: 1/1) {
  .hero {
    grid-template-columns: 56% 44%;
    place-items: center;
    padding: env(safe-area-inset-top) max(2.5vw, env(safe-area-inset-right))
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .portrait img {
    object-position: center 16%;
  }

  .hero::before {
    background: linear-gradient(90deg, transparent 45%, rgb(10 9 8 / 26%) 61%, rgb(10 9 8 / 67%) 100%);
  }

  .announcement {
    grid-column: 2;
  }

  h1 {
    font-size: min(8.9vw, 22vh, 12rem);
  }

  .names {
    font-size: clamp(1rem, 2.05vw, 2.3rem);
  }

  .details {
    font-size: clamp(1rem, 1.9vw, 2rem);
  }
}
