:root {
  color-scheme: dark;

  --bg: #020509;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  height: 100%;

  background: var(--bg);
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;

  background: var(--bg);
}

picture {
  position: fixed;
  inset: 0;

  display: block;

  width: 100%;
  height: 100vh;
  height: 100svh;

  background: var(--bg);
}

.landing-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  background: var(--bg);

  user-select: none;
  -webkit-user-select: none;

  -webkit-user-drag: none;
}

/*
 * Mobile
 *
 * index.html supplies the dedicated portrait artwork:
 * bbeca-phone-landing-image-01.png
 *
 * Because the artwork is designed specifically for phones,
 * it can fill the viewport rather than being letterboxed.
 */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100svh;

    overflow: hidden;
  }

  picture {
    width: 100vw;

    height: 100vh;
    height: 100svh;
  }

  .landing-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
  }
}

/*
 * Very narrow phones
 *
 * Keep the portrait artwork centered while allowing the
 * browser to crop only a small amount from the outer edges
 * if necessary.
 */
@media (max-width: 420px) {
  .landing-image {
    object-fit: cover;
    object-position: center center;
  }
}

/*
 * Landscape phones
 *
 * Use the available viewport cleanly if a phone rotates.
 */
@media (max-width: 900px) and (orientation: landscape) {
  .landing-image {
    object-fit: cover;
    object-position: center center;
  }
}
