:root {
  --paper: #f4f1ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: #2c2731;
  font-family: Arial, Helvetica, sans-serif;
}

.intro {
  width: min(calc(100% - 48px), 640px);
  margin: 18vh auto 0;
}

.intro h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
}

.intro p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.intro p + p {
  margin-top: 0.25rem;
}

.intro a {
  display: inline-block;
  margin-top: 0.75rem;
  color: #71549a;
  text-underline-offset: 0.2em;
}

.episode-counter {
  position: fixed;
  top: 24px;
  right: 24px;
  margin: 0;
  color: #71549a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.62;
}

#episode-count {
  display: inline-block;
  min-width: 5ch;
  text-align: right;
}

.parade {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  animation: parade-across 13s linear infinite;
  will-change: transform;
}

.robot {
  display: block;
  flex: 0 0 auto;
  height: auto;
}

.walker {
  width: 52px;
  aspect-ratio: 56 / 82;
  animation: walker-bob 0.5s ease-in-out infinite;
}

.tread-robot {
  width: 52px;
  aspect-ratio: 56 / 82;
  animation: tread-bob 0.7s ease-in-out infinite;
}

.propeller-robot {
  position: relative;
  width: 65px;
  aspect-ratio: 70 / 84;
  margin-bottom: 18px;
  animation: hover 1.2s ease-in-out infinite;
}

.propeller-robot::before {
  position: absolute;
  top: 20.25%;
  left: 17.15%;
  width: 65.7%;
  height: 4px;
  border-radius: 2px;
  background: #46345f;
  content: "";
  transform-origin: center;
  animation: propeller-spin 0.28s ease-in-out infinite alternate;
}

.propeller-robot img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes parade-across {
  from {
    transform: translateX(-130px);
  }

  to {
    transform: translateX(calc(100vw + 24px));
  }
}

@keyframes walker-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes tread-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes propeller-spin {
  from {
    transform: scaleX(1);
    opacity: 1;
  }

  to {
    transform: scaleX(0.16);
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parade {
    display: none;
  }
}

@media (max-width: 480px) {
  .episode-counter {
    top: 18px;
    right: 20px;
  }
}
