@page {
    size: A4;
    margin: 0;
}

:root {
    --ink: #18202a;
    --muted: #66717d;
    --light: #e7eaed;
    --accent: #1769aa;
    --accent-soft: #edf5fb;
    --paper: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #e9ecef;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    min-height: 100vh;
}

.cv {
    width: 210mm;
    min-height: 297mm;
    height: auto;
    margin: 0 auto;
    background: var(--paper);
}


/* =========================
   HEADER
   ========================= */

.header {
    padding: 13mm 14mm 8mm 14mm;
    border-bottom: 1px solid var(--light);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

h1 {
    margin: 0;
    font-size: 29pt;
    line-height: 0.94;
    letter-spacing: -1.2px;
    font-weight: 800;
    text-transform: uppercase;
}

.headline {
    margin: 4mm 0 3.5mm;
    font-size: 7.5pt;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 3mm 6mm;
    font-size: 7.5pt;
    color: var(--muted);
}

.contact span:not(:last-child)::after {
    content: "·";
    margin-left: 6mm;
    color: #aab1b8;
}

.photo {
    width: 31mm;
    height: 38mm;
    flex: 0 0 31mm;
    overflow: hidden;
    background: #f0f2f4;
    border-radius: 2mm;
    border: 1px solid var(--light);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   TWO-COLUMN CONTENT
   ========================= */

.content {
    display: grid;
    grid-template-columns: 61% 39%;
}

.main-column {
    padding: 7mm 7mm 7mm 14mm;
    border-right: 1px solid var(--light);
}

.side-column {
    padding: 7mm 14mm 7mm 7mm;
}


/* =========================
   TYPOGRAPHY
   ========================= */

.section {
    margin-bottom: 5.5mm;
}

.section h2 {
    margin: 0 0 3mm;
    padding-bottom: 1.7mm;
    border-bottom: 1.5px solid var(--ink);

    font-size: 8pt;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

p {
    margin: 0;
    font-size: 7.7pt;
    line-height: 1.45;
}

.profile p + p {
    margin-top: 2.2mm;
}


/* =========================
   EXPERIENCE
   ========================= */

.job {
    margin-bottom: 5mm;
}

.job.compact {
    margin-bottom: 4mm;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5mm;
    margin-bottom: 1.7mm;
}

.job h3 {
    margin: 0;
    font-size: 9.5pt;
    line-height: 1.1;
    font-weight: 800;
}

.role {
    margin-top: 0.8mm;
    font-size: 7.8pt;
    line-height: 1.2;
    color: var(--accent);
    font-weight: 700;
}

.date {
    flex-shrink: 0;
    font-size: 7pt;
    line-height: 1.2;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
}

.job ul {
    margin: 0;
    padding-left: 4mm;
}

.job li {
    margin: 0 0 1.1mm;
    padding-left: 0.5mm;
    font-size: 7.35pt;
    line-height: 1.36;
}

.vendors {
    margin-top: 2mm;
    font-size: 7pt;
    color: var(--muted);
}

.vendors strong {
    color: var(--ink);
}


/* =========================
   RESULTS
   ========================= */

.results {
    background: var(--accent-soft);
    margin-left: -7mm;
    margin-right: -14mm;
    padding: 5mm 14mm 4.5mm 7mm;
}

.results h2 {
    border-bottom-color: var(--accent);
}

.result {
    display: grid;
    grid-template-columns: 15mm 1fr;
    align-items: center;
    gap: 2mm;
    margin-bottom: 2.5mm;
}

.result strong {
    font-size: 17pt;
    line-height: 1;
    color: var(--accent);
    font-weight: 800;
}

.result span {
    font-size: 7.1pt;
    line-height: 1.25;
    color: var(--ink);
}

.result-note {
    margin-top: 3mm;
    padding-top: 2.5mm;
    border-top: 1px solid #d5e4ef;
    font-size: 6.9pt;
    line-height: 1.4;
    color: var(--muted);
}


/* =========================
   SKILLS
   ========================= */

.skill-group {
    margin-bottom: 3mm;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group h4 {
    margin: 0 0 1mm;
    font-size: 7.3pt;
    font-weight: 800;
}

.skill-group p {
    font-size: 7pt;
    line-height: 1.4;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5mm;
}

.tags span {
    display: inline-block;
    padding: 1.1mm 2mm;
    border: 1px solid var(--light);
    border-radius: 1mm;
    font-size: 6.7pt;
    line-height: 1;
    color: var(--ink);
}


/* =========================
   LANGUAGES / EDUCATION
   ========================= */

.split-info {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5mm;
}

.split-info p {
    margin-bottom: 2mm;
    font-size: 6.9pt;
    line-height: 1.35;
}

.split-info strong {
    font-weight: 800;
}

.additional {
    margin-bottom: 0;
}

.additional p {
    font-size: 7pt;
    color: var(--muted);
}


/* =========================
   PRINT
   ========================= */

@media print {

    html,
    body {
        width: 210mm;
        height: 297mm;
        background: white;
    }

    .cv {
        margin: 0;
        width: 210mm;
        height: 297mm;
    }
}