/* Adapted from readable.css 1.1.0, licensed 0BSD */

/* Font family support */
html, html[data-font-family="serif"] {
    --font-family: serif;
}
html[data-font-family="sans-serif"] {
    --font-family: sans-serif;
}
html[data-font-family="monospace"] {
    --font-family: monospace;
}

/* Color scheme support */
html, html[data-theme="light"] {
    --background-color: snow;
    --color: #000;
}
html[data-high-contrast="on"], html[data-theme="light"][data-high-contrast="on"] {
    --background-color: #fff;
}

html[data-theme="dark"] {
    --background-color: #1f272d;
    --color: #fff;
}
html[data-theme="dark"][data-high-contrast="on"] {
    --background-color: #000;
}

@media (prefers-color-scheme: dark) {
    html {
        --background-color: #222830;
        --color: #fff;
    }
    html[data-high-contrast="on"] {
	--background-color: #000;
    }
}

@media (prefers-contrast: more) {
    :is(html, html[data-theme="light"]):not([data-high-contrast="off"]) {
	--background-color: #fff;
    }

    html[data-theme="dark"]:not([data-high-contrast="off"]) {
	--background-color: #000;
    }
}

/* Generic styles */
:root {
    --column-width: 67ch;
    --form-width: 50ch;
    --line-width: 0.125rem;
    --line-height: 1.5;

    --one-line: calc(var(--line-height) * 1rem);
    --half-line: calc(var(--one-line) * 0.5);

    font-family: var(--font-family);

    background-color: var(--background-color);
    color: var(--color);
}


a {
    color: inherit;
}

a:active {
    color: red;
}


/* Vertical Rhythm */
p, ul, ol, figcaption, nav, td, th, label {
    line-height: var(--line-height);
}


/* Headings */

header h1 {
    font-weight: normal;
}

h1, h2 {
    line-height: calc(var(--line-height) * 2rem);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: normal;
    /* text-align: right; */
}

h3, h4, h5, h6 {
    line-height: var(--one-line);
    padding-top: calc(var(--line-height) * 0.75rem);
    margin-bottom: calc(var(--line-height) * 0.25rem);
}

:is(h3, h4, h5, h6) + * {
    margin-top: 0;
}

/* Nav sidebar */

nav {
    font-variant-caps: small-caps;
    line-height: var(--line-height);
    margin-top: 8rem;
}

/* PDF icon followed by nbsp */
.pdf_link::before {
    content: "\1F5CE\a0"
}

/* Globe icon followed by nbsp */
.article_link::before{
    content:"\1F310\a0"
}

.abstract{
    display:none;
}

.title::after {
    /* content:"\a"; */
    /* white-space:pre; */
}

.publication {
    margin-bottom: var(--one-line);
}

.title {
    font-weight: bold;
}

.venue {
    font-style: italic;
}
.date{
    font-weight: bold;
}
.date::after {
    content: ": "
}
