/* cv.css – extends site.css */

/* ── Name ── */
main > h1:first-of-type {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: 0.01em;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.3rem;
}

main > p:first-of-type {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0;
}

/* ── Portrait ── */
.friend-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.friend-card img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-hi);
    filter: grayscale(20%);
    display: block;
}

/* ── "Curriculum Vitae" gradient header ── */
h1.cv-main-header {
    font-family: 'Syne', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e8e8ea 60%, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* ── Year labels ── */
p.cv-year {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e8e8ea 50%, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2.2rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
    border-left: none;
}

/* ── CV Block: one position grouped ── */
.cv-block {
    border-left: 2px solid var(--border);
    padding: 0.7rem 0 0.7rem 1.2rem;
    margin-bottom: 0.3rem;
    transition: border-color 0.2s;
}

.cv-block:hover {
    border-left-color: var(--accent);
}

/* Reset default p styles inside blocks */
.cv-block p {
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

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

/* Job title — bold, bright, hover accent */
p.cv-jobtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
    transition: color 0.2s;
}

.cv-block:hover p.cv-jobtitle {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    font-weight: 600;
}

/* Institution — readable, slightly smaller than jobtitle */
p.cv-institution {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--dim);
    letter-spacing: 0.01em;
}

/* Detail lines (dissertation title, defense date) */
p.cv-detail {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    color: var(--dim);
    font-style: italic;
    margin-top: 0.3rem;
}

/* ── Section heading (Education) ── */
p.cv-section {
    font-family: 'Syne', sans-serif;
    font-weight: 300;
    font-size: clamp(1.0rem, 2vw, 1.3rem);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e8e8ea 60%, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 0;
    border-left: none;
    margin-bottom: 0.8rem;
}

/* ── Degree list ── */
.cv-block--degrees {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-left-color: var(--accent) !important;
}

p.cv-degree {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    color: var(--dim);
    transition: color 0.2s;
    padding: 0.15rem 0;
    border-radius: 2px;
}

p.cv-degree:hover {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

/* ── Spacer ── */
.cv-spacer { height: 2rem; }

/* ── Dissertation link ── */
a.cv-diss-link {
    text-decoration: none;
    display: block;
}

a.cv-diss-link p.cv-detail {
    transition: color 0.2s;
}

a.cv-diss-link:hover p.cv-detail {
    color: var(--accent);
    font-style: italic;
}
