/* CV page — variables, layout, print (default: dark theme) */

:root {
    color-scheme: dark;
    --bg: #0f1114;
    --bg-elevated: #171a1f;
    --text: #eceae6;
    --muted: #9c9791;
    --accent: #7eb8e8;
    --accent-hover: #b3d9f7;
    --on-accent: #0c0e11;
    --border: #2c313a;
    --font-heading: "Roboto Condensed", "Arial Narrow", "Helvetica Condensed", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

h1,
h2,
h3,
.site-nav {
    font-family: var(--font-heading);
}

h2,
h3 {
    letter-spacing: 0.02em;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 17, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-header__inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem 1.25rem 1rem;
}

.hero {
    margin-bottom: 1rem;
}

.hero__name {
    margin: 0 0 0.25rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--muted);
}

.hero__location {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--muted);
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
    color: var(--accent);
}

main {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.section {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.section__inner {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow);
}

.section__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.prose {
    margin: 0 0 1rem;
}

.prose:last-child {
    margin-bottom: 0;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.job {
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border);
}

.job:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.job__heading {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.job__meta {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.job__toggle {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.job__toggle:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.job__toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.job__intro {
    margin-top: 0;
}

.job__bullets {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.job__bullets li {
    margin-bottom: 0.45rem;
}

.education__institution {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.education__degree,
.education__years {
    margin: 0 0 0.35rem;
    color: var(--muted);
}

.lang-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-list__item {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.lang-list__item:last-child {
    border-bottom: none;
}

.lang-list__sep {
    margin: 0 0.35rem;
    color: var(--muted);
}

.contact-line {
    margin: 0 0 0.65rem;
}

.contact-line__label {
    font-weight: 600;
    margin-right: 0.35rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    margin-top: 1rem;
}

.site-footer__inner {
    max-width: 52rem;
    margin: 0 auto;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

@media print {
    :root {
        color-scheme: light;
        --bg: #fff;
        --bg-elevated: #fff;
        --text: #000;
        --muted: #333;
        --border: #ccc;
        --accent: #000;
        --accent-hover: #000;
        --on-accent: #fff;
        --shadow: none;
    }

    body {
        font-size: 11pt;
        background: #fff;
    }

    .skip-link,
    .site-nav {
        display: none !important;
    }

    .site-header {
        position: static;
        border-bottom: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
        background: #fff;
    }

    main {
        max-width: none;
        padding: 0;
    }

    .section {
        padding: 1rem 0;
        border-bottom: none;
        break-inside: avoid;
    }

    .section__inner {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .job__toggle {
        display: none !important;
    }

    .job__panel {
        display: block !important;
    }

    .job__panel[hidden] {
        display: block !important;
    }

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

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #444;
    }

    a[href^="mailto:"]::after {
        content: "";
    }
}
