The Grave’s A Fine and Private Place, by Alan Bradley

Flavia De Luce discovers a dead body while on holiday with her sisters, and must use her ingenuity and wit to outsmart the local constable and find out the truth that has been lurking in the shadows of the cozy waterside town.