By generating inline CSS variables with a markup preprocessor like Pug, we're able to generate CSS variables for positioning based on a loop index.