:root {
    --view-max-width: 1100px;
    --font-serif: "Georgia", serif;
    --font-sanss: "Lato", sans-serif;
    --link-color: #1e90ff;
    --hover-color: #aa3311;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--font-serif);
    font-size: 1.6em;
    font-weight: 300;
    line-height: 1.6;
    padding: 0 4rem;
    margin: 0;
}

*,
*:after,
*:before {
    box-sizing: inherit;
}

a {
    color: var(--link-color);
}

main {
    position: relative;
}

.main.likely {
    position: absolute;
    right: 0;
    bottom: 3rem;
    margin-bottom: -3rem;
}


header {
    margin: 0 auto;
    max-width: var(--view-max-width); 
    min-height: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header picture {
    font-size: 3rem;
    margin: 3rem 0;
}

header picture a {
    color: black;
}

header picture a:hover,
header picture a:active {
    color: rgba(0,0,0, 0.7);
}


header menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

header menu li {
    margin: 0 1rem;
    font-size: 2rem;
}
header menu li a {
    color: #222;
    font-style: none;
    text-decoration: none;
}
header menu li a.active,
header menu li a:hover {
    border-bottom: 1px solid;
}

footer {
    font-family: sans-serif;
    max-width: var(--view-max-width); 
    margin: 1rem auto 0;
    padding: 2rem 0 1rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0, 0.05);
    flex-wrap: wrap;
}

footer .disclaimer {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.5);
}


main {
    max-width: var(--view-max-width);
    margin: 0 auto;
}

main h2, 
main h3 {
    font-family: var(--font-sanss);
}

main h2 {
    font-size: 3rem;
    margin-bottom: 0;
}

main h3 {
    font-size: 2rem;
    margin: 2.25rem 0 0.75rem;
}

main.list {
    display: flex;

}
main.list aside {
    min-width: 30rem;
    padding-top: 2rem;
}

.double {
    display: flex;
    width: 100%;
}

.double .column {
    min-width: 50%;
}

.column ul {
    list-style-type: none;
    padding: 0;
    font-family: var(--font-sanss);
    font-weight: 400;
    max-width: 90%;
    margin: 0;
}

.column ul li {
    line-height: 2rem;
    font-size: 1.6rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.column ul li span {
    display: none;
    position: absolute;
    right: 103%;
    color: #999;
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.column ul li:hover span {
    display: block;
}

.column ul li a {
    color: var(--link-color);
    text-decoration: none;
}

.column ul li a:hover {
    color: var(--hover-color);
}

section:target {
    margin: 0 -7rem -1rem;
    padding: 0 7rem 1rem;
    background: rgba(200, 0, 0, 0.05);
    border-radius: 1rem;
}

article {
    font-size: 2rem;
    padding-top: 2.5rem;
}

article h1 {
    margin-top: 0;
    line-height: 1.2;
}

article h1,
article h2 {
    color: #333;
    font-size: 3rem;
    position: relative;
}
article h2 {
    font-size: 2.8rem;
}

article h1 span,
article h2 span {
    position: absolute;
    right: 101%;
    top: 0;
}

article h1 span a,
article h2 span a {
    text-decoration: none;
    color: var(--link-color);
}

article h1 span a:hover,
article h2 span a:hover {
    color: var(--hover-color);
    border-bottom: 0;
}

article h1 > a {
    color: #333;
}
article h1 > a:hover {
    border-bottom: 0;
    text-decoration: none;
}

article ol,
article ul {
    padding-left: 0;
}

article ol li {
    margin: 2rem 0;
}

article ol li .likely {
    width: 100%;
    text-align: right;
}

article ol li .likely > a {
    background: hsla(0,0%,91%,.8);
    width: 22px;
    line-height: 20px;
    font-size: 14px;
    border-radius: 3px;
    height: 22px;
    margin: 0 5px 10px;
    text-align: center;
    font-weight: bold;
} 
article ol li .likely > a:hover {
    text-decoration: none;
    border-bottom: 0;
    background: rgba(30, 144, 255, 0.15);
}

article ol li div > p {
    margin: 0;
}

article ol li:target > div:first-child {
    margin: -1rem -4rem;
    padding: 1rem 4rem;
    border-radius: 4px;
    background-color: rgba(0,128,128, 0.10);
}

article strong,
article em {
    color: teal;
}

article blockquote {
    border-left: 2px solid darkred;
    padding-left: 2rem;
}
article blockquote * {
    color: darkred;
}

article aside {
    font-size: 1.4rem;
    color: #999;
}

article a {
    text-decoration: none;
}
article a:hover,
article a:active {
    border-bottom: 1px solid;
}

nav {
    display: flex;
    justify-content: space-between;
    font-size: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

nav a {
    margin: 0.75rem 0;
    color: #222;
    text-decoration: none;
    max-width: 48%;
}

nav a span {
    font-size: 3rem;
    color: var(--link-color);
    line-height: 2rem;
    position: relative;
    top: 4px;
    margin: 0 1rem;
}
nav a.next span {
    margin-right: 0;
}

nav a.prev span {
    margin-left: 0;
}

nav a:hover,
nav a:hover span {
    color: var(--hover-color);
}


@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
    }
    header menu {
        flex-wrap: wrap;
    }
    nav {
        margin: 2rem 0;
    }
    nav a {
        max-width: 100%;
    }
    article {
        font-size: 1.6rem;
    }
    article h1 {
        font-size: 2.4rem;
        display: flex;
        justify-content: space-between;
    }
    article h1 > a {
        color: var(--link-color);
        text-decoration: underline;
    }
    article h1 span {
        position: initial;
        color: #ccc;
    }
    article h1 span a {
        color: inherit;
    }
    .double {
        flex-wrap: wrap;
    }
    .column ul {
        max-width: 100%;
    }
    .column ul li {
        width: 100%;
        display: inline-flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    .column ul li a {
        margin-right: 1rem;
    }
    .column ul li span {
        display: inline;
        position: initial;
    }
    article blockquote {
        margin-left: 0;
    }
    .main.likely {
        position: initial;
        margin: 2rem 0 1rem;
    }
}