/* Article Syles */
.article-meta {
    max-width: 600px;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 20px;
    margin-top: 10px;

    align-items: center;
}

.article-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;

    justify-content: center;
}

.article-content article {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.article-content article p {
    margin: 0;
}

.article-content article h1,
.article-content article h2,
.article-content article h3,
.article-content article h4,
.article-content article h5,
.article-content article h6 {
    margin: 1.2em 0 0.5em;
}

.article-content article ul,
.article-content article ol {
    margin: 0 0 1em;
    padding-left: 2em;
}

.article-content article li {
    margin: 0.25em 0;
}

.article-content .markdown-spacer {
    height: 1em;
}

.article-content article hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid #81768d;
}

.article-content article > :first-child {
    margin-top: 0;
}

.article-content article > :last-child {
    margin-bottom: 0;
}

.article-content blockquote {
    margin: 1em 0;
    padding: 0.25em 1em;
    border-left: 3px solid #ba90ef;
    color: #d5c9e2;
}

.article-content pre {
    overflow-x: auto;
    padding: 12px 16px;
    background: #3c3841;
}

.article-content code {
    padding: 0.1em 0.25em;
    background: #3c3841;
}

.article-content pre code {
    padding: 0;
}

.article-content a {
    color: #ba90ef;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.article-image-frame {
    width: fit-content;
    max-width: min(100%, calc(100vw - 32px));
    margin: 0 auto;
    margin-top: 20px;
    padding: 2px;
    background: #ba90ef;
    clip-path: polygon(
        32px 0, 100% 0, 100% 100%,
        0 100%, 0 32px
    );
}

.article-image {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    height: auto;
    clip-path: polygon(
        30px 0, 100% 0, 100% 100%,
        0 100%, 0 30px
    );
}

.article-title h2 {
    position: relative;
    z-index: 10;
    width: fit-content;
    margin: -24px auto 0;
    padding: 8px 16px;

    color: #ba90ef;
}

.article-title h2::before,
.article-title h2::after {
    content: "";
    position: absolute;
    pointer-events: none;
    clip-path: polygon(
        0 0, calc(100% - 18px) 0, 100% 18px,
        100% 100%, 18px 100%, 0 calc(100% - 18px)
    );
}

.article-title h2::before {
    inset: 0;
    z-index: -2;
    background: #ba90ef;
}

.article-title h2::after {
    inset: 2px;
    z-index: -1;
    background: #51495c;
    clip-path: polygon(
        0 0, calc(100% - 16px) 0, 100% 16px,
        100% 100%, 16px 100%, 0 calc(100% - 16px)
    );
}