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

header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 50px;
}
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, #postwrapper h2, .post-card {
    padding: 20px;
}

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

#introduction {
    margin-bottom: 50px;
}

#textwrapper {
    margin-bottom: 30px;
}

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

#topnote {
    font-style: italic;
}

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

a:hover {
    color: #ff5472;
}

h1, h2 {
    font-weight: 900;
}

h2, h3 {
    border-bottom: 3px solid #ff5472;
}

#subtitle {
    margin-top: 0;
    margin-bottom: 30px;
}

#postwrapper h2 {
    background: #21147b;
    color: #fff0e5;
}

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

.post-card {
    background: #21147b;
    color: white;
    margin-bottom: 25px;
}
.post-card h3 {
    color: #fff0e5;
}
.post-card a {
    color: #ff9fb0;
}
.post-card a:hover {
    color: #fff0e5;
}

@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;
    }
    #postwrapper h2 {
        color: #21147b;
    }

    #postwrapper h2, .paper {
        padding: 0;
    }

    header {
        flex-direction: row-reverse;
        text-align: left;
    }

    #main-menu {
        display: none;
    }

    h2, h3 {
        border-bottom: 3px solid #21147b;
    }

    #toplink {
        display: none;
    }
}
