You can afford any apartment in the city, but spending a ton on rent isn't the requirement everyone makes it out to be. I live in a new building 2 blocks from the Caltrain and pay $1200 a month. Just be diligent about it (as others have mentioned: roommates, location-specific, etc.). Leverage your network if possible. My friend in finance who makes close to 7 figures just got a room in a rent-controlled apartment and pays 800/month in the heart of the Marina.
Have fun in the city, but be mindful about saving as well.
Have fun in the city, but be mindful about saving as well.