* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: inherit;
    text-decoration: inherit;
}
html {
    background: var(--bg-0);
    color: var(--text-0);
    width: 100%;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-feature-settings: "liga" 1;
    min-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
@media all and (min-width:640px) {
    html{
        font-size: 16.5px;
   }
}
@media all and (min-width:720px) {
    html{
        font-size: 17px;
   }
}
@media all and (min-width:960px) {
    html{
        font-size: 18px;
   }
}
body {
    max-width: 944px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: "Charter", serif;
}
header, h1, h2, h3, .sans {
    font-family: 'Space Grotesk', Helvetica, sans-serif;
}
code, .mono, summary {
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
}
.img-right {
    float: right;
    height: 300px;
    padding-left: 2em 
}
body > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2em 0;
}
nav a {
    margin-left: 1.5em;
    letter-spacing: 0.07em;
    font-size: .9rem;
}
:root {
    --text-0: rgba(255, 255, 255, 87%);
    --text-1: rgba(255, 255, 255, 60%);
    --bg-0: #121212;
    --bg-1: rgba(255, 255, 255, 5%);
    --bg-2: rgba(255, 255, 255, 12%);
    --accent: #ef5350;
    --keyword: #b794f6;
    --string: #89a2f6;
    --literal: #f88478;
    --type: #f8819c;
}
@media (prefers-color-scheme: light) {
    :root {
        --text-0: rgba(0, 0, 0, 87%);
        --text-1: rgba(0, 0, 0, 66%);
        --bg-0: #fff;
        --bg-1: #f2f2f2;
        --bg-2: rgba(0, 0, 0, 12%);
        --keyword: #7c4dff;
        --string: #586ada;
        --literal: #d14641;
        --type: #bd00f8;
   }
}

.back {
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    letter-spacing: 0.07em;
    flex-wrap: wrap-reverse;
}
article > :not(main) {
    font-size: 16px;
}
article > h1 {
    font-size: 2rem;
    margin-bottom: 2px;
}

.author {
    color: var(--text-1);
}

article > div > img {
    display: inline;
    object-fit: cover;
    height: 48px;
    width: 48px;
    border-radius: 100%;
    margin-right: 8px;
    background: var(--bg-1);
}
article > time {
    color: var(--text-1);
    position: absolute;
    margin: -24px 0 0 56px;
}
article > hr {
    width: 128px;
    border: 2.5px solid var(--bg-1);
    margin-top: 12px;
}
main {
    margin: 2rem 0;
}
main > :nth-last-child(2) {
    margin-bottom: 2rem;
}
main img, main video, main iframe, main object {
    max-width: 100%;
    height: auto;
    display: flex;
    margin: auto;
}
main iframe {
    width: 100%;
    height: 504px;
}
p, ul, ol {
    line-height: 1.35;
    margin-bottom: 1rem;
}
details + :not(details) {
    margin-top: 1rem;
}
details + h3, details + h2, details + h1 {
    margin-top: 1.2rem;
}
object {
    margin-bottom: 1rem;
}
h1, h2, h3 {
    position: relative;
    margin: 1.2rem 0 0.2rem 0;
}
h3, h2 {
    line-height: 24px;
}
main h1:before, h2:before, h3:before {
    content: "#";
    color: var(--accent);
    font-weight: bold;
    float: left;
    margin-left: -19px;
    position: absolute;
}
h3:before {
    content: "";
    margin-left: -17px;
    height: 10px;
    width: 10px;
    background: var(--accent);
    border-radius: 100%;
    top: calc(50% - 6px);
}
h1 {
    font-size: 1.3em;
}
h2 {
    font-size: 1.2em;
}
h3 {
    font-size: 1.1em;
}
p a, main li a {
    text-decoration: underline;
}
summary {
    margin-left: -17px;
    cursor: pointer;
}
summary::marker {
    color: var(--accent);
}
details :nth-child(2) {
    margin-top: 0.8rem;
}
ul {
    list-style: none;
}
ul li, ol li {
    padding-left: 1rem;
    margin: 0 0 0.2rem 1rem;
}
ul li::before {
    content: "•";
    float: left;
    margin-left: -2rem;
    transform: scale(1.4);
}
blockquote {
    color: var(--text-1);
    font-style: italic;
    margin: 0 2em;
}
.footnotes {
    border-top: 1px solid var(--bg-1);
    padding-top: 1rem;
}
pre {
    border-left: 4px solid var(--bg-1);
    margin: 0 0 1rem -24px;
    padding-left: 20px;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
pre::-webkit-scrollbar {
    width: 0;
    height: 0;
}
:not(pre) > code {
    background: var(--bg-1);
    padding: 2px 4px;
}
pre > code {
    display: inline-block;
}
code {
    font-size: 14px;
}
@media screen and (min-width: 640px) {
    code {
        font-size: 15px;
   }
}
@media screen and (max-width: 944px) {
    main iframe {
        height: calc((100vw - 24px) * 0.5625);
   }
    blockquote {
        margin: 0 0 0 1.25em;
   }
    ul li::before {
        margin-left: -1.25rem;
   }
    ul li {
        padding-left: 0.625rem;
        margin-left: 0.625rem;
   }
    ol li {
        padding-left: 0.25rem;
   }
}
.aside {
    color: var(--text-1);
}
@media screen and (min-width: 1074px) {
    article::before {
        background: radial-gradient( circle at center, var(--bg-1) 25%, transparent 25% ), transparent;
        background-size: 10px 10px;
        content: "";
        display: block;
        height: 300px;
        width: 300px;
        position: absolute;
        transform: translate(-72px, -72px);
        z-index: -1;
   }
    article {
        padding: 24px 0 0 24px;
        margin: -24px 0 0 -24px;
        background: var(--bg-0);
   }
    article h1:first-of-type {
        margin-top: 0;
   }
    body > header {
        margin-bottom: 5em;
   }
}
@media screen and (max-width: 1584px) {
    .aside {
        position: relative;
        padding: 4px 0 4px 0;
        border-bottom: 1.5px solid var(--bg-1);
        border-top: 1.5px solid var(--bg-1);
   }
}
@media screen and (min-width: 1584px) {
    .aside {
        float: left;
        position: absolute;
        left: 0;
        transform: translate(calc(-100% - 28px), calc(-100% - 1rem));
        width: 320px;
        text-align: right;
        clear: both;
   }
    footer {
        position: absolute;
        left: calc(100% + 24px);
        width: 320px;
        top: 0;
   }
}
code .gu, code .gh {
    font-weight: bold;
}
code .p {
    color: var(--text-1);
}
code .c, code .ch, code .cm, code .cp, code .cpf, code .c1, code .cs {
    color: var(--text-1);
}
code .o, code .ow {
    color: var(--keyword);
}
code .k, code .kn, code .kc, code .kp, code .kr, code .nt, code b {
    color: var(--keyword);
    font-weight: bold;
}
code .kt, code .kd, code .nb, code .nl, code .nv, code .vc, code .vg, code .vi, code .vm, code .gd {
    color: var(--type);
}
code .m, code .mb, code .mf, code .mh, code .mi, code .mo, code .il, code .se {
    color: var(--literal);
}
code .s, code .sa, code .sb, code .sc, code .dl, code .sd, code .s2, code .sh, code .si, code .sx, code .sr, code .s1, code .ss, code .gi {
    color: var(--string);
}
