The Tainted Cup 

by Robert Jackson Bennett

Shadow of the Leviathan 
(Book 1)

In an empire shielded from colossal sea beasts by engineered plants and a rigid civil service, a young investigator with a flawless memory is assigned to a brilliant, eccentric detective. When an official dies in bizarre circumstances, the pair must pick through imperial hierarchies, exams, and guarded departments to find the culprit. It blends a Holmes-like mystery with inventive worldbuilding and a sharp eye for institutional politics.

Goodreads: 4.29
Rated 4.29 out of 5