/* The word spaced by the caliper: a minimal type piece. A warm white page, one word in a variable grotesque and a
   hairline caliper in vermilion. Letters and calipers are an SVG drawn by the script; the hint is plain HTML. */
:root {
  --paper: #f4f1ea;   /* the page */
  --ink: #141414;     /* the letters and the readings */
  --accent: #e0442a;  /* the caliper, and a reading when it is right */
  --muted: #8d877b;   /* the small hint at the bottom */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.stage:focus-visible::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.scene .letter {
  fill: var(--ink);
  font-family: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  font-kerning: none;
}

.jaw {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: square;
}

.reading {
  font-family: 'JetBrains Mono Variable', ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 460;
  text-anchor: middle;
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(22px, 5vh);
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: 'JetBrains Mono Variable', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 420;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint__line {
  display: block;
  opacity: 0;
  white-space: nowrap;
}

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

@media (max-width: 600px) {
  .hint {
    font-size: 10px;
  }
}
