/* About-page-only rules. Shared layout primitives live in ../site.css. */
.about-page .site-header {
    border-bottom: 0;
}

.about-resume {
    padding: 24px 0 150px;
}

/* Title: page name above the hero */

.about-title {
    margin-bottom: 38px;
}

.about-title h1 {
    margin: 0;
    font-size: clamp(4rem, 5vw, 5rem);
    font-weight: 600;
    line-height: .9;
}

/* Hero: bio, links and portrait */

.about-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gutter);
    align-items: start;
    margin-bottom: 84px;
}

.about-hero__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.about-hero__label {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.about-hero__bio {
    max-width: 600px;
    margin: 0 0 100px;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
}

.about-hero__portrait {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
}

/* Action links */

.about-resume__actions {
    display: flex;
    gap: var(--grid-gutter);
    margin-top: auto;
}

.about-works-link {
    --link-min-width: 180px;
    --link-gap: 10px;
    --link-padding-inline: 24px;

    margin-top: 80px;
}

/* Resume columns */

.about-resume__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    align-items: start;
}

.resume-section h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.resume-entry {
    padding: 40px 0 40px;
    border-bottom: 1px solid var(--line);
}

.resume-entry:first-of-type {
    padding-top: 32px;
}

.resume-entry__title,
.resume-credential h3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.resume-entry__title span:last-child,
.resume-credential h3 span:last-child {
    flex-shrink: 0;
    font-size: 18px;
}

.resume-entry__title {
    margin-bottom: 16px;
}

.resume-entry h4,
.resume-entry p,
.resume-entry ul {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.resume-entry h4 {
    font-weight: 500;
}

.resume-entry p,
.resume-entry ul {
    font-weight: 300;
}

.resume-entry p+h4,
.resume-entry p+p,
.resume-entry p+ul {
    margin-top: 10px;
}

.resume-entry ul {
    padding-left: 24px;
}

.resume-entry li::marker {
    font-size: 12px;
}

.resume-entry__link {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 180ms ease;
}

.resume-entry__link:hover {
    opacity: .55;
}

.resume-skills {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.resume-skills+.resume-skills {
    padding-top: 55px;
}

.resume-skills ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 300;
    line-height: 29px;
}

.resume-credentials {
    padding-top: 75px;
}

.resume-credentials+.resume-credentials {
    padding-top: 110px;
}

.resume-credentials h2 {
    margin-bottom: 38px;
}

.resume-credential {
    padding: 38px 0 37px;
    border-bottom: 1px solid var(--line);
}

.resume-credential:first-of-type {
    padding-top: 0;
}

.resume-credential p {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .about-resume {
        padding-top: 45px;
        padding-bottom: 110px;
    }

    .about-hero,
    .about-resume__columns {
        grid-template-columns: 1fr;
    }

    .about-hero {
        row-gap: 48px;
        margin-bottom: 64px;
    }

    .about-title {
        margin-bottom: 32px;
    }

    .about-title h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .about-hero__label {
        margin-bottom: 24px;
    }

    .about-hero__bio {
        margin-bottom: 40px;
        font-size: 16px;
    }

    .about-resume__actions a {
        min-width: 0;
        flex: 1;
    }

    .about-resume__columns {
        row-gap: 64px;
    }

    .resume-section h2 {
        font-size: 24px;
    }

    .resume-entry {
        padding: 32px 0;
    }

    .resume-entry__title,
    .resume-credential h3 {
        font-size: 17px;
    }

    .resume-entry__title span:last-child,
    .resume-credential h3 span:last-child {
        font-size: 14px;
    }

    .about-works-link {
        margin-top: 48px;
    }

    .resume-skills+.resume-skills,
    .resume-credentials {
        padding-top: 40px;
    }

    .resume-skills {
        padding-bottom: 40px;
    }

    .resume-credentials+.resume-credentials {
        padding-top: 64px;
    }

    .resume-credential {
        padding: 28px 0;
    }
}

@media print {
    .about-page {
        background: #fff;
    }

    .about-page .site-header,
    .about-page .about-resume__actions,
    .about-page .about-works-link,
    .about-page .site-footer {
        display: none;
    }

    .about-page .about-resume {
        width: auto;
        padding: 0;
    }
}