@font-face {
    font-family: Figtree;
    src: url(../fonts/Figtree.ttf) format("ttf");
}

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

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--yellow);
    font-family: Figtree, sans-serif;
    line-height: 150%;
    color: var(--gray-950);
    letter-spacing: 0;
}

.card {
    box-shadow: 8px 8px 0 0 #000;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    max-width: 384px;
    padding: 24px;
    background-color: var(--white);
    outline: 1px solid var(--gray-950);
    border-radius: 20px;
    margin-inline: 24px;
}

.preview {
    overflow: hidden;
    border-radius: 10px;
    max-width: 336px;
    height: 200px;
    object-fit: cover;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tags {
    display: flex;
}

.tag {
    padding-inline: 12px;
    padding-block: 4px;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
}

.tag-yellow {
    background-color: var(--yellow);
}

.publishing-date {
    font-size: 14px;
}

.title {
    font-size: 24px;
    font-weight: 800;
}

.title-link {
    color: inherit;
    text-decoration: none;
}

.title-link:hover, .title-link:focus {
    color: var(--yellow);
    outline: none;
}

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

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

.author-name {
    font-size: 14px;
    font-weight: 800;
}
