@font-face {
    font-family: "Berkeley Mono";
    src: url("/fonts/BerkeleyMono-Regular.woff") format('woff');
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("/fonts/BerkeleyMono-Bold.woff") format('woff');
    font-weight: bold;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("/fonts/BerkeleyMono-BoldItalic.woff") format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("/fonts/BerkeleyMono-Italic.woff") format('woff');
    font-style: italic;
}


body {
    font-family: 'Berkeley Mono';
    font-size: 17px;
}

#menu li:not(:first-child) a::before {
    content: "•";
    margin: 0px 2px;
    color: var(--primary) !important;
}
#menu li a:hover {
    color: var(--secondary);
}

header.header {
    background-color: var(--code-bg);
}

.entry-content ul {
    padding: 0px 16px;
    list-style: square;
}

:root {
    --gap: 12px;
    --nav-width: 720px;
    --main-width: 720px;
}

#top-link {
    left: 0px;
    width: 128px;
    bottom: 0px;
    height: 100% !important;
    border-radius: 0px;

    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" fill="none" stroke="silver" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V6M5 12l7-7 7 7"/></svg>');
    background-size: 100%;
    opacity: 0.2 !important;
    background-position: center bottom;
    background-repeat: no-repeat;
    transition: none;
}

#top-link:hover {
    opacity: 0.3 !important;
    background-color: var(--tertiary);
}

#top-link svg {
    visibility: hidden;
    position: fixed;
    bottom: 8px;
    left: 0px;
}

.list {
    background: var(--theme);
}

.logo a {
    font-weight: normal;
}

.post-list img:hover {
    box-shadow: 0 15px 45px -5px rgba(7, 10, 25, 0.25);
}

.first-entry p {
    margin: 10px 0px;
}

img {
    transition: all .3s ease;
}

img:hover {
    /* opacity: 0.84; */
    transform: translate(0, -2px);
    -webkit-filter: brightness(1.07);
    filter: brightness(1.07);
}

.post-title {
    font-size: 24px;
    font-weight: normal;
}

.post-content img {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto .5em;

}

article figcaption {
    color: grey;
    text-align: center;
    font-size: 0.85em;
    margin-bottom: 2em;
}


.entry-header h2 {
    font-size: 20px;
    font-weight: normal;

}

@media screen and (max-width: 1024px) {
    #top-link {
        display: none;
        background-color: red;
    }
}


@media screen and (max-width: 768px) {
    .first-entry .entry-content {
        margin-top: 0px;
    }

    :root {
        --gap: 12px;
        --header-height: auto;
    }
}
