How might climate-related factors such as heat during pregnancy affect the demographic structure of a population over time?

A study suggests heat during pregnancy leads to fewer male babies. I wish to understand how such environmental factors could influence the sex ratio and broader population trends in the long run.