The Earth’s land and oceans take time to heat up or cool down. Thus, although the summer solstice brings the longest day, the warmest temperature comes a month or two later. In science, this effect is called seasonal lag.