"being in a brown study" is an archaic expression used to describe a state of deep contemplation.