The formatting looks excellent as well. Do you mind sharing what intermediate programs you used to produce the final PDF? did you use some kind of Latex generation or something else that is accessible to others. I can imagine that others here might tackle similar projects in the future and it would be good to know if you've got a particularly useful methodology that others can duplicate.
Programs:
pdftotext - extracting a text layer from pdfs
neovim - text processing and spellchecking
typst - typesetting and pdf compiling (similar to Latex but I prefer this markup system)
zathura - pdf viewing
Methodology:
I instruct Neovim to send the file I work on to Typst to generate pdf and show the end result in Zathura. This way I can instantly see the end product with one press of a button.