% Author:   Sid Lacy

\documentclass[12pt]{letter}
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc}
\usepackage[empty]{fullpage}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\usepackage{fontawesome}
\usepackage{eso-pic}
\usepackage[bitstream-charter]{mathdesign}
%\usepackage{charter}
%\usepackage[default]{raleway}
\usepackage{ifthen}

\usepackage{geometry} % Required for adjusting page dimensions and margins

\geometry{
	paper=a4paper,
	top=1cm, % Top margin
	bottom=1.25cm, % Bottom margin
	left=2cm, % Left margin
	right=2cm, % Right margin
	headheight=0.75cm, % Header height
	footskip=1cm, % Space from the bottom margin to the baseline of the footer
	headsep=0.5cm, % Space from the top margin to the baseline of the header
%	showframe, % Uncomment to show how the type block is set on the page
}

\newcommand{\shadedheight}{3.5cm}
\definecolor{TopBackground}{RGB}{225,225,225}
\definecolor{Accent}{HTML}{367DA2}

\input{info.tex}

\begin{document}

\newcommand{\emailaddr}[1]{\href{mailto:#1}{#1}}
\newcommand{\tel}[1]{\href{tel:#1}{#1}}

% Command to vertically centre adjacent content
\newcommand{\vcenteredhbox}[1]{% The only parameter is for the content to centre
	\begingroup%
		\setbox0=\hbox{#1}\parbox{\wd0}{\box0}%
	\endgroup%
}

\newcommand{\icon}[3]{%
	\vcenteredhbox{\colorbox{Accent}{\makebox(#2, #2){\textcolor{white}{\large\csname fa#1\endcsname}}}}% Icon and box
	\hspace{0.2cm}% Whitespace
	\vcenteredhbox{#3}% Text
}

%%%
% Header
%%%

\input{header.tex}


%%%
% Opening block
%%%

% Date
\today \\

% Address
\vspace{-0.1in}\recipient\\\company\\
\ifthenelse{\boolean{include-company-address}}
{\companyaddress\\}
{}


% Greeting
\vspace{-0.1in}
\greeting\ \recipient, \\

%%%
% Body
%%%

\vspace{-0.1in}\setlength\parindent{24pt}
\noindent\input{body.tex}

%%%
% Closer
%%%

\input{closer.tex}

\end{document}