A story where a book is literal magic and has the power to alter the entire class system in an illiterate kingdom? Yes, please!

A story where a book is literal magic and has the power to alter the entire class system in an illiterate kingdom? Yes, please!