/* Shared by the pre-JavaScript splash and headquarters. Keep the
   preload media queries in index.html in step with these aspect-ratio bands. */
:root {
  --entry-artwork: url("/images/backyard-army-landscape.webp");
  --entry-art-height: calc(100vw * 941 / 1672);
  --entry-art-size: cover;
  --entry-art-fade-height: min(100svh, var(--entry-art-height));
  --entry-art-fade: linear-gradient(
    to bottom,
    #171d1700 calc(var(--entry-art-fade-height) * 0.45),
    #171d1740 calc(var(--entry-art-fade-height) * 0.65),
    #171d17c9 calc(var(--entry-art-fade-height) * 0.85),
    #171d17 var(--entry-art-fade-height)
  );
}
@media (max-aspect-ratio: 4/3) {
  :root {
    --entry-artwork: url("/images/backyard-army-square.webp");
    --entry-art-height: 100vw;
  }
}
@media (max-aspect-ratio: 4/5) {
  :root {
    --entry-artwork: url("/images/backyard-army-portrait.webp");
    --entry-art-height: calc(100vw * 4 / 3);
  }
}
/* Cover only crops vertically when the viewport is at least as wide in
   proportion as its poster. Otherwise fit the full width to keep the title. */
@media (aspect-ratio < 3/4), (4/5 < aspect-ratio < 1), (4/3 < aspect-ratio < 1672/941) {
  :root {
    --entry-art-size: 100% auto;
  }
}
