/* RESET - Cancel some browser defaults to get consistent styling from one browser
     to another. */

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
img,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
a,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
#menu,
section {
    margin: 0;
    padding: 0;
    border: 0;
}

* {
    box-sizing: border-box;
}

ul, ol {
    list-style-position: inside;
                    /* : outside; */
}

img {
    width: 100%;
    display: block;
}

:root {
    /* --- colour palette --- */
    --color-active: #0ab3be;        /* active link or selected nav item        */
    --color-aside: #eeeeee;         /* sidebar background                      */
    --color-background: #ffffff;    /* main background                         */
    --color-header: darkgreen;        /* header background                       */
    --color-heading: #030303;       /* h1, h2 headings                         */
    --color-link: #ffffff;          /* default link color in header/nav/footer */
    --color-link-hover: #0fbcf5;    /* hover state for links                   */
    --color-nav-footer: darkgreen;    /* nav & footer background                 */
    --color-text: #333333;          /* default body text                       */

    /* --- typography --- */
    --font-body: "Lucida Sans", Verdana, sans-serif; /* main body font                     */
    --font-heading: "Century Gothic", sans-serif;    /* headings and nav/footer            */
    --font-size-caption: 1.25rem;                    /* image captions                     */
    --font-size-h1: 2rem;                            /* primary page headings              */
    --font-size-h2: 1.25rem;                         /* secondary headings                 */
    --font-size-h3: 1rem;                            /* tertiary headings / minor headings */
}



/* LAYOUT */

nav,
footer {
    padding: 1em;
    font-size: var(--font-size-h3);
}

figure {
    margin-bottom: 1em;
}

/* TYPOGRAPHY */

body {
    font-family: var(--font-body);
    color: #333;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 1.5rem;
}

h1,
h2,
h3,
nav,
footer,
figcaption {
    font-family: var(--font-heading);
}

h1 {
    font-size: var(--font-size-h1);
    text-align: center;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1em;
}

nav {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5em;
}

aside {
    text-align: center;
}

/* COLOURSCHEME & BORDERS */

nav, footer {
    background-color: var(--color-nav-footer);
}

/* NAVIGATION */

nav ul,
footer ul {
    list-style-type: none;
}

nav li {
    padding: 0.5em 2em 0.5em 0;
}

footer li {
    margin: 0 1em;
    padding: 0.5em 2em 0.5em 0;
}

nav a,
footer a {
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav li {
    padding: 0 1em;
}

nav a:hover,
footer a:hover {
    border-bottom: 1px solid #fff;
}

nav a,
footer a {
    text-decoration: none;
    color: #fff;
}

header {
    grid-column: 1 / span 3;
}

menu {
    grid-column: 1 / span 3;
    grid-row: 2;
}

/* RESPONSIVENESS */

img {
    width: 100%;
}



/* LAYOUT */
@media screen and (min-width: 87rem) {

    body {
        display: grid;
        grid-template-columns: 1fr 40rem 1fr;
        width: 80rem;
        margin: 0 auto;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
    }

    header {
        grid-column: 1 / span 3;
    }

    nav {
        grid-column: 1 / span 3;
        grid-row: 2;
    }

    main {
        grid-column: 2;
        grid-row: 3;
    }

    aside {
        background-color: #efefef;
        margin: 1.5rem;
        grid-column: 1;
        grid-row: 3;
        border-right: 1px solid #ccc;
    }

    article {
        grid-column: 3;
        grid-row: 3;
        margin: 1.5rem;
        padding: 1rem;
        border-left: 1px solid #ccc;
    }

    footer {
        grid-column: 1 / span 3;
        padding: 1em;
        background-color: #333;
    }
}


