% juneau.cls
%   https://git.benjidial.net/latex-classes
% Written by Benji Dial, 2025
% Released under CC0 1.0
%   https://creativecommons.org/publicdomain/zero/1.0/

\ProvidesClass{juneau}
\LoadClass{article}

\usepackage{amssymb}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{unicode-math}
\usepackage{fancyhdr}
\usepackage{lastpage}

%\setmainfont{Libertinus Serif}
\setmainfont{EBGaramond}
\setmathfont{Libertinus Math}

\declaretheorem[style=definition]{question}
\declaretheorem[style=definition,numbered=no]{claim}
\declaretheorem[style=definition]{lemma}

\setlist[itemize]{itemsep=0pt,topsep=0pt}
\setlist[enumerate]{itemsep=0pt,topsep=0pt,label=\alph*)}
\setlist[enumerate,2]{label=\roman*)}

\newcommand{\theclass}{}
\newcommand{\theassignment}{}
\newcommand{\thename}{}
\newcommand{\thedate}{}

\newcommand{\setclass}[1]{\renewcommand{\theclass}{#1}}
\newcommand{\setassignment}[1]{\renewcommand{\theassignment}{#1}}
\newcommand{\setname}[1]{\renewcommand{\thename}{#1}}
\newcommand{\setdate}[1]{\renewcommand{\thedate}{#1}}

\AtBeginDocument{
  \fancyhead[L]{\theclass---\theassignment}
  \fancyhead[R]{\thename---\thedate}
  \fancyfoot[C]{\thepage{} of \pageref{LastPage}}
  \pagestyle{fancy}
}

\newcommand{\prto}{\overset{\text{pr}}{\to}}
\newcommand{\asto}{\overset{\text{a.s.}}{\to}}
\newcommand{\io}{\mathop{\text{i.o.}}}
