/* ==========================================================
   PAGE HERO EDITORIAL BASE
========================================================== */

.subhero-editorial {
    --subhero-accent: rgba(242, 154, 58, .9);

    --subhero-title-start: 2;
    --subhero-title-span: 7;
    --subhero-title-y: 0rem;
    --subhero-title-x: 0rem;
    --subhero-title-rotation: -2deg;

    --subhero-text-start: 3;
    --subhero-text-span: 5;
    --subhero-text-y: 11rem;
    --subhero-text-x: 1rem;
    --subhero-text-rotation: 1.5deg;

    --subhero-artwork-start: 8;
    --subhero-artwork-span: 3;
    --subhero-artwork-y: 3.5rem;
    --subhero-artwork-x: .75rem;
    --subhero-artwork-rotation: -5deg;

    --subhero-width: min(100%, 1120px);

    width: min(100% - 2rem, var(--container-content));
    margin-inline: auto;

    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.subhero-card {
    position: relative;

    border-radius: 1.5rem;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.subhero-card--title {
    grid-column: var(--subhero-title-start) / span var(--subhero-title-span);
    grid-row: 1;

    z-index: 3;

    margin-top: var(--subhero-title-y);
    margin-left: var(--subhero-title-x);
    max-width: 760px;

    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.4rem, 3vw, 2.2rem);

    background: var(--subhero-accent);

    transform: rotate(var(--subhero-title-rotation));
}

.subhero-card--title h1 {
    margin: 0;

    color: var(--wp--preset--color--base);

    font-size: clamp(2.6rem, 4.2vw, 4.4rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -.03em;

    text-wrap: balance;
}

.subhero-card--text {
    grid-column: var(--subhero-text-start) / span var(--subhero-text-span);
    grid-row: 1;

    z-index: 2;

    margin-top: var(--subhero-text-y);
    margin-left: var(--subhero-text-x);
    max-width: 34rem;

    padding: 1.15rem 1.4rem;

    background: rgba(255, 255, 255, .9);

    transform: rotate(var(--subhero-text-rotation));
}

.subhero-card--text p {
    margin: 0;

    color: var(--text-strong);

    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    line-height: 1.45;
    font-weight: 600;

    text-wrap: pretty;
}

.subhero-card--artwork {
    grid-column: var(--subhero-artwork-start) / span var(--subhero-artwork-span);
    grid-row: 1;

    z-index: 4;

    margin-top: var(--subhero-artwork-y);
    margin-left: var(--subhero-artwork-x);

    padding: .5rem;

    background: rgba(255, 255, 255, .88);

    transform: rotate(var(--subhero-artwork-rotation));
}

.subhero-card--artwork figure {
    margin: 0 !important;
}

.subhero-card--artwork img {
    display: block;

    width: clamp(180px, 18vw, 280px);
    height: auto;

    object-fit: contain;
}

@media (max-width: 900px) {
    .subhero-editorial {
        width: min(100% - 2rem, 420px);
        min-height: auto;

        display: flex;
        flex-direction: column;
        gap: 1rem;

        padding-block: 2rem;
    }

    .subhero-card--title,
    .subhero-card--text,
    .subhero-card--artwork {
        width: 100%;

        margin: 0;

        transform: none;
    }

    .subhero-card--title h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .subhero-card--artwork img {
        width: min(100%, 260px);
        margin-inline: auto;
    }
}

/* ==========================================================
   LANDING PAGE HERO
========================================================== */

.subhero-size-hero {
    --subhero-accent: rgba(244, 164, 74, .84);
    --subhero-title-start: 3;
    --subhero-title-span: 6;
    --subhero-title-rotation: 1.5deg;
    --subhero-text-start: 3;
    --subhero-text-span: 7;
    --subhero-text-y: 19.5rem;
    --subhero-text-x: .5rem;
    --subhero-text-rotation: 4deg;
    --subhero-artwork-start: 10;
    --subhero-artwork-span: 3;
    --subhero-artwork-y: 1rem;
    --subhero-artwork-x: -2rem;
    --subhero-artwork-rotation: -9deg;
    padding-top: clamp(2rem, 3vw, 3.5rem);
    padding-bottom: 0;
}

.subhero-size-hero .subhero-editorial__stage {
    min-height: clamp(500px, 40vw, 550px);
}

.subhero-size-hero .subhero-card--title {
    max-width: 500px;
    box-shadow: 0 18px 36px rgba(120, 80, 30, .14), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.subhero-size-hero .subhero-card--title h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.subhero-size-hero .subhero-card--text {
    width: 100%;
    max-width: 580px;
}

.subhero-size-hero .subhero-card--text p {
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.35;
    font-weight: 600;
    text-wrap: pretty;
}

.subhero-size-hero .subhero-card--artwork {
    background: rgba(255, 255, 255, .60);
    box-shadow: 0 14px 34px rgba(90, 60, 20, .14), 0 4px 10px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.subhero-size-hero .subhero-card--artwork img {
    width: clamp(240px, 21vw, 310px);
    transform: scale(1.08);
}

/* ==========================================================
   PAGE HERO EDITORIAL VARIANTEN
========================================================== */

.subhero-editorial.is-style-subhero-reading {
    --subhero-accent: rgba(242, 154, 58, .9);

    --subhero-title-start: 2;
    --subhero-title-span: 7;
    --subhero-title-rotation: -3deg;

    --subhero-text-start: 3;
    --subhero-text-span: 5;
    --subhero-text-y: 12.5rem;
    --subhero-text-x: 1rem;
    --subhero-text-rotation: 1.5deg;

    --subhero-artwork-start: 8;
    --subhero-artwork-y: 3.75rem;
    --subhero-artwork-x: 3.5rem;
    --subhero-artwork-rotation: 5deg;
}

.subhero-editorial.is-style-subhero-audio {
    --subhero-accent: rgba(94, 110, 176, .9);

    --subhero-title-start: 3;
    --subhero-title-span: 7;
    --subhero-title-rotation: 2deg;

    --subhero-text-start: 4;
    --subhero-text-span: 4;
    --subhero-text-y: 11.75rem;
    --subhero-text-x: -1rem;
    --subhero-text-rotation: -1deg;

    --subhero-artwork-start: 9;
    --subhero-artwork-span: 3;
    --subhero-artwork-y: 4.5rem;
    --subhero-artwork-x: 3.25rem;
    --subhero-artwork-rotation: -4deg;
}

.subhero-editorial.is-style-subhero-artwork {
    --subhero-accent: rgba(142, 96, 168, .9);

    --subhero-title-start: 2;
    --subhero-title-span: 7;
    --subhero-title-rotation: -2deg;

    --subhero-text-start: 3;
    --subhero-text-span: 4;
    --subhero-text-y: 11.75rem;
    --subhero-text-x: .25rem;
    --subhero-text-rotation: 1deg;

    --subhero-artwork-start: 9;
    --subhero-artwork-y: 4.75rem;
    --subhero-artwork-x: -1.75rem;
    --subhero-artwork-rotation: -5deg;
}

.subhero-editorial.is-style-subhero-legal {
    --subhero-accent: rgba(85, 142, 136, .92);

    --subhero-title-start: 2;
    --subhero-title-span: 5;
    --subhero-title-rotation: -.5deg;

    --subhero-text-start: 3;
    --subhero-text-span: 5;
    --subhero-text-y: 8.5rem;
    --subhero-text-x: 1rem;
    --subhero-text-rotation: .5deg;

    min-height: clamp(320px, 30vw, 420px);
}

.subhero-editorial.is-style-subhero-legal .subhero-card--artwork {
    display: none;
}

/* ==========================================================
   PAGE HERO EDITORIAL ALIGNMENT
========================================================== */

.subhero-editorial__stage {
    width: var(--subhero-width);

    min-height: clamp(420px, 34vw, 500px);

    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.subhero-align-left .subhero-editorial__stage {
    margin-right: auto;
}

.subhero-align-center .subhero-editorial__stage {
    margin-inline: auto;
}

.subhero-align-right .subhero-editorial__stage {
    margin-left: auto;
}

/* ==========================================================
   SUBHERO MOBILE
========================================================== */

@media (max-width: 900px) {

    .subhero-editorial {
        width: min(100% - 2rem, 420px);

        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .subhero-editorial__stage {
        min-height: auto;

        display: flex;
        flex-direction: column;
        gap: .9rem;
    }

    .subhero-card--title,
    .subhero-card--text,
    .subhero-card--artwork {
        width: 100%;

        margin: 0;

        transform: none;
    }

    .subhero-card--title {
        padding: 1.1rem 1.25rem;
    }

    .subhero-card--title h1 {
        font-size: clamp(2.2rem, 11vw, 3.3rem);
        line-height: 1.08;
        font-weight: 700;
    }

    .subhero-card--text {
        padding: 1rem 1.15rem;
    }

    .subhero-card--text p {
        font-size: 1.08rem;
        line-height: 1.5;
    }

    .subhero-card--artwork {
        width: min(82vw, 300px);

        align-self: center;

        padding: .5rem;
    }

    .subhero-card--artwork img {
        width: 100%;
        max-height: 240px;

        margin-inline: auto;

        object-fit: contain;
    }

    .subhero-editorial.is-style-subhero-legal .subhero-card--artwork {
        display: none;
    }
}

@media (max-width: 420px) {

    .subhero-editorial {
        width: min(100% - 1.25rem, 380px);
    }

    .subhero-card--title h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .subhero-card--text p {
        font-size: 1rem;
    }

    .subhero-card--artwork {
        width: min(78vw, 260px);
    }
}