Thermal transitions in collagen and the preferred temperature range of animals