%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[a4paper]{article}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\fancyheadoffset{0pt}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[R]{\thepage}
\fancypagestyle{plain}{%
    \fancyhf{}%
    \fancyhead[R]{\thepage}%
}

\usepackage{geometry}
\usepackage{fontspec}
\usepackage{import}
\usepackage[table,xcdraw]{xcolor}
\usepackage[parfill]{parskip}
\usepackage{enumitem}
\usepackage{tabularx}
\usepackage{titlesec}

\geometry{
    a4paper,
    left=45pt,
    right=45pt,
    top=30pt,
    bottom=30pt,
    headsep=-10pt
}

\setcounter{secnumdepth}{0}
\import{./}{star-wars-icons.sty}

\setmainfont{Minion Pro}
\newfontfamily\titlefont{Bebas Neue}
\definecolor{titlecolor}{HTML}{1ABEEF}
\definecolor{subtitlecolor}{HTML}{326DA1}
\definecolor{tablecolor1}{HTML}{E0F4FC}
\definecolor{tablecolor2}{HTML}{EEE5CE}
\def\arraystretch{1.2}

\titleformat*{\section}{\fontsize{32}{38}\titlefont\color{titlecolor}}
\titleformat*{\subsection}{\fontsize{18}{22}\titlefont\color{titlecolor}}
\titleformat*{\subsubsection}{\fontsize{16}{19}\titlefont\color{subtitlecolor}}

\newcommand{\wrap}[2]{\parbox{#2\textwidth}{\vspace{5pt}#1\vspace{5pt}}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}m{#1}}

\begin{document}
\setcounter{page}{1}
\input{parts/basics.tex}
\newpage
\input{parts/combat.tex}
\newpage
\input{parts/misc.tex}
\newpage
\input{parts/magic.tex}
\newpage
\input{parts/character-creation.tex}
\end{document}