What does an fMRI actually measure?

When a headline says a brain region lit up, what was measured? Not thoughts, and not even electricity. Blood, indirectly, and a few seconds late.