/*
 * CV page screen styles, layered on /css/site.css. The document
 * layout: static header, contact line, then sections built from
 * cv.json by render.js.
 */

.cv-page {
    max-width: 52rem;
}

.cv-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.cv-top a {
    color: var(--muted);
    text-decoration: none;
}

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

.cv-pdf {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.45rem 0.8rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.cv-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: clamp(1rem, 4vh, 2rem) 0 0.4rem;
}

.cv-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 1rem;
}

.cv-contact {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin: 1rem 0 0.9rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.cv-contact-link {
    color: var(--muted);
    text-decoration: none;
}

.cv-contact-link:hover {
    color: var(--accent);
}

.cv-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.noscript-note {
    border: 1px dashed var(--line);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.noscript-note p {
    margin: 0.25rem 0;
}

.cv-section {
    margin-top: 2.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

/* the contact line's border closes the header, so the first section
 * starts without its own rule and keeps the shared rhythm below it */
#cv-root .cv-section:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.cv-section h2 {
    margin: 0 0 1.1rem;
}

.cv-summary {
    margin: 0;
    font-size: 1.02rem;
}

.cv-job {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0 1.5rem;
    margin-bottom: 1.75rem;
}

.cv-when {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    padding-top: 0.35rem;
}

.cv-job-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.cv-company {
    color: var(--accent);
}

/* employer links: keep the orange, no underline; hover brightens */
.cv-company a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.cv-company a:hover,
.cv-company a:focus-visible {
    color: color-mix(in srgb, var(--accent) 30%, #ffb37a);
}

/* theme toggle in the top bar: reads like the other meta links */
.cv-theme-toggle {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cv-theme-toggle:hover {
    color: var(--accent);
}

.cv-job-location {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.cv-job-description {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    font-size: 0.95rem;
}

.cv-job-description::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--accent);
}

.cv-highlights li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.cv-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--accent);
}

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

.cv-project-name {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.cv-project-name a {
    text-decoration: none;
}

.cv-project-name a:hover {
    color: var(--accent);
}

.cv-project-description {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    max-width: 38rem;
}

.cv-project-tech {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.cv-edu {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.cv-edu-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.cv-edu-field,
.cv-edu-notes {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.cv-skills li {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.35rem;
}

@media (max-width: 40rem) {
    .cv-job,
    .cv-edu {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cv-when {
        padding-top: 0;
        margin-bottom: 0.2rem;
    }
}
