:root {
    --color-bg: #eae3d8;
    --color-fg: #213937;
    --color-bg-inverted: #282420;
    --color-fg-inverted: #f5ceb0;
    --color-red: #902000;
    --color-accent: #834328;
    --font-antique: Superclarendon, "Bookman Old Style", "URW Bookman", "URW Bookman L", "Georgia Pro", Georgia, serif;
    --font-system-ui: system-ui, sans-serif;
    --font-size-small: .875rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 3rem;
}

body {
    margin: 30px;
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-weight: normal;
    line-height: 1.5;
    font-family: var(--font-system-ui);
    overflow-wrap: break-word;
}

a {
    color: var(--color-accent);
    font-weight: bold;
}

h1 {
    font-size: var(--font-size-xxxl);
}

h2 {
    font-size: var(--font-size-xxl);
    text-decoration: var(--color-red) wavy underline 2px;
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-large);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-antique);
    font-weight: lighter;
    line-height: normal;
    letter-spacing: -.05em;
    text-wrap: balance;
    margin: 2rem 0 1rem;
}

p {
    line-height: 1.3rem;
}

section.inverted {
    color: var(--color-fg-inverted);
    background-color: var(--color-bg-inverted);
    padding: 20px 10px;

    a {
        color: var(--color-fg-inverted);
    }
}

section.badges {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-content: center;
    align-items: center;

    a {
        width: 88px;
        height: 31px;
    }
}

section.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    div {
        background-color: var(--color-bg-inverted);
        padding: 10px;
    }

    img {
        object-fit: cover;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    h3 {
        margin: 0;
        color: var(--color-fg-inverted);
        text-decoration: underline;
    }


    a {
        color: var(--color-fg-inverted);
        text-decoration: none;
    }
}

@media screen and (min-width: 1000px) {
    body {
        max-width: 42em;
    }
}
