* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  font-named-instance: 'Regular';
  src: url("Inter-roman.var.woff2?v=3.11") format("woff2");
}
@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
  font-named-instance: 'Italic';
  src: url("Inter-italic.var.woff2?v=3.11") format("woff2");
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
}
@supports (font-variation-settings: normal) {
    html {
        font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    }
}

body {
    background-color: white;
    color: black;
    line-height: 1.5;
}

.whole-page {
    display: block;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.5rem;
}

a {
    color: #F03009;
}


/* header */

header .logo {
    margin-bottom: 1rem;
    max-width: 100%;
}

header .logo a svg {
    width: 100%;
}

/* posts page */

ul.posts {
    list-style-type: none;
    padding: 0;
    margin: 0.5rem;
}

ul.posts li {
    list-style-type: none;
    padding: 0;
}

ul.posts li > a {
    padding: 1rem 0;
    width: 100%;
    display: inline-block;
    text-decoration: none;
    color: black;
}

ul.posts li > a > article {
}

ul.posts li > a .thumbnail {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 10rem;
    height: 6rem;
    margin-right: 1rem;
    float: left;
    padding: 0;
}

@media only screen and (max-width: 600px) {
    ul.posts li > a .thumbnail {
        width: 5rem;
    }
}

ul.posts li > a .caption {
    padding: 0;
    overflow: hidden;
}

ul.posts li > a div > header h2 {
    font-weight: bold;
    font-size: 1em;
    margin: 0;
}

/* general post page */

article.post {
    margin: 0.5rem;
}

header.title h1 {
    font-size: 1.5rem;
    margin: 0.2rem 0 0 0;
    padding: 1.5rem 0 0 0;
    font-weight: normal;
}

.post img {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

hr {
    border: 0;
    border-top: 2px solid #F03009;
}

.codehilite {
    overflow: auto;
}

.codehilite > pre {
    width: 20rem;
}

.MJXc-display {
    width: 20rem;
}

canvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

/* footer */

footer {
    margin: 3em 0.5rem 0.5rem 0.5rem;
}

footer .contact {
    float: right;
}

footer .contact a {
    text-decoration: none;
}

footer .contact a svg {
    vertical-align: bottom;
    color: black;
}
