:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #262626;
  --muted: #737373;
  --line: #d8d8d4;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.notice {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.message-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.52em;
  font-size: clamp(15px, 1.9vw, 21px);
  line-height: 1;
  text-align: center;
}

h1 {
  margin: 0;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: nowrap;
}

.dozer-track {
  width: 7.6em;
  height: 1em;
  overflow: hidden;
  color: var(--ink);
  position: relative;
}

.dozer-track::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.03em;
  left: 0;
  border-bottom: 1px solid var(--line);
}

.dozer {
  position: absolute;
  left: 0;
  bottom: -0.09em;
  width: 2.8em;
  height: 0.9em;
  animation: drive 4.8s steps(36, end) infinite;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.links a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.links a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes drive {
  0% {
    transform: translateX(-2.8em) translateY(0);
  }

  40% {
    transform: translateX(2.1em) translateY(-0.02em);
  }

  80% {
    transform: translateX(7.8em) translateY(0.02em);
  }

  100% {
    transform: translateX(7.8em) translateY(0.02em);
  }
}

@media (max-width: 520px) {
  .message-row {
    gap: 0.58em;
  }

  h1 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dozer {
    animation: none;
    transform: translateX(2.1em);
  }
}
