/*@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500&family=Source+Code+Pro&family=Source+Sans+3:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');*/

@font-face {
    font-family: "EB Garamond";
    src: url("/fonts/EBGaramond-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-weight: 400;
    src: url("/fonts/SourceSans3-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-weight: bold;
    src: url("/fonts/SourceSans3-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    src: url("/fonts/SourceSans3-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "Source Code Pro";
    src: url("/fonts/SourceCodePro-Regular.woff2") format("woff2");
}

:root {
    color-scheme: light dark;
    --primary: #B45309;
    --secondary: #F59E0B;
    --on-bar: #1A1A1A;
    --hazard: repeating-linear-gradient(-45deg, #1A1A1A 0 10px, #F59E0B 10px 20px);
}

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.5;
}

html {
    scroll-padding-top: calc(var(--navigation-height, 8rem) + 1rem);
}

body {
  display: flex;
  flex-direction: column;
  height: fit-content;
  color: light-dark(#4d4c44, #F0F0F0);
  background-color: light-dark(white, #1A1A1A);
}

header {
    text-align: center;
}

header h1 {
    overflow-wrap: anywhere;
    font-size: 2.5rem;
    line-height: 1.2;
    padding: 2.5rem 1rem 0.5rem;
    margin: 0;
}

#site-navigation {
    margin: 0;
    z-index: 10;
    flex-shrink: 0;
    width: 100%;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 5px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box, var(--hazard) border-box;
    position: sticky;
    top: 0;
    font-weight: bold;
    border-bottom: 10px solid transparent;
}

#site-navigation.is-hidden {
    top: calc(-1 * var(--navigation-height) + 10px);
}

.navigation-inner {
    display: grid;
    grid-template-columns: minmax(92px, 6em) minmax(0, 1fr) minmax(92px, 6em);
    column-gap: 0.5em;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
}

#site-navigation ul {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

#site-navigation li {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

#site-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    color: var(--on-bar);
}

#site-navigation a:hover,
#site-navigation a[aria-current="page"] {
    text-decoration: underline;
    color: var(--on-bar);
}

#site-navigation [hidden] {
    display: none;
}

#menu-toggle {
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    border: 0;
    background: transparent;
    color: var(--on-bar);
    font: inherit;
    cursor: pointer;
}

#menu-toggle[aria-expanded="true"] {
    text-decoration: underline;
}

#TableOfContents {
    margin: 0 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid light-dark(#d4dadd, #40494d);
    font-size: 0.9375rem;
}

#TableOfContents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#TableOfContents li {
    padding: 0;
}

#TableOfContents a {
    display: inline-block;
    padding-block: 0.25rem;
}

.navigation-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    grid-column: 3;
    justify-self: end;
}

#language-switcher a {
    font-size: inherit;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--primary);
    transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
    transform: none;
    color: var(--primary);
}

.me {
    text-align: center;
}

.me img {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 5px 0 rgba(0, 0, 0, 0.1);
}

.home header h1 {
    padding-bottom: 1rem;
}

.home .content > .me {
    margin: 1rem 0;
}

.home .content > .me:first-child {
    margin-top: 0;
}

.photo-credit {
    font-family: "Source Code Pro";
    margin: 0.5rem 0 1rem;
    font-size: 0.66em;
    text-align: center;
}

.content {
    padding: 1rem;
    margin: 0 auto;
    max-width: 38rem;
}

.content {
    overflow-wrap: anywhere;
}

.content h2 {
    margin: 3.5rem 0 1rem;
}

.content h3 {
    margin: 1.75rem 0 0.625rem;
}

.content h4 {
    margin: 1.5rem 0 0.5rem;
}

.content > h2:first-child, #TableOfContents + h2 {
    margin-top: 1rem;
}

.home .content h3 {
    margin-top: 1.25rem;
}

.home .content h3 + p {
    margin-top: 0.5rem;
}

.content h2, .content h3, .content h4 {
    line-height: 1.25;
}

.content ul, .content ol {
    padding-left: 1.75em;
}


/* Links keep the text colour; the underline (never removed) marks them. */
a, a:visited, a:hover {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.15em;
}

.content li {
    padding: 0.5rem;
}

