html {
    --primary-colour: white;
    --secondary-colour: #999;
    --highlight-colour: #9bfff9;

    --body-width: 1200px;
    --body-margin: 40px;
}

html {
    background-color: #1B1B1B;
    font-family: 'OakesGrotesk', Helvetica, sans-serif;
    color: var(--primary-colour);
    font-size: 16px;
}

em {
    color: var(--highlight-colour) !important;
    font-weight: 600 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0 auto;
    padding: 0px var(--body-margin);
    max-width: var(--body-width);
}

header, section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* --- header --- */
header {
    padding: 40px 0px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    font-size: 23px;
    position: relative;
    z-index: 10;
}

    header h1 {
        font-weight: 400;
        color: var(--primary-colour);
        line-height: 1em;
    }

    #nav-container {
        position: relative;
    }

        #nav-container nav {
            display: flex;
            flex-flow: row nowrap;
            justify-content: space-between;
        }

            #nav-container nav a {
                text-decoration: none;
                margin: 0px 20px;
                color: var(--primary-colour);
            }

            #nav-container nav a:hover {
                color: var(--highlight-colour);
            }

            #nav-container nav a:first-child {
                margin-left: 0px;
            }

            #nav-container nav a:last-child {
                margin-right: 0px;
            }

        #nav-toggle {
            display: none;
            width: 40px;
            height: 40px;
            vertical-align: middle;
            background-image: url(/images/icons/menu-inverted.svg);
            background-repeat: no-repeat;
            background-size: cover;
        }

        #nav-container.open #nav-toggle {
            background-image: url(/images/icons/menu.svg);
        }

/* --- sections --- */
section {
    padding-top: 100px;
    padding-bottom: 100px;
}

    section h1 {
        font-size: 3.125rem;
        font-weight: 600;
        margin-bottom: 60px;
        line-height: 1.8em;
    }

    section h2 {
        font-size: 1.4375rem;
        font-weight: 600;
        margin-bottom: 20px;
        line-height: 1.3em;
    }

    section h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0px;
        line-height: 1.5625em;
    }

    section p {
        font-size: 1rem;
        line-height: 1.5625em;
        color: var(--secondary-colour);
    }

    section p + p {
        margin-top: 1em;
    }

    section a {
        color: var(--highlight-colour);
    }

    section a:hover {
        text-decoration: underline;
    }

.icon {
    height: 55px;
    margin-bottom: 15px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.hero {
    font-size: 80px;
    line-height: 1.125em;
    font-weight: 600;
    color: var(--primary-colour);
}

/* --- hero section --- */
#hero .hero {
    margin-bottom: 60px;
}

#hero ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

.with-aurora .content {
    position: relative;
    z-index: 2;
}

#aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- clients section --- */
#clients div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr); 
    grid-gap: 30px;
}

    #clients img {
        width: 100%;
        border-radius: 15px;
    }

/* --- work section --- */
#work ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

    #work li img {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 15px;
    }

    #work li h2 {
        margin-bottom: 0px;
        color: white;
    }

    #work li p {
        color: var(--secondary-colour);
    }

        #work li p:after {
            content: "";
            display: inline-block;
            width: 15px;
            height: 13px;

            position: relative;
            top: 1px;
            margin-left: 1ex;

            background-repeat: no-repeat;
            background-size: cover;
            background-image: url(/images/arrow-grey.svg);
        }

    #work a:hover {
        text-decoration: none !important;
    }

        #work a:hover li p:after {
            background-image: url(/images/arrow-white.svg);
        }

    #work a:hover li h2 {
        color: var(--highlight-colour);
    }

    #work a:hover li p {
        color: var(--primary-colour);
    }

/* --- who section --- */
#who ul {
    display: grid;
    grid-template-areas: "a b c";
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;
}

    #face {
        grid-area: c;
        display: grid;
        place-items: center;
    }

        #face img {
            width: 80%;
            border-radius: 100%;
        }

    #professionally {
        grid-area: a;
    }

    #personally {
        grid-area: b;
    }


/* --- CV --- */
.cv-section {
    display: grid;
    grid-template-columns: 400px 1fr;
}

    .cv-section > h2,
    .cv-section .cv-section-content {
        padding: 50px 0px;
    }

    .cv-section:first-of-type > h2,
    .cv-section:first-of-type .cv-section-content {
        padding-top: 0px;
    }

    .cv-section:last-of-type .cv-section-content {
        padding-bottom: 0px;
    }

    .cv-section .cv-section-content {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cv-section:first-of-type .cv-section-content {
        border-top: none;
    }

    ul.cv-section-content {
        display: flex;
        flex-flow: column nowrap;
        gap: 20px;
    }

        ul.cv-section-content li p.secondary {
            color: var(--primary-colour);
        }

        ul.cv-section-content li p + p {
            margin-top: 0px;
        }

    #cv-experience li {
        display: flex;
        flex-flow: row nowrap;
        gap: 30px;
    }

        #cv-experience img {
            width: 73px;
            height: 73px;
        }

        .desc {
            margin-top: 15px !important;
        }

    #skill-icons {
        display: flex;
        flex-flow: row wrap;
        gap: 15px;
        margin-bottom: 20px;
    }

        #skill-icons img {
            width: 73px;
            height: 73px;
        }


