Feedbacks between climate, erosion, and tectonics in a critical wedge orogen