Text this: Endogenous Risk and Habitat Loss from Climate Change