body {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: system-ui, sans-serif;
    & a {
        text-decoration: none;
        color: #333;
        &:hover {
            color: #000;
        }
    }
}

.button {
    appearance: none;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s ease;
    &:hover {
        background-color: #e0e0e0;
    }
}

.quotes-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.quotes-sort, .quotes-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    & > p {
        margin: 0;
    }
}

.quote-card {
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.quote-card:first-child {
    border-top: 1px solid #ccc;
    padding-top: 16px;
}

.quote-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quote-card__author {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 4px;
    background-color: #f0f0f0;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    &:hover {
        background-color: #e0e0e0;
    }
    & img {
        width: 24px;
        height: auto;
        border-radius: 2px;
    }
}

.quote-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    & li {
        display: inline-block;
    }
    & a {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        background-color: #f0f0f0;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        font-family: system-ui, sans-serif;
        &:hover {
            background-color: #e0e0e0;
        }
    }
}

.quote-card__content-text {
    margin-top: 1em;
}

.quote-card__blockquote {
    margin: 0;
    padding-left: 1em;
    border-left: 3px solid #ccc;
    & p {
        margin: 0;
        font-family: New York, Georgia, serif;
        font-size: 20px;
        line-height: 1.5;
        font-weight: 400;
        color: #333;
        text-decoration: none;
        &:hover {
            color: #000;
        }
    }
}

.quote-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    & h1 {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.quote-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    align-items: center;
    &.centered {
        justify-content: center;
    }
}

.quote-card__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}