On Coastlines and Climate: How Basin Geometry Shapes Ocean Circulation and Global Climate