@import url('https://fonts.googleapis.com/css2family=Ubuntu+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Concert+One&display=swap');

:root {
    /* Variables */
    --header-top-margin: 12px;
    --header-left-margin: 12px;

}
@media (prefers-color-scheme: dark) {
    :root {
        --invert: invert(0%);
        --bg: rgb(44, 42, 48);
        --text: #d8d8d8;
        --header-img-border: rgb(22, 21, 24);
        --header-text: #eee;
        --content-bg: rgb(31, 30, 35);
    }
}
@media (prefers-color-scheme: light) {
    :root {
        --invert: invert(100%);
        --bg: #eee;
        --text: #000;
        --header-img-border: #eee;
        --header-text: #222;
        --content-bg: #fff;
    }
}

* {
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    overflow-x: hidden;
}

/* Header section */

header {
    z-index: 5;
    position: relative;
    
    height: 200px;
    margin-top: 0;
    display: table;

    background-color: var(--content-bg);
    
    border-bottom: 4px solid rgb(66, 63, 72);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}
header > img {
    border-radius: 48px;
    border: 5px solid var(--header-img-border);
    float: left;
    width: min(200px, 15vw);
    margin-left: var(--header-left-margin);
    margin-top: var(--header-top-margin);
    margin-bottom: calc(var(--header-top-margin) * 1.5);
}
header > h1 {
    font-family: 'Concert One', sans-serif;
    font-size: min(100px, 4vw);

    display: table-cell;
    width: 100%;

    margin-top: var(--header-top-margin);
    padding-right: 200px;
    vertical-align: middle;
    text-align: center;

    color: var(--header-text);
}
header > nav {
    position: absolute;
    top: 0;
    right: 0;
    vertical-align: top;
    padding: 20px;
    font-family: 'Ubuntu Mono', monospace;
    line-height: 32px;
}
header > nav > a {
    display: inline-block;
    color: var(--header-text);
    text-decoration: none;
}
header > nav > a:hover {
    text-decoration: underline;
}
header > nav > a > img {
    display: inline-block;
    height: 1em;
    padding-right: 5px;
    filter: var(--invert);
}

/* Fancy stuff */

div.square {
    z-index: 1;
    position: absolute;
    background-color: rgb(170, 165, 180);
    animation-duration: 5s;
    animation-name: blink;
    animation-iteration-count: infinite;
}
@keyframes blink {
    0% {
        opacity: 0%;
    }

    50% {
        opacity: 40%;
    }

    100% {
        opacity: 0%;
    }
}

/* Main section */

main {
    background-color: var(--bg);
    height: 100vh;
    padding-top: 50px;
}


article {
    z-index: 5;
    position: relative;
    background-color: var(--content-bg);
    margin: 0px 10% 0px 10%;
    padding: 20px;
    border-radius: 24px;
    border-bottom: 4px solid rgb(66, 63, 72);
}
article > h2 {
    font-size: xx-large;
    font-family: 'Concert One', sans-serif;
}
