/* Laptop L (≥1440px) */
:root{
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    font-family: "Figtree", sans-serif;
    line-height: 1.5;
    background-color: var(--yellow);
    margin: 0;

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card{
    background-color: var(--white);
    border: 1.5px solid var(--gray-950);
    border-radius: 1rem;

    max-width: 336px;
    width: 100%;
    padding: 1.25rem;

    display: flex;
    flex-direction: column;
    box-shadow: 0.5vw 1vh var(--gray-950);
}

.illustration{
    border-radius: 10px;
    display: block;
    width: 100%;
    max-width: 336px;
    height: auto; /*200px*/
}

.date, .description{
    font-weight: 500;
}
h1{
    color: var(--gray-950);
    margin: 0.625rem 0 0.5rem 0;
    font-size: 1.375rem;
    font-weight: 800;
}
h1:hover{
    color: var(--yellow);
    cursor: pointer;
}
.description{
    color: var(--gray-500);
    margin: 0.3125rem 0 0.625rem 0;
}
p{
    color: var(--gray-950);
    margin: 0px;
    font-size: 0.875rem;
}
.box-learning{
    background-color: var(--yellow);
    border-radius: 2px;
    width: fit-content;
    height: fit-content;
    padding: 0.125rem 0.3125rem;
    margin: 0.9375rem 0 0.625rem 0;
}
h3{
    margin: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 800;
}

.profile{
    display: flex;
    flex-direction: row;
    margin: 10px 0 5px 0;
    align-items: center;
}
.profile img{
    width: 2rem; /*64px*/
    height: 2rem; /*64px*/
    border-radius: 50%; 
    object-fit: cover;
}
.profile p{
    font-weight: 800;
    margin: 0 0 0 0.625rem;
    width: fit-content;
    height: fit-content; 
}

.attribution { 
    font-size: 0.6875rem; 
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 10px 0 0 0;
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* Laptop (1024px - 1439px) */
@media (max-width: 1439px) {
    h1 { font-size: 1.25rem; }
    h3 { font-size: 0.75rem; }
    p  { font-size: 0.8125rem; }
    .card {
        max-width: 22.5rem;
        padding: 1.125rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    h1 { font-size: 1.125rem; }
    h3 { font-size: 0.6875rem; }
    p  { font-size: 0.75rem; }
    .card {
        max-width: 18.75rem;
        padding: 1rem;
    }
}

/* Mobile L (425px - 767px) */
@media (max-width: 767px) {
    h1 { font-size: 1.0625rem; }
    h3 { font-size: 0.625rem; }
    p  { font-size: 0.6875rem; }
    .card {
        max-width: 17.5rem;
        padding: 0.875rem;
        box-shadow: 4px 8px var(--gray-950);
    }
}

/* Mobile M (375px - 424px) */
@media (max-width: 424px) {
    h1 { font-size: 1rem; }
    h3 { font-size: 0.625rem; }
    p  { font-size: 0.625rem; }
    .card {
        max-width: 16.25rem;
        padding: 0.75rem;
    }
    .profile img {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Mobile S (≤374px) */
@media (max-width: 374px) {
    h1 { font-size: 0.9375rem; }
    h3 { font-size: 0.5625rem; }
    p  { font-size: 0.625rem; }
    .card {
        max-width: 15rem;
        padding: 0.625rem;
    }
}