Honestly, I don't do actual "reamping" - running out to an amp with a mic in front of it - pretty much ever. I do, however, record all kinds of guitars direct all the time, and occasionally will use guitar pedals as "hardware inserts" which is much the same thing, and in fact is often called "reamping".
The point of my whole thing is that we would like to record from the guitar that is as close to what it would be if plugged into the amp as possible, then don't change it at all, then when you play it back into whatever, it should be pretty close to what it would have been if the guitar had been plugged into the amp to begin with.
What the guitar actually puts out is completely dependent on the load it sees at the first active stage out of its jack. I don't want to get too technical, but since you asked, a typical Line input is way too low for most guitars, and that kills both treble and some overall volume. Plugging a passive guitar into a Line input is very much the same electronically as turning down the T knob on the guitar quite a ways.
Most guitar pedals are designed with an input impedance much closer to that of an amp because the goal there is also to get something as close as possible to if the guitar was plugged right into the amp. The output of most guitar pedals is perfectly happy to drive a Line input, though. The level might look a little low on the meters, but it will be pretty damn close to exactly what came out of the guitar. Whether the pedal is on or off depends on whether you want to record what it does or not, but if it's off, it very much does need to be "buffered bypass". Most Boss, Digitech, and other commercial pedals are, and since "true bypass" is such a hot pile of mojo bullshit nowadays, they will definitely tell you if they've included that "feature". You don't want true bypass for this.
That's the step, dude. Plug into a buffered pedal, plug that into Line input. If that input offers a gain control set it to 0db/unity. Hit record.
When you want to reamp, run a cable from a line output to the amp and leave all of the DAW levels at 0db/unity. Push play and adjust the amp controls like you would if you'd plugged the guitar right into the amp. It should work fine...
...unless you get a lot of ground loop noise. Then you can try plugging the amp into the same power strip as the interface/computer, lifting the shield on the cable between the interface or the amp, or sticking a 1:1 transformer (NOT a DI which is like 20:1 or whatever) between the two.