For a moment, right after the state Supreme Court legalized gay marriage, Mayor Gavin Newsom rejoiced privately. Then he phoned a onetime critic of his campaign for same-sex unions: his father.
Retired state appellate Judge William Newsom initially faulted the mayor's decision to allow same-sex marriages in the city in 2004. But he later admitted his son was right and that naysayers like him were confusing the secular with the religious.
"He said, 'I've really thought about this and you've changed my mind on this gay marriage thing,' " the mayor said. "That's what this is all about."
The polarizing issue has propelled the 40-year-old Newsom on a continuing personal and political odyssey.
The Republican court's decision Thursday backing Newsom's controversial stand has cemented his popularity in this city with a vocal gay population. And some analysts say it could help him gain broader recognition if, as rumored, he decides to run for governor.
"Until now, what voters know about Newsom outside San Francisco is still shallow," said Simon Rosenberg, director of the NDN, a Washington-based political think tank once known as the New Democratic Network. "But this cause will help him define himself. Now he can speak to a state and national audience on an issue where he has stuck by his principles."
But as Newsom basks in his revived rock-star status here in the aftermath of the ruling, questions remain about how his fight for same-sex marriage will affect his political future.
The mayor admits he had no opinion on gay unions when he was sworn into office on Jan. 8, 2004. That soon changed, he said, when he attended President Bush's second inauguration.
He said he was alarmed, listening to the inaugural address, by the president's moral tone, especially on social issues such as who had the right to marry. Instead of going to a party after the speech, he went to his hotel to call staffers.
"I feel like I'm living in a parallel universe here," he said he told them. "We've got to do something."
At first, that something centered on longtime San Francisco lesbian couple Del Martin and Phyllis Lyon. Newsom knew the couple had been together for more than half a century but that state law forbade their marriage. The idea was to use their story to put a human face on the issue and advance a court challenge, he said. "It just didn't seem right that two people who loved each other couldn't get married."
Then Newsom broadened his approach by publicly ordering that the city issue marriage licenses to all same-sex couples who requested them. On Feb. 12, Martin and Lyon got theirs. But they weren't alone. By the time a local judge stopped the process a month later, 4,000 licenses had been issued.
The mayor became a hero to some, a pariah to others -- including some fellow Democrats.
Newsom's sanctioning of the marriages in the middle of a presidential year marked him to many party members as a dangerous leftist out of touch with the party agenda. Trusted advisors deserted him. Some even say he scared off potential crossover voters in the 2004 presidential election and hold him partly responsible for fellow Democrat John Kerry's loss to Bush.
"A lot of people I admired and respected were none too pleased," Newsom recalled. "The biggest surprise came when members of my own party, some of them friends, turned their back on me."
Democratic White House hopefuls Kerry and John Edwards avoided him. An invitation to speak at that year's Democratic National Convention was rescinded, he said.
"In my own naivete, I didn't understand -- that was a presidential election year. Now I get it. It wasn't the right time," he said. "But the flak was immediate. Here I was, a newly minted mayor, considered a rising star. Then I learned there are two sides to every story."
Newsom returned to the less glamorous task of managing San Francisco. Then last year, he acknowledged an affair with the wife of his campaign manager and found himself the subject of scandal. At a crowded news conference, he admitted to having a drinking problem and promised to get help.
San Franciscans soon seemed to have forgiven a politician who for many evoked Bill Clinton -- in charisma and social vision and in personal failings.
Locally, his poll ratings soared again. This week will probably keep them soaring.
But a run for governor still would present a challenge: Any association with same-sex unions could remain a political liability outside of San Francisco.
U.S. Sen. Dianne Feinstein, a former San Francisco mayor and one of Newsom's mentors, took a conservative stand on the death penalty to play to voters outside the city, said UC Berkeley political scientist Bruce Cain. Newsom, on the other hand, "has taken a liberal stand on an issue that's almost as radioactive," he said.
To make a successful run for statewide office, Cain said, Newsom must steer his liberal image toward the center. In that light, he called Thursday's court ruling a plus for the mayor.
"It's difficult to run out of San Francisco and compete effectively in the Inland Valley and the Southland," he said. "It probably would be better for him to be conservative on this issue, but the next best thing is to have the view validated by a Republican mainstream court."
But the court's ruling on same-sex marriage could backfire for Newsom if a constitutional amendment to ban the unions makes the November ballot, said San Jose State University political science professor Larry Gerston. "This success story could well become a liability in more conservative parts of the state," he said.
Still, even if same-sex marriage becomes a mark against Newsom for some voters, his leadership on other issues could soften their views of him, Gerston said. For example, Newsom has recently rolled out a series of environmental initiatives in an effort to cement the city's "green" reputation nationwide.
"Look, in San Francisco the only person more green than Gavin Newsom is Kermit the Frog," Gerston joked.
Newsom says he is helpless to control how his stand on same-sex marriage will color his legacy.
"I'd like to be known as fiscally conservative and socially progressive," he said. "But I will also be known as the gay marriage mayor. I'm not naive to that."
Yet he termed it the "height of hypocrisy" that the Democratic Party, which stands on the platform that separate is not equal, suggested to gays and lesbians that civil unions were just as good as marriages.
Said Newsom: "Well, no, it's not the same, folks."
The mayor, who is engaged to actress Jennifer Siebel, has taken the lesson to heart: "If I had told my fiancee, 'I want to civil-union you,' she would have looked at me cross-eyed. She would have said, 'I thought you wanted to marry me.' "