Evolution

A bird's heritable feather color affects both camouflage from predators and heat absorption in a cold region. Darker birds are less often eaten but can overheat more often during warm periods. What determines which color variant is favored overall?