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

:root{
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

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

body{
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    background-color: var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

main{
    background-color: var(--white);
    max-width: 384px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--gray-950);
    box-shadow: 8px 8px 0 var(--gray-950);
}

.illustration{
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 24px;
}

.category-tag{
    background-color: var(--yellow);
    font-weight: 800;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block; /* ! */
    margin-bottom: 12px;
}

.publication-date{
    color: var(--gray-950);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

h1{
    color: var(--gray-950);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.2;
}

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

.info p:last-child{
    color: var(--gray-500);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
}

.user{
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user p{
    font-weight: 800;
    color: var(--gray-950);
    font-size: 14px;
}

.attribution {
    font-size: 11px;
    text-align: center;
    color: var(--Slate_500);
    max-width: 320px;
    width: 100%;
    padding: 0 16px;
    line-height: 1.4;
}
.attribution a {
    color: var(--Slate_900);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.attribution a:hover {
    color: var(--Slate_500);
    text-decoration: underline;
}

