President Donald Trump is staring down two stark liabilities that threaten to damage his Republican Party in the midterms and to ruin his second term-legacy.

Somehow he’s maneuvered himself into a more vulnerable spot regarding Iran than any president since Jimmy Carter. As in the 1979-80 hostage crisis, the Islamic Republic is exerting political pressure that it can dial up on the US leader ahead of a national election. A week ago, Trump’s team predicted a deal to reopen the Strait of Hormuz was imminent. But Tehran, now dictating terms to the US global superpower, has imposed tough new conditions.

At the same time, Trump faces a separate but related problem at home. The war’s impact on energy prices is further souring voter perceptions of the economy. He’s entered the doom loop in which presidents and officials scan data for silver linings but voters see only indifference to their plights. Twists like Friday’s bad jobs report are untimely for the GOP with November fast approaching.

As the political environment darkens for Republicans, their leader seems oblivious. Many of Trump’s weekend social media posts might have been scripted by his foes to portray an out-of-touch president. He posted a picture with South African golf legend Gary Player, and another of the sculpting of a new green at one of his courses. He posted about a futuristic drone port on the proposed White House ballroom, the Reflecting Pool renovation, and two statues in Washington newly coated with glistening golden paint. He also claimed to be a slayer of inflation, but he looked more like a president desperately trying to leave a physical legacy rather than one brimming with ideas for national renewal.