html {
    --background-color: white;
    --seconday-color: #333;
    --tertiary-color: #ccc;
    --link-color: rgb(20, 50, 186);
}

body, html {
    background: var(--background-color);
    margin: 0;
    padding: 0;
    width: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-self: center;
    margin: 2em .5em;
}

/* LOGO Styling */

.wrapper > header {
    display: flex;
    flex-direction: column;
    margin: 20px;
    align-items: flex-start;
    position: fixed;
}

.logo {
    min-width: 100px;
    max-width: 100px;
    flex: 0;
}

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

nav li {
    margin: .25em;
}

nav ul li a {
    text-decoration: none;
    text-align: center;
    font-size: 1.25em;
}

@media (max-device-width: 600px) {
    #post,
    #posts {
        min-width: 90%;
        max-width: 90%;
    }

    .wrapper {
        display: flex;
        flex-direction: column;
        align-self: center;
        margin: 0;
    }

    nav {
        font-size: 3em;
        flex: 1;
    }

    nav ol {
        display: flex;
        flex: 1;
        justify-content: flex-end;
        align-items: center;
    }

    .wrapper > header {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        background: white;
        border-bottom: 1px solid var(--tertiary-color);
        padding: 10px 30px;
        position: sticky;
        top: 0;
        box-shadow: 0px 12px 18px -11px rgba(0, 0, 0, 0.4);
    }
    
    .logo {
        min-width: 100px;
        max-width: 100px;
        margin: 10px 10px 10px 30px;
    }
}

/*
    IMAGES
    ==========
*/

figure.right {
    float: right;
}

figure.left {
    float: left;
}

/* 
    POSTS
    ==========
*/

.wrapper.posts article {
    --spacing: 1.5em;
    margin: var(--spacing) 0;
    padding-bottom: var(--spacing);
    border-bottom: 1px solid #4f4d4d;
}

.wrapper.post article img {
    max-width: 100%;
}

/* 
    POST
    ==========
*/
#post,
#posts {
    max-width: 50%;
    align-self: center;
}

.wrapper.post article img {
    max-width: 100%;
}

/* 
    TYPOGRAPHY
    ==========
*/

body {
    font-family: "Segoe UI", -apple-system, Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", Verdana, "Verdana Ref", sans-serif;
    color: var(--seconday-color);
    line-height: 1.5;
}


p, ol, ul {
    margin: 2em 0;
    font-size: 1.55em;
}

.posts p {
    margin: 1em 0;
}

article h1 {
    margin: 0;
    font-size: 4em;
    line-height: 1.25em;
}

#posts article h1 {
    font-size: 2em;
}

article h2 {
    margin-bottom: 1em;
    font-size: 2em;
    border-bottom: 1px solid var(--tertiary-color);
    padding-bottom: .5em;
}

h2 ~ p {
    margin-top: 0;
}

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

a, .post-title a {
    text-decoration: none;
    color: var(--secondary-color);
}

code {
    background: #eee;
}

.roboto, h2, p, ol, ul, code {
    font-family: roboto, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--seconday-color);
    font-display: swap;
}

.roboto-thin {
    font-family: roboto, sans-serif;
    font-weight: 100;
    font-style: normal;
    color: var(--seconday-color);
    font-display: swap;
}

.roboto-black {
    font-family: roboto, sans-serif;
    font-weight: 900;
    font-style: normal;
}


@media (max-device-width: 600px) {
    nav {
        font-size: 2em;
    }
    
    main,
    td,
    th {
        font-size: 3em;
    }

    article h1 {
        font-size: 2.5em;
        line-height: 1.25em;
    }
    
    #posts article h1 {
        font-size: 2em;
    }
}

/* TABLES */
table {
    border-collapse: collapse;
    margin: 20px;
}

th.align-left,
td.align-left {
    text-align: left;
}

td.align-center,
th.align-center {
    text-align: center;
}

td.align-right,
th.align-right {
    text-align: right;
}

th {
    font-weight: bold;
    color: white;
}

td,th {
    padding: 30px;
    border: 0px;
    border-bottom: 1px solid var(--seconday-color);
}

td:first-of-type,
th:first-of-type {
    padding-left: 0;
}

/* 
    HIGHLIGHT & NOTE
    ================
*/
.highlight,.note {
    display: grid;
    align-content: center;
    border-radius: 3px;
    background-color: var(--tertiary-color);
    grid-gap: 10px;
    padding: 0 15px;
    width: fit-content;
    margin: 20px auto;
}

.note.subtle {
    align-content: start;
    width: 100%;
    background-color: transparent;
    color: color-mix(in srgb, var(--seconday-color) 100%, white 75%)
}

.highlight-with-icon {
    grid-template-columns: 10% 90%;
}

.highlight p {
    margin: 1em;
    color: black;
}

.highlight a {
    color: black;
    text-decoration: underline;
    font-weight: bold;
}

.highlight-with-icon img {
    object-fit: fill;
    width: 100%;
    max-height: 100%;
    align-self: center;
}

.highlight-with-icon {
    font-size: 1.25em;
}

/* HIGHCHARTS */
.highcharts-container {
    margin: 20px 0;
}