@import url('https://fonts.googleapis.com/css?family=Noto Sans:400,500,600,700,800');

:root {
    --body-font-family: "Noto Sans";
    --heading-font-family: "Noto Sans";
    --heading-font-weight: 800;
    --strong-font-weight: 700;
    --highlight-color: #235dcf;
}

body {
    background-color: lightsteelblue;
    font-family: var(--body-font-family), sans-serif;
    line-height: 1.4rem;
}

#related {

    text-align: end;
    padding: 2rem 2rem 0 2rem;

    a:link,
    a:visited,
    a:hover {
        color: inherit;
    }
}

h1 {
    font-size: 2rem;
    font-family: var(--heading-font-family), sans-serif;
    font-weight: var(--heading-font-weight);
    color: var(--highlight-color);
    border-bottom: 0.1rem solid;
    margin-block-end: 0.52em;
    padding-bottom: 0.15em;
    padding-top: 0.70em;

    /*-webkit-background-clip: text;
    background-clip: text;
    caret-color: #0f62fe;
    color: transparent;
    display: inline-block;
    background-image: linear-gradient(90deg, #0043ce, #4589ff);*/
}

h2 {
    font-size: 1.4rem;
    font-family: var(--heading-font-family), sans-serif;
    font-weight: var(--heading-font-weight);
    color: var(--highlight-color);
    margin-block-end: 0.52em;
    padding-bottom: 0.15em;
}

a:link,
a:visited {
    color: var(--highlight-color);
}

ul {
    margin-top: 0;
    padding-left: 1.2rem;
}

#cv {
    box-sizing: border-box;
    max-width: 62rem;
    padding: 2.5rem;
    margin: 3rem auto;
    background-color: white;
    box-shadow: 0 0 4px hsl(0deg 0% 0% / 0.1),
    0 0 8px hsl(0deg 0% 0% / 0.1),
    0 0 16px hsl(0deg 0% 0% / 0.1),
    0 0 32px hsl(0deg 0% 0% / 0.1),
    0 0 64px hsl(0deg 0% 0% / 0.1);
}

.icon {
    color: var(--highlight-color);
    width: 1.8rem !important;
}

#header {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
    align-items: center;
}

#name {
    font-size: 3.75rem;
    line-height: 1.1;
    font-family: var(--heading-font-family), sans-serif;
    font-weight: var(--heading-font-weight);
    color: var(--highlight-color);
}

#intro {
    padding-left: 2rem;
    text-wrap: pretty;
    border-left: 0.5rem solid;
    border-color: var(--highlight-color);
}

#intro > p:first-child {
    margin-block-start: 0.6rem;
    font-weight: 700;
    font-size: 1.12rem;
}

#available {
    color: var(--highlight-color);
}

#contact {
    grid-template-columns: auto auto auto;

    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    justify-content: space-between;
}

#contact > div {
    margin: 0 1rem;
}

#contact > div > span {
    display: block;
    line-height: 2rem;
}

#contact > a {
    text-decoration: none;
}

#contact > a > span {
    text-decoration: underline;
}

#contact > a:link,
#contact > a:visited {
    color: inherit;
}

#contact > a:hover {
    color: var(--highlight-color);
}

.section-large {
    display: grid;
    grid-template-columns: 10rem 1fr;
    row-gap: 1rem;
}

#experience {
    row-gap: 0.7rem;
}

#experience > div > ul {
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    margin-left: 0.5rem;
}

.experience-position {
    font-weight: var(--strong-font-weight);
    color: var(--highlight-color);
}

.experience-company {
    font-weight: var(--strong-font-weight);
}

#technology-list {
    row-gap: 0.5rem;
    margin-bottom: 1rem;
}

.technology-name {
    font-weight: 600;
}

.technology-description {
    align-self: center;
    text-wrap: pretty;
}

#technology-other {
    text-wrap: balance;
}

.two-sections {
    display: grid;
    grid-template-columns: 2.7fr 2.3fr;
    column-gap: 2rem;
}

.section-small {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
}

.presenting-type {
    font-weight: 600;
}

.project-name {
    font-weight: 600;
    text-decoration: underline !important;
}

.project-name:link,
.project-name:visited {
    color: inherit;
}

.project-name:hover {
    color: var(--highlight-color);
}

.section-detail {
    font-weight: var(--strong-font-weight);
    color: var(--highlight-color)
}

.language-name {
    font-weight: 600;
}

.workproject-heading {
    margin-top: 2rem;
}

.workproject-heading-period {
    font-weight: normal;
    padding-right: 1em;
}

.workproject-intro {
    margin-bottom: 0.7rem;
}

.workproject-details {
    margin-bottom: 0.7rem;
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
}

/* Hide the background with the drop shadow, and adjust the padding. */
@media screen and (max-width: 65rem) {
    body {
        background-color: white;
    }

    #cv {
        padding: 2rem;
        margin: 0 auto;
        box-shadow: none;
    }
}

/* Switch to one-column view (mobile) */
@media screen and (max-width: 50rem) {
    .two-sections {
        display: grid;
        grid-template-columns: 1fr; /* 1 column */
        column-gap: 0;
    }

    #cv {
        padding: 1rem; /* Decrease the padding */
    }

    #experience {
        grid-template-columns: 6rem 1fr;
    }
}

/* Switch the name and intro to be underneath each other */
@media screen and (max-width: 45rem) {
    #header {
        display: grid;
        grid-template-columns: 1fr;
    }

    #name {
        margin: 0 auto 1rem auto;
    }

    #intro {
        border-left: none;
        padding-left: 0;
    }

    /* Switch the contact to be single column. */
    #contact {
        grid-template-columns: auto;
        row-gap: 1rem;
        justify-content: left;
        margin-top: 1rem;
    }
}

/* Override the styling for printing to be able to save as PDF */
@media print {
    html {
        font-size: 8.2pt;
    }

    #related {
        display: none;
    }

    #header {
        margin-top: 3rem;
    }

    #workprojects {
        page-break-before: always;
    }

    #cv {
        padding: 0 1.2cm 0 1.2cm;
        margin: 0;
        box-shadow: none;
        max-width: none;
    }

}