@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Germania+One&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Germania+One&display=swap');

@font-face {
    font-family: "TheChelsLight";
    src: url("TheChelsLight.woff") format("woff")
}

@font-face {
    font-family: "TheChelsMedium";
    src: url("TheChelsMedium.woff") format("woff");
    font-weight: bold
}

:root {
    --background: #0b0507;
    --surface: #15090c;
    --primary: #615050;
    --secondary: #16a8be;
    --links: #23abad;
    --accent: #ff4963;
    --marker-start: #ff5c73a3;
    --marker-end: #5b0f1b8a;
    --code: #f4b6bf;
    --code-inline-bg: #261014;
    --code-inline-text: #ffb9c4;
    --code-block-bg: #1a0c10;
    --code-block-border: #5c1f2a;
    --tab: #ff4a65;
    --alt-tab: #d73752;
    --table-border: #58202a;
    --table-cell-border: #4a1822;
    --table-head-bg: #341118;
    --table-head-text: #ff9eaa;
    --table-head-divider: #6a2632;
    --table-row-alt-bg: #150b0d;
    --table-row-hover-bg: #231014;
}

.font-stack {
    font-family: "Space Grotesk", "Germania One", TheChelsLight, -system-ui, "Gill Sans", sans-serif;
}

.font-mono {
    font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace, "Courier New"
}

html {
    font-size: 120%;
    height: 100%;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: "Gill Sans", sans-serif;
    color: var(--primary);
    background: var(--background);
    box-sizing: border-box;
    max-width: 32em;
    margin: 0 auto;
    padding: 2.6em 1.35em 4em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.flow>*+* {
    margin-block-start: var(--flow-space, 1em)
}

.stack>*+* {
    margin-block-start: 1.5em
}


.blog-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8em;
    padding: 1.2em;
    border-top: 1px solid var(--accent);
}

.blog-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.65em
}

.blog-avatar {
    width: 2.2em;
    min-width: 2.2em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    order: 0;
    margin-left: 0;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent)
}

.blog-text {
    display: flex;
    order: 1;
    flex-direction: column;
    justify-content: center;
    text-align: center
}

.blog-title {
    font-size: 1.35em;
    font-family: "Space Grotesk", TheChelsMedium, -system-ui, "Gill Sans", sans-serif;
    line-height: 1;
    letter-spacing: 0.015em;
    outline: none
}

.blog-title a {
    text-decoration: none;
    color: var(--primary)
}

.blog-slogan {
    font-size: 0.82em;
    color: var(--secondary);
    letter-spacing: 0.02em;
    margin-top: 0.2em
}

.articleTitle {
    text-align: center;
    margin: 2.4em auto 1.5em;
    font-family: "Germania One", TheChelsMedium, -system-ui, "Gill Sans", sans-serif;
}

.articleTitle h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-wrap: balance;
}


.highlight>pre {
    margin: 0
}

.footer {
    border-top: 1px solid var(--accent);
    display: block;
    width: 100%;
}

.meta {
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4em;
    width: 100%;
    font-size: 0.78em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 1.35em auto 0.2em;
    text-align: center
}

.meta>*+* {
    margin-block-start: 0
}

.externalLink {
    order: 0;
    word-break: break-word
}

:is(.articleDateline, .articleDatelineTitle) {
    order: 0;
    margin-left: 0;
    text-align: center
}


:is(h1, h2, h3, h4, h5, h6) {
    color: var(--primary);
    position: relative;
    display: block;
    font-family: "Germania One", TheChelsMedium, -system-ui, "Gill Sans", sans-serif;
    text-wrap: balance;
}


:is(h1, h2, h3, h4, h5, h6) a {
    text-decoration: none;
    color: var(--primary)
}

:is(h1, h2, h3, h4, h5, h6) a:hover {
    text-decoration: none
}

:is(h1, h2, h3, h4, h5, h6) a:focus {
    text-decoration: none
}

ol li::marker {
    color: var(--primary)
}

ul li::marker {
    color: var(--accent)
}

:is(ul, ol) {
    margin-block: 1em;
    padding-inline-start: 1.5em
}

:is(ul, ol) li {
    margin-bottom: 0.5em
}

p {
    line-height: 1.72;
    margin-block: 1.1em;
    max-width: 70ch;
    overflow-wrap: anywhere;
    word-break: break-word;
}

strong,
b {
    font-family: TheChelsMedium;
    font-weight: bold
}

a {
    color: var(--links)
}

a:hover,
a:focus,
a:active {
    color: var(--accent);
    transition: color 0.2s ease-in-out;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em
}

.codeblock {
    font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace, "Courier New";
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--primary);
    background: var(--code-block-bg);
    border: 1px solid var(--code-block-border);
    border-radius: 0.75em;
    padding: 0.875em 1em;
    overflow-x: auto;
    tab-size: 4
}

pre,
code {
    font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace, "Courier New";
    tab-size: 4
}

pre {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--primary);
    background: var(--code-block-bg);
    border: 1px solid var(--code-block-border);
    border-radius: 0.75em;
    padding: 0.875em 1em;
    overflow-x: auto
}

code {
    font-size: 0.85em;
    color: var(--code-inline-text);
    background: var(--code-inline-bg);
    border-radius: 0.4em;
    padding: 0.15em 0.4em
}

pre>code {
    font-size: inherit;
    color: inherit;
    background: transparent;
    border-radius: 0;
    padding: 0
}

blockquote,
cite {
    padding: 0 1em;
    border-left: 0.25em solid var(--accent);
    width: 90%;
    margin-left: 0.625em
}

.footnote {
    font-size: 0.8em;
    color: var(--secondary)
}

.footnote sup {
    color: var(--primary);
    margin-right: 0.3125em
}

.posts {
    margin-left: 0;
    padding-left: 0;
    transition: all 0.1s
}

.floated {
    float: left;
    vertical-align: top;
    margin-right: 1.4em;
    margin-top: 0.8em
}

.clearfix::after {
    content: "";
    display: block;
    clear: both
}

.content {
    position: relative
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border: 1px solid var(--primary);
    box-sizing: border-box;
}

#bodyContainer {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 640px) {
    body {
        padding: 1.2em 0.9em 2.4em;
    }

    .blog-title {
        font-size: 1.3em;
    }

    .articleTitle {
        margin-top: 1.35em;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--table-border)
}

table th,
table td {
    padding: 0.5em;
    text-align: left;
    border: 1px solid var(--table-cell-border)
}

table th {
    background-color: var(--table-head-bg);
    color: var(--table-head-text);
    border-bottom: 1px solid var(--table-head-divider)
}

table tr:nth-child(even) {
    background-color: var(--table-row-alt-bg)
}

table tr:hover {
    background-color: var(--table-row-hover-bg)
}


/** custom gruber star removal */
a[title*="Permanent"] {
    display: none;
}