/*static/css/styles.css*/
/*Simon Hulse*/
/*simonhulse@protonmail.com*/
/*Last Edited: Fri 30 May 2025 09:12:03 PM EDT*/

@font-face{
    font-family: "Fira Mono";
    src: url("../fonts/FiraMono/FiraMonoNerdFontPropo-Regular.otf");
    font-style: normal;
    font-weight: 400;
}

@font-face{
    font-family: "Fira Mono";
    src: url("../fonts/FiraMono/FiraMonoNerdFontPropo-Bold.otf");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "CMU Serif";
    src: url("../fonts/CMUSerif/cmunti.ttf");
    font-style: italic;
    font-weight: 400;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-regular.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-italic.ttf");
    font-style: italic;
    font-weight: 400;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-bold.ttf");
    font-style: normal;
    font-weight: 600;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-bolditalic.ttf");
    font-style: italic;
    font-weight: 600;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-light.ttf");
    font-style: normal;
    font-weight: 200;
}

@font-face{
    font-family: "CMU Typewriter";
    src: url("../fonts/CMUTypewriter/cmu.typewriter-text-lightitalic.ttf");
    font-style: italic;
    font-weight: 200;
}

:root {
    --background-hard: #1d2021;
    --background: #3c3836;
    --foreground: #ebdbb2;
    --gray: #a89984;
    --red: #fb4934;
    --green: #b8bb26;
    --yellow: #fabd2f;
    --blue: #83a598;
    --purple: #d3869b;
    --cyan: #8ec07c;
    --orange: #fe8019;
    --linenos-special-bg: #ffffc0;
}

html {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background);
}

body {
    font-family: "CMU Typewriter", "DejaVu Sans", sans-serif;
    font-weight: 400;
    background: var(--background-hard);
    color: var(--foreground);
    padding: 0;
    margin: 0;
}

h1 {
    font-weight: 600;
    text-align: center;
}

h2 {
    font-weight: 600;
    font-size: 25px;
    margin-top: 20px;
    margin-bottom: 5px;
}

h3 {
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 5px;
}

h4 {
    font-style: italic;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 5px;
}

a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--background);
    background-color: var(--blue);
}

a[href$=".pdf"]::before {
    content: url('../icon/pdf.svg');
    vertical-align: middle;
    margin-right: 5px;
}

b {
    font-weight: 600;
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0;
}

.sidebar-nav ul li {
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li a {
    display: block;
    color: var(--foreground);
    padding: 4px 8px;
    font-size: 15px;
}

.sidebar-nav ul li:last-child a {
    padding-bottom: 0;
}

.sidebar-nav ul li a:hover {
    color: var(--background);
    background-color: var(--foreground);
}

.wave-wrapper {
    position: relative;
}

#wave-canvas {
    display: block;
    width: 100%;
    height: 100px;
}

#nmr-what {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 7.5px;
    pointer-events: auto;
}

#nmr-label {
    position: absolute;
    bottom: 6px;
    right: 10px;
    color: var(--gray);
    font-size: 7.5px;
    opacity: 0;
    pointer-events: none;
}

