Joan Didion dies; writer chronicled culture with cool detachment