* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Figtree', sans-serif;
    background: var(--white);
    overflow-x: hidden;
    background-color: var(--slate-300);
    background-color: var(--yellow);
}

h2 {
    font-size: 1.5rem;
}

h2:hover {
    color: var(--yellow);
    cursor: pointer;
}

img {
    width: 100%;
    height: auto;
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.label  {
    color: var(--gray-950);
    font-weight: 800;
    background-color: var(--yellow);
    padding: 8px 16px;
    border-radius: 4px;
    width: fit-content;

}

.date {
    color: var(--gray-950);
    font-weight: 500;
}

.description {
    color: var(--gray-500);
    font-weight: 500;
}

.name {
    color: var(--gray-950);
    font-weight: 800;
}


.avatar {
    width: 32px;
    height: 32px;
}

.author-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    }

.card {
    background-color: var(--white);
    width: 384px;
    height: 522px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
   box-shadow: 8px 8px 0px 0px black;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


@media (max-width: 375px) {
    
 h2 {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.875rem;
    }

    .date, .label {
        font-size: 0.75rem;
    }

    .card {
        width: 327px;
        height: 501px;
    }

     .card-image {
        max-width: 279px;
        height: 200px;
        border-radius: 10px;
        overflow: hidden;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}