:root {
    --text-s: clamp(0.75rem, 2cqw, 0.875rem);
    --text-l: clamp(1.125rem, 3.5cqw, 1.5rem)
}
.pagewrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 50%;
    container-type: inline-size;
    container-name: card;
}
.card {
    background-color: grey;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    gap: .5rem;
}

@container card (min-width: 640px) {
    .card {
        flex-direction: row;
    }
}
.cardimg img {
    width: 100%;
}
.cardcontent {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.cardtitle {
    font-size: 1.5rem;
    font-weight: bold;
}
.carddescription {
    font-size: var(--text-s);

}
@container card (min-width: 600px) {
    .carddescription {
        font-size: var(--text-l);
    }
}
.cardprice {
    font-size: 1.25rem;
}
.cardbutton {
    margin: 1rem 0;
}
.cardbutton a {
    text-decoration: none;
    color: black;
    font-size: 1.25rem;
    background-color: hsla(0, 0%, 0%, .2);
    padding: 1rem;
    border-radius: 1000px;
}