after her initial shyness had passed , she had begun to question him closely about palace affairs , and thus , almost by accident , had begun her education in statecraft and the intricacies of palace politics .