.track {
  position: relative;
  block-size: 7rem;
  background: #f4f4f0;
  color: black;
}

.track__a,
.track__b {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 1rem;
  block-size: 1rem;
  border-radius: 50%;
  offset-path: path("M 16 100 L 240 20");
}

.track__a {
  background: #1d3557;
  offset-distance: 20%;
}

.track__b {
  background: #e76f51;
  offset-distance: 80%;
}