Longstanding mystery of Sun's hot outer atmosphere solved