@import url(https://fonts.google.com/specimen/Figtree);

:root {
  --Yellow: hsl(47, 88%, 63%);
  --White: hsl(0, 0%, 100%);
  --Gray-500: hsl(0, 0%, 42%);
  --Gray-950: hsl(0, 0%, 7%);
}

@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/static/Figtree-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

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


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


body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    background-color: var(--Yellow);
    color: hsl(0, 0%, 7%);
    
}

html {font-size: 16px;}

h2{
    font-size: 1rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

p{
    font-size: 1rem;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-wrap: wrap;

}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--White);
    width: 290px;          
    height: auto;                  
    border: 1px solid black; 
    border-radius: 1.25rem;  
    box-shadow: 8px 8px;
    margin: 0;
    padding: 20px;
}

/* responsive base on style guide */
/* tablet view */
@media (min-width: 768px) {
    .content {
        width: 300px;
    }
}

/* desktop view */
@media (min-width: 1024px) {
    .content {
        width: 320px;
    }
}


.content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.content-header__image {
    margin-top: 5px;
    width: 100%;
    max-width: 800px; 
    height: 200px;
    display: block;
    object-fit: cover; 
    border-radius: 0.7rem;
    margin-bottom: 16px;
}

.content-header__status,
.content-header__date {
    align-self: flex-start; 
}

.content-header__status {
    font-size: 0.8rem;
    padding: 8px 15px;
    background-color: var(--Yellow);
    border-radius: 0.35rem;
    margin-bottom: 0;
}

.content-header__date {
    font-size: 0.8rem;
    color: var(--Gray-950);
    margin-bottom: 18px;
}

.content-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0px;
}

.content-article__title {
    font-size: 1.3rem;
    margin-bottom: 0px;
}

.content-article__title:hover {
    color: var(--Yellow);
}

.content-article__description {
    font-size: 0.9rem;
    color: var(--Gray-500);
    font-weight: 500;
    margin-bottom: 18px;
}

.content-article__author {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start; 
    margin-bottom: 10px;
}

.content-article__author-image {
    width: 35px;
    height: 35px;
}

.content-article__author-name {
    font-size: 0.9rem;
    color: var(--Gray-950);
    font-weight: 800;
    margin-left: 10px;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}