/* Plinth: a minimal hover piece. Warm paper, one word drawn as an architect would draw it in one-point
   perspective: solid letter faces, hairline edges running back to a vanishing point, faint construction lines and
   a horizon. The vanishing point follows the pointer on a spring, so the whole word turns in space. */
:root {
  --paper: #f3f0e8;     /* the background */
  --ink: #161513;       /* the front faces of the letters */
  --edge: #3a3833;      /* the edges that run back into depth */
  --guide: #c9c3b6;     /* the construction lines and the horizon */
  --accent: #e2482c;    /* the vanishing point and the letter under the pointer */
  --muted: #8a8478;     /* the small print */
}

* {
  box-sizing: border-box;
}

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

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

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  touch-action: pan-y;
  cursor: crosshair;
}

.top,
.bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 40px);
  z-index: 2;
  pointer-events: none;
}

.top {
  top: clamp(14px, 3.4vh, 32px);
}

.bottom {
  bottom: clamp(12px, 3vh, 28px);
}

.brand {
  font-size: 15px;
  font-weight: 640;
  font-stretch: 92%;
  letter-spacing: 0.02em;
}

.what,
.hint,
.read {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-stretch: 88%;
}

.read {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.read b {
  color: var(--ink);
  font-weight: 600;
  display: inline-block;
  min-width: 3ch;
}

.read__sep {
  display: inline-block;
  width: 10px;
}

.drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.guides line {
  stroke: var(--guide);
  stroke-width: 0.6;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
}

.horizon {
  stroke: var(--guide);
  stroke-width: 1;
}

.ticks line {
  stroke: var(--guide);
  stroke-width: 1;
}

.depth line {
  stroke: var(--edge);
  stroke-width: 1;
  stroke-linecap: round;
}

.depth line.is-hot {
  stroke: var(--accent);
}

.back path {
  fill: none;
  stroke: var(--edge);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  stroke-linejoin: round;
}

.back path.is-hot {
  stroke: var(--accent);
}

.front path {
  fill: var(--ink);
  fill-rule: evenodd;
  stroke: var(--ink);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.vp__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}

.vp__arm {
  stroke: var(--accent);
  stroke-width: 1;
}

.vp__label {
  fill: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-stretch: 85%;
}

@media (max-width: 560px) {
  .what {
    display: none;
  }

  .bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
