How does one even build an FPGA for mining? Do you like buy some random high tier FPGA and write your own code (bitstream) for it? I'm actually really interested in this

In general, yes. We take random FPGA with a good power supply and cooling system. Since there are almost no such boards in the wild, mining with the FPGA is not widespread.