Evolution of adaptation through allometric shifts in a marine snail