.cv-page {
    --resume-ink: #171717;
    --resume-paper: #fff;
    --resume-width: 210mm;
    --resume-height: 297mm;
    --resume-margin: 15mm;
}

.cv-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(var(--resume-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.75rem) 0 1.5rem;
}

.cv-intro-title {
    margin: 0.3rem 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1;
}

.cv-intro-description {
    margin: 0;
    color: var(--muted);
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-print-button {
    font-family: inherit;
    cursor: pointer;
}

.cv-container {
    width: min(var(--resume-width), calc(100% - 2rem));
    min-height: var(--resume-height);
    margin: 0 auto clamp(2rem, 5vw, 4rem);
    padding: var(--resume-margin);
    background: var(--resume-paper);
    color: var(--resume-ink);
    box-shadow: 0 3px 18px #191b1b12;
    font: 11pt/1.34 Calibri, "Carlito", Arial, sans-serif;
    scroll-margin-top: 5rem;
}

.cv-container :where(h1, h2, h3, p, ul) {
    margin: 0;
}

.cv-container :is(h1, h2, h3) {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: normal;
}

.cv-container a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-header {
    margin-bottom: 12pt;
    text-align: center;
    break-inside: avoid;
}

.candidate-name {
    padding-bottom: 3pt;
    border-bottom: 0.8pt solid var(--resume-ink);
    font-size: 18pt;
    line-height: 1.12;
}

.contact-list {
    margin-top: 3pt;
    font-size: 10pt;
    font-style: normal;
    line-height: 1.35;
}

.contact-list > * {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.contact-list > * + *::before {
    display: inline-block;
    margin: 0 0.4em;
    content: "·";
}

.candidate-title {
    margin-top: 5pt;
    font-size: 10.5pt;
    font-weight: 700;
}

.candidate-title span {
    font-weight: 400;
}

.cv-section + .cv-section {
    margin-top: 12pt;
}

.section-title {
    margin-bottom: 4pt;
    font-size: 11.5pt;
    line-height: 1.15;
    text-align: center;
    break-after: avoid;
}

.cv-entry {
    break-inside: avoid;
}

.cv-entry + .cv-entry {
    margin-top: 7pt;
}

.item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10pt;
    break-after: avoid;
}

.item-row h3 {
    font-size: inherit;
    font-weight: 700;
}

.item-meta {
    flex: none;
    white-space: nowrap;
    text-align: right;
}

.item-role {
    font-weight: 700;
}

.tech-stack {
    font-style: italic;
}

.bullet-list {
    margin-top: 2pt;
    padding-inline-start: 16pt;
}

.bullet-list li + li {
    margin-top: 2pt;
}

.additional-activities {
    margin-top: 4pt;
}

@media screen and (max-width: 640px) {
    .cv-container {
        min-height: 0;
        padding: 20px;
    }

    .item-row {
        flex-wrap: wrap;
        gap: 1pt 8pt;
    }
}

@page {
    size: A4 portrait;
    margin: 15mm;
}

@media print {
    body.site.cv-page {
        margin: 0;
        background: var(--resume-paper);
    }

    .no-print {
        display: none !important;
    }

    .cv-container {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        line-height: 1.30;
    }
}
