@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vt323-latin.woff2") format("woff2");
}

:root {
  --fg: #ffffff;
  --mono: "VT323", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: #000;
  color: var(--fg);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.6vw, 0.9rem);
  min-height: 100svh;
  padding: 6vh 1rem;
  text-align: center;
  overflow: hidden;
  -webkit-font-smoothing: none;
}
/* faint CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
  z-index: 2;
}
#crane {
  image-rendering: pixelated;
  width: clamp(110px, 24vw, 210px);
  height: auto;
}
.title {
  font-size: clamp(1.3rem, 5vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.count {
  font-size: clamp(1.1rem, 4vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count .unit {
  opacity: 0.75;
}
.contact {
  margin-top: clamp(0.3rem, 1.2vw, 0.7rem);
  font-size: clamp(0.8rem, 2.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}
.contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video {
  margin-top: clamp(0.7rem, 2.4vw, 1.4rem);
  font-size: clamp(0.8rem, 2.4vw, 1.1rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
  animation: pulse 1.8s ease-in-out infinite;
}
.video .play {
  display: inline-block;
  margin-right: 0.35em;
}
.video:hover {
  border-bottom-color: #fff;
  animation: none;
  opacity: 1;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
.cursor {
  display: inline-block;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}
