* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    padding: 20px;
}

.site-nav {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.site-nav a {
    color: #333;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    font-weight: 600;
}

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

a.btn-pdf {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
    line-height: 1.3;
}

a.btn-pdf:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.home-main {
    padding-top: 12vh;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.info {
    font-size: 1rem;
    line-height: 2;
}

.info p {
    margin-bottom: 0.5rem;
}

/* CV page */
.cv-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.cv-page .container {
    max-width: 640px;
}

.cv-header {
    margin-bottom: 1.5rem;
}

.cv-header h1 {
    margin-bottom: 0.75rem;
}

.cv-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cv-social a {
    color: #333;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cv-social img,
.cv-social svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    display: block;
    object-fit: contain;
}

.cv-social a:hover {
    opacity: 0.7;
}

/* Hidden on screen; visible in print / PDF (WeasyPrint uses print styles) */
.cv-contact-print-only {
    display: none;
}

.cv-lead {
    margin-bottom: 1.25rem;
}

.cv-lead p + p {
    margin-top: 0.75rem;
}

.cv-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.cv-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.cv-content p {
    margin-bottom: 0.75rem;
}

.cv-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.cv-content li {
    margin-bottom: 0.35rem;
}

.cv-content a {
    color: #333;
}

.cv-content .muted {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

/* WeasyPrint / PDF export (scripts/build-cv-pdf.py) */
@media print {
    body {
        padding: 0;
        font-size: 11pt;
    }

    /* PDF: text links only — icons are for the web view (avoids duplicate row in WeasyPrint) */
    .cv-social {
        display: none;
    }

    .cv-contact-print-only {
        display: block;
        margin: 0 0 1.25rem;
        font-size: 10pt;
        line-height: 1.5;
    }

    .site-nav {
        display: none;
    }

    .cv-page {
        padding-top: 0;
        padding-bottom: 0;
    }

    .container {
        max-width: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

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