Understanding the midnight Sun