\usepackage[
    backend=biber,
    style=alphabetic,
    backref=true,% Show page numbers where citations appear
    maxbibnames=99,% Show all authors in bibliography
    maxalphanames=1,% Show only one author in citations keys
    maxcitenames=1,% Show only one authors in citations in text
]{biblatex}


% Define citation style to be [Author, Year]
% From https://tex.stackexchange.com/a/176119
\DeclareLabelalphaTemplate{
    \labelelement{% Author
        \field[final]{shorthand}
        \field{labelname}
        \field{label}
    }
    \labelelement{% Comma
        \literal{,\addhighpenspace}
    }
    \labelelement{% Year
        \field{year}
    }
}
\renewcommand*{\labelalphaothers}{} % Remove "et al." in citation keys

% Define \textcite to be Author [Year] (magically defined by Copilot)
\DeclareCiteCommand{\textcite}
{\usebibmacro{prenote}}
{%
    \ifciteindex{\indexnames{labelname}}{}%
    \bibhyperref{\printnames{labelname}}% Author
    \setunit{\addspace}% Space
    \printtext[brackets]{\bibhyperref{\printdate}}% Year
}
{\multicitedelim}
{\usebibmacro{postnote}}

% Remove some fields from bibliography
\AtEveryBibitem{
    \clearfield{doi}%
    \clearfield{day}%
    \clearfield{location}%
    \clearfield{month}%
    \clearfield{series}%
    \clearfield{url}%
}
