The publisher has profited by taking magazine brands into the 21st century