* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    text-decoration: inherit;
}

html {
    background: #f8f8f8;
}

body {
    margin: 0 auto;
    max-width: 60em;
    padding: 30px 30px 60px 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
    font-family: Hanken Grotesk, Arial, Helvetica, FreeSans, sans-serif;
}

header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-size: 20px;

    img {
        display: block;
        margin-right: 20px;
        max-width: 100px;
        aspect-ratio: 1 / 1;
    }
}

nav {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;

    ul {
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        list-style-type: none;
        margin: 0;
    }

    ul li {
        height: 30px;
        line-height: 30px;
        margin: 0 40px 0 0;
        text-transform: uppercase;
        font-size: 15px;
    }

    a, a:visited {
        color: blue;
        text-decoration: none;
    }

    li.active a {
        color: #444;
    }
}

footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ccc;
    color: #666;
}

main {
    margin: 60px 0;

    & > h1:first-child {
        margin: 60px 0;
    }

    & > * + * {
        margin-top: 1.5em;
    }

    & > * + h1, & > * + h2, & > * + h3 {
        margin-top: 3em;
    }
}

ul, ol {
    margin-left: 3em;

    li {
        margin: 0.75ex 0;
    }
}

strong, h1, h2, h3 {
    font-weight: bold;
}

h1 {
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: 900;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

a {
    color: blue;
    text-decoration: underline;
}

a:visited {
    color: purple;
}
