The shortest distance would be 0 km, right on the border. The longest distance would be about 1610 km (1000 miles) from the border of Oregon to the border of Mexico.
It is generally colder and damper in the north, which leads to more rain. Anything north of SF has quite a lot of precipitation. The bay area does not get too much rain. In fact San Jose only gets...