/* ============================================================
   BACKDROP — the weaving hall at the Toyota museum in Nagoya, very faint,
   behind the right side of the first screen, fading into clean paper where
   the text is. A greyscale photo, faded by gradients in the page colour.
   ============================================================ */

body {
  position: relative;
}

main.page {
  position: relative;
  z-index: 1;
}

.backdrop {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 60vw;
  height: min(100vh, 900px);
  pointer-events: none;
  background:
    linear-gradient(to right, var(--color-bg) 0%, transparent 50%),
    linear-gradient(to top, var(--color-bg) 0%, transparent 45%),
    url('../img/bg-hall.jpg') 40% 50% / cover no-repeat;
  opacity: 0.2;
}

@media (prefers-color-scheme: dark) {
  .backdrop { opacity: 0.1; }
}

/* Phones: the text runs full width, so the hall stays a hint at the top right */
@media (max-width: 640px) {
  .backdrop {
    width: 70vw;
    height: 46vh;
    opacity: 0.14;
  }
}
