The near-surface dynamics of coastal upwelling