.code-block {
    font-family: "Fira Mono";
    font-size: 14px;
    line-height: 120%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.code-title {
    display: block;
    width: fit-content;
    border: 1px solid var(--foreground);
    border-bottom: none;
    background-color: var(--background-hard);
    padding: 3px 8px;
    font-weight: 600;
}

code {
    font-family: "Fira Mono";
    background-color: var(--background-hard);
    padding: 0 2px;
}

pre {
    font-family: "Fira Mono";
    border: 1px solid var(--foreground);
    padding: 8px;
    background-color: var(--background-hard);
    overflow-x: auto;
    margin: 0;
}

details {
    font-size: 12px;
}

details summary {
    list-style: none;
    cursor: pointer;
    color: var(--yellow);
    user-select: none;
    width: fit-content;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 5px;
    font-size: 9px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details summary:hover {
    color: var(--background);
    background-color: var(--yellow);
}

details p {
    margin: 8px 0;
    padding-left: 12px;
    border-left: 2px solid var(--gray);
    animation: abstract-in 0.15s ease;
}

@keyframes abstract-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.research-interests {
    margin: 0;
    padding: 0;
}

.research-interest {
    margin-bottom: 18px;
}

.research-interest dt {
    font-weight: 600;
    margin-bottom: 4px;
}

.research-interest dd {
    margin: 0;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 20px;
}

.research-interest:nth-child(even) dd {
    flex-direction: row-reverse;
}

.research-interest-text {
    flex: 1;
    min-width: 0;
}

.research-interest-img {
    display: block;
    width: 22em;
    flex-shrink: 0;
}

.research-interest-canvas {
    width: 22em;
    height: 18em;
    flex-shrink: 0;
    display: block;
}

.research-interest-img--wide {
    width: 30em;
}

.research-interest-img--cupid {
    height: 15em;
    width: auto;
}

.pub-list {
    list-style-type: none;
    counter-reset: list-counter;
    padding: 0;
}

.pub-list li {
    counter-increment: list-counter;
    margin-bottom: 15px;
}

.pub-list li::before {
    content: "[" counter(list-counter) "] ";
}

.content {
    display: flex;
    align-items: stretch;
    height: 100vh;
    overflow: hidden;
}

.right-pane {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar {
    width: min(180px, 20vw);
    flex-shrink: 0;
    background: var(--background);
    border-right: 1px solid var(--foreground);
    padding: 12px;
    overflow-y: auto;
}

.sidebar-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.sidebar-contacts {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sidebar-summary {
    font-size: 13px;
    font-style: normal;
    margin: 0 0 12px;
    color: var(--gray);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
}

.cv-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.cv-icon {
    height: 20px;
    width: 20px;
    vertical-align: middle;
    display: inline-block;
}

.cv-contact a:hover {
    background-color: transparent;
    opacity: 0.7;
}

.sidebar-contacts a:hover {
    background-color: transparent;
}

.sidebar-contacts a:hover .cv-icon {
    filter: invert(1);
}

.cv-summary {
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
}

.cv-section-rule {
    border: none;
    border-top: 1px solid var(--foreground);
    margin: 0 0 10px;
}

.cv-section-items {
    padding-left: 20px;
    margin: 0;
}

.cv-entry {
    margin-bottom: 15px;
}

.cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.cv-entry-institution {
    font-weight: 600;
}

.cv-entry-date {
    font-style: italic;
    white-space: nowrap;
}

.cv-entry-role {
    font-style: italic;
}

.cv-entry ul {
    margin: 5px 0;
    padding-left: 20px;
}

.cv-entry li {
    margin: 3px 0;
}

.cv-entry-body {
    margin: 5px 0;
}

td.linenos .normal {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
}

span.linenos {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
}

td.linenos .special {
    color: var(--background-hard);
    background-color: var(--linenos-special-bg);
    padding-left: 5px;
    padding-right: 5px;
}

span.linenos.special {
    color: var(--background-hard);
    background-color: var(--linenos-special-bg);
    padding-left: 5px;
    padding-right: 5px;
}



/* CODE STYLE (PYGMENTS) */

/* Background */
.hll { background-color: var(--background) }

/* Comment */
.c {
    color: var(--gray);
    font-style: italic;
}

/* Error */
.err {
    color: var(--background-hard);
    background-color: var(--red);
}

/* Escape */
.esc { color: var(--foreground) }

/* Generic */
.g { color: var(--foreground) }

/* Keyword */
.k { color: var(--red) }

/* Literal */
.l { color: var(--foreground) }

/* Name */
.n { color: var(--foreground) }

/* Operator */
.o { color: var(--foreground) }

/* Other */
.x { color: var(--foreground) }

/* Punctuation */
.p { color: var(--foreground) }

/* Comment.Hashbang */
.ch {
    color: var(--gray);
    font-style: italic;
}

/* Comment.Multiline */
.cm {
    color: var(--gray);
    font-style: italic;
}

/* Comment.PreProc */
.c-PreProc {
    color: var(--cyan);
    font-style: italic;
}

/* Comment.Preproc */
.cp {
    color: var(--gray);
    font-style: italic;
}

/* Comment.PreprocFile */
.cpf {
    color: var(--gray);
    font-style: italic;
}

/* Comment.Single */
.c1 {
    color: var(--gray);
    font-style: italic;
}

/* Comment.Special */
.cs {
    color: var(--foreground);
    font-weight: bold; font-style: italic;
}

/* Generic.Deleted */
.gd {
    color: var(--background-hard);
    background-color: var(--red);
}

/* Generic.Emph */
.ge {
    color: var(--foreground);
    font-style: italic;
}

/* Generic.EmphStrong */
.ges {
    color: var(--foreground);
    font-weight: bold; font-style: italic;
}

/* Generic.Error */
.gr { color: var(--red) }

/* Generic.Heading */
.gh {
    color: var(--foreground);
    font-weight: bold;
}

/* Generic.Inserted */
.gi {
    color: var(--background-hard);
    background-color: var(--green);
}

/* Generic.Output */
.go { color: var(--foreground) }

/* Generic.Prompt */
.gp { color: var(--gray) }

/* Generic.Strong */
.gs {
    color: var(--foreground);
    font-weight: bold;
}

/* Generic.Subheading */
.gu {
    color: var(--foreground);
    text-decoration: underline;
}

/* Generic.Traceback */
.gt { color: var(--red) }

/* Keyword.Constant */
.kc { color: var(--red) }

/* Keyword.Declaration */
.kd { color: var(--red) }

/* Keyword.Namespace */
.kn { color: var(--red) }

/* Keyword.Pseudo */
.kp { color: var(--red) }

/* Keyword.Reserved */
.kr { color: var(--red) }

/* Keyword.Type */
.kt { color: var(--red) }

/* Literal.Date */
.ld { color: var(--foreground) }

/* Literal.Number */
.m { color: var(--purple) }

/* Literal.String */
.s { color: var(--green) }

/* Name.Attribute */
.na { color: var(--yellow) }

/* Name.Builtin */
.nb { color: var(--orange) }

/* Name.Class */
.nc { color: var(--cyan) }

/* Name.Constant */
.no { color: var(--purple) }

/* Name.Decorator */
.nd { color: var(--red) }

/* Name.Entity */
.ni { color: var(--foreground) }

/* Name.Exception */
.ne { color: var(--red) }

/* Name.Function */
.nf { color: var(--cyan) }

/* Name.Label */
.nl { color: var(--foreground) }

/* Name.Namespace */
.nn { color: var(--cyan) }

/* Name.Other */
.nx { color: var(--foreground) }

/* Name.Property */
.py { color: var(--foreground) }

/* Name.Tag */
.nt { color: var(--cyan) }

/* Name.Variable */
.nv { color: var(--blue) }

/* Operator.Word */
.ow { color: var(--red) }

/* Punctuation.Marker */
.pm { color: var(--foreground) }

/* Text.Whitespace */
.w { color: var(--foreground) }

/* Literal.Number.Bin */
.mb { color: var(--purple) }

/* Literal.Number.Float */
.mf { color: var(--purple) }

/* Literal.Number.Hex */
.mh { color: var(--purple) }

/* Literal.Number.Integer */
.mi { color: var(--purple) }

/* Literal.Number.Oct */
.mo { color: var(--purple) }

/* Literal.String.Affix */
.sa { color: var(--green) }

/* Literal.String.Backtick */
.sb { color: var(--green) }

/* Literal.String.Char */
.sc { color: var(--green) }

/* Literal.String.Delimiter */
.dl { color: var(--green) }

/* Literal.String.Doc */
.sd { color: var(--green) }

/* Literal.String.Double */
.s2 { color: var(--green) }

/* Literal.String.Escape */
.se { color: var(--orange) }

/* Literal.String.Heredoc */
.sh { color: var(--green) }

/* Literal.String.Interpol */
.si { color: var(--green) }

/* Literal.String.Other */
.sx { color: var(--green) }

/* Literal.String.Regex */
.sr { color: var(--green) }

/* Literal.String.Single */
.s1 { color: var(--green) }

/* Literal.String.Symbol */
.ss { color: var(--green) }

/* Name.Builtin.Pseudo */
.bp { color: var(--orange) }

/* Name.Function.Magic */
.fm { color: var(--cyan) }

/* Name.Variable.Class */
.vc { color: var(--blue) }

/* Name.Variable.Global */
.vg { color: var(--blue) }

/* Name.Variable.Instance */
.vi { color: var(--blue) }

/* Name.Variable.Magic */
.vm { color: var(--blue) }

/* Literal.Number.Integer.Long */
.il { color: var(--purple) }
