Text this: Extinction risk in fluctuating and heterogeneous environments