@font-face {
    font-family: 'figtree';
    font-style: light;
    font-weight: 300;
    src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}

@font-face {
    
    font-family: 'figtree';
    font-style: italic;
    font-weight: 500;
    src: url(./assets/fonts/Figtree-Italic-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'figtree';
    font-style: normal;
    font-weight: 800;
    src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}

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

body {
    background-color: hsl(47, 88%, 63%);
    font-family: figtree, sans-serif;
    height: 100vh;
    /* overflow: hidden; */
}

.container {
    width: 23rem;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 6px 8px hsl(0, 0%, 7%);
    padding: 1.5rem;
    margin: 14rem auto;
    border: 1px solid hsl(0, 0%, 7%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-content img {
    max-width: 100%;
    border-radius: 13px;
}

.text-content {
    display: flex;
    flex-direction: column;
    width: 20rem;
}

.tagline {
    background-color: hsl(47, 88%, 63%);
    font-weight: bold;
    width: 5rem;
    border-radius: 0.3rem;
    padding: 0.3rem 0.5rem;
}

.post-date {
    margin-top: 1.3rem;
}

.text-content p {
    font-weight: lighter;
    line-height: 1.4;
    padding-bottom: 1.2rem;
}

.text-content h1 {
    margin: 1.1rem 0;
}

.text-content h1 a {
    text-decoration: none;
    color: hsl(0, 0%, 7%);
}

.text-content h1 a:hover {
    color: hsl(47, 88%, 63%);
    cursor: pointer;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author img {
    width: 2.5rem;
    height: 2.5rem;
}

footer {
    padding-bottom: 3rem;
}

.attribution { font-size: 14px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }