/*
 *
 * The resetter.
 *
 */

*
{

    margin: 0;
    padding: 0;

    color: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    font-family: inherit;
    text-decoration: inherit;

    box-sizing: border-box;

}

/*
 *
 * The variables.
 *
 */

:root
{

    --Content-Width: 50rem;
    --Aside-Width: 40rem;

    --Side-Image-Width: 191px;

    --Space-Tiny: 0.25rem;
    --Space-Base: 1.5rem;
    --Space-Large: 4rem;

    --Color-Base: #222;
    --Color-Background: #fff;
    --Color-Accent: #0a8144;
    --Color-Gray: #e0e0e0;

    --Font-Size-Base: 1.1rem;
    --Font-Size-Header-Link: 1.5rem;
    --Font-Size-Heading: 2rem;

    --Font-Weight-Base: 400;
    --Font-Weight-Heavy: 600;

    --Font-Family-Base: "Source Serif 4", "Times New Roman", serif;
    --Font-Family-Heading: "Source Sans 3", "Calibri", sans-serif;
    --Font-Family-Code: "Consolas", monospace;

}

/*
 *
 * The major layout items.
 *
 */

body
{

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    color: var(--Color-Base);
    font-size: var(--Font-Size-Base);
    font-weight: var(--Font-Weight-Base);
    font-family: var(--Font-Family-Base);
    background: var(--Color-Background);

    background: url("images/side background.png") repeat-y;

}

body > header
{

    padding: var(--Space-Tiny) var(--Space-Base);

    display: flex;
    gap: var(--Space-Base);
    justify-content: space-between;
    align-items: center;

    color: var(--Color-Background);
    font-size: var(--Font-Size-Header-Link);
    background: var(--Color-Accent);

}

body > header > a
{

    font-size: 0;

}

body > header ul
{

    display: flex;
    gap: var(--Space-Large);

}

body > header li
{

    list-style-type: none;

}

main
{

    padding: 0 var(--Space-Base);
    padding-left: var(--Side-Image-Width);

    flex-grow: 1;

    display: flex;
    align-items: flex-start;
    gap: var(--Space-Base);

}

main > article
{

    padding: 0 var(--Space-Base);

    max-width: var(--Content-Width);
    flex-grow: 0;

    border-right: 1px dashed var(--Color-Gray);

}

aside
{

    margin: var(--Space-Base) 0;
    max-width: var(--Aside-Width);

    position: sticky;
    top: var(--Space-Base);
    flex-grow: 1;

    background: url("images/patterns/stripes-light.png");
    border: 1px solid var(--Color-Gray);

}

aside p
{

    margin: var(--Space-Base);

}

aside li
{

    margin-bottom: var(--Space-Base);

    border: 1px solid var(--Color-Gray);
    border-left-width: 0;
    border-right-width: 0;
    backdrop-filter: brightness(0.95);

    list-style-type: none;

}

aside li:hover,
aside li:focus
{

    backdrop-filter: brightness(0.85);

}

aside li a
{

    display: block;

    padding: var(--Space-Base);

}

aside img
{

    height: var(--Space-Base);

}

header,
footer
{

    font-family: var(--Font-Family-Heading);

}

footer
{

    display: flex;
    gap: var(--Space-Base);
    justify-content: space-between;

    padding: var(--Space-Tiny) var(--Space-Base);

    color: var(--Color-Background);
    background: var(--Color-Base);

}

footer p
{

    margin: 0;

}

footer p:first-of-type
{

    font-weight: var(--Font-Weight-Heavy);

}

/*
 *
 * The headings.
 *
 */

h1
{

    display: none;

}

h2
{

    margin: var(--Space-Base) 0;

    color: var(--Color-Accent);
    font-size: var(--Font-Size-Heading);

}

/*
 *
 * The text.
 *
 */

p
{

    margin: var(--Space-Base) 0;

    text-align: justify;
    line-height: 150%;

}

code
{

    font-weight: var(--Font-Weight-Heavy);
    font-family: var(--Font-Family-Code);

}

em
{

    font-style: italic;

}

strong
{

    font-weight: var(--Font-Weight-Heavy);

}

/*
 *
 * The mobile stylesheet.
 *
 */

@media (max-width: 1080px)
{

    body
    {

        background: var(--Color-Background);

    }

    body > header
    {

        flex-direction: column;
        align-items: stretch;

        padding: var(--Space-Base) 0;

        text-align: center;

    }

    body > header ul
    {

        flex-direction: column;
        gap: var(--Space-Base);

    }

    body > header li
    {

        padding: var(--Space-Tiny) 0;

        backdrop-filter: brightness(0.9);

    }

    main
    {

        flex-direction: column;
        gap: 0;
        align-items: center;

        padding-left: var(--Space-Base);

    }

    main > article
    {

        border: none;

    }

    footer
    {

        display: block;

    }

    footer p
    {

        text-align: center;

    }

}