a compound of hydrogen and carbon, such as any of those that are the chief components of petroleum and natural gas.