/* Mise: a minimal physics piece. A warm white room, a table drawn with three hairlines, a vermilion line for the
   tablecloth hanging over the edge, and a serif word standing on it. */
:root {
  --paper: #f3f0e8;     /* the room */
  --ink: #141414;       /* the table and the word */
  --accent: #e5432a;    /* the tablecloth */
  --muted: #8c877d;     /* the small print */
  --weight: 380;        /* how heavy the word is at rest (200 to 700) */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader Variable', Georgia, 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;
}

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

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

.cloth,
.hem {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

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

.word span {
  position: absolute;
  left: 0;
  top: 0;
  font-variation-settings: 'opsz' 72;
  will-change: transform;
}

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

.top__brand {
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
}

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

.hint,
.read {
  position: absolute;
  bottom: 22px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  pointer-events: none;
}

.hint {
  left: 24px;
  max-width: calc(100% - 210px);
  font-style: italic;
}

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

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

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

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

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