SEATTLE — Stoner humor just got a lot more complicated.

Back in the days when Cheech and Chong were more risqué than wrinkled, it wafted along as one of those cultural subgenres, with its own nudge-and-wink punch lines. If you got it and laughed, you implicated yourself — and laughed again. The police mostly kept their faces straight.

But now the prospect of legalized marijuana in small amounts for personal use — approved by voters in Washington State and Colorado on Election Day — is creating a buzz of improvisation, from local law enforcement agencies up through state government.

Devising from scratch a system for legal sales and informing the public about the law are both tasks, state and local officials say, that require the turning over of a new leaf.

And the Seattle Police Department — through blog posts written by Jonah Spangenthal-Lee, 29, a former crime reporter for a Seattle alternative weekly called The Stranger — is leading the charge. Bilbo Baggins from “The Lord of the Rings” lends a hand too, shown in a film clip on the police blog relishing a smokable product of uncertain provenance called Old Toby, which Bilbo says, with a blissful sigh, is “the finest weed in the South Farthing.”