.page-home .breadcrumb-wrap {
    display: none;
}

/* =========================
   HOME HERO
========================= */

.hero--home {
    padding: var(--s-12) 0 var(--s-10);
    text-align: center;
}

.home-hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.hero--home h1 {
    max-width: 25ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 4.8vw, 3.4rem);
}

.hero--home .summary {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-search {
    max-width: 640px;
    margin: var(--s-5) auto 0;
}

.home-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: var(--card);
    border: 1px solid var(--white-16);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.home-search-box input {
    width: 100%;
    height: 54px;
    border: 0;
    padding: 0 var(--s-8);
    font: inherit;
    color: var(--text);
    background: var(--card);
}

.home-search-box button {
    height: 54px;
    border: 0;
    padding: 0 var(--s-8);
    background: var(--nav);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.home-search-box:focus-within {
    box-shadow: 0 0 0 3px var(--focus-18), var(--shadow-strong);
}

.home-search-box input:focus-visible {
    outline: none;
}

.home-search-box button:hover {
    background: var(--accent-hover);
}

.home-hero-search-note {
    margin-top: var(--s-3);
    font-size: 0.86rem;
    color: var(--white-72);
}

.home-hero-search-note a {
    color: var(--white-92);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-hero-meta {
    margin-top: var(--s-6);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3) var(--s-6);
    font-size: 0.82rem;
    color: var(--white-72);
}

.home-hero-meta strong {
    color: var(--white);
}

.home-hero-links {
    margin-top: var(--s-6);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
}

.home-hero-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 var(--s-5);
    border-radius: var(--chip-radius);
    background: var(--white-10);
    border: 1px solid var(--white-14);
    color: var(--white-90);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .hero--home {
        padding: var(--s-10) 0 var(--s-8);
    }

    .home-search-box {
        grid-template-columns: 1fr;
        gap: var(--s-3);
        padding: var(--s-3);
        background: var(--white-10);
        border: 1px solid var(--white-22);
        border-radius: 18px;
    }

    .home-search-box input {
        height: 52px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--card);
        box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
    }

    .home-search-box button {
        height: 52px;
        border-radius: 12px;
    }

    .home-hero-links a:nth-child(n+4) {
        display: none;
    }
}

/* =========================
   SHARED SECTION WRAPPERS
========================= */

.home-page-section {
    margin-bottom: var(--section-gap);
}

.home-page-section:last-child {
    margin-bottom: 0;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-5);
    margin-bottom: var(--s-5);
    padding: 0 var(--tight-gap);
}

.home-section-head h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.home-section-head p {
    margin-top: var(--s-2);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-section-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .home-section-head {
        display: block;
    }

    .home-section-link {
        display: inline-block;
        margin-top: var(--s-3);
    }
}

/* =========================
   POPULAR SERIES
========================= */

.home-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.home-series-card {
    display: block;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
    text-align: center;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.home-series-card:hover {
    background: var(--accent-04);
    border-color: var(--accent-22);
    text-decoration: none;
    transform: translateY(-2px);
}

.home-card-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--s-4) var(--s-3) var(--s-2);
}

.home-card-cover img {
    display: block;
    width: auto;
    height: 132px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--cover-radius);
    box-shadow: var(--cover-shadow);
}

.home-series-body {
    min-width: 0;
    padding: 0 var(--s-3) var(--s-4);
    text-align: center;
}

.home-series-body h3 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    line-height: 1.22;
    font-weight: 700;
    color: var(--text);
}

.home-series-card .home-card-meta {
    display: block;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 768px) {
    .home-series-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--s-4);
    }

    .home-card-cover {
        padding: var(--s-6) var(--s-4) var(--s-3);
    }

    .home-card-cover img {
        height: 180px;
    }

    .home-series-body {
        padding: 0 var(--s-4) var(--s-5);
    }

    .home-series-body h3 {
        font-size: 0.96rem;
    }

    .home-series-card .home-card-meta {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .home-series-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-card-cover img {
        height: 190px;
    }
}

/* =========================
   HOME LINK LIST
========================= */

.home-link-list {
    display: grid;
    gap: var(--s-2);
}

.home-link-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--border);
    border-radius: var(--surface-radius-sm);
    background: var(--card);
    text-decoration: none;
}

.home-link-list a:hover {
    border-color: var(--accent-22);
    background: var(--accent-04);
    text-decoration: none;
}

.home-link-list strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 700;
}

.home-link-list span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .home-link-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-3);
    }
}

