@import url("https://fonts.googleapis.com/css2?family=Karla:wght@400;600&display=swap");

:root {
    --cyan: hsl(179, 62%, 43%);
    --light-cyan: hsl(180, 42%, 56%);
    --bright-yellow: hsl(71, 73%, 54%);
    --light-gray: hsl(204, 43%, 93%);
    --grayish-blue: hsl(218, 22%, 67%);
    --white: hsl(0, 0%, 100%);
}

/* sr-only class from css-tricks.com/inclusively-hidden/ */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

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

body {
    min-height: 100vh;
    background-color: var(--light-gray);

    font-family: "Karla", sans-serif;
    font-size: 16px;
    color: var(--white);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 1rem;
}

ul {
    list-style-type: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.4px;
    line-height: 1.31rem;
    color: hsla(0, 0%, 100%, 0.6);
}

h2 {
    font-size: 1.2rem;
    letter-spacing: -0.7px;
    font-weight: 600;
}

.wrapper {
    width: 100%;
    max-width: 19.5rem;
    display: grid;
    grid-template: repeat(3, min-content) / 1fr;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 5px 15px 20px -10px rgba(0, 0, 0, 0.2);
}

[class^="container"] {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.container__top {
    background-color: var(--white);
    color: var(--grayish-blue);
}

.container__top h2 {
    font-size: 1.25rem;
    color: var(--cyan);
    letter-spacing: -0.2px
}

.container__top span {
    color: var(--bright-yellow);
    font-weight: 600;
    letter-spacing: -0.7px;
    line-height: 1.3rem;
}

.container__top p {
    font-size: 0.9rem;
    letter-spacing: -0.68px;
    line-height: 1.65rem;
}

.container__bottom-left {
    background-color: var(--cyan);
}

.pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: -0.7rem;
}

.pricing__price {
    font-size: 2rem;
    font-weight: 600;
}

.pricing__side-text {
    font-weight: 400;
    color: hsla(0, 0%, 100%, 0.6);
}

.signup-button {
    background-color: var(--bright-yellow);
    height: 50px;
    border-radius: 5px;
    color: var(--white);
    box-shadow: 0 10px 20px -15px rgba(0, 0, 0, 0.65);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--bright-yellow);
}

.signup-button:hover, .signup-button:active {
    box-shadow: none;
    background-color: var(--white);
    color: var(--bright-yellow);
}

.container__bottom-right {
    background-color: var(--light-cyan);
}

.attribution {
    opacity: 0.1;
    font-size: 11px;
    text-align: center;
    color: #000;
}
.attribution a {
    color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 720px) {
    .wrapper {
        grid-template: 0.8fr 1fr / 1fr 1fr;
        height: 100%;
        min-width: 40rem;
    }

    .container__top {
        grid-column: span 2;
    }

    .container__top h2 {
        font-size: 1.6rem;
        letter-spacing: -0.6px;
    }

    .container__top span {
        font-size: 1.2rem;
    }

    .container__top p {
        font-size: 1rem;
        letter-spacing: 0.1px;
    }

    .container__bottom-left button {
        font-size: 0.9rem;
        letter-spacing: 0.1px;
    }
}