Text this: Barotropic instability of coastal flows as a boundary-value problem