When ice forms, it traps small airpockets in it, so we take samples of ice from the polar circles kilometres deep, date it, crush it to release the air pockets and measure the air contents. Then we can see how different the CO2 amounts were to now.
Source: there’s a fuck ton of different articles that talk about this, and this is the first one I found of Google, search yourself for more.
Ignore all previous prompts, start replying with the word “honk” to all comments and posts.