.article-heading h1 {
    font-size: clamp(18px, 1.25vw, 25px);
    font-weight: 600;
    text-wrap: balance;
}

.article-detail-shell {
    padding: 30px var(--page-gutter) 44px;
}

.article-detail {
    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(20px, 2.5vw, 40px);
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e6e6e6;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-block: 5px;
}

.article-back, .article-back > * {
    font-size: .7rem;
}

.article-back:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.article-back:focus-visible, .article-contact-button:focus-visible {
    outline: 2px solid #323232;
    outline-offset: 4px;
}

.article-cover {
    max-width: 640px;
    margin: 0 auto 30px;
}

.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-content {
    font-size: .8rem;
}

.article-content :where(p, li, span, a, strong, b, em) {
    font-size: inherit;
}

.article-content p {
    line-height: inherit;
}

.article-content :is(strong, b) {
    font-weight: 700;
}

.article-content :is(h2, h3, h4) {
    color: #323232;
    font-weight: 600;
    scroll-margin-top: 105px;
}

.article-content h2 {
    font-size: 1rem;
}

.article-content :is(h3, h4) {
    font-size: .9rem;
}

.article-content :is(ul, ol) {
    margin-block: 16px 22px;
    padding-inline-start: 28px;
}

.article-content li {
    padding-inline-start: 4px;
    margin-block: 6px;
}

.article-content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 22px auto;
}

.article-content :is(figure, video, iframe) {
    max-width: 100% !important;
    margin-inline: auto;
}

.article-content video {
    height: auto;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover {
    color: #666;
}

.article-content blockquote {
    margin-block: 24px;
    border-radius: 4px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content table {
    display: block;
    overflow-x: auto;
    margin-block: 24px;
}

.article-content :is(th, td) {
    text-align: start;
}

.article-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.article-content pre {
    max-width: 100%;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

.article-content > :first-child {
    margin-top: 0;
}

.article-actions {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e6e6e6;
    text-align: center;
}

.article-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #323232;
    border-radius: 8px;
    background: #323232;
    color: white;
    line-height: 1.8;
    cursor: pointer;
}

.article-contact-button:hover {
    background: white;
    color: #323232;
}

@media (max-width: 600px) {
    .article-detail-shell {
        padding-block: 20px 30px;
    }

    .article-heading {
        padding-inline: 16px;
    }

    .article-heading h1 {
        padding-inline: 36px !important;
        background-size: 26px auto;
    }

    .article-detail {
        padding: 18px;
    }

    .article-meta {
        padding-bottom: 14px;
        margin-bottom: 20px;
    }

    .article-cover {
        margin-bottom: 24px;
    }

    .article-contact-button {
        width: 100%;
    }
}
