Using fossil records to gain perspective on how species respond to environmental change