This flowchart was key to helping me logically lay it all out. As the chart and others have mentioned, get your emergency fund in order before you start investing.
The goal is essentially incremental financial independence, with retirement being the final “stage”. Early on, you want to limit higher interest debt and have the cushion to absorb day to day “surprises” without taking on more debt. Then you get to move into the exciting world of retirement saving, starting with employer tax-advantaged accounts and then into brokerage. I found https://www.bogleheads.org/wiki/Three-fund_portfolio helpful in simplifying the overall decision making (TL;DR index funds).
Definitely worth familiarizing yourself with the flowchart to give you the high-level familiarity. Then you’ll be hooked and pulled down the rabbit hole with the rest of us!