Midnight (or Midday) Mochas
If you happen to be wandering around North Beach past your bedtime and need your caffeine fix, seek out these two cafes. They offer not only excellent espresso, but also a glimpse back at the days of the beatniks, when nothing was as crucial as a strong cup of coffee, a good smoke, and a stimulating environment.
Doing the North Beach thing is little more than hanging out in a sophisticated but relaxed atmosphere over a well-made cappuccino. You can do it at Caffè Greco, 423 Columbus Ave., between Green and Vallejo streets (tel. 415/397-6261), and grab a bite, too -- until midnight. The affordable cafe fare includes beer and wine as well as a good selection of coffees, focaccia sandwiches, and desserts (try the gelato or homemade tiramisu).
Caffè Trieste, 601 Vallejo St., at Grant Avenue (tel. 415/392-6739; www.caffetrieste.com), is one of San Francisco's most beloved cafes -- very down-home Italian, with espresso drinks, wine, pizza, and pastries at indoor and outdoor seating. Opera is always on the jukebox, unless it's Saturday afternoon, when the family and their friends break out in arias during an operatic performance from 2 to 5pm every other Saturday. Another perk: They offer access to free Wi-Fi with purchase with your own laptop. Check 'em out until 10pm Sunday through Thursday and midnight on Friday and Saturday.