:root {
    --grey-900: #48556A;
    --grey-500: #6E8098;
    --grey-400: #9DAEC2;
    --grey-200: #ECF2F8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background: var(--grey-200);
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.article-preview {
    max-width: 730px;
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 40px 40px -10px rgba(201, 213, 225, 0.503415);
}

.preview-image {
    flex: 1 1 40%;
    width: 40%;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.column {
    display: flex;
    flex-direction: column;
    flex: 1 1 60%;
    width: 60%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    padding: 32px;
}

h1 {
    color: var(--grey-900);
    font-size: 2rem;
    margin: 0;
}

p {
    color: var(--grey-500);
    font-size: 1.3rem;
    margin: 0;
}

.poster {
    display: flex;
    column-gap: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    align-items: center;
}

.name {
    color: var(--grey-900);
}

.date {
    color: var(--grey-400);
}

.poster img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 24px 24px;
}

.share-button {
    height: 32px;
    width: 32px;
    background: var(--grey-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.share-button.active {
    background: var(--grey-500);
}

.share-button.active path {
    fill: white;
}

.share-options {
    display: none;
    background: var(--grey-900);
    width: 248px;
    height: 55px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    column-gap: 24px;
    box-shadow: 0 10px 10px rgba(201, 213, 225, 0.503415);
    position: absolute;
    overflow: visible;
    z-index: 1000;
}

.share-text {
    text-transform: uppercase;
    color: var(--grey-400);
    font-size: 1.3rem;
    letter-spacing: 0.25em;
}

.icons {
    display: flex;
    column-gap: 16px;
    align-items: center;
}

.icons div {
    line-height: 0;
    cursor: pointer;
}

.share-options::after {
    content: "";
    background: var(--grey-900);
    height: 24px;
    width: 24px;
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: rotate(45deg) translateX(50%);
}

.share-mobile {
    align-items: center;
    display: none;
}

@media (max-width: 480px) {
    .column {
        width: 100%;
    }

    .article-preview {
        flex-direction: column;
    }

    .preview-image {
        width: 100%;
    }

    .footer {
        padding: 16px;
    }

    .content-wrapper {
        padding: 16px;
    }

    .footer.share-active {
        background: var(--grey-900);
    }

    .footer.share-active .poster {
        display: none;
    }

    .footer.share-active .share-mobile {
        display: flex;
        align-items: center;
        column-gap: 16px;
    }
}

.share-button.share-active {
    background: var(--grey-500);
}

.share-button.share-active path {
    fill: white;
}
