After Brit Marling and Zal Batmanglij finished writing “A Murder at the End of the World,” Marling remembers thinking how difficult it was going to be to cast the lead, an amateur detective named Darby Hart. “How do we find somebody who can be in literally every scene and who’s young and can be believably Gen Z and an amateur …