Text this: A two-mode numerical model with applications to coastal upwelling