@import url('/fonts/fonts.css');

:root {
    --base-font-size: 75%;
    --font-scale-0: 1.0rem;
    --font-scale-1: 1.4142rem;
    --font-scale-2: 4.0rem;

    --font-body: "fira_sans_book", sans-serif;
    --font-pre: "fira_sans_book_italic", sans-serif;
    --font-heading: "amatic_bold", sans-serif;
}
@media (min-width: 720px) {
    :root {
	--base-font-size: 100%;
    }

    main {
	display: grid;
    }
}

html {
    font-size: var(--base-font-size);
}

body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 1em;

    font-size: var(--font-scale-1);
    font-family: var(--font-body);
    line-height: 1.75;

    /*background-color: #f5f2ed;*/
    background-image: url(bg.svg);
    color: #312b25;
}

body, h1, p, pre {
    margin: 0;
    padding: 0;
}

main {
    grid-template-columns: repeat(12, 1fr);
    width: 90%;
    max-width: 50rem;
}

h1 {
    color: #BA6B26;
    font-family: var(--font-heading);
    font-size: var(--font-scale-2);
    grid-row: 1;
    grid-column: 1/-1;
}
h1 span {
    color: #ccc;
}

img {
    max-width: 100%;
    grid-row: 2;
    grid-column: 1/6;
}

pre {
    font-family: var(--font-pre);
    font-size: var(--font-scale-0);
    font-style: italic;
    line-height: 1.25;
    grid-row: 2;
    grid-column: 7/-1;
}

p {
    max-width: 80ch;
    grid-column: 1/-1;
    margin: 0.5em 0;
}

a, a:link, a:visited { color: #DD5D1E; }
a:hover { color: #BA6B26; }

footer {
    font-size: var(--font-scale-0);
    color: #ccc;
}