/* =========================
   NEW RELEASES
========================= */

.home-release-grid {
    display: grid;
    gap: var(--s-4);
}

.home-release-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
    padding: var(--s-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    overflow: hidden;
}

.home-release-card:hover {
    text-decoration: none;
}

.home-release-cover {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--s-1);
    background: none;
}

.home-release-cover img {
    display: block;
    height: 96px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-release-body {
    min-width: 0;
    text-align: left;
}

.home-release-date {
    display: inline-block;
    margin: 0 0 var(--s-2);
    padding: 2px 8px;
    border-radius: var(--chip-radius);
    background: var(--accent-06);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-release-body h3 {
    margin: 0 0 var(--s-1);
    font-size: 0.96rem;
    line-height: 1.25;
    color: var(--text);
}

.home-release-body p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}

.home-release-cover--calendar {
    min-height: 100px;
}

.home-release-calendar-icon {
    font-size: 1.9rem;
    line-height: 1;
}

@media (max-width: 767px) {
    .home-release-grid {
        gap: var(--s-3);
    }

    .home-release-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: var(--s-3);
        padding: var(--s-3);
    }

    .home-release-cover {
        padding: 0;
    }

    .home-release-cover img {
        height: 90px;
        border-radius: 8px;
    }

    .home-release-cover--calendar {
        min-height: 86px;
    }

    .home-release-calendar-icon {
        font-size: 1.5rem;
    }

    .home-release-body h3 {
        font-size: 0.92rem;
    }

    .home-release-body p {
        font-size: 0.8rem;
    }

    .is-desktop-only {
        display: none;
    }
}

@media (min-width: 768px) {
    .home-release-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================
   MEMBERSHIP CTA
========================= */

.home-inline-promo {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--s-6);
    text-align: center;
}

.home-inline-promo h2 {
    margin: 0 0 var(--s-3);
    font-size: 1.08rem;
}

.home-inline-promo p {
    color: var(--muted);
    max-width: 54ch;
    margin: 0 auto var(--s-5);
}

.home-search-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
}

.home-btn,
.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--s-6);
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.home-btn {
    background: var(--nav);
    color: var(--white);
    border: 1px solid var(--nav);
}

.home-btn:hover {
    background: #033447;
    border-color: #033447;
    text-decoration: none;
}

.home-btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.home-btn-secondary:hover {
    background: var(--accent-04);
    border-color: var(--accent-22);
    text-decoration: none;
}

/* =========================
   POPULAR AUTHORS
========================= */

.home-author-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.home-author-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    overflow: hidden;
    padding: var(--s-4) var(--s-3);
    text-align: center;
}

.home-author-card:hover {
    text-decoration: none;
}

.home-author-photo {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--s-3);
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--paper), var(--accent-02));
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-author-photo--fallback span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.home-author-body {
    min-width: 0;
    text-align: center;
}

.home-author-body h3 {
    margin: 0 0 var(--s-1);
    font-size: 0.94rem;
    line-height: 1.24;
    color: var(--text);
}

.home-author-meta {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--muted);
}

@media (max-width: 767px) {
    .home-author-card {
        padding: var(--s-3) var(--s-2);
    }

    .home-author-photo {
        width: 64px;
        height: 64px;
        margin-bottom: var(--s-2);
    }

    .home-author-body h3 {
        font-size: 0.9rem;
    }

    .home-author-meta {
        font-size: 0.76rem;
    }
}

@media (min-width: 768px) {
    .home-author-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--s-4);
    }
}

/* =========================
   EXPLORE BY GENRE
========================= */

.home-genre-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
}

.home-genre-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    overflow: hidden;
    padding: var(--s-6);
}

.home-genre-card:hover {
    text-decoration: none;
}

.home-genre-card h3 {
    margin: 0 0 var(--s-1);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.28;
    color: var(--text);
}

.home-genre-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 var(--s-1);
}

.home-genre-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (min-width: 768px) {
    .home-genre-grid,
    .home-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================
   ADVANCED SEARCH
========================= */

.home-inline-promo--search {
    text-align: center;
}

.home-search-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
    margin: 0 0 var(--s-5);
}

.home-search-features span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 var(--s-4);
    border-radius: var(--chip-radius);
    background: var(--accent-04);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .home-search-features {
        gap: var(--s-2);
    }

    .home-search-features span {
        font-size: 0.8rem;
        padding: 0 var(--s-3);
    }
}

/* =========================
   AD SLOT
========================= */

