/* The cycloid race: two thin tracks on a black page, two beads, a headline and two times. */
:root {
  --page: #0e0e0e;          /* the page */
  --ink: #ece8df;           /* the headline, the straight track and its bead */
  --muted: #6f6b64;         /* the ledges, the brand, the times before they stop */
  --accent: #ff5a1f;        /* the cycloid's bead and the word that wins */
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-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%;
}

.track {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.track--curve {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.ledge {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.bead--line {
  fill: var(--page);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.bead--curve {
  fill: var(--accent);
}

/* ---------------------------------------------------------------- the type (placed by the script) */
.head {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1.1;
  font-weight: 360;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  user-select: none;
  -webkit-user-select: none;
}

.head__key {
  display: inline-block;
  font-stretch: calc(var(--w, 88) * 1%);
}

.times {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 96px);
  font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
}

.times__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.times dt {
  color: var(--muted);
}

.times dd {
  margin: 0;
  min-width: 4.6ch;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  font-stretch: 85%;
  font-variant-numeric: tabular-nums;
  font-weight: 420;
  color: var(--muted);
}

.times__row--curve dt {
  color: var(--accent);
}

.brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 4vh, 36px);
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand span {
  font-weight: 400;
  color: var(--muted);
}
