@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

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

html, body {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: hsl(47, 88%, 63%);
    color: hsl(0, 0%, 7%);
}

main {
    width: 23.75rem;
    height: 34.375rem;
    background: hsl(0, 0%, 100%);
    border-radius: 0.625rem;
    border: 2px solid hsl(0, 0%, 42%);
    box-shadow: 7px 7px 0px hsl(0, 0%, 7%);
}

section {
    padding: 0 1.25rem;
}

.illustration {
    margin: 1.25rem;
}

.illustration img {
    border-radius: 0.625rem;
}

h2 {
    display: inline;
    background: hsl(47, 88%, 63%);
    font-weight: 500;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 0.0625rem;
    padding: 0.0625rem 0.625rem;
}

.text {
    line-height: 1.5rem;
    color: hsl(0, 0%, 42%);
}

h2, p, a{
    margin: 1.25rem 0;
}

.html {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: hsl(0, 0%, 7%);
}

a:hover {
    color:hsl(47, 88%, 63%);
    cursor: pointer;
}

figure {
    display: flex;
    flex-direction: row;
    align-items: center;
}

figcaption {
    margin: 0 0.625rem;
    font-weight: 800;
}

.greg img {
    width: 1.875rem;
    height: 1.875rem;
}

.attribution {
    margin: 1.25rem 0;
    font-size: 0.75rem; 
    text-align: center;
}

@media screen and (width <= 512px) {
    article {
        width: 80vw;   
        height: auto; 
    }
    .illustration {
        margin: 1.25rem;
    }
    .illustration img {
        width: 70vw;
    }
}
