It's an art more than a science. Everybody has slightly different anatomy / proportions so it's an individual journey.
I focus on keeping my weight in my heels. I think 70/30 heels/toes weight distribution, don't want to get over your toes too much. Bar should move within your footprint.