code {
    font-size: 0.9rem;
    font-family: 'Source Code Pro', monospace;
}

footer {
    color: var(--on-bar);
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box, var(--hazard) border-box;
    border-top: 10px solid transparent;
}
footer a:hover {
    color: var(--on-bar);
}

.back-to-top {
    text-align: right;
    font-weight: bold;
    a, a:visited {
        padding: 0.25em;
        text-decoration: none;
    }

    a:hover {
        padding: 0.25em;
        text-decoration: underline;
    }
}

p.logo {
    text-align: center;
}

p.logo-w {
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .logo {
        display: none;
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .logo-w {
        display: none;
    }
}

.logo img {
    width: 20%;
    vertical-align: middle;
    padding-left: 0.75em;
    padding-right: 0.75em;
}

.logo-w img {
    width: 20%;
    vertical-align: middle;
    padding-left: 0.75em;
    padding-right: 0.75em;
}

.groupphoto {
    text-align: center;
}

.groupphoto img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 5px 0 rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    font-size: 0.8em;
    margin-top: auto;
    padding: 1rem;
    width: auto;
}

footer p {
    margin: auto;
    max-width: 38rem;
}

footer a, footer a:visited {
    color: var(--on-bar);
}

footer p {
    padding: 0.25em;
}

#uni-koeln-logo {
    text-align: center;
    height: auto;
    max-width: 20em;
    margin: 0;
}

@media all and (max-width: 48em) {
    html {
        scroll-padding-top: 1rem;
    }

    #site-navigation {
        position: static;
    }

    .navigation-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.25rem;
    }

    #menu-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .navigation-tools {
        grid-column: 2;
        grid-row: 1;
    }

    #site-navigation ul {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
    }

    #main-menu a {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
}

@media all and (max-width: 32em){
    #site-navigation {
        font-size: 0.875rem;
    }
    header h1 {
        font-size: 2.0rem;
    }
    .me img {
        /* display: none; */
    }
    .photo-credit {
        /* display: none; */
    }
    .logo img {
        width: 15%;
        vertical-align: middle;
        padding-left: 1.5%;
        padding-right: 1.5%;
    }
}

.bibliography > li {
    margin-bottom: 1.5rem;
}

.publication-links {
    font-size: 0.9375rem;
    margin-top: 0.375rem;
}

.publication-links a {
    display: inline-block;
    padding-block: 0.125rem;
}

.publication-note p, .publication-errata p {
    margin: 0.5rem 0 0;
}

.publication-note > p:first-of-type, .publication-errata > p:first-of-type {
    display: inline;
}

.publication-note, .publication-errata {
    font-size: 0.9375rem;
    margin-top: 0.625rem;
    margin-left: 0.75rem;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] .logo,
:root[data-theme="light"] .logo-w { display: none; }

#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    font: inherit;
    color: var(--on-bar);
    background: transparent;
    cursor: pointer;
}
#theme-options {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}
#theme-options button {
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    border: 0;
    font: inherit;
    color: var(--on-bar);
    background: transparent;
    cursor: pointer;
}
#theme-options button[aria-pressed="true"],
#theme-options button:hover {
    text-decoration: underline;
}
@media all and (max-width: 48em) {
    #theme-options { grid-row: 3; }
}

.full-width-table {
    width: 100%;
    table-layout: fixed;
}

.full-width-table th, .full-width-table td {
    width: 25%;
    text-align: center;
}

.experiment {
    margin-top: 1.5rem;
    padding: 0 1rem 0.5rem;
    border: 1px solid light-dark(#d9cdbf, #4a4036);
    border-left: 6px solid var(--secondary);
    border-radius: 0.5rem;
}

.experiment h3 {
    margin: 1rem 0 0.5rem;
}

.experiment-facts {
    margin: 0.75rem 0;
}

.experiment-facts dt {
    float: left;
    clear: left;
    margin-right: 0.4em;
    font-weight: bold;
}

.experiment-facts dt::after {
    content: ":";
}

.experiment-facts dd {
    margin: 0;
    padding-bottom: 0.25rem;
}

.experiment-run > h4 {
    margin-top: 1.25rem;
}

.disclaimer {
    font-size: 0.9375rem;
}
