/* challenge defined styles */
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

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

body {
    font-family: "Figtree", sans-serif;
    background-color: hsl(47, 88%, 63%);
}

/* container */
main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.card {
    border: 1px solid black;
    width: 380px;
    height: 510px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 10px 10px 0;
    transform: scale(1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform, box-shadow;
}
.card:hover {
    transform: translateY(-18px);
    box-shadow: 16px 16px 0;
}

/* card contents */
.card-image {
    height: 201px;
    align-self: center;
    overflow:hidden;
    border-radius: 12px;
    margin: 22px 0 24px;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
}

/* card content items */
#tag {
    background-color: hsl(47, 88%, 63%);
    font-weight: 800;
    width: 100px;
    text-align: center;
    border-radius: 4px;
    padding: 6px 0;
    margin-bottom: 12px;
}

#date {
    color: hsl(0, 0%, 7%);
    font-weight: 500;
}

h1 {
    font-size: 24px;
    margin: 16px 0;
}

#info {
    color: hsl(0, 0%, 42%);
    font-weight: 500;
}

.writer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 18px;
}

.writer img {
    width: 34px;
    height: 35px;
}

.writer #author {
    font-weight: 800;
    font-size: 15px;
}
