Scotland’s incoming first minister has a daunting in-tray