footer {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    padding: 25px 0px;
}

footer p {
    color: var(--secondary-colour);
    line-height: 28px;
    font-size: 16px;
    display: flex;
    flex-flow: row nowrap;
}

    footer p span {
        flex-grow: 1;
        padding: 0px 20px;
    }

    footer p span a:hover {
        color: var(--highlight-colour);
    }

    footer p img {
        height: 28px;
        vertical-align: middle;
        flex-grow: 0;
    }

    #linkedin {
        text-align: right;
    }


/* --- tablet breakpoint --- */
@media screen and (max-width: 900px) {
    html {
        --body-width: 820px;
    }

    #nav-container {
        position: relative;
    }

        #nav-container nav {
            position: absolute;
            top: 45px;
            right: 0px;

            display: none;
            flex-flow: column nowrap;
            gap: 15px;
            
            background: white;
            border-radius: 20px;
            padding: 20px;
        }

        #nav-container.open nav {
            display: flex;
        }

            #nav-container nav a {
                margin-left: 0px;
                margin-right: 0px;
                color: black;
                font-weight: 500;
            }

            #nav-container nav a:hover,
            #nav-container nav a:active {
                color: black;
                text-decoration: underline;
            }

        #nav-toggle {
            display: block;
        }

    section {
        padding-top: calc(6vw + 15px);
        padding-bottom: calc(6vw + 15px);
    }

    section h1 {
        margin-bottom: 50px;
    }

    .hero {
        font-size: 50px;
    }

    #hero .hero {
        margin-bottom: 50px;
    }

    #hero > p {
        margin-top: 10px;
    }

    #hero ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    #clients div {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    #work ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-gap: 25px 30px;
    }
    
    #work li img {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 13px;
    }

    #who ul {
        grid-template-areas: "c c"
                             "a b";
        grid-template-columns: 1fr 1fr;
    }

    #face {
        text-align: center;
        padding: 0px 40px;
    }

        #face img {
            max-width: 300px;
            margin-bottom: 40px;
        }

    .cv-section {
        grid-template-columns: 190px 1fr;
    }
}

/* -- mobile breakpoint -- */
@media screen and (max-width: 600px) {
    html {
        --body-width: 100%;
        --body-margin: 30px;
    }

    header {
        padding: 30px 0px;
    }

        header h1 {
            line-height: 1.3em;
        }

        header em {
            display: block;
        }

        header span {
            display: none;
        }

    section h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .hero {
        font-size: 40px;
    }

    #hero > p {
        margin-top: 0px;
    }

    #hero ul {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-gap: 40px;
    }

        #hero li h2 {
            margin-bottom: 10px;
        }

    #clients div {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-gap: 20px;
    }

    #clients img {
        width: 100%;
        border-radius: 13px;
    }

    #work ul {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(8, 1fr);
        grid-gap: 25px 30px;
    }

    #work li img {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    #who ul {
        grid-template-areas: "c" "a" "b";
        grid-gap: 40px;
        grid-template-columns: 1fr;
    }

    #face img {
        max-width: 200px;
        margin-bottom: 0px;
    }

    .cv-section {
        display: flex;
        flex-flow: column nowrap;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cv-section:first-of-type {
        border-top: none;
    }

        .cv-section > h2 {
            padding: 25px 0px 20px 0px;
            margin-bottom: 0px;
        }

        .cv-section .cv-section-content {
            padding: 0px 0px 30px 0px;
        }

        .cv-section .cv-section-content {
            border-top: none;
        }

    #cv-experience img {
        display: none;
    }

    footer {
        display: block;
    }

        #linkedin {
            text-align: left;
            margin-top: 0.5em;
        }

        #linkedin img {
            order: 0;
        }

        #linkedin span {
            order: 1;
        }
}

@media screen and (max-width: 430px) {
    html {
        --body-margin: 20px;
    }

    header {
        padding: 20px 0px;
    }

    .hero {
        font-size: 9vw;
    }

    #hero .hero {
        margin-bottom: 40px;
    }
    
    #clients img {
        width: 100%;
        border-radius: 10px;
    }
    
    #work li img {
        border-radius: 10px;
    }
}

