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

:root {
    --white: hsl(0, 0%, 100%);
    --light-pink: hsl(275, 100%, 97%);
    --grayish-purple: hsl(292, 16%, 49%);
    --dark-purple: hsl(292, 42%, 14%);
}

body {
    font-family: "Work Sans", sans-serif;
    background-color: var(--light-pink);
    display: grid;
    place-content: center;
    min-height: 100vh;
    padding: 5rem 1rem;
}

.bg {
    width: 100%;
    height: 35vh;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("./assets/images/background-pattern-desktop.svg");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.accordeon {
    background-color: var(--white);
    max-width: 37.5rem;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0px 2rem 4rem rgba(0, 0, 0, 0.1);
}

.accordeon__title {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.accordeon__title h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.accordeon__panel {
    border-bottom: 1px solid var(--light-pink);
    padding: 1.4rem 0;
}

.accordeon__panel:first-of-type {
    padding-top: 0;
}

.accordeon__panel:last-child {
    border-bottom: none;
}

.accordeon__panel h2 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.accordeon__trigger {
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: 0.3s;
}

.accordeon__trigger:hover,
.accordeon__trigger:focus {
    color: hsl(281, 83%, 54%);
}

.accordeon__buttons {
    cursor: pointer;
}

.accordeon__trigger[aria-expanded="true"]~.accordeon__buttons .plus {
    display: none;
}

.accordeon__trigger[aria-expanded="false"]~.accordeon__buttons .minus {
    display: none;
}

.accordeon__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
    color: var(--grayish-purple);
}

.accordeon__content>p {
    overflow: hidden;
    transition: 0.5s ease-out;
    font-weight: 400;
    line-height: 1.5rem;
}

.accordeon__content[aria-hidden="false"] {
    grid-template-rows: 1fr;
}

.accordeon__content[aria-hidden="false"]>p {
    margin-top: 1rem;
}

.attribution {
    font-size: 0.75rem;
    text-align: center;
    margin: 1rem 0;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}