Within a single enumerate environment from enumitem, I would like to vary the indent level. I've seen examples where leftmargin is configured at the start of the environment, but I would like to change this value at several points, and preferably have the ability to nest arbitrarily-many levels of indentation. The closest solution I've found uses \setlength{\itemindent}{}, but this only indents the first line of each item:
\documentclass[11pt]{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\setlength{\itemindent}{2em}
\item \underline{Case 1: $n = 1$.}
\setlength{\itemindent}{4em}
\item In this case, $f$ consists of a single literal, so $N(f)$ is true. Let $g = f$. Then, $V(f, g)$ is true because $f$ and $g$ refer to the same formula. Thus, $p(1)$ is true by construction.
\setlength{\itemindent}{2em}
\item \underline{Case 2: $n \ge 2$.}
\setlength{\itemindent}{4em}
\item In this case...
\end{enumerate}
\end{document}



\parbox[t]{\linewidth}{...}but you would lose the ability to put pagebreaks in the middle of an item. – John Kormylo Feb 12 '24 at 03:43