How should I buy a road bike?

How should I buy a road bike?

Despite being a relative newcomer to cycling, I seem to get asked this a lot, so rather than write the same advice out every time…