The Arithmancer is one of my favourite fanfictions. Hermione’s the character - she’s a maths prodigy, and the fanfic explores the maths of magic, and goes fully in depth in the universe. It’s well-thought-out, and while the writing is variable, it’s bearable because of the sheer characterisation and imagination.
It’s also very very long.
530k words.