html, body {
  margin: 0;
  min-height: 100%;
  background: #090a0c;
}
#homepage {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: 54px 45px;
  background: #090a0c;
  color: #ededed;
  text-align: center;
  font: 16px "Times New Roman", Times, serif;
}
#homepage .site-copy {
  position: relative;
  width: 100%;
  max-width: 440px;
}
#homepage h1 {
  margin: 0;
  font: bold 30px "Times New Roman", Times, serif;
}
#homepage p {
  margin: 12px 0 22px;
  line-height: 1.5;
}
#homepage hr {
  border: 0;
  border-top: 1px solid #bbb;
  margin: 0 0 20px;
}
#homepage nav {
  line-height: 2;
}
#homepage a, #homepage a:visited {
  color: #8facff;
  text-decoration: underline;
}
#homepage .site-copy p a, #homepage .site-copy p a:visited {
  color: inherit;
  text-decoration: none;
}
#homepage .footer-count {
  margin-top: 40px;
  min-height: 15px;
  color: #999;
  font: 400 13px "Courier New", Courier, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
#homepage .mascot {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: center;
  width: 180px;
  height: 96px;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 24px 0 0;
  background: transparent;
  color: inherit;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#homepage .ferris {
  --cell-width: 3px;
  --cell-height: 6px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(60, var(--cell-width));
  grid-auto-rows: var(--cell-height);
  width: 180px;
  height: 90px;
  padding: 0;
  margin: 0;
  gap: 0;
}
#homepage .ferris span {
  display: block;
  width: 100%;
  height: 100%;
}
#homepage .ferris .ferris-eye {
  position: absolute;
  left: calc(25 * var(--cell-width));
  top: calc(7 * var(--cell-height));
  width: calc(5 * var(--cell-width));
  height: calc(3 * var(--cell-height));
  background: #000;
  /* Keep the black silhouette fixed around the moving white pixels. */
  clip-path: polygon(
    var(--cell-width) 0,
    calc(4 * var(--cell-width)) 0,
    calc(4 * var(--cell-width)) var(--cell-height),
    100% var(--cell-height),
    100% 100%,
    0 100%,
    0 var(--cell-height),
    var(--cell-width) var(--cell-height)
  );
  pointer-events: none;
}
#homepage .ferris .ferris-eye-right {
  left: calc(34 * var(--cell-width));
}
#homepage .ferris .ferris-gaze {
  /* Leave room for a one-pixel nudge in every direction, even on mobile. */
  position: relative;
  left: 1px;
  top: 2px;
  display: grid;
  grid-template-columns: repeat(5, var(--cell-width));
  grid-auto-rows: var(--cell-height);
}
@media (max-width: 560px) {
  #homepage {
    padding: 38px 24px;
  }
  #homepage .mascot {
    width: 120px;
    height: 64px;
  }
  #homepage .ferris {
    --cell-width: 2px;
    --cell-height: 4px;
    width: 120px;
    height: 60px;
  }
}

#homepage .ferris .r {
  background: #eb5a46;
}
#homepage .ferris .b {
  background: #000;
}
#homepage .ferris .w {
  background: #fff;
}
#homepage .footer-count {
  max-width: 100%;
  font-size: min(13px, calc((100vw - 48px) / (var(--digits) * 0.61)));
}
#homepage a:focus-visible {
  outline: 2px solid #8facff;
  outline-offset: 4px;
}
