body {
    font-family: '-apple-system', 'Helvetica', sans-serif;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.8rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 0.5rem;
}
p:empty {
    display: none;
}

:where(p, h1, h2, h3, h4, h5, h6) {
    max-width: 100%;
    overflow-x: scroll;
}

a {
    font-family: inherit;
    font-weight: inherit;
    text-decoration: none;
    box-shadow: inset 0 var(--underline-offset, -0.2em) var(--link-underline-color);
    transition: box-shadow 0.25s ease-in-out;
}
a:hover {
    box-shadow: inset 0 var(--underline-offset-hover, -0.5em) var(--link-underline-color);
    transition: box-shadow 0.25s ease-in-out;
}

p + :is(h2, h3, h4, h5, h6) {
    margin-top: 1rem;
}

span, time {
    font-size: inherit;
    font-weight: inherit;
}

ul, ol { margin: var(--gutter-1x, 15px) 0; }
ul li { margin-left: 20px; }
ul li::marker { color: red; }
ol {
    list-style-type: decimal-leading-zero;
    list-style-position: inside;
}
ol li {
    display: list-item;
    padding-left: 3ch;
    text-indent: -3ch;
}
ol li::marker { font-weight: 500; }

blockquote {
    background-color: var(--accent-color);
    margin: var(--gutter-1x, 15px) 0;
    padding: var(--gutter-width) calc(var(--gutter-width) * 2);
    border-left: var(--gutter-width) solid var(--accent-shade);
}
blockquote p:last-of-type {
    margin-bottom: 0;
}
blockquote :is(a, a:hover) {
    font-weight: 600;
    box-shadow: none;
}

sup, sub {
    line-height: 0;
}
sup {
    vertical-align: super;

    & :is(a, a:hover) {
        color: inherit;
        text-decoration: none;
        box-shadow: none;
    }
}

pre {
    tab-size: 4;
}
pre:has(code) {
    font-size: 1.0rem;
    -webkit-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    width: 100%;
    max-width: var(--max-width, inherit);
    overflow-x: scroll;
    margin: var(--gutter-1x, 15px) 0;
    padding: var(--gutter-1x, 15px);
    background-color: rgba(0,0,0,0.75);
    color: rgba(255,255,255,1.0);
}
pre:has(code) code {
    max-width: inherit;
}
code {
    white-space: pre;
    tab-size: inherit;
}
code:not(pre code) {
    padding: 0 0.20em;
    border-radius: 0.10em;
    background-color: var(--accent-shade);
}
pre code .ln {
    display: none;
}

dl, dl * {
    color: inherit;
    margin-bottom: var(--gutter-1x, 15px);
}
dl dt {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Custom Styles */
[data-hyper-mention],[hyper-mention] {
    font-weight: 600;
    color: var(--text-color-alt);
}

.footnotes ol {
    list-style-type: decimal;
    list-style-position: inside;
}
.footnotes ol li {
    display: list-item;
    padding-left: unset;
    text-indent: unset;
}
/* .footnotes ol li::marker { font-weight: 500; } */
/* .footnotes ol li::marker { display: none; } */
/* .footnotes li::before { counter-increment: footnotes; content: counter(footnotes); } */
