Is the CSS derived from the markdown, or you supplement MD to HTML with custom CSS? Definitely curious to know!
Custom CSS. Nothing fancy, I haven't really explored what's possible with epub.
I used a similar workflow. The CSS is for the EPUB and maps to the html elements supported. But if you get too fancy cross device support could get hairy.