.academy-course-profile,
.acp-project {
    --acp-surface: #161517;
    --acp-panel: #1b191b;
    --acp-line: #3d3431;
    --acp-ink: #faf6f0;
    --acp-muted: #d4cac3;
    --acp-accent: #ff975f;
}

.academy-course-profile {
    padding-block: clamp(20px, 4vw, 54px) 64px;
    color: var(--acp-ink);
}

.academy-course-profile section[id],
.acp-project {
    scroll-margin-top: 116px;
}

.acp-back {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--acp-accent);
    font-size: 14px;
    font-weight: 700;
}

.acp-hero,
.acp-project {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 42px);
    align-items: center;
    padding: clamp(18px, 3.2vw, 38px);
    border: 1px solid var(--acp-line);
    border-radius: 8px;
    background: var(--acp-surface);
}

.acp-hero {
    border-left: 2px solid #ff6418;
    background: radial-gradient(ellipse at top right, #2c1e16, #161517 64%);
}

.acp-hero h1 {
    margin: 0 0 13px;
    font: 800 clamp(29px, 4vw, 55px)/1.1 'Manrope', sans-serif;
    letter-spacing: -.038em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.acp-lead,
.acp-profile-section p,
.acp-project p,
.acp-project li,
.acp-enquire p {
    color: var(--acp-muted);
    font-size: 16px;
    line-height: 1.65;
}

.acp-lead {
    max-width: 59ch;
    margin: 0 0 10px;
    font-size: clamp(16px, 1.6vw, 18px);
}

.acp-cover {
    width: 100%;
    max-width: 372px;
    height: auto;
    justify-self: end;
    border: 1px solid var(--acp-line);
    border-radius: 5px;
}

.acp-actions,
.acp-nav,
.acp-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acp-actions {
    margin-top: 16px;
}

.acp-actions .button,
.acp-enquire .button {
    min-height: 44px;
    padding: 12px 15px;
}

.acp-nav {
    margin: 16px 0 32px;
}

.acp-nav a {
    padding: 7px 10px;
    border: 1px solid var(--acp-line);
    border-radius: 4px;
    color: var(--acp-muted);
    font-size: 14px;
}

.acp-nav a:hover {
    border-color: var(--acp-accent);
}

.acp-profile-section,
.acp-project {
    margin: 0 0 clamp(26px, 4vw, 42px);
}

.acp-audience {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-block: 1px solid var(--acp-line);
}

.acp-profile-section h2,
.acp-project h2,
.acp-enquire h2 {
    margin: 0 0 9px;
    color: var(--acp-ink);
    font: 800 clamp(23px, 2.5vw, 32px)/1.25 'Manrope', sans-serif;
    letter-spacing: -.025em;
}

.acp-profile-section h3,
.acp-project h3 {
    margin: 0 0 8px;
    color: var(--acp-ink);
    font-size: 18px;
    line-height: 1.4;
}

.acp-skills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.acp-skills li,
.acp-answer {
    padding: 14px 16px;
    border: 1px solid var(--acp-line);
    border-radius: 6px;
    background: var(--acp-panel);
    color: var(--acp-muted);
    line-height: 1.6;
}

.acp-project {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.acp-project-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 5px;
}

.acp-project .acp-project-label {
    margin: 0 0 6px;
    color: var(--acp-accent);
    font-size: 13px;
    font-weight: 750;
}

.acp-project h3 {
    margin-top: 15px;
}

.acp-project ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.dm-reading .acp-project {
    --acp-surface: #fff;
    --acp-line: #dfdad0;
    --acp-ink: #20221e;
    --acp-muted: #414641;
    --acp-accent: #a13e16;
    padding: clamp(16px, 2.6vw, 28px);
}

.dm-reading .acp-project > div h2 {
    margin-bottom: 10px;
}

.acp-answer + .acp-answer {
    margin-top: 8px;
}

.acp-answer summary {
    color: var(--acp-ink);
    font-weight: 700;
    cursor: pointer;
}

.acp-answer p,
.acp-outline .prose {
    margin-top: 10px;
}

.acp-enquire {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-left: 2px solid #ff6418;
    background: var(--acp-surface);
}

.acp-share {
    gap: 15px;
    margin-top: 18px;
    font-size: 13px;
}

.academy-course-profile :is(a, button, summary):focus-visible {
    outline: 2px solid var(--acp-accent);
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .acp-skills {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .acp-hero,
    .acp-project,
    .acp-audience {
        grid-template-columns: minmax(0, 1fr);
    }

    .acp-cover {
        justify-self: start;
    }
}
