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

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

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}

@property --x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 48%;
}

@property --y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 62%;
}

@property --solid {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 20%;
}

@property --fade {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 52%;
}

:root {
  --cardinal: #8c1515;
  --paper: #f3eee6;
  --soil: #6f5a46;
  --sage: #8a9278;
  --charcoal: #292725;
  --oat: #d8cdbd;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--cardinal);
  color: var(--paper);
}

.spread {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(22rem, 1fr) auto;
}

.plate {
  --x: 46%;
  --y: 58%;
  --solid: 8%;
  --fade: 36%;
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: clamp(14px, 1.5vw, 22px) clamp(14px, 1.5vw, 22px) 0;
  background: var(--charcoal);
  color: var(--paper);
  transition:
    --x 0.55s ease,
    --y 0.55s ease,
    --solid 1.7s cubic-bezier(0.16, 0.84, 0.32, 1),
    --fade 1.9s cubic-bezier(0.16, 0.84, 0.32, 1);
}

.will-intro .plate {
  --solid: 0%;
  --fade: 0%;
}

.will-intro .plate.is-open {
  --solid: 8%;
  --fade: 36%;
}

.plate__stage {
  position: absolute;
  inset: 0;
}

.plate__base,
.plate__clear {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  user-select: none;
  -webkit-user-drag: none;
}

.plate__base {
  filter: saturate(0.35) contrast(1.08) brightness(0.86) sepia(0.22);
}

.plate__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(138, 146, 120, 0.95) 0%,
      rgba(111, 90, 70, 0.55) 46%,
      rgba(140, 21, 21, 0.72) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.plate__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 58%, transparent 36%, rgba(41, 39, 37, 0.38) 100%);
  pointer-events: none;
}

.plate__clear {
  -webkit-mask-image: radial-gradient(
    circle at var(--x) var(--y),
    #000 0%,
    #000 var(--solid),
    transparent var(--fade)
  );
  mask-image: radial-gradient(
    circle at var(--x) var(--y),
    #000 0%,
    #000 var(--solid),
    transparent var(--fade)
  );
}

.plate__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.22;
}

.copy {
  padding:
    clamp(1.2rem, 2vw, 1.65rem)
    clamp(1.25rem, 3vw, 2.75rem)
    max(1.35rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  border-top: 4px solid var(--cardinal);
  background: var(--paper);
}

.mast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 clamp(0.85rem, 1.6vw, 1.2rem);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soil);
}

.mast::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cardinal);
  flex: none;
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.hello,
.soon {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.03em;
}

.hello {
  font-size: clamp(3.25rem, 5.2vw, 5.6rem);
  line-height: 0.96;
}

.hello em {
  font-style: italic;
  font-weight: 600;
  color: var(--cardinal);
}

.announce {
  justify-self: end;
  max-width: 100%;
}

.lead {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--soil);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.35;
}

.soon {
  display: block;
  color: var(--cardinal);
  font-size: clamp(3.35rem, 6vw, 6.25rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.soon em {
  font-style: italic;
  font-weight: 500;
}

.line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.16em 0.22em 0;
}

.line > span {
  display: block;
}

.will-intro .line > span {
  animation: rise 1s cubic-bezier(0.16, 0.84, 0.32, 1) both;
}

.will-intro .hello .line:nth-child(2) > span {
  animation-delay: 0.1s;
}

.will-intro .lead {
  animation: arrive 0.8s ease both;
  animation-delay: 0.22s;
}

.will-intro .soon .line:nth-child(1) > span {
  animation-delay: 0.26s;
}

.will-intro .soon .line:nth-child(2) > span {
  animation-delay: 0.38s;
}

.will-intro .mast {
  animation: arrive 0.7s ease both;
}

@keyframes rise {
  from {
    transform: translateY(108%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .spread {
    grid-template-rows: auto auto;
  }

  .plate {
    aspect-ratio: 4 / 3;
    min-height: 16rem;
  }

  .plate__base,
  .plate__clear {
    object-position: 50% 50%;
  }

  .statement {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
    align-items: start;
  }

  .announce {
    justify-self: start;
  }

  .hello {
    font-size: clamp(3.15rem, 14vw, 4.8rem);
  }

  .soon {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }
}

@media (max-width: 420px) {
  .soon {
    letter-spacing: -0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate,
  .will-intro .plate,
  .will-intro .plate.is-open {
    --solid: 8%;
    --fade: 36%;
    transition: none;
  }

  .will-intro .line > span,
  .will-intro .lead,
  .will-intro .mast {
    animation: none;
  }
}
