/* BLOCK: Featured Post */

.block-featured-post {
    --theme-text-body: var(--c-text-lighter);
    --theme-text-heading: var(--c-text-lighter);
    --theme-ui: var(--c-text-lighter);

    display: flex;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 2;
}

.block-featured-post .bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.block-featured-post .bg-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgb(0 0 0 / .2), rgba(0 0 0 / .2)),
        linear-gradient(215.54deg, transparent 20.84%, rgba(0 0 0 / .7) 88.58%);
}

.block-featured-post .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-featured-post .wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.block-featured-post .tag {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 1px solid currentColor;
    font-size: var(--font-12-9);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: flex-start;
}

.block-featured-post .data {
    margin-top: auto;
}

.block-featured-post .meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.1875rem;
}

.block-featured-post .meta > :not(:last-child) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.block-featured-post .meta > :not(:last-child)::after {
    content: '';
    width: 1px;
    height: 1.125rem;
    background-color: currentColor;
}

.block-featured-post .meta > .category {
    color: var(--theme-ui);
}

.block-featured-post .title {
    max-width: 50.3125rem;
}

.block-featured-post .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2.8125rem;
}

.block-featured-post .readtime {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1;
}

.block-featured-post .readtime svg {
    width: 0.625rem;
    height: 0.625rem;
}

@media screen and (width <= 920px) {
    .block-featured-post {
        aspect-ratio: 1.5;
    }
}

@media screen and (width <= 620px) {
    .block-featured-post {
        aspect-ratio: 1;
    }

    .block-featured-post .tag {
        padding: 0.5rem 0.75rem;
    }

    .block-featured-post .meta {
        gap: 0.625rem;
        margin-bottom: 2.25rem;
    }

    .block-featured-post .meta > :not(:last-child)::after {
        height: 1rem;
    }

    .block-featured-post .title {
        max-width: 26rem;
    }

    .block-featured-post .footer {
        margin-top: 2.25rem;
    }
}

@media screen and (width <= 420px) {
    .block-featured-post {
        aspect-ratio: 0.722;
    }

    .block-featured-post .title {
        max-width: 20.4375rem;
    }
}