Just 18 months ago, then 31-year-old Liz Hannah thought her career wasn’t going anywhere. After a decade of hustling, first in development at Charlize Theron’s female-centric production company and then as an aspiring screenwriter, Hannah was beginning to think, “Maybe this isn’t what I’m supposed to do.”

Her boyfriend, TV writer Brian ­Millikin, suggested she spend the summer writing about the woman who had fixated her for years: Washington Post Publisher ­Katharine Graham, who braved the Nixon administration’s legal threats and her own insecurities to print the Pentagon Papers.

Katharine Graham’s moment in Hollywood

Graham had taken over the family business unexpectedly after her husband’s suicide eight years earlier, and she defied advisers who said that printing the secret study about the Vietnam War could lead to the company’s demise. “That’s the moment where she came of age,” Hannah says. “You want to find the most interesting and relatable window into a person’s life.”

Katharine Graham shortly after becoming publisher of The Washington Post. (The Washington Post)
Katharine Graham shortly after becoming publisher of The Washington Post. (The Washington Post)

Graham’s autobiography, “Personal History,” won her a Pulitzer. Hollywood, however, left her heroism on the cutting room floor.

In “All The President’s Men,” she’s merely an off-camera quip by Attorney General John Mitchell: “Tell Katie Graham she’s gonna get her tit caught in a big fat wringer if that’s ­published.”

Afterward, Graham wore a necklace with two gold charms: a miniature wringer and one breast. “She always was a little sad that she wasn’t in it,” Hannah says of the film. “This movie is giving Kay her due.”

Liz Hannah’s stunning skyrocket

In person, Hannah is sharp and charming, much like Graham herself. She’s an old soul in a young body. “I was a child of the ’60s more than the ’80s,” Hannah says of the politics and culture she was steeped in while growing up outside New York City. Fresh screenwriters are ­often advised to write what they know, which is how slush piles get clogged with teen dramas. Yet Hannah understands Graham almost like she’s ­wearing the first female Fortune 500 chief executive’s emotions under her leather jacket.

“I’m not a 55-year-old woman in 1971,” says Hannah, lightly stating the obvious. “But I know what it’s like to be a woman. I know what it’s like to want the truth out there. And I care about morality and ethics.” Tattooed on Hannah’s right arm is a line from Harper Lee: “Remember it’s a sin to kill a mockingbird.” (Her dog, a three-legged Great Dane, is named Boo Radley.)

Liz Hannah. (Kendrick Brinson for The Washington Post)
Liz Hannah. (Kendrick Brinson for The Washington Post)

For research, she devoured other memoirs about The Post, especially former executive editor Ben Bradlee’s “A Good Life: Newspapering and Other Adventures.” Hannah didn’t expect her unsolicited script to sell. At best, she hoped “The Post” would get her an agent.

Hannah finished her first draft on the Friday of Labor Day weekend in 2016. The next day, Millikin proposed. She enjoyed two months of tinkering with notes while casually planning their wedding. Then, in 24 hours, her life changed. Her manager leaked the script, a buying frenzy began and at midnight, former Sony Pictures chairman Amy Pascal won the auction and rang Hannah to say hello.

“I was like, ‘Amy Pascal wants to call me? Now?’ ” says Hannah, laughing. Pascal’s father had shared an office with Ellsberg at the Rand Corp. headquarters in Los Angeles, where Ellsberg poached the Pentagon Papers. Also, notes Hannah, during ­Pascal’s 30-year climb from ­secretary to studio boss, “it was not uncommon for her to stand in a room of men and not be listened to.”

The script ranked No. 2 on the 2016 Blacklist, which lists the best still-unproduced scripts of the year.

“You’ve got this issue-driven story grounded in an intensely personal and dramatic story,” says co-screenwriter Josh Singer. After the sale, Pascal hired Singer, who shared the best original screenplay Oscar for “Spotlight," to help strengthen “The Post.” “Look, it’s not the obvious way to tell the story of the Pentagon Papers,” he adds. “But it is a brilliant way to tell the story of Kay Graham.”

After Pascal enlisted Spielberg, and Streep and Hanks agreed to play Graham and Bradlee, “the world opened up.” Suddenly, Hannah could meet her characters’ families and run lines by colleagues who’d known them firsthand.

From left to right, Film producer, Amy Pascal, film producer, Kristie Macosko Krieger, actress Meryl Streep, and screenwriter Liz Hannah. (Marvin Joseph/The Washington Post)
From left to right, Film producer, Amy Pascal, film producer, Kristie Macosko Krieger, actress Meryl Streep, and screenwriter Liz Hannah. (Marvin Joseph/The Washington Post)

“The Post” rushed into production and things moved fast. Hannah had to hand her November wedding to an organizer. “I will show up,” she pledged. “And it will be great.”

With no time for a honeymoon, the couple ducked away after their vows for a quick weekend retreat, where Hannah woke up in the middle of night and learned “The Post’s” trailer had premiered. Her now-husband, half-asleep, mumbled: “Did you watch it? I cried.”

“I’ve learned that if you throw your passion into something, it makes other people care,” ­Hannah says. Now that she’s beaten the odds, Hannah’s ­second lucky ace is that she has the zeal to write about anyone. MGM recently hired her to pen “Only Plane in the Sky,” an ­account of George W. Bush’s eight hours aboard Air Force One on 9/11. “It’s been fascinating with how much I empathize with Bush on that day,” Hannah says. “There were no good decisions to make.” After studying a Pulitzer winner, she’s reading “The Pet Goat.”

“It’s like the most obscure children’s book of all time — and it’s literally just about a pet goat.”

‘The Assistant’ isn’t about Harvey Weinstein. But he looms over it.

Director Kitty Green spoke with several assistants as part of her research, including some who once worked for Weinstein

Wonder why you see more naked women than men on-screen? Maybe you’re asking the wrong question.

It’s a more complicated subject than you might think

The award show I’d actually watch would be 1,000 times better than the Oscars. Baby Yoda would be in the front row.

No Bad Men would win awards, and whenever one was so much as alluded to, Tom Hanks would be there to soften the blow