It's tempting to think of marriage as old-fashioned.