body {
    font-family: "Noto Sans", sans-serif;
    max-width: 800px;
    margin: auto;
    background: #f0f0f0;
    padding: 20px;
    color: #111;
}

header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 90px;
}
header > div {
    flex: 1;
}
header > img {
    width: 150px;
    height: 150px;
}
h1 {
    margin-top: 0;
    margin-bottom: 5px;
}
h1 a {
    text-decoration: none;
}


#main-menu ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
    gap: 20px;
}

#main-menu li {
    padding: 0;
}

.paper {
    padding: 20px;
}

.paper {
    background: #f7f7f7;
}
.papernote {
    font-style: italic;
}
.papernote, .post-card {
    border-left: 7px solid #9e99c8;
}

#introduction {
    margin-bottom: 50px;
}
#textwrapper {
    margin-bottom: 30px;
}
#introduction, #textwrapper {
    text-align: justify;
    hyphens: auto;
}
.nohyphens {
    hyphens: none;
}

#published-date {
    text-align: right;
    margin-bottom: -15px;
}

#topnote {
    font-style: italic;
}

h2, h3, h4, h5, h6, a, #subtitle {
    color: #21147b;
}

a:hover, h1, h1 a, .pubdate-idx {
    color: #fb4162;
}

h1, h2 {
    font-weight: 900;
}

h1 {
    font-size: 40pt;
}
h2 {
    font-size: 22pt;
    border-left: 7px solid #fb4162;
    padding-left: 10px;
}
h3 {
    border-bottom: 3px solid #fb4162;
}


#subtitle {
    font-size: 15pt;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 30px;
}

#toplink {
    text-align: center;
    margin-top: 50px;
}

.post-card {
    margin-bottom: 25px;
    padding-left: 20px;
}
.post-card h3 {
    border-bottom: none;
}
.post-card h3 a {
    text-decoration: none;
}

.pubdate-idx {
    margin-right: 10px;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header > img {
        margin-bottom: 30px;
    }
}

@media (max-width: 550px) {
    #main-menu ul {
        flex-direction: column;
    }
}

@media print {
    body, #postwrapper h2, .paper {
        background: white;
        color: black;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    #postwrapper h2 {
        color: #21147b;
    }

    header {
        flex-direction: row-reverse;
        text-align: left;
    }
    header > img {
        width: 100px;
        height: 100px;
    }

    #main-menu {
        display: none;
    }

    h1 {
        font-size: 32pt;
    }
    #subtitle {
        font-size: 13pt;
    }
    h3 {
        border-bottom: 3px solid #21147b;
    }

    #toplink {
        display: none;
    }
}
