Not necessarily detective fiction. I was thinking more along the lines of House of Leaves. Books where the protagonist falls into a rabbit hole investigating something mysterious, going through old documents and newspapers in libraries. A lot of history and maybe some philosophical explorations with an academic feel to it.
A few similar ones that come to mind are Night Film by Marisha Pessl and Ring by Koji Suzuki.
Thanks!
by SnowYoung_