body {
    /* Disable text inflation algorithm on some 'small'-screen devices. */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;

    /* Center style */
    padding: 1em;
    max-width: 850px;
    margin: 0 auto;

    /* All fonts lead to Roboto */
    font-family: "Roboto", sans-serif;
}

@font-face {
    font-family: "Roboto";
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 400;

    src: local("Roboto"),
         url("/Roboto-Regular.ttf") format("truetype");
}

.header {
    text-align: center;
    background: hotpink;
    padding: 0.5em;
}

.header-title {
    font-size: 3em;
}

.post-card {
    border-radius: 5px;
    margin: 2px;
    padding: 10px;
}

.post-card > h3 {
    margin-top: 0;
}

/* Disable any default link formatting for the header */
.header-title, .header-title:link, .header-title:visited, .header-title:hover, .header-title:active {
    text-decoration: none;
    color: black;
}

.content {
    text-align: justify;
}

.content h1 {
    text-align: center;
}

/* Make code blocks scrollable in the X axis */
div.highlight pre {
    overflow-x: auto;
}

/* No overflow for images; TODO(future) run through a pipeline to automatically resize them */
img {
    max-width: 100%;
}
