A good hat is a fine and useful thing, both a fashion statement and a shelter