/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* end of reset */

@font-face {
    font-family: "Fira Sans";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/FiraSans-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Fira Sans";
    font-style: italic;
    font-weight: 400;
    src: url("fonts/FiraSans-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "Fira Sans";
    font-style: normal;
    font-weight: 700;
    src: url("fonts/FiraSans-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Fira Code";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/FiraCode-Regular.woff2") format("woff2");
}

:root {
    --sheet-width: 240mm;
    /* the category column just fits the longest section name, "Further training" */
    --category-column-width: 9.5rem;
    --date-column-width: 8rem;
    --column-gap: 1rem;
    --text-column-start: calc(
        var(--category-column-width) + var(--date-column-width) + 2 * var(--column-gap)
    );
    --text-column-width: calc(100% - var(--text-column-start));
    --date-font-size: 0.68rem;
    --section-font-size: 1.1em;
}

body {
    font-size: 86%;
    line-height: 1.5em;
    /*also written as...  font: normal normal 400 100%/1.5em;*/
    font-family: "Fira Sans";
    width: var(--sheet-width);
    margin: 1em auto;
}

p {
    position: relative;
    left: var(--text-column-start);
    margin-bottom: 0.7em;
    margin-right: 1em;
    width: var(--text-column-width);
}

code {
    /* font-size: 70%; */
    /*line-height: 1em;*/
    font-family: "Fira Code";
    color: #666;
}

p code {
    position: absolute;
    right: 100%;
    margin-right: var(--column-gap);
    font-size: var(--date-font-size);
    white-space: nowrap;
}


ul {
    position: relative;
    left: var(--text-column-start);
    width: var(--text-column-width);
    margin-bottom: 1.5em;
    margin-top: -0.5em;
}

li:before {
    content: "•";
    position: relative;
    left: -0.25em;
}

li {
    /*second line indent*/
    padding-left: 1.25em;
    text-indent: -1.25em;
    /*color: #777;*/
}

li ul {
    position: relative;
    left: 0;
    width: 100%;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

h1,h2,h3,h4 {
    font-weight: 400;
    font-family: "IBM Plex Mono";
    /* width: 65%; */
}

h1 {
    text-align: left;
    font-size: 2.5em;
    line-height: 1em;
    position: relative;
    left: var(--text-column-start);
    width: var(--text-column-width);
}

h1+p {
    /*subtitle*/
    top: 0.5em;
    font-style: italic;
    font-size: 130%;
}

h2 {
    font-size: var(--section-font-size);
    color: #a00;
    /* margin-top: 1em; */
    position: relative;
    top: 1.4em;
    text-align: right;
    width: var(--category-column-width);
}

h3 {
    font-size: 1.1em;
    line-height: 2em;
    position: relative;
    top: 1.7em;
    text-align: right;
    width: var(--category-column-width);
}

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

a:hover {
    color:#39f
}

/*
 * The heading starts at the first section name, "Occupation",
 * and keeps a margin on the right.
 * IBM Plex Mono glyphs are 0.6em wide, so "Occupation" is 6em wide at the section font size.
 */
header {
    display: block;
    position: relative;
    padding-bottom: 1em;
    margin-bottom: 1em;
    margin-left: calc(var(--category-column-width) - 6 * var(--section-font-size));
    margin-right: 5%;
    border-bottom: 1px solid #ccc;
}

header h1,
header p,
header .webaddress {
    left: 0;
    width: 100%;
}

/*
 * only on the screen: printing hides it;
 * the heading's lines are positioned and come later, so they would cover it
 */
header .print {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
}

header .print:hover {
    opacity: 0.6;
}


.webaddress {
    margin-top: 1.3em;
    margin-bottom: 1.0em;
    position: relative;
    left: var(--text-column-start);
    color: #333;
    font-family: "Fira Code";
    font-size: 90%;
    text-decoration: none;
}

/* the icons separate the contact links */
.webaddress .emoji:not(:first-child) {
    margin-left: 1em;
}

.nowrap {
    white-space: nowrap;
}

/* an OpenMoji SVG: square, with an empty margin around the drawing, and shorter than a line */
.emoji {
    width: 1.6em;
    height: 1.6em;
    vertical-align: middle;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

#address {
    display: none;
}

/*
@media only screen and (max-width: 480px) {
    make one column somehow...
}*/

/*
 * A4 enlarged by 4/3, so the sheet prints at the browser's font sizes;
 * the PDF build scales the result down to A4.
 */
@page {
    size: 280mm 396mm;
    margin: 20mm;
}

@media print {
    .print {
        display: none;
    }

    h1, h2, h3, p {
        break-after: avoid;
    }

    ul {
        break-inside: avoid;
    }
}
