/* ─────────────────────────────────────────────────
   ABOUT PAGE — overrides for pages.css
   Scoped to .about-page so nothing bleeds out
───────────────────────────────────────────────── */

/* ── Intro: centered headline + portrait ── */
.about-page .about-intro {
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.about-page .about-intro h1 {
    text-align: center;
    max-width: 18ch;
    font-size: clamp(1.75rem, 7.5vw, 3.2rem);
}

/* ── Portrait: nearly square, large radius ── */
.about-page .about-portrait {
    width: clamp(14rem, 70vw, 18rem);
    aspect-ratio: 1 / 1.04;
    border-radius: 1.65rem;
    align-self: center;
}

/* ── Small bio text block (below portrait) ── */
.about-bio-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;

    & .about-bio-sub-heading {
        font-family: var(--font-ui);
        font-size: clamp(0.875rem, 2.2vw, 1.125rem);
        font-weight: 600;
        line-height: 1.3;
        color: var(--color-fg);
    }

    & p:not(.about-bio-sub-heading) {
        font-family: var(--font-ui);
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
        line-height: 1.5;
        color: var(--color-fg);
    }

    @media (min-width: 48rem) {
        max-width: 36rem;
        margin-inline: auto;
    }
}


/* ── Bio rows: large stacked on mobile, two-column on desktop ── */
.about-page .about-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    grid-template-columns: unset;
}

.about-page .about-row .about-row-label {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 5.8vw, 1.5rem);
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-fg);
    letter-spacing: 0.04em;
    padding-top: 0;
}

.about-page .about-row p:last-child {
    font-family: var(--font-ui);
    font-size: clamp(0.9375rem, 4.5vw, 1.2rem);
    line-height: 1.45;
    max-width: unset;
    color: var(--color-fg);
}

@media (min-width: 48rem) {
    .about-page .about-row {
        display: grid;
        flex-direction: unset;
        grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
        padding: 1.5rem 0;
    }

    .about-page .about-row .about-row-label {
        font-size: clamp(0.75rem, 1vw, 1rem);
        text-align: left;
    }

    .about-page .about-row p:last-child {
        font-size: clamp(0.875rem, 1.1vw, 1rem);
        line-height: 1.5;
        max-width: 44rem;
    }
}


/* ── Experience: centered heading ── */
.about-page .about-experience {
    text-align: center;
}

.about-page .about-experience hgroup {
    align-items: center;
    margin-bottom: 0.55rem;
}

/* "Looking for Work" pill */
.looking-for-work {
    display: inline-block;
    background: #e79eff;
    color: #000;
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Vertical stack of pill cards on mobile */
.about-page .experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: visible;
    scrollbar-width: unset;
    scroll-snap-type: unset;
}

.about-page .experience-card {
    flex: unset;
    min-width: unset;
    width: 100%;
    scroll-snap-align: unset;
    background: #ececec;
    border-radius: 3.125rem;
    padding: 2.75rem 1rem;
    min-height: unset;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-page .experience-card .experience-role {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 4vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.about-page .experience-card .experience-meta {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 3.2vw, 1.25rem);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #000;
    line-height: 1.2;
}

.about-page .experience-card .experience-date {
    font-family: var(--font-ui);
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    color: rgba(0, 0, 0, 0.6);
    letter-spacing: 0;
    margin-top: 0;
    line-height: 1.3;
}

/* On desktop: 4-column horizontal row */
@media (min-width: 48rem) {
    .about-page .experience-list {
        flex-direction: row;
        gap: 0.75rem;
    }

    .about-page .experience-card {
        flex: 1 1 0;
        padding: 3rem 1.25rem;
        border-radius: 3.125rem;
    }

    .about-page .experience-card .experience-role {
        font-size: clamp(1.25rem, 1.8vw, 1.5625rem);
    }

    .about-page .experience-card .experience-meta {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }

    .about-page .experience-card .experience-date {
        font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    }
}

/* Resume button */
.about-page .about-resume-button {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    padding: 0.65rem 1.75rem;
    min-height: 2.75rem;
    border-radius: 999px;
}


/* ── Life / Outside of Design: centered heading, scroll gallery ── */
.about-page .about-life {
    text-align: center;
}

.about-page .about-life hgroup {
    margin-bottom: 1rem;
    text-align: center;
}

/* 4-photo horizontal scroll */
.about-page .about-life-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
    grid-template-columns: unset;

    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
}

.about-page .about-life-gallery li {
    flex: 0 0 clamp(11rem, 28vw, 18rem);
    width: clamp(11rem, 28vw, 18rem);
    aspect-ratio: 1 / 1.04;
    border-radius: 1.5rem;
    overflow: hidden;
    scroll-snap-align: start;
    background: #d5d5d5;
}

.about-page .about-life-gallery li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 48rem) {
    .about-page .about-life-gallery li {
        flex: 0 0 clamp(14rem, 22vw, 20rem);
        width: clamp(14rem, 22vw, 20rem);
        aspect-ratio: 1 / 1.04;
        border-radius: 1.5rem;
    }
}
