The Connection between Continentalness and Height

Hi! I'm relatively new to making more complex datapacks, so this may be a fairly basic question. One feature in the pack I'm creating changes the "continentalness" with a custom density function. While this is successfully altering the biomes, the actual depth in said biomes is off-kilter (most notably, Ocean biomes generating as landmasses). I'm fairly confident there's something I need to go about changing in my noise settings to accommodate for this, and I get the inkling it may be a little complex, but I'd like a bit of a pointer where I'd start looking for that!
Continue to help post