Stable oxygen isotope (δ18O) composition sensitively traces photochemical hydrocarbon oxidation at the sea surface.