The making of the medieval Mediterranean