@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/fonts/martian-mono-latin-wdth-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

html,
body {
  height: 100%;
  margin: 0;
  background: #8f8b84;
  color: #1c1b18;
}
body {
  overflow: hidden;
  font:
    500 15px/1.4 "Martian Mono",
    ui-monospace,
    monospace;
}
canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100dvh;
}
/* The line is drawn in the field as numerals; the markup keeps it for screen readers. The
   address sits at the foot and decodes in once the field has solved. */
main {
  pointer-events: none;
}
.mail {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
}
.mail {
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  width: max-content;
  margin-inline: auto;
  padding: 4px 2px;
  color: #1c1b18;
  font:
    500 12px/1 "Martian Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  pointer-events: auto;
}
.mail:hover,
.mail:focus-visible {
  text-decoration: underline;
  text-decoration-color: #2f3df0;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.mail:focus-visible {
  outline: 1px solid #2f3df0;
  outline-offset: 4px;
}
.is-told .mail {
  opacity: 1;
}
/* While a character of the address decodes, it is a digit in ultramarine. When it
   locks it flashes paper for a moment, then settles to ink. */
.is-doubt {
  color: #2f3df0;
}
.is-locked {
  animation: lock 0.5s ease-out;
}
@keyframes lock {
  from {
    color: #f4efe5;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript {
  position: relative;
  margin: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .is-locked {
    animation: none;
  }
}
