Study: Sea's thermostat protects reefs