:root {
  color-scheme: dark;
  --paper: #080808;
  --white: #fff;
  --muted: #fff;
  --edge: #fff;
  --side: max(22px, env(safe-area-inset-left));
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.exhibition {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  isolation: isolate;
  background: #080808;
}

.paper {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #080808;
  background-image: url("black-paper-texture.png");
  background-position: center;
  background-size: cover;
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .22);
}

#sphere {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.information {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  z-index: 5;
  color: var(--white);
  transform: translateX(-50%);
  padding:
    max(32px, calc(env(safe-area-inset-top) + 24px))
    clamp(24px, 7vw, 30px);
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: .01em;
  pointer-events: none;
  transition: opacity .45s ease;
}

.exhibition.is-leaving .information {
  opacity: 0;
}

.information__copy,
.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.information [data-type] {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 5;
  margin: 0;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: none;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

.information [data-type].is-active,
.information [data-type].is-persistent {
  opacity: 1;
  visibility: visible;
}

.information a[data-type].is-active,
.information a[data-type].is-persistent {
  pointer-events: auto;
}

.information [data-link="info"] {
  top: auto;
  right: clamp(28px, 8vw, 110px);
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 7vh));
  left: auto;
  color: #fff;
  font-size: 16px;
  padding: 9px 14px 8px;
  border: 1px solid #fff;
  text-decoration: none;
  letter-spacing: .08em;
}

.information [data-link="info"] .reveal-character {
  color: #fff;
}

.information p {
  margin: 0;
  white-space: nowrap;
}

.information__copy {
  gap: 7px;
}

.information .work-title {
  font-size: .92em;
}

.reveal-character {
  display: inline-block;
  color: #fff;
  opacity: 0;
  will-change: opacity;
}

.reveal-character--space {
  width: .28em;
}

.links {
  margin-top: 26px;
  font-size: inherit;
}

.links a {
  color: #fff;
  text-align: left;
  text-decoration: none;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.links a:focus-visible {
  color: var(--white);
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.links .booking-link {
  --box-reveal: 0;
  padding: 8px 13px 7px;
  border: 1px solid rgba(255, 255, 255, var(--box-reveal));
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .04em;
  text-align: left;
}

.measure {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.measure line {
  vector-effect: non-scaling-stroke;
  stroke: var(--edge);
  stroke-width: 1;
  shape-rendering: geometricPrecision;
}

@media (max-height: 650px) {
  .information {
    font-size: clamp(16px, 4.5vw, 19px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
