@font-face {
    font-family: "Volkhov";
    src: url("assets/fonts/Volkhov-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Volkhov";
    src: url("assets/fonts/Volkhov-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "PT Sans";
    src: url("assets/fonts/PT_Sans-Web-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "PT Sans";
    src: url("assets/fonts/PT_Sans-Web-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "PT Sans";
    src: url("assets/fonts/PT_Sans-Web-Bold.ttf") format("truetype");
    font-weight: 700;
}

:root {
    --navy: #002b7f;
    --blue: #56acf2;
    --text: #384347;
    --muted: #a9a9a9;

    --page-margin-x: 15mm;
    --page-margin-y: 13mm;
}

@page {
    size: A4;
    margin: var(--page-margin-y) var(--page-margin-x);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "PT Sans", sans-serif;
    font-size: 8.85pt;
    line-height: 1.45;
}

p,
ul,
h1,
h2,
h3 {
    margin: 0;
}

/* Header */

.header {
    text-align: center;
}

.photo {
    display: block;
    width: 29mm;
    height: 29mm;
    margin: 0 auto 4mm;
    border-radius: 50%;
}

.name {
    color: var(--navy);
    font-family: "Volkhov", serif;
    font-size: 15pt;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.title {
    color: var(--blue);
    font-size: 12.5pt;
    line-height: 1.35;
}

.contact {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.contact li + li::before {
    content: "•";
    margin: 0 0.6em;
}

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

/* Sections */

.section {
    margin-top: 6.5mm;
}

.section > h2 {
    margin-bottom: 2.5mm;
    padding-bottom: 1mm;
    border-bottom: 0.5pt solid var(--navy);
    color: var(--navy);
    font-family: "Volkhov", serif;
    font-size: 12.5pt;
    font-weight: 400;
    text-align: center;
    break-after: avoid;
}

/* Entries (jobs, additional experience, education) */

.entry {
    break-inside: avoid;
}

/* Lets a long entry continue onto the next page instead of moving there whole */
.entry.can-split {
    break-inside: auto;
}

.entry.can-split li {
    break-inside: avoid;
}

/* One-line entries: company and role share a row */
.entry.compact .company {
    font-size: 11.5pt;
}

.entry.compact .company .role {
    margin-left: 2mm;
    font-size: 10pt;
}

.entry + .entry.compact {
    margin-top: 1.5mm;
}

.entry + .entry {
    margin-top: 3.5mm;
}

.entry-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6mm;
}

.company {
    color: var(--blue);
    font-size: 13pt;
    font-weight: 400;
    line-height: 1.3;
}

.role {
    color: var(--navy);
    font-size: 10.5pt;
    line-height: 1.4;
}

.location,
.dates {
    font-size: 10.5pt;
    white-space: nowrap;
}

.placeholder {
    color: var(--muted);
}

.entry ul {
    margin-top: 0.5mm;
    padding-left: 3.8mm;
    list-style-type: "•  ";
}

/* Strengths list (short items in columns) */

.strengths {
    columns: 3;
    column-gap: 8mm;
    padding-left: 3.8mm;
    list-style-type: "•  ";
}

.strengths li {
    break-inside: avoid;
}

/* On-screen preview: show the page as a sheet of paper */

@media screen {
    html {
        background: #e5e7eb;
    }

    body {
        width: 210mm;
        min-height: 297mm;
        margin: 8mm auto;
        padding: var(--page-margin-y) var(--page-margin-x);
        background: #fff;
        box-shadow: 0 1px 6px rgb(0 0 0 / 0.2);
    }
}
