Plot twist:
The duke isn't the ML at all and just a red herring. The younger sister is the one that will rescue her and her brother out of this place. Ertha will or won't find a different partner. Duke dukes it out with the pope in the end and they both die.
Happy End.
...one can dream, right?