.home-ad-slot-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--s-3);
    padding-left: var(--tight-gap);
}

.ad-slot {
    min-height: 160px;
}

/* =========================
   EXPLORE BY GENRE
========================= */

.home-genre-grid {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-genre-card {
    display: block;

    position: relative;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-decoration: none;
    overflow: hidden;

    padding: var(--s-5);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.home-genre-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-22);
    background: var(--accent-02);
    text-decoration: none;
}

/* subtle genre moods */

.home-genre-card--romance {
    background:
        linear-gradient(to bottom,
            rgba(180, 70, 100, 0.05),
            var(--card));
}

.home-genre-card--mystery {
    background:
        linear-gradient(to bottom,
            rgba(30, 45, 70, 0.06),
            var(--card));
}

.home-genre-card--scifi {
    background:
        linear-gradient(to bottom,
            rgba(40, 80, 140, 0.05),
            var(--card));
}

.home-genre-card--fantasy {
    background:
        linear-gradient(to bottom,
            rgba(90, 60, 140, 0.05),
            var(--card));
}

.home-genre-card--ya {
    background:
        linear-gradient(to bottom,
            rgba(200, 120, 60, 0.05),
            var(--card));
}

.home-genre-card--kids {
    background:
        linear-gradient(to bottom,
            rgba(70, 140, 90, 0.05),
            var(--card));
}

/* cover stacks */

.home-genre-art {
    position: relative;

    width: 140px;
    height: 86px;

    margin: 0 auto var(--s-5);
}

.home-genre-art img {
    position: absolute;

    width: 56px;
    height: 84px;

    object-fit: cover;

    border-radius: 8px;

    box-shadow: var(--cover-shadow);
}

.home-genre-art img:nth-child(1) {
    left: 0;
    top: 6px;
    z-index: 1;
    transform: rotate(-8deg);
}

.home-genre-art img:nth-child(2) {
    left: 42px;
    top: 0;
    z-index: 3;
}

.home-genre-art img:nth-child(3) {
    left: 84px;
    top: 6px;
    z-index: 2;
    transform: rotate(8deg);
}

.home-genre-label,
.home-genre-count,
.home-genre-card p {
    text-align: center;
}

/* typography */

.home-genre-label {
    margin-bottom: var(--s-2);

    color: var(--text);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-genre-count {
    margin-bottom: var(--s-3);

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-genre-card p {
    max-width: 28ch;
    margin: 0 auto;

    color: var(--muted);

    font-size: 0.84rem;
    line-height: 1.5;

    text-align: center;
}

/* responsive */

@media (max-width: 767px) {

    .home-genre-grid {
        grid-template-columns: 1fr;
        gap: var(--s-3);
    }

    .home-genre-card {
        padding: var(--s-4);
    }

    .home-genre-art {
        width: 122px;
        height: 76px;
        margin: 0 auto var(--s-4);
    }

    .home-genre-art img {
        width: 50px;
        height: 74px;
    }

    .home-genre-art img:nth-child(2) {
        left: 36px;
    }

    .home-genre-art img:nth-child(3) {
        left: 72px;
    }
}

@media (min-width: 768px) {

    .home-genre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================
   THIS MONTH'S PICKS
========================= */

.home-picks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
}

.home-pick-card {
    display: block;
    min-width: 0;

    padding: var(--s-4);

    background:
        linear-gradient(
            180deg,
            rgba(var(--accent-rgb), 0.04),
            var(--card)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: center;
    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.home-pick-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-22);
    background: var(--accent-04);
    text-decoration: none;
}

.home-pick-cover {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: var(--s-3);
}

.home-pick-cover img {
    display: block;

    width: auto;
    height: 142px;
    max-width: 100%;

    object-fit: contain;

    border-radius: var(--cover-radius);
    box-shadow: var(--cover-shadow);
}

.home-pick-body {
    min-width: 0;
}

.home-pick-label {
    margin-bottom: var(--s-2);

    color: var(--accent);

    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.home-pick-body h3 {
    margin: 0 0 2px;

    color: var(--text);

    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 750;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.home-pick-author {
    color: var(--muted);

    font-size: 0.76rem;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .home-picks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--s-4);
    }

    .home-pick-card {
        padding: var(--s-5);
    }

    .home-pick-cover img {
        height: 170px;
    }

    .home-pick-body h3 {
        font-size: 0.94rem;
    }

    .home-pick-author {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .home-picks-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-pick-cover img {
        height: 180px;
    }
}