@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --font-family: "Figtree", serif;
    --Yellow: hsl(47, 88%, 63%);
    --White: hsl(0, 0%, 100%);
    --Gray-500: hsl(0, 0%, 42%);
    --Gray-950: hsl(0, 0%, 7%);
}

html,
body {
    font-family: var(--font-family);
    font-size: 16px;
}

body {
    background: var(--Yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    block-size: 100vh;
    margin: 0;
    margin-inline: 1rem;
}

.card {
    padding: 1.5rem;
    background: var(--White);
    border-radius: 1.25rem;
    border: 1px solid var(--Gray-950);
    inline-size: 100%;
    box-sizing: border-box;
    max-inline-size: 24rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 8px 8px var(--Gray-950);
}

/* Imagen */

.card-imagen {
    border-radius: 1.25rem;
    overflow: hidden;
}

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

/* Cuerpo del Body */

.card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estado y Fecha de Publicidad */
.card-body #estado {
    background-color: var(--Yellow);
    width: max-content;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--Gray-950);

}

.card-body #publicacion {
    color: var(--Gray-950);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Titulo y Contenido */
.card-body #titulo {
    color: var(--Gray-950);
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
}

.card-body #titulo:hover {
    color: var(--Yellow);
}

.card-body #contenido {
    color: var(--Gray-500);
    font-weight: 500;
    font-size: 0.887rem;
}


/* Autor */

.card-body .autor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.card-body .autor img {
    width: 34px;
    height: 34px;
}

.card-body .autor #nombre {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--Gray-950)
}