I wrote some ideas for how to actually make HTML documents a viable replacement for PDFs.https://willcrichton.net/notes/portable-epubs/