Before investing, before anything, comes the cushion that keeps one bad month from becoming a catastrophe. See your target and how fast you can get there.
A simple, exact calculation: essential monthly expenses times the months of cushion you choose, minus what you have saved.