body,
#contenido,
.artist-profile {
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
}

#contenido,
.artist-profile,
.artist-profile__works,
.artist-profile__hero--missing {
    flex: 1;
}

.artist-profile__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(1.35rem, 3vw, 2.6rem) clamp(2.5rem, 5.7vw, 5.4rem);
    background: var(--ink);
    color: var(--paper);
}

.artist-profile__hero-ink {
    right: -75px;
    top: -65px;
    width: min(58vw, 490px);
    height: auto;
    aspect-ratio: 1;
    color: var(--orange);
    opacity: .73;
    z-index: -1;
}

.artist-profile__back {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 44px;
    margin-bottom: 1.15rem;
    color: var(--yellow);
    font-weight: 800;
    text-underline-offset: .27em;
}

.artist-profile__sheet.artist-sheet {
    --sheet-color: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 29%) minmax(0, 1fr);
    gap: clamp(1.45rem, 4.8vw, 4.25rem);
    padding: clamp(1.15rem, 3.4vw, 3rem);
}

.artist-profile__sheet .artist-portrait {
    grid-row: auto;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
}

.artist-profile__sheet .artist-portrait img {
    min-height: 0;
}

.artist-profile__sheet .artist-portrait strong {
    font-size: clamp(3rem, 10vw, 8.25rem);
}

.artist-profile__label {
    display: table;
    margin-bottom: .65rem;
    padding: .35em .8em;
    background: var(--yellow);
    color: var(--ink);
}

.artist-profile__copy h1 {
    font-size: clamp(2rem, 6.2vw, 6rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.artist-profile__copy .artist-specialty {
    font-size: .85rem;
    line-height: 1.45;
}

.artist-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .75rem 0;
    padding: 0;
    list-style: none;
}

.artist-profile__tags li {
    padding: .2rem .6rem;
    background: var(--yellow);
    font-size: .76rem;
    font-weight: 800;
}

.artist-profile__bio {
    max-width: 66ch;
    font-size: 1rem;
    line-height: 1.6;
}

.artist-profile__book,
.artist-profile__missing .btn {
    min-height: 44px;
    margin-top: 1.1rem;
}

.artist-profile__works {
    overflow: visible;
    padding-block: clamp(2.6rem, 5vw, 4.65rem);
}

.artist-profile__works::before {
    content: "";
    position: absolute;
    inset: -14px 0 auto;
    height: 15px;
    background: var(--paper);
    clip-path: polygon(0 46%, 6% 20%, 11% 41%, 16% 18%, 21% 33%, 27% 9%, 32% 38%, 39% 22%, 44% 45%, 50% 14%, 56% 31%, 61% 0, 68% 31%, 73% 11%, 79% 37%, 86% 19%, 92% 40%, 97% 21%, 100% 32%, 100% 100%, 0 100%);
    pointer-events: none;
}

.artist-profile {
    overflow: hidden;
}

.artist-profile__work-tape {
    top: -12px;
    left: 15%;
}

.artist-profile__gallery .work-card:nth-child(even) .artist-profile__work-tape {
    left: auto;
    right: 15%;
    background-color: #efa5b3bf;
    transform: rotate(8deg);
}

.artist-profile__empty h3 {
    overflow-wrap: anywhere;
}

.artist-profile__hero--missing {
    display: grid;
    align-items: center;
    padding-block: 4rem;
}

.artist-profile__missing.artist-sheet {
    --sheet-color: var(--white);
    display: block;
    max-width: 740px;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.artist-profile__missing h1 {
    font-size: clamp(1.9rem, 5vw, 4rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .artist-profile__sheet.artist-sheet {
        grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
    }
}

@media (max-width: 580px) {
    .artist-profile__hero {
        padding-bottom: 3.65rem;
    }

    .artist-profile__sheet.artist-sheet {
        grid-template-columns: minmax(0, 1fr);
    }

    .artist-profile__sheet .artist-portrait {
        aspect-ratio: 4 / 3;
    }

    .artist-profile__sheet .artist-portrait strong {
        font-size: clamp(4rem, 20vw, 6rem);
    }

    .artist-profile__sheet.paper .tape.tape--artist-corner {
        bottom: -31px;
    }

    .artist-profile__book,
    .artist-profile__missing .btn {
        width: 100%;
    }

    .artist-profile__empty .archive-art {
        margin-top: 0;
    }
}
