@font-face {
    font-family: "Sevka";
    src: url("fonts/Sevka.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

body {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: left;
}

@media (min-width: 42rem) {
    p { text-align: justify; }
}

h1 { margin-top: 0; font-size: 2.4rem; line-height: 1.1; }
h2 { margin-block: 0 0.75rem; font-size: 1.5rem; }
hr { margin-block: 2rem; }
ul { margin-block: 0; padding-left: 1.25rem; }
li { margin-block: 0.6rem; }
footer { font-size: 1rem; }

code { font-family: "Sevka"; font-size: 0.85em }

/* Only what stops wide things breaking the page on a phone. */
img { max-width: 100%; }
pre { overflow-x: auto; }
.katex-display { overflow: auto hidden; padding-block: 0.5em; }

pre {
    padding: 0.75rem 1rem;
    background: #f4f4f4;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.4;
}

pre code { font-size: inherit; }
