:root {
    --purple: rgb(88, 49, 133);
    --ink: rgb(48, 48, 48);
    --light-purple: hsl(240, 21%, 79%);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
}

body,
header,
nav {
    background-color: var(--purple);
}

main {
    background-color: white;
    color: var(--ink);
    line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: left;
    color: var(--purple);
    margin: 0;
}

header h1 {
    background-color: var(--purple);
    color: white;
}

main {
    padding: 1rem;
}

header {
    padding: 1rem;
}

nav {
    color: white;
    font-family: arial, helvetica, sans-serif;
}

nav a:link,
nav a:visited,
nav a:active {
    text-decoration: none;
    color: var(--purple);
}

nav a:hover {
    color: var(--purple);
    background-color: white;
}

main {
    border: 2px solid var(--light-purple);
}

footer {
    background-color: var(--light-purple);
    color: black;
    font-size: 0.8rem;
    padding: 1em;
    border: 2px solid var(--light-purple);
    margin-top: 1rem;
}
footer > p:first-child { margin-top: 0;}
footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
    color: var(--purple);
    text-decoration: none;
}

footer div.note a:link,
footer div.note a:visited,
footer div.note a:active {
    text-decoration: none;
    color: var(--purple);
}

footer div.note a:hover {
    text-decoration: underline;
    color: var(--purple);
}

nav ul li a {
    color: var(--purple);
    display: block;
    background-color: white;
    border-width: 2px;
    border-color: var(--light-purple);
    border-style: solid;
    border-bottom-color: none;
    border-left: 0.5rem solid var(--light-purple);
    text-decoration: none;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
}

nav ul li a:hover {
    color: white;
    background-color: var(--purple);
    border-color: var(--purple);

}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
    border-top: 1px none var(--ink);
}

nav .active a,
nav .active a:hover {
    background-color: var(--purple);
    color: white;
    border-color: var(--purple);
    border-left-color: white;

}

.pagecontainer {
    display: grid;
    grid-template-columns: 15rem auto;
    grid-template-areas: "header header"
        "nav main"
        "footer footer"
}

header {
    grid-area: header
}

nav {
    grid-area: nav
}

footer {
    grid-area: footer;
}

main {
    grid-area: main;
}
blockquote { font-style: italic }
