:root {
    --text-color: #222;
    --light-text-color: #bbb;
    --link-color: #FF5D00ff;
    --accent-color: #47A8BD;
    --accent-color-dark: #1E3888;
    --accent-color-light: #F5E663;
    --bg-color: #fff;
    --dark-bg-color: #f4f4f4;
    --page-width: 700px;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

a:focus-visible {
    outline: 1px solid var(--link-color);
    outline-offset: 0px;
}

a:hover {
    text-decoration: underline;
}

body {
    max-width: var(--page-width);
    padding: 0;
    margin: auto;

    font-family: 'Atkinson Hyperlegible';

    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;

    color: var(--text-color);
    background-color: var(--bg-color);

    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

header {
    padding: 20px 0;
    margin-left: auto;
    max-width: fit-content;
}

header h1 {
    text-align: right;
    font-size: 2.7em;
    padding: 0;
    margin: 0;
}

header h2 {
    font-size: 0.8em;
    padding: 0;
    margin: 0;
    color: var(--accent-color)
}

nav {
    border-color: var(--text-color);
    border-bottom: 0.5px solid;
}

nav ul {
    padding: 0;
    margin: 10px auto;
    width: fit-content;
}

nav li {
    display: inline;
    margin: 5px;
}

nav a {
    font-size: 1.2em;
}

main {
    margin: 0 20px;
    position: relative;
}

main p {
    text-align: justify;
    text-justify: inter-word;
    hanging-punctuation: first last;
    word-spacing: -0.05em;

    padding: 0;
    margin: 0;
    line-height: 1.3em;
}

main p+p {
    text-indent: 15px;
    margin-top: 5px;
}

main :is(h1, h2, h3, h4, h5, h6) {
    color: var(--accent-color-dark);
    margin-bottom: 8px;
    margin-top: 20px;
    padding: 0px;
}

main .floatImage {
    float: right;
    margin-left: 35px;
    margin-top: 0px;
    padding: 0px;
    max-width: 30%;
    width: 200px;
}

main .floatImage img {
    width: 200px
}

.toc {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 20px;
    margin-top: 30px;
    max-width: 250px;
    min-width: 180px;
    padding-right: 40px;
    padding-left: 40px;
}

.toc h1 {
    font-size: 1.3em;
    text-align: center;
    border-bottom: 0.5px solid var(--text-color);
    width: 100%;
}

.toc ul {
    padding: 0;
    margin: 0;
    margin-left: 18px;
}

.toc>ul {
    padding: 0;
    margin: 0 45px;
}

.toc li {
    padding: 3px;
    margin: 0;
}


.text-list-element-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.text-list-title {
    padding: 0;
    margin: 0;
}

.text-list-meta {
    font-style: italic;
    width: 170px;
    padding: 0;
    margin: 0;
    text-align: right;
}

.text-list-summary {
    clear: both;
}

.text-list-element-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
}

.text-list-link {
    clear: both;
    padding-right: 20px;
}

.meme-list {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.meme {
    height: fit-content;
    width: 600px;
    margin: 0px auto;
}

.meme img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 0px auto;
}

.meme-list-element {
    width: 128px;
    height: 128px;
    border-radius: 3px;
    overflow: hidden;
}

.meme-list-element img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    object-position: center;
}

.meme-element {
    width: fit-content;
    margin: 0 auto;
}

.meme-element img {
    width: 100%
}

.meme-element-footer {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.meme-element-footer ul {
    width: fit-content;
    margin: 0px auto;
}

.meme-element-footer li {
    display: inline;
}

.publication-list ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.publication-list li {
    padding-bottom: 15px;
}

.publication-list:last-child li {
    margin-bottom: 0px;
}

.publication-element .title {
    font-weight: bold;
}

.publication-element .source {
    font-style: italic;
}

.publication-element .authors::after,
.publication-element .source::after {
    content: ";";
}

.publication-element .title::after,
.publication-element .title::before {
    content: "\"";
}

.publication-element .doi {
    text-align: right;
}

.publication-element-footer {
    display: flex;
    justify-content: space-between;
}

.separator {
    height: 0.75px;
    width: 70%;
    margin: 30px auto;
    background-color: var(--light-text-color);
}

.text-list-element:last-child .separator {
    display: none;
}

pre {
    width: 79ch;
    background-color: var(--dark-bg-color);
    margin: 25px auto;
    padding: 15px;
    border-radius: 8px;
}

code {
    font-family: "Source Code Pro", monospace;

}

.backlink {
    width: fit-content;
    margin: 10px auto;
}

.backlink a::before {
    content: " ← ";
}

footer {
    border-top: 0.5px solid var(--text-color);
    border-bottom: 0.5px solid var(--text-color);
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 0px;
}

footer ul {
    list-style: none;
    margin: 0px 10px;
    padding: 0px 0px;
}

footer p {
    text-align: center;
    margin: 0px;
    padding: 0px;
}