/* || Global Styles */

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

body {
    height: 100vh;
    background-color: var(--light-grey);
}

:root {
    --purple: #7c19ee;
    --light-purple: #f2eafd;
    --grey: #e5eaf0;
    --light-grey: #fafaf9;
    --white: #fff;
    --slate: #20293a;
    --slate-blue: #394150;
}

@font-face {
    font-family: "Sora Regular";
    src: url(./fonts/sora-v17-latin-regular.woff2) format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Sora Bold";
    src: url(./fonts/sora-v17-latin-700.woff2) format("woff2");
    font-weight: 700;
}

/* || Main Styling */

/* Typography */

.card {
    font-family: "Sora Regular", Arial, Helvetica, sans-serif;
}

h1 {
    font-family: "Sora Bold", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    color: var(--slate);
}

.card-text,
.card-author {
    color: var(--slate-blue);
}

.design-pill {
    font-family: "Sora Bold", Arial, Helvetica, sans-serif;
    color: var(--purple);
}

/* Main */

main {
    align-items: center;
    display: flex;
    min-height: 100vh;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 1rem 1rem 1rem var(--grey);
    border-radius: 1rem;
    margin: 0 auto;
    padding: 1rem;
    max-width: 28rem;
}

.cactus-mobile-img {
    border-radius: 0.5rem;
    height: auto;
    max-width: 21rem;
    margin-block-end: 1rem;
}

.cactus-tablet-desktop-img {
    display: none;
    margin-block-end: 1rem;
    border-radius: 0.5rem;
}

.design-pill {
    display: flex;
    justify-content: center;
    border-radius: 1rem;
    background-color: var(--light-purple);
    padding: 0.3rem 0.5rem;
    margin-block-end: 1rem;
    width: 6rem;
}

.card-text-container,
.card-author,
hr {
    margin-block-end: 1.2rem;
}

.card-title {
    margin-block-end: 0.4rem;
}

.card-text {
    line-height: 150%;
}

hr {
    width: 100%;
}

/* Author Details */

.author-info {
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    color: rgb(55, 65, 81);
}

.author-info a {
    text-decoration: none;
}

/* Media Queries */

@media screen and (min-width: 51.25rem) {
    .cactus-mobile-img {
        display: none;
    }

    .cactus-tablet-desktop-img {
        display: block;
    }
}
