:root {
    --author-surface: #fff;
    --author-surface-soft: #fafafa;
    --author-border: #e4e7eb;
    --author-border-strong: #d7dce2;
    --author-text: #20252b;
    --author-text-soft: #606873;
    --author-heading: #171b20;
    --author-accent: #d51410;
    --author-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    --author-radius: 12px
}

.author-profile {
    width: min(100% - 32px, 1100px);
    margin: 48px auto 64px;
    padding: 0;
    color: var(--author-text);
    font-family: inherit;
    background: transparent
}

.author-profile__header {
    position: relative;
    padding: 36px 40px;
    background: var(--author-surface);
    border: 1px solid var(--author-border);
    border-radius: var(--author-radius);
    box-shadow: var(--author-shadow)
}

.author-profile__identity {
    display: flex;
    align-items: center;
    gap: 28px
}

.author-profile__image-link {
    flex: 0 0 auto;
    display: block;
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 50%;
    background: #eef1f3;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px var(--author-border-strong), 0 8px 22px rgba(0, 0, 0, .1);
    transition: transform .2s ease, box-shadow .2s ease
}

.author-profile__image-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--author-border-strong), 0 12px 28px rgba(0, 0, 0, .14)
}

.author-profile__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.author-profile__label {
    margin: 0 0 8px;
    color: var(--author-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.author-profile__title {
    margin: 0;
    color: var(--author-heading);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.15;
    font-weight: 750
}

.author-profile__role {
    margin: 12px 0 0;
    color: var(--author-text-soft);
    font-size: 1.05rem;
    line-height: 1.55
}

.author-profile__body {
    display: grid;
    gap: 20px;
    margin-top: 24px
}

.author-profile__bio-section,
.author-profile__expertise,
.author-profile__methodology,
.author-profile__content {
    padding: 30px 34px;
    background: var(--author-surface);
    border: 1px solid var(--author-border);
    border-radius: var(--author-radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .035)
}

.author-profile__body h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--author-heading);
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700
}

.author-profile__body h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--author-accent)
}

.author-profile__bio {
    margin: 0;
    color: var(--author-text-soft);
    font-size: 1rem;
    line-height: 1.8
}

.author-profile__expertise-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none
}

.author-profile__expertise-list li {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    background: var(--author-surface-soft);
    border: 1px solid var(--author-border);
    border-radius: 9px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease
}

.author-profile__expertise-list li:hover {
    transform: translateY(-2px);
    border-color: var(--author-border-strong);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .05)
}

.author-profile__expertise-list strong {
    color: var(--author-heading);
    font-size: .98rem;
    line-height: 1.4
}

.author-profile__expertise-list span {
    color: var(--author-text-soft);
    font-size: .9rem;
    line-height: 1.65
}

.author-profile__methodology {
    background: #f9fafb
}

.author-profile__methodology p {
    margin: 0 0 14px;
    color: var(--author-text-soft);
    font-size: .95rem;
    line-height: 1.75
}

.author-profile__methodology p:last-of-type {
    margin-bottom: 20px
}

.author-profile__content {
    position: relative;
    overflow: hidden
}

.author-profile__content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--author-accent)
}

.author-profile__content p {
    margin: 0 0 20px;
    color: var(--author-text-soft);
    font-size: .97rem;
    line-height: 1.7
}

.author-profile__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    color: #fff;
    background: var(--author-accent);
    border-color: var(--author-accent);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 7px;
    margin-left: auto;
    max-width: 250px
}

.author-profile__link:hover {
    color: #fff;
    background: var(--author-accent);
    border-color: var(--author-accent);
    transform: translateY(-1px)
}

.author-profile__link--linkedin {
    gap: 8px
}

.author-profile__link--linkedin svg {
    flex: 0 0 auto
}

.author-profile a:focus-visible {
    outline: 3px solid rgba(31, 79, 111, .25);
    outline-offset: 3px
}

@media (max-width:800px) {
    .author-profile {
        width: min(100% - 24px, 1100px);
        margin-top: 32px;
        margin-bottom: 48px
    }

    .author-profile__header {
        padding: 30px
    }

    .author-profile__identity {
        gap: 22px
    }

    .author-profile__image-link {
        width: 130px;
        height: 130px
    }

    .author-profile__expertise-list {
        grid-template-columns: 1fr
    }
}

@media (max-width:560px) {
    .author-profile {
        width: calc(100% - 20px);
        margin-top: 20px;
        margin-bottom: 32px
    }

    .author-profile__header {
        padding: 24px 20px
    }

    .author-profile__identity {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .author-profile__image-link {
        width: 130px;
        height: 130px
    }

    .author-profile__label {
        margin-bottom: 6px
    }

    .author-profile__title {
        font-size: 1.65rem
    }

    .author-profile__role {
        font-size: .95rem
    }

    .author-profile__bio-section,
    .author-profile__expertise,
    .author-profile__methodology,
    .author-profile__content {
        padding: 24px 20px
    }

    .author-profile__body h3 {
        font-size: 1.2rem
    }

    .author-profile__expertise-list {
        grid-template-columns: 1fr
    }

    .author-profile__expertise-list li {
        padding: 17px
    }

    .author-profile__link {
        width: -webkit-fill-available;
        justify-content: center;
        text-align: center
    }
}

@media (prefers-reduced-motion:reduce) {

    .author-profile__image-link,
    .author-profile__expertise-list li,
    .author-profile__link {
        transition: none
    }
}