/* ===== Be an author (on top of about.css) ===== */

/* Hero art: a sheet of paper with a pen */
.ba-paper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 230px;
    padding: 28px 24px 40px;
    border: 1px solid var(--ab-border);
    border-radius: 20px;
    background: var(--ab-surface);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--ab-accent) 20%, transparent);
    transform: rotate(-4deg);
}

.ba-paper-line {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ab-text) 10%, transparent);
}

.ba-paper-line--title {
    width: 70%;
    height: 14px;
    background: linear-gradient(90deg, var(--ab-accent), #db2777);
}

.ba-paper-line--short {
    width: 55%;
}

.ba-paper-code {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1e1b2e;
    color: #a5f3fc;
    font-family: monospace;
    font-size: 14px;
}

.ba-paper-pen {
    position: absolute;
    bottom: -14px;
    left: -14px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ab-accent), #db2777);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.3);
    animation: ab-float 4s ease-in-out infinite;
}

/* Topics */
.ba-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ba-topics li {
    margin: 0;
}

.ba-topics a,
.ba-topics li > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--ab-border);
    border-radius: 999px;
    background: var(--ab-surface);
    color: var(--ab-text);
    font-size: 15px;
    font-weight: 700;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ab-area .ba-topics a {
    color: var(--ab-text);
}

.ba-topics a:hover {
    border-color: var(--ab-accent);
    transform: translateY(-2px);
}

/* Steps: four in a row on wide screens */
@media (min-width: 1200px) {
    .ba-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* FAQ */
.ba-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ba-faq details {
    border: 1px solid var(--ab-border);
    border-radius: 16px;
    background: var(--ab-surface);
}

.ba-faq summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: var(--ab-text);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

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

.ba-faq summary::after {
    content: '+';
    margin-right: auto;
    color: var(--ab-accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ba-faq details[open] summary::after {
    transform: rotate(45deg);
}

.ba-faq summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ab-accent) 45%, transparent);
    outline-offset: 2px;
    border-radius: 16px;
}

.ab-area .ba-faq p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 2;
}

.ba-join-note {
    flex: 0 1 auto;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.ab-area .ba-join-note a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ba-paper-pen {
        animation: none;
    }

    .ba-topics a,
    .ba-faq summary::after {
        transition: none;
    }

    .ba-topics a:hover {
        transform: none;
    }
}
