/* =========================================================================
   About
   ========================================================================= */

.about {
    padding-top: calc(var(--header-h) + 4.5rem);
}

/* --- Intro -------------------------------------------------------------- */

.about-intro {
    font-size: var(--fs-lede);
    line-height: 1.3;
}

.about-intro p {
    margin: 0;
}

.about-intro p + p {
    margin-top: 1.3em;
}

/* --- Resources accordion ------------------------------------------------ */

.about-resources {
    margin-top: 6.5rem;
}

.about-resources-title {
    margin: 0 0 0.75rem;
    font-size: var(--fs-body);
    font-weight: 500;
    text-transform: uppercase;
}

/* <details> gives the open/close behaviour, keyboard support and in-page
   find for free — no script needed. */
.resource {
    border-top: 1px solid var(--c-ink);
}

.resource:last-of-type {
    border-bottom: 1px solid var(--c-ink);
}

.resource-summary {
    display: flex;
    align-items: baseline;
    gap: 2.1rem;
    padding-block: 0.9rem;
    font-size: var(--fs-body);
    list-style: none;
    cursor: pointer;
}

.resource-summary::-webkit-details-marker {
    display: none;
}

.resource-summary:hover .resource-label {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.resource-marker {
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}

.resource[open] .resource-marker {
    transform: rotate(180deg);
}

.resource-body {
    padding: 0.5rem 0 2.5rem 6rem;
    max-width: 60rem;
    font-size: var(--fs-body);
    line-height: 1.35;
}

.resource-body p {
    margin: 0 0 1.5rem;
}

.resource-body p:last-child {
    margin-bottom: 0;
}

.resource-body a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    /* Long unbroken URLs must not widen the page. */
    overflow-wrap: anywhere;
}

/* --- Narrow ------------------------------------------------------------- */

@media (max-width: 900px) {
    .about {
        padding-top: calc(var(--header-h) + 2.5rem);
    }

    .about-resources {
        margin-top: 3.5rem;
    }

    .resource-summary {
        gap: 1.25rem;
    }

    .resource-body {
        padding-left: 2.5rem;
    }
}

@media (max-width: 640px) {
    .resource-body {
        padding-left: 0;
    }
}
