@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  background: #D1FDFE;
  color: #000;
  --reveal-duration: 780ms;
  --reveal-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; }
html { overflow: hidden; }
body { min-height: 100dvh; }

.artwork {
  display: block;
  width: 100%;
  height: 100dvh;
  padding: clamp(16px, 3vmin, 40px);
  -webkit-tap-highlight-color: transparent;
  transition: height var(--reveal-duration) var(--reveal-ease);
}
.artwork:focus-visible { outline: 2px solid #008AA0; outline-offset: -4px; }
.artwork picture, .artwork img { display: block; width: 100%; height: 100%; }
.artwork img { object-fit: contain; object-position: center; }

.paper {
  color: #000000;
  width: min(100% - 48px, 900px);
  margin: 0 auto;
  padding-bottom: clamp(64px, 12vh, 140px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease 220ms, transform 650ms var(--reveal-ease) 160ms;
}
.paper:focus { outline: none; }
.paper p { margin: 0 0 1.5em; }
.paper p:last-child { margin-bottom: 0; }
.paper .optimism {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  color: #078C8E;
}
.is-forward { overflow-y: auto; }
.is-forward .artwork { height: clamp(240px, 38vh, 380px); }
.is-forward .paper { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .is-forward .artwork {
    width: calc(100% - 48px);
    height: auto;
    margin-inline: auto;
    padding: 24px 0;
  }
  .is-forward .artwork picture,
  .is-forward .artwork img { height: auto; }
  .paper { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .artwork, .paper { transition: none; }
  .paper { transform: none; }
}
