The same way it was solved for centuries, high foot traffic incentivized a small grocer to pop up within walking distance. People in the neighborhood generally take jobs in the neighborhood, because there is high foot traffic, so there are jobs. Even doctors and nurses can get in on that, because it’s dense enough that a hospital is easy walking or biking distance, and their jobs are 100% not remote-friendly.