@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../font/InterVariable.woff2") format("woff2");
}

@font-face {
    font-family: Inter;
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../font/InterVariable-Italic.woff2") format("woff2");
}

:root {
    --global-font-size: 16px;
    --global-font-color: #444;
    --mono-font-stack: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-stack: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --global-line-height: 1.6em;
    --page-width: 70em;
    --display-h1-decoration: 1;
    --code-bg-color: #fff;
    --page-background-color: #fff;
    --muted-font-color: #666;
    --command-font-color: #aaa;
}

html[data-theme="dark"] {
    --background-color: #161715;
    --page-background-color: #161715;
    --font-color: #e6e6e6;
    --global-font-color: #c7c7c7;
    --muted-font-color: #a0a0a0;
    --command-font-color: #8a8a8a;
    --secondary-color: #9a9a9a;
    --invert-font-color: #161715;
    --code-bg-color: #24231f;
    --primary-color: #8ab4f8;
    --progress-bar-fill: #e6e6e6;
}

html[data-theme="dark"] body {
    background-color: #161715;
    color: var(--font-color);
}

html[data-theme="dark"] .content-column-content p,
html[data-theme="dark"] .content-column-content li {
    color: var(--muted-font-color);
}

html[data-theme="dark"] .content-column-content .command {
    color: var(--command-font-color);
}

html[data-theme="dark"] .btn-ghost {
    color: var(--muted-font-color);
    border-color: #888;
}

html[data-theme="dark"] .box-masonry .box-masonry-image {
    background: #161715;
}

html[data-theme="dark"] pre {
    background-color: #1d1c19;
    border-color: #3a3a37;
}

html[data-theme="dark"] code {
    background-color: var(--code-bg-color);
}

@media only screen and (max-width: 850px) {
    :root {
        --global-font-size: 14.5px;
        --global-font-color: #444;
        --global-line-height: 1.6em;
        --page-width: 70em;
    }
}


.sidebar-heading {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.box-masonry .box-masonry-image {
    background: #fff;
}

.box-masonry,
.box-masonry:hover {
    box-shadow: none;
}

.label {
    font-family: var(--font-stack);
}

body {
    font-family: var(--font-stack);
    font-size: var(--global-font-size);
    background-color: #fff;
    margin-bottom: 75px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-stack);
    clear: both;
}

body.terminal h1,
body.terminal h3,
body.terminal h4,
body.terminal h5,
body.terminal h6,
body.terminal .h1,
body.terminal .h3,
body.terminal .h4,
body.terminal .h5,
body.terminal .h6 {
    font-size: calc(var(--global-font-size) + 0.5pt);
}

h1 {
    margin-bottom: 150px;
}

.content-column-content p,
.content-column-content li {
    color: #666;
}

.btn-ghost {
    color: #666;
    background-color: transparent;
    border-color: #333;
    font-weight: 400;
    font-family: var(--font-stack);
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1.55;
    border-radius: 0;
    margin-left: 0;
    margin-top: 5px;
}

.content-column-content .command {
    color: #aaa;
}

p.social a {
    margin: 0 0 10px 0;
    color: #fff;
    display: inline-block;
    width: 30px;
    height: 30px;
    border: none;
    line-height: 30px;
    font-size: 25px;
    text-align: center;
    vertical-align: bottom;
    color: #999999;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.active a {
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

.logo {
    font-weight: normal;
}

.terminal-menu li {
    margin-right: 30px;
}

figure {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 60px;
    margin-right: 60px;
}

.footer {
    clear: both;
    margin-top: 100px;
    padding-top: 10px;;
    border-top: 1px solid var(--secondary-color);
    color: var(--global-font-color);
}

.image-grid {
    display: grid;
    grid-template-rows: auto;
    display: grid;
    grid-gap: 1em;
    grid-template-rows: auto;
    grid-template-columns: repeat(auto-fit,
            minmax(calc(var(--page-width) / 4), 1fr));
}

.terminal-prompt::after {
    -webkit-animation: cursor 1s infinite;
    animation: cursor 1s infinite;
    width: 10px;
}

.terminal-prompt::before {
    content: none;
}

.gallery-image {
    margin-top: 10px;
    margin-bottom: 10px;
}

.posts-list {
    position: relative;
    padding-left: 130px;
    top: 0;
}

.post h1, .post h2 {
    padding-top: 0;
    margin: 0;
    margin-bottom: 5px;
}

.posts-list .date {
    display: inline-block;
    position: absolute;
    left: 0px;
    width: 130px;
    z-index: 400;
    padding-top: 0;
}

@media only screen and (max-width: 850px) {
    .site-name {
        width: 2ch;
        overflow: hidden;
        display: inline-block;
    }

    .terminal-nav {
        align-items: flex-start;
        flex-direction: column;
        display: flex;
    }

    .terminal-menu ul {
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        justify-content: left;
        margin-top: 0;
    }

    .terminal-menu li {
        margin-right: 20px;
    }

    .logo {
        padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
    }

    figure {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .posts-list {
        position: relative;
        padding-left: 0;
        top: 0;
    }

    .post h1, .post h2 {
        padding-top: 0;
    }

    .posts-list .date {
        display: inline-block;
        position: absolute;
        left: 0px;
        width: 150px;
        z-index: 400;
        font-weight: bold;
        padding-top: 0;
        display: none;
    }


    .footer {
        margin-top: 50px;
        padding-top: 5px;;
    }
}

.terminal-menu li.theme-toggle-item {
    padding-left: 0;
    margin-left: 0;
}

.terminal-menu li.theme-toggle-item::after,
.terminal-menu li.theme-toggle-item::before {
    content: none;
    display: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: var(--secondary-color, #727578);
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--font-color, #151515);
    background: transparent;
}

.theme-toggle:focus {
    outline: none;
    color: var(--font-color, #151515);
}

.theme-toggle-icon {
    display: none;
}

html[data-theme="light"] .theme-toggle-moon,
html:not([data-theme="dark"]) .theme-toggle-moon {
    display: block;
}

html[data-theme="dark"] .theme-toggle-sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle {
    color: var(--secondary-color);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus {
    color: var(--font-color);
}
