.soap-essay {
    --soap-essay-ink: #111111;
    --soap-essay-paper: #f5f1e7;
    color: var(--soap-essay-ink);
    background: var(--soap-essay-paper);
    font-family: Arimo, Arial, 'Helvetica Neue', Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.soap-essay__header {
    position: sticky;
    top: 0;
    display: grid;
    justify-items: center;
    padding: 80px 32px 48px;
    text-align: center;
}

.soap-essay h1 {
    max-width: 600px;
    margin: 0;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1;
}

.soap-essay__intro {
    max-width: 560px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 24px;
}

.soap-essay__author {
    margin: 24px 0 0;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

.soap-essay .soap-share {
    margin-top: 56px;
}

.soap-essay__content {
    position: relative;
    background: var(--soap-essay-paper);
}

.soap-essay__cover {
    overflow: hidden;
    padding: 0 0 24px;
    margin: 0;
    background: #f3b9cc;
}

.soap-essay__cover img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 100vh;
    margin: 0 auto;
    object-fit: contain;
}

.soap-essay__cover figcaption {
    margin-top: 200px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.soap-essay__body {
    width: min(100% - 32px, 596px);
    margin: 0 auto;
    padding-top: 49px;
    font-size: 18px;
    line-height: 1.55;
}

.soap-essay__body > * {
    margin: 0 0 20px;
}

.soap-essay__body h2,
.soap-essay__body h3 {
    margin-top: 36px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.soap-essay__body h3 {
    font-size: 20px;
}

.soap-essay__body blockquote {
    padding-left: 20px;
    border-left: 2px solid currentColor;
    font-size: 22px;
    line-height: 1.4;
}

.soap-essay__body blockquote p {
    margin: 0;
}

.soap-essay__body cite {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
}

.soap-essay__body ul,
.soap-essay__body ol {
    padding-left: 24px;
}

.soap-essay__body figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
}

.soap-essay__body figcaption {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
}

.soap-essay__body a,
.soap-essay__back a {
    color: inherit;
}

.soap-essay .soap-essay__gate {
    margin-top: 0;
    border-top: 0;
    color: var(--soap-essay-ink);
    background: var(--soap-essay-paper);
    font-family: inherit;
}

.soap-essay__back {
    width: min(100% - 32px, 596px);
    margin: 12px auto 0;
    padding-bottom: 80px;
    font-size: 14px;
}

@supports (animation-timeline: view()) {

    .soap-essay__cover img {
        animation: soap-essay-cover linear both;
        animation-range: entry 100% exit 50%;
        animation-timeline: view();
    }
}

@keyframes soap-essay-cover {
    to {
        transform: scale(1.035);
    }
}

@media (max-width: 809px) {

    .soap-essay__cover:has(.soap-cover-picture--desktop) {
        display: none;
    }

    .soap-essay__header {
        padding: 56px 16px 40px;
    }

    .soap-essay h1 {
        font-size: 36px;
        letter-spacing: -1.2px;
    }

    .soap-essay .soap-share {
        margin-top: 40px;
    }

    .soap-essay__cover figcaption {
        margin-top: 24px;
        padding: 0 16px;
    }

    .soap-essay__body {
        padding-top: 32px;
        font-size: 17px;
    }
}

@media (min-width: 810px) {

    .soap-essay__cover:has(.soap-cover-picture--mobile) {
        display: none;
    }
}
