[1] https://www.literatureandlatte.com/scrivener.php
I use Pandoc to generate my EPUB and then Sigil to do a bit of tidying. Usually just the front matter etc.
Some other resources here, the slides from ConFoo are the most up to date http://rachelandrew.co.uk/presentations/css-books