:root {
    --text-color: #000000;
    --bg-color: #ffffff;
    --link-color: #000088;
}

* {
    box-sizing: border-box;
}

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

html {
    background: var(--bg-color);
}

body {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    font-family: "Latin Modern Roman", "Computer Modern Roman", "CMU Serif", Garamond, Georgia, "Times New Roman", serif;
    font-size: 14.5px;
    line-height: 1.3;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.page-actions {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: sans-serif;
    font-size: 12px;
}

.page-actions a,
.page-actions span {
    margin: 0;
    padding: 0 5px;
    border: 0;
    color: #555;
    background: none;
    text-decoration: underline;
}

.page-actions .active {
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
}

.page-actions .download-link {
    margin-left: 5px;
    padding-left: 10px;
    border-left: 1px solid #777;
    color: var(--link-color);
}

.cv-header {
    text-align: center;
}

h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: normal;
}

.headline {
    margin: 0 0 4px;
    font-size: 13px;
    font-style: italic;
}

.contact-info {
    text-align: center;
    font-size: 13px;
}

.separator {
    margin: 0 5px;
    color: #555;
}

.availability {
    margin: 4px 0 15px;
    font-size: 12.5px;
}

.profile {
    margin: 0;
}

.profile p {
    margin: 0 0 5px;
}

section {
    margin-top: 14px;
}

h2 {
    margin: 14px 0 8px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--text-color);
    font-size: 16px;
    font-variant: small-caps;
    font-weight: normal;
}

.entry-block {
    margin-bottom: 10px;
}

.entry-block:last-child {
    margin-bottom: 0;
}

.entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.entry-title {
    color: inherit;
    font-weight: bold;
}

a.entry-title {
    color: var(--link-color);
}

.entry-location {
    font-style: italic;
}

.entry-date {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    font-size: 13.5px;
}

ul {
    margin: 2px 0 8px;
    padding-left: 20px;
}

li {
    margin-bottom: 2px;
    text-align: justify;
}

.entry-summary {
    margin: 2px 0 8px;
}

.skills-grid p {
    margin: 0 0 4px;
}

.skills-grid p:last-child,
section > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
        padding-top: 2.5rem;
    }

    .page-actions {
        top: 10px;
        right: 10px;
    }

    .entry {
        flex-direction: column;
    }

    .entry-date {
        text-align: left;
        font-style: italic;
    }

    .separator {
        display: none;
    }

    .contact-info a {
        display: block;
        margin-bottom: 2px;
    }
}

@media print {
    .page-actions {
        display: none !important;
    }

    body {
        padding: 1.5rem 2.5rem;
    }
}
