So, as I quite often do in the immediate aftermath of an election, here are a few random thoughts in no particular order...
* Yesterday I posted a list of benchmarks for SNP success, and the party has sailed past all of them - including the one I was most dubious about, ie. the 36.9% share of the vote achieved in the 2017 general election.
* The most important thing from the point of view of both the SNP and the wider independence movement is that the 2017 result is no longer a problem. It should never have been a problem in the first place, because it was a landslide for the SNP of 1987 Thatcher style proportions. It saw them win 60% of the seats and almost as big a share of the vote as they won tonight. There was only ever an issue because of the ludicrous media spin on the result - but that spin is now at an end. In terms of political momentum, the swing in the SNP's favour tonight supercedes the swing against them two years ago, meaning that we'll hear no more about Ruth Davidson's supposed fightback against an independence referendum - or at least not until and unless she reverses tonight's result in a subsequent election, which looks a very remote prospect. For now the SNP are indisputably the ascendant party, and to the extent that any party can claim to speak for this country, the SNP have earned the right to make that claim.
* That said, I have a sneaking suspicion that the 2017 tribute act in the Tory leaflets may have been the crucial factor in saving Ruth Davidson's sole Scottish seat. It would seem plausible that the tired old "no more referendums" pitch may have won back just enough of the hardline unionist voters who would otherwise have been tempted by the Brexit Party. If so, we should raise a glass to Ms Davidson's lack of imagination, because the Tories' success in clinging on to their seat contributed to the Brexit Party's failure to take a second seat. If the final result had been SNP 3, Brexit Party 2, Lib Dems 1, the perception would have been that the SNP win wasn't quite so clear-cut. As it is, no-one can really doubt the SNP's dominance.
* In every other sense apart from the fact that they won a seat, it was a truly awful result for the Scottish Tories - they hit an all-time low in the popular vote. Only proportional representation saved their bacon. We've all seen the map - if this had been a first-past-the-post Westminster election, the Tories would have been completely wiped out and the SNP would have won almost every single seat. The trend was no different in the north-east seats that the Tories gained two years ago and that had looked absolutely rock-solid for them until a few short weeks ago. This is happening partly because of the resurgence in SNP support, and partly because the natural Tory vote is split down the middle between two parties. So the SNP's chances of winning back their former north-east heartlands in a snap general election depend to some extent on whether the Brexit Party vote holds up in the coming months, and indeed on whether the Brexit Party decide to contest every Westminster seat. (I suspect they'll feel obliged to, because any party that wants to present itself as seeking to win an election can't give its opponents a free pass in selected seats.)
* Although the SNP's 38% share of the vote tonight looks similar to the 37% achieved in 2017, pound-for-pound it was a much better result, simply because this was a proportional representation election and there was more competition to beat. The Brexit Party are the most obvious example of that, but the Greens also took 8% of the vote, in complete contrast to the general election in which they barely put up any candidates. Ian Blackford made a telling point on the BBC results programme - the SNP's winning share of the vote in Scotland was larger than the share achieved by the first-placed party in England. That wasn't the case in 2017.
* As far as the interminable discussions about tactical voting are concerned, the SNP could only have gained a fourth seat if a very large number of Green and Lib Dem voters had switched to them, and the Greens could only have won a seat if a very large number of SNP and Lib Dem voters had switched. The reality is that the whole idea that any party just needed a modest number of tactical votes to tip them over the edge was proved to be bogus. Anyone who followed the advice of the Remain Voter website to "tactically vote Lib Dem" in Scotland must be feeling a bit foolish, because the Lib Dems would have comfortably won a seat anyway, and they were nowhere near to winning a second seat.
* If there's a cloud on the horizon for the SNP, it might be Jo Swinson. I know some people will scoff at that idea, and I entirely share the view that she's going to be an uninspiring leader and that the Lib Dems' Britain-wide interests would be best served by choosing someone else. But history does show that British party leaders with a Scottish accent tend to be worth a few extra percentage points to their party in Scotland (for example the Lib Dems under Charles Kennedy unexpectedly outpolled the SNP in 2005). The problem may have been exacerbated by the fact that Swinson will not, as we assumed until recently, be leading a party that no-one is paying any attention to, but rather one that suddenly seems to have captured the zeitgeist south of the border. But the impact of that might be counterintuitive - if she primarily takes Scottish votes from Labour and the Tories, that could split the unionist vote in such a way that would make it easier for the SNP to win certain Westminster seats. We'll just have to see how it all plays out.
* Does the Scottish Labour wipeout mean that the game's up? Maybe, although some people made the same assumption after 2015, only for Labour to show some signs of life in the 2017 local and general elections. This may not be the final twist in the tale, but Richard Leonard's party are certainly in a highly vulnerable position, and a few more results like tonight could mean that they eventually cease to exist as a credible electoral force.
* Although the UK result was a complex one, the London media and political establishment love winners and losers, so I suspect that the Brexit Party's twelve-point lead over the second placed Lib Dems will be more than enough to ensure that the No Deal Brexiteers in the Tory party will remain emboldened during the forthcoming leadership election.
* It's to the credit of the new BBC Scotland channel that it ran its own results programme, but having dipped in and out of it I did think it was odd that it didn't seem to cover the Scottish results as they came in, which you would have thought was the main point of such a programme. Viewers found out about the results almost indirectly - a presenter would say something like "oh, by the way, a few more local authorities have declared since we last spoke..."