How a mystery novel from the golden age of detective fiction helped me accept the Church’s teaching