Predicting and mitigating future biodiversity loss using long-term ecological proxies