:root {
    /* Text Defaults */
    --underline-offset: -0.2em;
    --underline-offset-hover: -0.5em;
}

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-default, 15px) 0;
}
ul li {
    margin-left: 20px;
}
ul li::marker {
    color: red;
}
ol {
    list-style-type: decimal-leading-zero;
    margin-block-start: 1rem;
    /* list-style-position: inside */
}
ol li {
    margin-left: 40px;
}

blockquote {
    background-color: var(--accent-color);
    margin: var(--gutter-default, 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 {
    font-size: 1.0rem;
    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%;
    border: 1px solid var(--outline-color);
    border-radius: 10px;
    max-width: var(--max-width, 100%);
    overflow-x: scroll;
    padding: 10px;
    background-color: rgba(0,0,0,0.1);
    margin: var(--gutter-1x, 15px) 0;
}
code {
    white-space: pre;
    tab-size: inherit;
    background-color: inherit;
}
pre code span {
    font-size: var(--code-font-size);
    -webkit-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
} */
pre {
    tab-size: 4;
}
pre:has(code),
[no-highlights] pre:has(code) {
    font-size: 1.0rem;
    -webkit-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    max-width: var(--max-width, 100%);
    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);
}
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-default, 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 {
    margin: var(--gutter-4x, 60px) 0 0 0;
}
