While neutral atmospheric boundary layers are rare over land, they occur frequently over sea. In these cases they are almost always of the conventionally neutral type, in which the neutral boundary layer is capped by a strong inversion layer and a stably stratified atmosphere aloft. In the current study, we use large-eddy simulations (LES) to investigate the interaction between a large wind farm that has a fetch of 15 km and a conventionally neutral boundary layer (CNBL) in typical offshore conditions. At the domain inlet, we consider three different equilibrium CNBLs with heights of approximately 300 m, 500 m and 1000 m that are generated in a separate precursor LES. We find that the height of the inflow boundary layer has a significant impact on the wind farm flow development. First of all, above the farm, an internal boundary layer develops that interacts downwind with the capping inversion for the two lowest CNBL cases. Secondly, the upward displacement of the boundary layer by flow deceleration in the wind farm excites gravity waves in the inversion layer and the free atmosphere above. For the lower CNBL cases, these waves induce significant pressure gradients in the farm (both favourable and unfavourable depending on location and case). A detailed energy budget analysis in the turbine region shows that energy extracted by the wind turbines comes both from flow deceleration and from vertical turbulent entrainment. Though turbulent transport dominates near the end of the farm, flow deceleration remains significant, i.e. up to 35 % of the turbulent flux for the lowest CNBL case. In fact, while the turbulent fluxes are fully developed after eight turbine rows, the mean flow does not reach a stationary regime. A further energy budget analysis over the rest of the CNBL reveals that all energy available at turbine level comes from upwind kinetic energy in the boundary layer. In the lower CNBL cases, the pressure field induced by gravity waves plays an important role in redistributing this energy throughout the farm. Overall, in all cases entrainment at the capping inversion is negligible, and also the work done by the mean background pressure gradient, arising from the geostrophic balance in the free atmosphere, is small.