:root {
    --site-background: #fef0df;
    --blockquote-foreground: #464a4d;
    --transclusion-background: #ecc9b5;
    --border-color-hover: #9db8bf;
    --border-color: #464a4d;
    --code-background: #f4e7d6;
    --code-border: #c6c2c2;
    --heading-foreground: #333;
    --site-foreground: #000;
    --link-border-color: #e5e5e5;
    --link-foreground-hover: #ffb098;
    --link-foreground-visited: #333;
    --link-foreground: #000;
    --nav-link-foreground: #000;
    --time-foreground: #b7b5b2;
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
    --font-mono: San Francisco Mono, Monaco, "Consolas", "Lucida Console", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
    --maximum-width: 760px;
    --body-width: 760px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --site-background: #26211c;
        --blockquote-foreground: #b7b5b2;
        --transclusion-background: #2f2621;
        --border-color-hover: #5c6d73;
        --border-color: #253237;
        --code-background: #7f6d58;
        --code-foreground: #e8e8e8;
        --heading-foreground: #b7b2b2;
        --site-foreground: #e1e1e1;
        --link-foreground: #b7b2b2;
        --link-foreground-visited: #686363;
        --nav-link-foreground: #b7b2b2;
   }
    img[src$=".svg"] {
        filter: invert(100%);
        -webkit-filter: invert(100%);
       /* safari 6.0 - 9.0 */
   }
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/inter/regular.woff2) format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: bold;
    font-weight: bold;
    src: url(/fonts/inter/bold.woff2) format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: italic;
    font-weight: 400;
    src: url(/fonts/inter/italic.woff2) format("woff2");
}
::selection {
    background: var(--link-foreground-hover);
}
/* Normalise a number of key behaviours between browsers */
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    padding: 0;
    margin: 0;
}
html, body {
    height: 100%;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
b, strong {
    font-weight: bolder;
}
pre, code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
small {
    font-size: 80%;
}
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}
details {
    display: block;
}
summary {
    display: list-item;
}
html {
    font-size: 16px;
    color: var(--site-foreground);
    background-color: var(--site-background);
    padding-left: 0.25em;
    padding-right: 0.25em;
}
body {
    font-family: var(--font-sans);
    margin: auto;
    max-width: var(--body-width);
    font-size: 1.1rem;
    line-height: 1.6em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    display: block;
}
main > :first-child {
    margin-top: 0.75em;
}
footer {
    padding-bottom: 1em;
    margin-top: auto;
}
a {
    padding-bottom: 0.05rem;
    color: var(--link-foreground);
    text-decoration: underline;
}
a:visited {
    color: var(--link-foreground-visited);
}
a:hover {
    color: var(--link-foreground-hover);
    transform: translateY(-2px);
}
a[href*="//"]:not([href*="silasjelley.com"]):after {
    content: "\21d7";
}
ul, ol {
    padding-left: 2em;
}
nav ul {
    padding-left: 0;
}
nav a {
    border: none;
    color: var(--nav-link-foreground);
    text-decoration: none;
}
nav a:visited {
    color: var(--nav-link-foreground);
}
nav a:hover {
    border: none;
    color: var(--link-foreground-hover);
    transform: unset;
}
ul.navmain {
    margin: 20px 0 0 0;
}
ul.navmain li {
    margin-right: 10px;
    display: inline-block;
}
ul.navmisc {
    margin: 0;
}
ul.navmisc li {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
}
img {
    transition: 0.3s;
    max-width: 100%;
    border-radius: 0.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.float-left.always {
    float: left;
    width: 40%;
    margin-right: 15px;
}
.float-right.always {
    display: block;
    float: right;
    width: 40%;
    margin-left: 15px;
}
video {
    width: 90%;
    display: block;
    margin: 1em auto 1em auto;
}
figure {
    margin: 10px 0 10px 0;
}
figcaption {
    grid-column: 1/-1;
    text-align: center;
}
.toc {
    background-color: var(--code-background);
    border-radius: 0.25rem;
    padding: 0.25em;
}
.toc ul {
    list-style: none;
    padding: 0 0 0 0.8em;
}
section[role=doc-endnotes] {
    background-color: var(--code-background);
    border: 2px solid var(--code-border);
    color: var(--code-foreground);
    margin-bottom: 1em;
    padding: 0.1em;
}
[role=doc-endnotes] ol {
    list-style: decimal;
}
[role=doc-endnotes] li {
    padding-right: 2em;
}
[role=doc-endnotes] hr {
    display: none;
}
div.backlinks {
    font-size: 0.8em;
    color: var(--time-foreground);
}
#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--site-background);
}
.modal-content {
    margin: auto;
    display: block;
    padding-top: 20vh;
    max-height: 90vh;
    max-width: 100vw;
}
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    padding: 10px 0;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-foreground);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5rem;
}
h3, h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}
p {
    margin-top: 1em;
    margin-bottom: 1em;
}
article p {
    margin-top: 0px;
}
article h2 {
    margin-top: 0px;
    margin-bottom: 5px;
}
figure.transclusion {
    padding: 0.5em;
    background-color: var(--transclusion-background);
    border-radius: 0.25em;
}
time {
    color: var(--time-foreground);
    font-weight: normal;
    font-size: 1rem;
}
time code {
    color: var(--site-foreground);
}
hr {
    margin: 1.35em auto;
    max-width: 100%;
    background-position: 50%;
    box-sizing: border-box;
    width: 45px;
    border: 0;
    height: 15px;
    background-image: linear-gradient( currentColor, currentColor 33.33%, transparent 33.33%, transparent 100% );
    background-size: 100% 5px;
}
blockquote {
    padding-left: 2em;
    border-left: 5px solid var(--code-background);
    color: var(--blockquote-foreground);
}
code {
    padding: 2.5px;
    overflow: scroll;
    font-size: 14px;
    line-height: 1em;
    color: var(--code-foreground);
    background: var(--code-background);
    border-radius: 0.25rem;
    margin-bottom: 1em;
}
pre code {
    display: block;
    padding: 10px;
}
dl {
    padding: 0.5em;
}
dt {
    font-weight: bold;
}
dd {
    margin-left: 3em;
    padding: 0 0 0.5em 0;
}
table {
    position: relative;
    width: 100%;
    overflow-y: auto;
    border-collapse: separate;
    border-spacing: 0;
    border-color: #a8a29e;
    border-style: solid;
    border-width: 1px;
}
table td:empty::after {
    content: "\00a0";
}
table tbody tr:last-of-type td {
    border-bottom: none;
}
table tr {
    background-color: #ffffff;
}
table td, table th {
    text-align: left;
    font-size: 13px;
    color: #292524;
    border-right: 1px solid #e7e5e4;
    border-bottom: 1px solid #e7e5e4;
    padding: 3px 4px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
table td:last-of-type, table th:last-of-type {
    border-right: none;
}
table thead td, table thead th {
    font-weight: 700;
}
input, button, textarea {
    padding: 12px 20px;
    margin: 8px;
    margin-left: 0;
    box-sizing: border-box;
    border-radius: 0.4rem;
    border: 0px solid var(--border-color);
}
textarea, input[type="text"], input[type="email"], input[type="password"] {
    border-radius: 4px;
    background-color: var(--code-background);
}
input[type="button"], input[type="submit"], input[type="reset"], button[type="submit"] {
    background-color: #333;
    border: none;
    color: #fff;
    cursor: pointer;
}
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button[type="submit"]:hover {
    background-color: var(--link-foreground-hover);
    color: white;
}
input[type="text"] #search {
    margin-bottom: +5em !important;
}
form input[type="text"], form textarea {
    width: 100%;
}
input#username, input#password {
    width: 200px;
}
input[type="email"] {
    width: 260px;
}
summary {
    cursor: pointer;
    margin-bottom: 1em;
}
.collection.card h2 {
    display: inline;
}
.collection.title h2 {
    display: inline;
    font-size: 1.1rem;
    font-weight: 400;
}
.collection.body time a {
    color: var(--time-foreground);
    text-decoration: none;
}
.collection.body {
    margin-bottom: 10px;
    background: var(--code-background);
    border-radius: 0.25em;
    padding: 1em;
}
@media screen and (min-width: 900px) {
    .collection.title {
        display: grid;
        grid-column-gap: 5px;
        grid-row-gap: 5px;
        grid-template-columns: 1fr 0.3fr;
   }
    .collection.body {
        display: grid;
        grid-column-gap: 5px;
        grid-row-gap: 5px;
        grid-template-columns: 1fr 0.2fr;
   }
    .collection.card time {
        float: right;
   }
    .collection.title time, .collection.body time {
        text-align: right;
   }
    .collection.card.changelog time {
        float: left;
   }
    .collection.card.changelog {
        display: grid;
        grid-column-gap: 5px;
        grid-row-gap: 5px;
        grid-template-columns: 0.2fr 1fr;
   }
}
.navmisc.ring .next {
    float: right;
}
.gallery {
    display: grid;
    --gallery-image: calc(var(--body-width) / 3.1);
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-image), 1fr));
    gap: 4px;
}
.gallery.two-wide {
    --gallery-image: calc(var(--body-width) / 2.1);
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-image), 1fr));
}
.gallery.one-wide {
    --gallery-image: calc(var(--body-width) / 1.1);
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-image), 1fr));
}
.gallery.two-up-one-down {
    --gallery-image: calc(var(--body-width) / 2.1);
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-image), 1fr));
    grid-auto-flow: row dense;
}
.gallery.one-up :nth-of-type(1) {
    grid-column: 1 / -1;
}
.gallery.two-up-one-down :nth-of-type(3) {
    grid-column: 1 / -1;
}
.gallery.four-wide {
    --gallery-image: calc(var(--body-width) / 4.1);
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-image), 1fr));
}
.gallery img:hover {
    cursor: pointer;
    opacity: 0.7;
}
.image-link {
    border: 0 !important;
}
.float-left.always {
    float: left;
    width: 40%;
    margin-right: 15px;
}
.float-right.always {
    display: block;
    float: right;
    width: 40%;
    margin-left: 15px;
}
.alert p {
    padding: 20px;
    background-color: var(--border-color);
    margin-bottom: 15px;
    line-height: 1em;
    border-radius: 0.25rem;
    border: 2px solid;
    display: block;
    margin: 10px 0px;
    padding: 12px;
}
/* Admonitions*/
.aside {
    position: relative;
    padding: 0.03rem 0.8rem;
    margin-bottom: 1em;
    border: 2px solid var(--code-border);
    color: var(--code-foreground);
    background-color: var(--code-background);
}
 .warn {
     background-color: rgba(255, 145, 0, 0.15);
}
 .error {
     background-color: rgba(255, 23, 68, 0.15);
}
 .message {
}
 .message p {
    margin: 0.5em;
}
.message-left {
    margin-right: 6em;
}
.message-right {
    margin-left: 6em;
    background-color: #f4f4f4;
}
@media (prefers-color-scheme: dark) {
.message-right {
    background-color: #978a8a;
}
}
/* Poetry */
.poem {
    text-align: center;
    color: var(--blockquote-foreground);
}
.poem ul {
    list-style: none;
}
.narrow-image {
    max-width: 500px;
    margin: auto;
}
/* Media Queries */
@media screen and (min-width: 900px) {
    figure.wide-image {
        width: 900px;
        max-width: 900px;
        transform: translateX(-70px);
   }
    img.wide-image {
        width: 900px;
        max-width: 900px;
        transform: translateX(-70px);
   }
    .float-left {
        float: left;
        width: 40%;
        margin-right: 15px;
   }
    .float-right {
        display: block;
        float: right;
        width: 40%;
        margin-left: 15px;
   }
    .message-left {
        margin-right: 12em;
   }
    .message-right {
        margin-left: 12em;
   }
}
@media screen and (min-width: 1250px) {
    html {
        padding-left: 0;
        padding-right: 0;
   }
    body {
        width: var(--body-width);
   }
    figure.wide-image {
        width: 1200px;
        max-width: 1200px;
        transform: translateX(-185px);
   }
    img.wide-image {
        width: 1200px;
        max-width: 1200px;
        transform: translateX(-185px);
   }
    .toc {
        position: fixed;
        top: 8rem;
        left: 0;
        max-width: 300px;
        min-width: 12em;
        font-size: 0.9rem;
        background: transparent;
   }
    .toc > ul {
        margin-top: 1em;
        margin-left: 2em;
        height: 96vh;
        overflow-y: scroll;
        font-size: 14px;
   }
    .toc > ul {
        padding-left: 0;
   }
    .toc a:not(:hover) {
        text-decoration: none;
   }
}

div.vis-day {
    min-height: 2em;
    max-height: 3em;
    min-width: 1em;
    padding: 2px 5px;
    margin: 2px;
    float: left;
    border: 1px solid #dee2e6;
}

div.vis-day-message {
}
