:root {
  --forest: #1a3329;
  --forest-deep: #102019;
  --ivory: #f3eee4;
  --hero-text: #f6f1e8;
  --serif: "Newsreader", Palatino, "Palatino Linotype", Georgia, serif;
  --pad: clamp(1.6rem, 6vw, 7rem);
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--hero-text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
h1 {
  margin: 0;
}

h1,
.soon {
  text-wrap: balance;
}

.lede {
  text-wrap: pretty;
}

::selection {
  background: var(--ivory);
  color: var(--forest);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(1.35rem, 3.2vh, 2.4rem) var(--pad) clamp(2.2rem, 6vh, 4.5rem);
}

.slides,
.screen-shade {
  position: absolute;
  inset: 0;
}

.slides {
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
}

.slides.is-live .slide {
  transition-property: opacity;
  transition-duration: 2.8s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.slide:nth-child(1) {
  object-position: 32% 50%;
}

.slide.is-current,
.slide.is-previous {
  opacity: 1;
}

.slide.is-current {
  z-index: 1;
}

.screen-shade {
  z-index: 2;
  background:
    radial-gradient(ellipse 78% 62% at 16% 82%, rgba(10, 18, 14, 0.78), transparent 68%),
    linear-gradient(180deg, rgba(10, 18, 14, 0.42) 0%, rgba(10, 18, 14, 0.05) 28%, rgba(10, 18, 14, 0.08) 52%, rgba(10, 18, 14, 0.5) 100%),
    linear-gradient(90deg, rgba(10, 18, 14, 0.5) 0%, rgba(10, 18, 14, 0.12) 48%, transparent 72%),
    linear-gradient(270deg, rgba(10, 18, 14, 0.5) 0%, rgba(10, 18, 14, 0.08) 32%, transparent 52%);
}

.logo,
.screen-foot {
  position: relative;
  z-index: 3;
}

.logo {
  align-self: flex-start;
  flex: none;
  display: block;
  width: auto;
  height: clamp(7.25rem, 16vh, 9.75rem);
  aspect-ratio: 592 / 740;
  object-fit: contain;
  margin: 0.2rem 0 0;
}

.mark {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.mark-amor {
  top: 8%;
  right: 6%;
  width: auto;
  height: clamp(16rem, 42vh, 26rem);
  aspect-ratio: 403 / 581;
  transform: rotate(-14deg);
}

.mark-memento {
  top: 46%;
  right: 28%;
  width: clamp(15rem, 28vw, 22rem);
  height: auto;
  aspect-ratio: 501 / 327;
  transform: rotate(11deg);
}

.mark-books {
  top: 28%;
  left: -1%;
  width: auto;
  height: clamp(18rem, 52vh, 32rem);
  aspect-ratio: 230 / 319;
  transform: rotate(8deg);
}

.mark-mood {
  top: 7%;
  left: 30%;
  width: clamp(14rem, 24vw, 21rem);
  height: auto;
  aspect-ratio: 459 / 144;
  transform: rotate(-8deg);
}

.screen-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.screen-copy {
  max-width: 34rem;
  text-shadow: 0 1px 18px rgba(12, 16, 14, 0.28);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex: none;
  text-align: right;
  font-size: 1.2rem;
  line-height: 1.35;
  text-shadow: 0 1px 18px rgba(12, 16, 14, 0.28);
}

.contact-social {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.contact a {
  color: inherit;
  text-decoration: none;
  transition-property: opacity;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.contact a:hover {
  opacity: 0.72;
}

.contact a:focus-visible {
  outline: 1px solid var(--hero-text);
  outline-offset: 3px;
}

.contact-social a {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.contact-social svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.place {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

h1 {
  max-width: 12em;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  padding-bottom: 0.04em;
}

.lede {
  max-width: 26rem;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.35;
  color: var(--hero-text);
}

.soon {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  padding-bottom: 0.06em;
}

@media (max-width: 720px) {
  .screen-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    align-items: flex-start;
    text-align: left;
    margin-top: 0.4rem;
  }

  .mark-amor {
    top: 6%;
    right: -4%;
    height: 13rem;
    transform: rotate(-12deg);
  }

  .mark-memento {
    top: 38%;
    right: 4%;
    width: 12.5rem;
    transform: rotate(9deg);
  }

  .mark-books {
    top: 48%;
    left: -8%;
    height: 14rem;
    transform: rotate(6deg);
  }

  .mark-mood {
    top: 4%;
    left: 18%;
    width: 11rem;
    transform: rotate(-7deg);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.55rem, 11vw, 3.15rem);
  }
}

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