@import 'pygments-xcode.css'(prefers-color-scheme: light);
@import 'pygments-monokai.css'(prefers-color-scheme: dark);

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
    line-height: 1.5rem;

    margin: 0;
    padding: 0;
}


header,
main,
footer {
    padding: 1rem;
}

a {
    text-decoration: none;
    color: black;
}

/* Darkmode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #333;
        color: #ddd;
    }

    a {
        color: #ddd;
    }
}


/* Layout */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.grow {
    flex-grow: 1;
}

.container {
    max-width: 50rem;
    margin: 0 auto;
    width: 100%
}

.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation */
.navigation {
    font-weight: bolder;
    display: flex;
    justify-content: space-between;
}

.navigation>a {
    text-transform: uppercase;
}

.navigation ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.navigation ul li {
    margin-left: 1rem;
}

/* About */
.about {
    text-align: center;
}

.about .avatar img {
    border-radius: 50%;
    width: 15rem;
}

@media only screen and (max-width: 768px) {
    .about .avatar img {
        width: 10rem;
    }
}

.about .social-icons ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    justify-content: center;
}

.about .social-icons ul li {
    margin: 0 0.3rem;
}

.credits {
    text-align: center;
}

/* Item List */
.item-list ul {
    list-style: none;
}

.item-list ul li .date {
    display: inline-block;
    width: 10rem;
    text-align: right;
    margin-right: 1rem;
}

.item-list ul li a {
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .item-list ul li .date {
        text-align: left;
        display: block;
    }

    .item-list ul li {
        margin-bottom: 1rem;
    }
}

/* Articles */
article .item-metadata > ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    margin: 0;
}

article .item-metadata > ul li svg {
    padding-right: 0.3rem;
}

article .item-metadata > ul li {
    padding-right: 0.3rem;
}

article .item-metadata .taglist {
    display: flex;
    align-items: center;
}

article .item-metadata .taglist > ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    margin: 0;
}

article .item-metadata .taglist a {
    padding: 0.3rem;
}

article figure {
    display: flex;
    justify-content: center;
}

article figure img {
    max-width: 100%
}

article pre code .highlight {
    overflow-x: auto;
    padding: 1rem;
    border-radius: .5rem;
}

article a, .page a, .credits a {
    text-decoration: underline;
}

/* Tag List */
.tag-list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tag-list ul li {
/*    margin-bottom: 1.2rem;*/
}

.tag-list ul li a {
    padding: 0 0.3rem;
}


/* Typographie */
h1 {
    font-size: 1.912em;
    line-height: calc(18px + 1.8vw);
    /* Responsive Vertical Rhythm */
}

h2 {
    font-size: 1.616em;
    line-height: calc(18px + 1vw);
    /* Responsive Vertical Rhythm */
}

h3 {
    font-size: 1.471em;
    line-height: calc(18px + .7vw);
    /* Responsive Vertical Rhythm */
}

h4 {
    font-size: 1.3em;
}

h5 {
    font-size: 1.243em;
}

h6 {
    font-size: 1.132em;
}

h4,
h5,
h6 {
    line-height: calc(18px + .2vw);
    /* Responsive Vertical Rhythm */
}
