.home-hero {
    border: 1px solid #e7ebf0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.06);
}

.home-intro__content {
    min-width: 0;
}

.home-hero__title {
    color: #273444;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.home-hero__lead {
    max-width: 48rem;
    color: #5d6875;
    font-size: 1.05rem;
    line-height: 1.6;
}

.home-search {
    max-width: 48rem;
}

.home-search .input-group-text {
    border-right: 0;
    background: #ffffff;
    color: #6c757d;
}

.home-search .form-control {
    border-left: 0;
}

.home-search .form-control:focus {
    border-color: #86b7a0;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 48rem;
}

.home-stats__item {
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e7ebf0;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.home-stats__value {
    display: block;
    margin: 0 0 0.15rem;
    color: #273444;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-stats__label {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
}

.home-genres {
    padding-left: 1.5rem;
    border-left: 1px solid #e7ebf0;
}

.home-genres__heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.home-genres__icon {
    color: #198754;
    font-size: 1.35rem;
}

.home-genres__title {
    margin: 0;
    color: #273444;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-genres__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-genres__link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e1e6eb;
    border-radius: 999px;
    background: #f8f9fa;
    color: #273444;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

.home-genres__link:hover,
.home-genres__link:focus {
    border-color: #a9d5bd;
    background: #f0f7f3;
    color: #146c43;
}

.home-genres__link:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.25);
    outline-offset: 2px;
}

.home-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.home-section-title {
    color: #273444;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-section-link {
    flex: 0 0 auto;
    color: #198754;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.home-section-link:hover,
.home-section-link:focus {
    color: #146c43;
    text-decoration: underline;
}

.home-book-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid #e7ebf0;
    border-radius: 0.85rem;
    background: #ffffff;
}

.home-book-card__cover-link {
    display: block;
}

.home-book-card__cover {
    display: flex;
    width: 80px;
    aspect-ratio: 2 / 3;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f8f9fa;
    object-fit: cover;
}

.home-book-card__cover--empty {
    border: 1px solid #e1e6eb;
    color: #6c757d;
}

.home-book-card__cover--empty .material-icons {
    font-size: 1.8rem;
}

.home-book-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-book-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-book-card__title a,
.home-book-card__author a {
    color: #273444;
    text-decoration: none;
}

.home-book-card__title a:hover,
.home-book-card__title a:focus,
.home-book-card__author a:hover,
.home-book-card__author a:focus {
    color: #198754;
}

.home-book-card__author,
.home-book-card__rating {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.home-book-card__rating-label {
    display: block;
    margin-bottom: 0.15rem;
}

.home-book-card__rating-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.65rem;
    align-items: baseline;
}

.home-book-card__rating-values strong {
    color: #b7791f;
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-genres {
        padding-top: 1.25rem;
        padding-left: 0;
        border-top: 1px solid #e7ebf0;
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
