This is an interesting idea.
I think using JavaScript is probably a better idea, but I gave it a try here:
https://css-typing-effect.netlify.app/
I lined it up while working on it, but as soon as the browser width changes, it doesn’t line up any more.