For a generation of gay men who came of age in the 1980s and 1990s, becoming sexually active meant confronting the dangers of catching and transmitting HIV. In the 21st century, …