* {
    box-sizing: border-box;
}

html {
    font-family: "Fira Sans", "Roboto", "Arial", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: serif;
}

html {
    background-color: #eee;
}

a {
    color: #22aaff;
}

h1 a[rel="index"],
h1 a[rel="index"]:visited,
h1 a[rel="index"]:active {
    color: black;
    text-decoration: none;
}

h1 a:hover,
h1 a:active {
    text-decoration: underline;
}

pre {
    padding: 1em;
    overflow: auto;
    border-radius: 5px;
}

.hidden {
    display: none;
}

code {
    font-family: 'Fira Code', Monaco, Consolas, 'Courier New', Courier, monospace;
    background-color: #e3e3ed;
    border: 1px solid #e3e3ed;
    border-width: 1px 3px;
    border-radius: 5px;
}

pre>code {
    background-color: transparent;
    border: 0;
}

figure {
    text-align: center;
}

.clear {
    clear: both;
}

@media screen and (min-width: 32em) {
    .skip-nav {
        display: none;
    }
}

@media screen and (min-width: 70em) {
    .wrapper {
        display: grid;
        grid-template-columns: auto 15em;
        grid-template-rows: 5em auto 5em;
        width: 70em;
        margin: 0 auto;
        height: 100%;
        grid-template-areas:
            "header header"
            "content sidebar"
            "footer footer";
        grid-gap: 0.5em;
    }

    .sidebar {
        grid-area: sidebar;
    }

    .sidebar>* {
        margin-bottom: 0.5em;
    }

    .privacy-contact .email-name-2 {
        display: block;
        position: absolute;
        top: -9000px;
        left: -9000px;
    }
}

@media screen and (max-width: 70em) {
    .wrapper {
        display: grid;
        grid-template-areas:
            "header"
            "content"
            "about"
            "nav"
            "footer";
        grid-gap: 0.5em;
        width: 100%;
    }

    .sidebar {
        display: contents;
    }
}

.headline {
    grid-area: header;
}

.nav {
    grid-area: nav;
}

.about {
    grid-area: about;
    padding: 0 0.5em;
}

.about img {
    max-width: 100%;
    height: auto;
}

.about p {
    padding: 0.3em;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: inside none;
}

.nav ul li {
    border-width: 5px 0 0 0;
    border-color: #22aaff;
    border-style: solid;
}

.nav ul li a {
    display: block;
    padding: 1em;
    height: 100%;
    text-decoration: none;
    font-weight: bold;
    font: "Fira Sans";
}

.nav ul li a:hover {
    background-color: #bababa;
    color: white;
}

.content {
    grid-area: content;
}

.content article,
.content>header,
.content>footer {
    padding: 0 1em 1em 1em;
    margin-bottom: 1em;
    line-height: 1.4;
}

.footer {
    grid-area: footer;
    padding: 1.5em;
    text-align: center;
}

.content footer {
    padding: 1em;
    text-align: center;
}

.nav ul,
.content article,
.content>header,
.footer,
.about,
.content>footer {
    border-top: 1px solid #22aaff;
    border-left: 1px solid #ccc;
    border-bottom: 5px solid #ccc;
    border-right: 3px solid #ccc;
    background: #f5f5f5;
}

.content article {
    display: inline-grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title date"
        "pc pc";
    width: 100%;
}

.content article.pinned h2::before {
    content: "⭐ ";
}

.content article img {
    max-width: 100%;
    height: auto;
}

.content article.preview .hide-from-preview,
.content article.preview .post-content>h2:first-child {
    display: none;
}

.content article .date {
    display: flex;
    flex-direction: column;
}

.content article .date-tag {
    border: 1px solid black;
    padding: 0.5em;
    text-align: center;
    color: white;
    background-color: #3a3a3a;
    font-family: serif;
    display: flex;
    flex-direction: column;
}


.content article .date .dm {
    font-weight: bold;
    font-size: 1.6em;
}

.content article .date .y {
    font-size: 1.2em;
}

.content article .article-header {
    grid-area: title;
}

.content article .article-header h2 {
    margin-bottom: 0;
}


.content article .article-header h3 {
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0;
    color: #737373;
}

.content article h2 a[rel="bookmark"] {
    color: black;
    text-decoration: none;
}

.content article h2 a:hover {
    color: #22aaff;
    text-decoration: none;
}

.content article .post-content {
    grid-area: pc;
    max-width: 100%;
}

.content article table {
    border: 1px solid black;
    border-collapse: collapse;
    border-width: 2px 0;
}

.content article tbody tr:nth-child(2n) {
    background: #dfdfdf;
}

.content article td {
    padding: 0.3em 1em;
    border-width: 0px;
}

.content article td[colspan] {
    text-align: center;
}

.about h2 {
    display: none;
}

.footnote-definition {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
}

.footnote-definition p {
    margin-top: 0;
}

.post-content>aside {
    width: 20em;
    margin: 0 0 1em 1em;
    font-size: 0.8rem;
    float: right;
    border-radius: 5px;
    padding: 0.5em;
    background-color: #dadada;
    overflow-wrap: break-word;
}

.post-content>aside.left {
    float: left;
}

@media screen and (max-width: 70em) {
    .post-content>aside {
        float: none !important;
        margin: 0;
        width: 100% !important;
    }
}


@media screen and (min-width: 32em) and (max-width: 70em) {
    .sidebar .about img {
        max-width: 20%;
        height: auto;
        float: left;
    }

    .about {
        padding-left: 0;
    }

    .nav ul {
        display: flex;
    }

    .nav ul li {
        flex: 25% 1 1;
        text-align: center;
        border-left: 1px solid #22aaff;
    }

    .nav ul li:first-child {
        border-left: 0;
    }
}

@media screen and (max-width: 32em) {
    h1 {
        margin-top: 0.3em;
        margin-bottom: 0.3em;
    }

    .about {
        padding-left: 0;
    }

    .about h2 {
        display: block;
    }
}

.hide-code-errors code .z-invalid {
    background-color: transparent;
}