/* Hall: a minimal physics piece. A warm white page, one sentence set in a variable typeface, two hairline walls at
   its ends and, under it, a thin trace of the pressure running through it. */
:root {
  --paper: #f4f1ea;     /* the page */
  --ink: #141414;       /* the letters, the walls and the trace */
  --accent: #2b4cff;    /* the wall that knocks, and the letters where the push is strongest */
  --muted: #8f8a80;     /* the axis, the marks and the small print */
  --weight: 380;        /* how heavy the letters are at rest (100 to 900) */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto Flex Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  outline: none;
}

.stage.is-over {
  cursor: grab;
}

.stage.is-grabbing {
  cursor: grabbing;
}

.line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  font-weight: var(--weight);
  font-size: 64px;
  line-height: 1;
  white-space: pre;
  pointer-events: none;
}

/* every letter is placed by the script around its own centre */
.ch {
  position: absolute;
  left: 0;
  top: 0;
  font-variation-settings: 'opsz' 96;
  will-change: transform;
}

.scope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wall {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.axis {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.marks {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}

.trace {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.top {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.top__brand {
  font-weight: 700;
  font-variation-settings: 'wdth' 120, 'opsz' 12;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top__note {
  color: var(--muted);
  font-weight: 420;
  text-align: right;
}

.hint,
.read {
  position: absolute;
  bottom: 22px;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 420;
  letter-spacing: 0.01em;
  color: var(--muted);
  pointer-events: none;
}

.hint {
  left: 24px;
  max-width: calc(100% - 170px);
}

.read {
  right: 24px;
  display: flex;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.read__value {
  display: inline-block;
  min-width: 3em;
  text-align: right;
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 560px) {
  .top {
    top: 18px;
    left: 16px;
    right: 16px;
  }

  .hint {
    left: 16px;
    bottom: 18px;
  }

  .read {
    right: 16px;
    bottom: 18px;
  }
}
