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

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

body {
    background-color: hsl(47, 88%, 63%);
    font-family: 'Figtree', Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

main {
    background-color: hsl(0, 0%, 100%);
    width: 420px;
    border: solid;
    border-width: 1px;
    border-radius: 15px;
    box-shadow: 7px 7px black;
    padding: 20px 20px;
}

p {
    font-size: 1.6vh;
}

.top-section {
    margin-bottom: 20px;
}

.top-section img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.tag {
    background-color: hsl(47, 88%, 63%);
    font-weight: 800;
    border-radius: 4px;
    display: block;
    padding: 4px 14px;
    margin-bottom: 15px;
    display: inline-block;
}

.publication-date {
    color: hsl(0, 0%, 7%);
}

.middle-section {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.middle-section h1 {
    font-size: 2.7vh;
}

.middle-section h1:hover {
    color: hsl(47, 88%, 63%);
    cursor: pointer;
}

.middle-section p {
    color: hsl(0, 0%, 42%);
    font-size: 1.8vh;
}

.bottom-section {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
}

.bottom-section img {
    width: 30px;
}

@media (max-width: 376px){
    main {
        width: 330px;
    }
    
    .top-section img {
        height: 210px;
        object-fit: cover;
    }

    .tag {
        padding: 4px 12px;
    }
}