The geographic size of the Bay Area's lack of affordability doesn't get enough context. Example: San Francisco to San Jose, 48mi (77km). Both cities are about as expensive, and so is most everything in-between.
*Driving distance but it's approximate enough. (1/8)