How to buy an out of state car?

I know each state has its own rules. But using caredge i found the car i want two states over but I am struggling with how to buy it and then manage the registration in my state CT.
Any guidance?