/* The line set by hand: a minimal type piece. A warm white page, one sentence in a high contrast variable serif,
   a hairline composing stick and, in the word spaces, thin springs in the only accent colour. The letters, the
   stick and the springs are an SVG drawn by the script; the readout and the hint are plain HTML. */
:root {
  --paper: #f3f0e8;   /* the page */
  --ink: #141414;     /* the letters and the stick */
  --spring: #d9431e;  /* the springs in the word spaces */
  --muted: #8e877a;   /* the readout and the hint */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bodoni Moda Variable', 'Bodoni 72', Didot, Georgia, 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 text {
  fill: var(--ink);
  font-family: 'Bodoni Moda Variable', 'Bodoni 72', Didot, Georgia, serif;
  font-optical-sizing: auto;
  font-kerning: none;
}

.stick {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 0 1;
}

.spring {
  fill: none;
  stroke: var(--spring);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the width of the word space, under the right end of the stick */
.readout {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  display: flex;
  gap: 0.9em;
  align-items: baseline;
  pointer-events: none;
  font-size: 12px;
  font-weight: 460;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variation-settings: 'opsz' 9;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  opacity: 0;
}

.readout__value {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.06em;
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(22px, 5vh);
  margin: 0;
  text-align: center;
  pointer-events: none;
  font-size: 12px;
  font-weight: 440;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variation-settings: 'opsz' 9;
  opacity: 0;
}

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

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