@font-face {
    font-family: opensans;
    src: url(fonts/OpenSans-Regular.ttf);
}

@font-face {
    font-family: opensans-bold;
    src: url(fonts/OpenSans-Bold.ttf);
}

@font-face {
    font-family: montserrat-bold;
    src: url(fonts/Montserrat-Bold.ttf);
}

@font-face {
    font-family: montserrat-med;
    src: url(fonts/Montserrat-Regular.ttf);
}

@font-face {
    font-family: montserrat-semibold;
    src: url(fonts/Montserrat-SemiBold.ttf);
}

:root {
    --theme-brand: #010d25;
    --theme-accent: #061941;
}

address {
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

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

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

p + p {
    margin-top: 4mm;
}

body {
    font-family: opensans, arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    color: #2d2d2d;
    line-height: 1.6;
}

.page {
    margin: 0 auto;
    width: 240mm;
    height: 297mm;

    & + .page .columns > * {
        padding-top: 20mm;
    }
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 55mm;

    .name {
        font-family: montserrat-bold, arial, sans-serif;
        font-size: 23pt;
        text-transform: uppercase;
        line-height: 1;
    }

    .title {
        font-family: montserrat-med, arial, sans-serif;
        color: #9a9a9a;
        font-size: 10pt;
        margin: 0;
        text-transform: lowercase;
    }

    .intro {
        font-style: italic;
        position: relative;
        background: rgba(0,0,0,.03);
        padding: 3mm;
        border-radius: 0 3mm 3mm;
        margin-left: 4mm;

        &::before, &::after {
            font-size: 70pt;
            position: absolute;
            line-height: 1;
            font-family: initial;
            letter-spacing: -6pt;
        }

        &::before {
            content: "‘‘";
            display: block;
            top: -4mm;
            left: -6mm;
        }

        &::after {
            content: "’’";
            display: block;
            bottom: -18mm;
            right: -1.1mm;
        }
    }
}

.columns {
    display: flex;
    height: 100%;

    & > * {
        padding: 5mm;
    }

    .right-column {
        background: white;
        width: 190mm;

        & > section + section {
            margin-top: 15mm;
        }
    }

    .left-column {
        &::after {
            content: '';
            background: url("column-bg-long.svg") 0 0 no-repeat;
            background-size: 95mm;
            opacity: .05;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
            pointer-events: none;
        }

        position: relative;
        background: linear-gradient(0, var(--theme-accent), var(--theme-brand));
        color: white;
        width: 55mm;
        flex-shrink: 0;

        & > *:not(.header) {
            position: relative;
            z-index: 10;
            opacity: .65;
        }

        & .section-header {
            margin-right: -5mm;
        }
    }
}

.section-header {
    display: flex;
    margin-bottom: 10mm;

    .icon-holder {
        width: 17mm;
        display: flex;
        align-content: center;

        & > img,
        & > svg {
            width: 60%;
            display: block;
        }
    }

    .title {
        font-family: montserrat-semibold, arial, sans-serif;
        font-size: 13pt;
        width: 100%;
        border-bottom: .7mm solid;
        padding-bottom: 2mm;
        text-transform: uppercase;
    }
}

.info {
    & address > * {
        display: flex;
        gap: 2mm;
        align-items: start;
        margin-bottom: 2mm;

        & svg {
            width: 7mm;
        }

        & span {
            display: block;
            width: 100%;
        }
    }
}

.job {
    position: relative;
    padding-left: 10mm;
    padding-bottom: 15mm;
    display: flex;

    &::before {
        content: '';
		display: block;
		width: 3mm;
		height: 3mm;
		background: #2d2d2d;
		position: absolute;
		top: 0;
		left: 3.15mm;
		border-radius: 100%;
		z-index: 1;
    }

    &::after {
        content: '';
		display: block;
		width: .4mm;
		height: 100%;
		border-left: .5mm dashed #ccc;
		position: absolute;
		top: 0;
		left: 4.5mm;
    }

    &:last-of-type {
        padding-bottom: 0;

        &::after {
            border-radius: 0 0 5mm 5mm;
        }
    }

    .brand-logo {
        width: 13mm;
        padding-right: 2.7mm;
        box-sizing: content-box;
        flex-shrink: 0;

        & img {
            width: 100%;
        }
    }

    & header {
        margin-bottom: 5mm;
        padding-right: 16mm;

        & .title {
            font-family: opensans-bold, arial, sans-serif;
            font-size: 12pt;
			margin-top: -8px;

            & .subtitle {
                font-family: opensans, arial, sans-serif;
				font-weight: 400;
            }
        }

        & .project {
            color: #9a9a9a;
            font-size: 9pt;
            font-weight: normal;
            line-height: 1;
        }
    }



    .dates {
        width: 16mm;
        background: var(--theme-brand);
        padding: 2mm;
        line-height: 1;
        text-align: right;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
        color: white;
        font-family: montserrat-bold, arial, sans-serif;
        font-size: 6.5pt;
        border-radius: 5mm 0 0 5mm;
        text-transform: uppercase;

        & > * {
			white-space: nowrap;
            display: block;
        }
    }
}

.skillz-n-toolz {
    list-style: none;
    padding: 0;
    margin: 5mm 0 0;
    font-family: montserrat-semibold, arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 1mm;

    & > * {
        padding: .5mm 1mm;
        text-transform: uppercase;
        text-align: center;
        background: #ececec;
        color: #2d2d2d;
        border-radius: 1mm;
        font-size: 8pt;
        line-height: 1.3;
    }
}

.earlier-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 3mm;
}

.earlier-job {
    border: 0.3mm solid #ececec;
    padding: 2mm;
    gap: 4mm;
    display: flex;
    position: relative;

    .brand-logo {
        width: 15mm;

        & > * {
            width: 100%;
        }
    }

    .content {
        width: 100%;

        .title {
            font-size: 10pt;
        }

        & header {
            padding-right: 15mm;
            margin-bottom: 2mm;
        }
    }

    .dates {
        padding: 1mm;
        line-height: 1;
        border-radius: 0 0 2mm 2mm;
        gap: 1mm;
        position: absolute;
        top: 0;
        right: 2mm;
        width: 13mm;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: var(--theme-brand);
        color: white;
        font-family: montserrat-bold, arial, sans-serif;
        font-size: 7pt !important;
        text-transform: uppercase;
    }

    .project {
        font-family: opensans, arial, sans-serif;
        font-weight: normal;
        color: #9a9a9a;
        font-size: 9pt;
        line-height: 1;
    }

    .skillz-n-toolz {
        margin-top: 3mm;
    }
}

.continue-cta {
    text-align: center;
    font-family: montserrat-bold, arial, sans-serif;
    padding: 3mm;
    margin-top: 4mm;
    position: relative;

    &::before {
        content: '';
        display: block;
        position: absolute;
        background: linear-gradient(0, rgba(255,255,255,1) 25%, rgba(255,255,255,0));
        height: 20mm;
        width: 100%;
        top: -22mm;
        left: 0;
        z-index: 10;
    }

    & > p {
        margin-bottom: 2mm;
        color: #9a9a9a;
    }
    & > a {
        color: var(--theme-accent);
    }
}

@page {
    size: A4;
    margin: 0;
    width: 210mm;
    height: 297mm;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
    }
    .page {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        page-break-after: always;
    }
}