by Frances Hardinge
Fantastical, Gothic Mystery!
A sample to get your interest -- "Science had betrayed her. She always believed deep down that science would not judge her, even if people did. Her father's books had opened to her touch easily enough. His journals had not flinched from her all too female gaze. But it seemed that science had weighed her, labelled her, and found her wanting."
I can't recommend this book enough. It won the prestigious Costa Award in the UK. The only other YA/kids' book that has won the award was Philip Pullman's The Amber Spyglass.