@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --color-orange: hsl(31, 77%, 52%);
    --color-cyan-600: hsl(184, 100%, 22%);
    --color-cyan-800: hsl(179, 100%, 13%);
    --color-gray-200: hsl(0, 0%, 95%);
    --color-transparent-white: hsla(0, 0%, 100%, 0.75);

    --font-primary: "Lexend Deca";
    --font-accent: "Big Shoulders";
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--color-gray-200);
}

body {
    background-color: white;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 1rem;
}

h1 {
    font-family: var(--font-accent);
    font-size: 40px;
}

p {
    color: var(--color-transparent-white);
}


article {
    padding: 3rem;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;

}

article > img {
    width: 64px;
}

button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-gray-200);
    border-radius: 500px;
    font-size: 15px;
    align-self: flex-start;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 100ms ease-in;
}

.grid {
    display: grid;
}

.bg-orange {
 background-color: var(--color-orange);
 border-radius: 0.5rem 0.5rem 0 0;
}
.bg-orange > button {
    color: var(--color-orange);
}

.bg-cyan   {
    background-color: var(--color-cyan-600);
}

.bg-cyan > button {
    color: var(--color-cyan-600);
}

.bg-dark-cyan {
    background-color: var(--color-cyan-800);
     border-radius: 0 0 0.5rem 0.5rem;
}

.bg-dark-cyan > button {
    color: var(--color-cyan-800);
}

.bg-orange > button:hover, 
.bg-orange > button:focus,
.bg-cyan > button:hover, 
.bg-cyan > button:focus,
.bg-dark-cyan > button:hover, 
.bg-dark-cyan > button:focus {
    background-color: transparent;
    color: white;
}

    .attribution { font-size: 11px; text-align: center; margin-top: 1rem; color: var(--color-cyan-800);}
    .attribution a { color: hsl(228, 45%, 44%); }


@media only screen and (min-width: 767px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .bg-orange {
        border-radius:  0.5rem 0 0 0.5rem;
    }
    .bg-dark-cyan {
     border-radius: 0 0.5rem 0.5rem 0;
}
}
