Electron lithography enables sub-100-nanometer patterning of a fully water-based hydrogel resist.