@font-face {
  font-family: "Gantari";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/gantari-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/marcellus-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: oklch(0.16 0.028 235);
  --ink: oklch(0.97 0.012 170);
  --muted: oklch(0.82 0.035 190);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family: "Gantari", "Avenir Next", system-ui, sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

p,
h1 {
  margin: 0;
}

.holding-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.artwork {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  clip-path: inset(0 0 0 100%);
  animation: passage-reveal 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.artwork__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  animation: water-drift 10s ease-in-out 1.6s infinite alternate;
}

.masthead {
  position: absolute;
  z-index: 1;
  top: clamp(1.5rem, 4vw, 3.75rem);
  right: clamp(1.5rem, 5vw, 5rem);
  left: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  animation: copy-arrival 900ms ease-out 450ms forwards;
}

.wordmark {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(0.88rem, 1.25vw, 1.1rem);
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.location,
.status {
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.13em;
}

.location {
  color: var(--muted);
  white-space: nowrap;
}

.status {
  color: var(--ink);
}

.message {
  position: absolute;
  z-index: 1;
  top: 24%;
  left: clamp(1.5rem, 5vw, 5rem);
  max-width: min(44rem, 51vw);
  opacity: 0;
  animation: copy-arrival 1s ease-out 650ms forwards;
}

.message h1 {
  max-width: 12ch;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.status {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@keyframes passage-reveal {
  to {
    clip-path: inset(0);
  }
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes water-drift {
  from {
    transform: scale(1.012) translate3d(-2px, 0, 0);
  }

  to {
    transform: scale(1.012) translate3d(3px, -2px, 0);
  }
}

@keyframes mobile-water-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(2px, -1px, 0);
  }
}

@media (max-width: 700px) {
  .holding-page {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: clamp(1.5rem, 6vw, 2.5rem);
    min-height: 100svh;
    padding: clamp(1.25rem, 6vw, 2rem);
    overflow: visible;
  }

  .masthead {
    position: relative;
    inset: auto;
    display: grid;
    gap: 0.55rem;
    animation-delay: 300ms;
  }

  .wordmark {
    font-size: 0.9rem;
  }

  .location {
    font-size: 0.68rem;
  }

  .artwork {
    position: relative;
    z-index: 0;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .artwork__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    animation-name: mobile-water-drift;
  }

  .message {
    position: relative;
    inset: auto;
    max-width: 100%;
    align-self: start;
    animation-delay: 500ms;
  }

  .message h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 13vw, 4.1rem);
    line-height: 1.02;
  }

  .status {
    margin-top: clamp(1.25rem, 5vw, 2rem);
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artwork,
  .artwork__image,
  .masthead,
  .message {
    animation: none;
  }

  .artwork {
    clip-path: inset(0);
  }

  .artwork__image {
    transform: none;
  }

  .masthead,
  .message {
    opacity: 1;
    transform: none;
  }
}
