Typesetting a novel for Print with HTML & CSS Paged Media

I've been fol­lo­wing new deve­lop­ments around CSS Paged Media and PrintCSS for a while now. I never had the chan­ce to test them out in a real word pro­ject. Until recent­ly. The publi­shing house I work for wants to pro­du­ce per­so­na­li­zed novels. Custo­mers can cus­to­mi­ze (*badum *tsch) their novel in a web fron­ted writ­ten in Python.