\documentclass[11pt]{memoir}

\def\watermarkloaded{0}

\input{includes/variables}
\input{includes/draft}
\input{includes/frame}
\input{includes/packages}
\input{includes/pagelayout}
\input{includes/geometry}
\input{includes/toc}
\input{includes/font}
\input{includes/title}
\input{includes/secdiv}
\input{includes/hyphenation}

\newcommand{\Char}[1]{
  \cleardoublepage
  \null
  \thispagestyle{empty}
  \vfill
  \begin{center}
    \huge\TitleFont #1
  \end{center}
  \vspace{2cm}
  \vfill
}

\begin{document}
  \frontmatter

  \thispagestyle{empty}
  \null
  \vfill
  \begin{flushright}
    \DisplayFont Idumea
  \end{flushright}
  \vfill
  \cleardoublepage

  \pagestyle{empty}

  \doublespacing

  \begin{center}\DisplayFont
    \null
    \vfill
    {\Huge Idumea}
    \vspace{1ex}

    {\Huge ×}
    \vspace{1ex}

    {\Large A Post-Self story}
    \vspace{2em}

    \vfill

    {\Large Madison Rye Progress}

    with {\Large Samantha Yule Fireheart}
  \end{center}
  \thispagestyle{empty}

  \newpage

  \input{includes/copyright}

  \newpage
  \null
  \cleardoublepage

  \onehalfspacing
  %\doublespacing

  \null
  \vfill
  \noindent\textbf{Note:} this book relies on the plots of The Post-Self Cycle, as well as that of \emph{Marsh}. It is strongly recommended that you read those works first. They may all be found \emph{post-self.ink} as paperbacks, ebooks, and free to read in the browser.
  
  \vspace{1cm}
  
  \noindent\textbf{Content notes:} themes of suicide and poor mental health.

  \mainmatter

  \pagestyle{empty}

  \cleardoublepage

  \null
  \vfill
  \begin{verse}
  And am I born to die?\\
  To lay this body down!\\
  And must my trembling spirit fly\\
  into a world unknown?\\
  A land of deepest shade;\\
  Unpierced by human thought.\\
  The dreary regions of the dead,\\
  Where all things are forgot.

  Soon as from earth I go,\\
  What will become of me?
  \end{verse}

  — Charles Wesley

  \vfill

  \cleardoublepage
  \pagestyle{ourbook}
  
  \Char{End Of Endings — 2403\par ×\par Rye — 2409}
  \markboth{Idumea}{Madison Rye Progress}
  \chapter*{1}
  \input{content/001}
  \chapter*{2}
  \input{content/002}
  \chapter*{3}
  \input{content/003}
  \chapter*{4}
  \input{content/004}
  \chapter*{5}
  \input{content/005}


  \chapter*{8}
  \input{content/008}\input{graphomania}
  
  \includepdf[fitpaper=true]{hymn.pdf}

  \backmatter

  \chapter*{Afterword}
  \newpage
  
\end{document}
