@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap');

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

:root {
    --white: hsl(0, 0%, 100%);
    --stone100: hsl(30, 54%, 90%);
    --stone150: hsl(30, 18%, 87%);
    --stone600: hsl(30, 10%, 34%);
    --stone900: hsl(24, 5%, 18%);
    --brown800: hsl(14, 45%, 36%);
    --rose800: hsl(332, 51%, 32%);
    --rose50: hsl(330, 100%, 98%);
}

html {
    font-size: 16px;
}

body {
    background-color: var(--stone100);
    color: var(--stone600);
    font-family: "Outfit", sans-serif;
}

h1 {
    color: var(--stone900);
    font-family: "Young Serif", serif;
    font-size: 2.5rem;
    font-weight: 300;
    padding: 20px 0;
}

h2 {
    color: var(--brown800);
    font-family: "Young Serif", serif;
    font-weight: 500;
    font-size: 1.8rem;
    margin: 15px 0;
}

h3 {
    color: var(--rose800);
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

main {
    background-color: var(--white);
    border-radius: 25px;
    max-width: 800px;
    margin: 80px auto 0;
    padding: 40px 40px 0 40px;
}

figure img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

aside {
    background-color: var(--rose50);
    border-radius: 20px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    padding: 20px 40px;
    margin: 2em 0;
}

section {
    border-bottom: 1px solid var(--stone150);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

section:last-of-type {
    border: none;
    padding-bottom: 20px;
}

ul,
ol {
    margin-left: 20px;
}

ul li,
ol li {
    padding-left: 20px;
    line-height: 2;
}

ul li::marker {
    color: var(--rose800);
}

ol li::marker {
    color: var(--brown800);
    font-weight: bold;
}

table {
    margin: 20px 0;
    border-collapse: collapse;
    width: 90%;
}

table th,
table td {
    text-align: left;
    padding: 10px 40px;
    border-bottom: 1px solid var(--stone150);
}

table th {
    font-weight: bold;
}

table td {
    color: var(--brown800);
    font-weight: bold;
}

table tr:last-child th,
table tr:last-child td {
    border-bottom: none;
}

footer {
    color: var(--stone600);
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: center;
    padding: 30px;
}

footer a {
    text-decoration: none;
    cursor: pointer;
    color: var(--rose800);
}

@media (max-width: 768px) {
    main {
        border-radius: 0;
        margin: 0;
        padding: 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    main img {
        display: block;
        object-fit: cover;
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        border-radius: 0;
        margin: -20px;
    }

    h1 {
        font-size: 1.8rem;
        margin-top: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    aside {
        padding: 18px 15px;
    }

    table {
        width: 100%;
    }

    table th,
    table td {
        padding: 10px 15px;
    }

    footer {
        background-color: var(--white);
    }
}