it's a huge topic, antennas are tuned in physical geometries for wavelengths, etc.
this is a fun rabbithole
https://antenna-theory.com/