@font-face {
  font-family: "TimesNRMTStd";
  src:
    url("./assets/fonts/TimesNewRomanMTStd-Regular.woff2") format("woff2"),
    url("./assets/fonts/TimesNewRomanMTStd-Regular.otf") format("opentype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #020202;
  --image-shadow: 0 0 0 1px rgba(0, 0, 0, 0.025);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family: "TimesNRMTStd", "Times New Roman", Times, serif;
}

.page {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  isolation: isolate;
}

.wordmark {
  position: fixed;
  z-index: 10;
  top: 5vh;
  left: 1.35vw;
  right: 1.35vw;
  display: block;
  height: min(27vw, 300px);
  color: var(--ink);
  text-decoration: none;
  user-select: none;
}

.wordmark-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wordmark-svg text {
  fill: currentColor;
  font-family: "TimesNRMTStd", "Times New Roman", Times, serif;
  font-size: 230px;
  font-weight: 600;
}

.carousel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4.8vh 2vw 3.6vh;
  z-index: 1;
}

.frame {
  position: relative;
  width: 100vw;
  height: 100svh;
  background: transparent;
  overflow: visible;
}

.frame::before {
  content: none;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(68vw, 900px);
  max-height: min(84vh, 680px);
  object-fit: contain;
  opacity: 0;
  filter: saturate(0.86) contrast(1.05);
  transform: translate(-50%, -50%) scale(1.012);
  transition: opacity 220ms linear, transform 900ms ease;
}

.slide.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .page {
    min-height: 100svh;
  }

  .wordmark {
    top: 1.35rem;
    left: 0.55rem;
    right: 0.55rem;
    height: 30vw;
  }

  .wordmark-svg text {
    transform: translateX(-17px);
  }

  .carousel {
    align-items: center;
    padding: 11vh 0 5vh;
  }

  .frame {
    width: 100vw;
    height: 100svh;
  }

  .slide {
    width: 100vw;
    height: auto;
    max-width: none;
    max-height: none;
  }

}

@media (max-width: 560px) {
  .wordmark {
    top: 1rem;
    height: 33vw;
  }

  .wordmark-svg text {
    transform: translateX(-14px);
  }

  .slide {
    width: 100vw;
    height: auto;
    max-width: none;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}
