/* The line that unrolls: one hairline on a warm white page, the ticks of a tape measure, a name in a soft serif. */
:root {
  --page: #f4f1ea;          /* the page */
  --ink: #151515;           /* the line and the name */
  --muted: #a19b90;         /* the small ticks and the line of type */
  --accent: #e8471c;        /* the tick at the end of the line */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Fraunces Variable', 'Fraunces', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.ticks line.is-long {
  stroke: var(--ink);
}

.end {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------------------------------------------------------------- the type */
/* the script places the name on the line and the note under the ticks */
.word {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-size: 160px;
  line-height: 1;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.ch {
  display: inline-block;
  transform-origin: 50% 100%;
}

.note {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  font-style: italic;
  font-weight: 380;
  color: var(--muted);
  white-space: nowrap;
}
