/* ==========================================================================
   cv.css
   Components for the CV page only. Tokens, reset, header, footer and the
   editorial furniture come from site.css — load that FIRST.

   Was dark-styles.css, paired with a light styles.css and a toggle. The site
   is dark only now (the front page is a black WebGL scene and cannot be
   otherwise), so there is one stylesheet and the name no longer has to
   qualify itself.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

header.cv-header { padding: 5rem 0 2.5rem; }

.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* Matches the apps section's headline: big, tight, negative-tracked. The CV
   used to run 1.5rem here, which read as a document heading rather than as the
   top of a page. */
h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.title {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 300;
    margin-top: 0.75rem;
}

.email { font-size: 1rem; margin-top: 0.9rem; }
.email a[href^="mailto:"] { color: var(--text-muted); text-decoration: none; }
.email a[href^="mailto:"]:hover { color: var(--text); }

.social-link {
    display: inline-block;
    color: var(--text-muted);
    transition: color 0.2s ease;
    margin-top: 1.1rem;
}
.social-link:hover { color: var(--text); }

a[href^="mailto:"] { color: var(--text-muted); text-decoration: none; }
a[href^="mailto:"]:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.bio {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Jobs
   -------------------------------------------------------------------------- */

.job { margin-top: 2.25rem; }

.job-header {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.job-title { font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.job-title a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.job-title a:hover { color: var(--text); }

.external-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}
.job-title:hover .external-link { transform: translateX(2px) translateY(-2px); }

.job-location { color: var(--text-muted); font-size: 0.9rem; }
.job-description { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 820px) {
    header.cv-header { padding: 2.5rem 0 2rem; }
    h1 { font-size: 2.2rem; }
    .title { font-size: 1.05rem; }
    .bio { font-size: 1.05rem; }
    .section-heading { font-size: 1.6rem; }
    .profile-img { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .external-link, .social-link { transition: none; }
    .job-title:hover .external-link { transform: none; }
}
