When scientists study ancient seabed cores, they say they can judge the temperature of the water in the past by analyzing the magnesium to calcium ratio in foraminifera shells (both in the form of carbonate, presumably). Supposedly, they added less magnesium when the water was colder.
Why? Is it because the lighter magnesium was more likely to be locked up in ice, like Oxygen-16 vis-a-vis O-18?
Also, why the focus on foraminifera? Why not use diatom shells?