@font-face {
  font-family: "Director";
  src: url("/assets/director-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Director", "Courier New", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #fff;
  --ink: #050505;
  --pink: #ff69b4;
}

* {
  box-sizing: border-box;
}

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

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

.landing {
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}

.landing main,
.word-field {
  width: 100vw;
  min-height: 100vh;
}

.word-field {
  display: flex;
  height: 100dvh;
  padding: 1em;
  align-content: space-between;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.55em;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  outline: 0;
  user-select: none;
  -webkit-user-select: none;
}

.word-field span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms ease-in 120ms;
}

.word-field span:hover {
  opacity: 0.8;
  transition: opacity 50ms linear;
}

.word-field .reminder {
  opacity: 0.2;
}

.word-field:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.18);
  outline-offset: -1rem;
}

.word-field:focus-visible .reminder {
  opacity: 0.42;
}

#mobile-note {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 2rem;
  background: var(--pink);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

#mobile-note p {
  max-width: 30rem;
  margin: 0;
  line-height: 1.4;
}

noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
}

@media (max-width: 700px) {
  #mobile-note {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-field span {
    transition: none;
  }
}
