What past climate change reveals about human resilience