/* Seen from here: a warm white page, a cloud of black threads in the middle and, at the bottom, a small dial that
   says where you are looking from. Nothing else. */
:root {
  --page: #f3f1ec;          /* the page */
  --ink: #151515;           /* the threads */
  --muted: #9a958c;         /* the dial and the angle */
  --accent: #e8452c;        /* the needle, and the mark of the point you are standing on */
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Archivo Variable', 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* without WebGL: the words, set flat in a column */
.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.1em;
  margin: 0;
  font-size: clamp(48px, 12vw, 140px);
  font-variation-settings: 'wght' 800;
  line-height: 0.9;
  text-align: center;
}

.dial {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5svh, 44px);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.dial__face {
  width: 34px;
  height: 34px;
  overflow: visible;
}

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

.dial__tick {
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.dial__needle {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.dial__angle {
  min-width: 3.4em;
  font-size: 12px;
  font-variation-settings: 'wdth' 112, 'wght' 480;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--muted);
}
