.home-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(circle at 78% 18%, rgba(216, 189, 131, .23), transparent 30%),
        linear-gradient(135deg, #f7f4ed 0%, #eee7da 100%);
}

.home-hero::after {
    position: absolute;
    right: -180px;
    bottom: -300px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(176, 138, 70, .2);
    border-radius: 50%;
    content: "";
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 25px;
}

.hero-lead {
    max-width: 680px;
    margin-bottom: 35px;
    color: #4e4a45;
    font-size: 1.23rem;
}

.hero-stage {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(176, 138, 70, .32);
    border-radius: 50%;
}

.hero-orbit-one {
    width: 510px;
    height: 510px;
}

.hero-orbit-two {
    width: 380px;
    height: 380px;
    transform: rotate(24deg) scaleX(.55);
}

.hero-book-stack {
    position: relative;
    width: 290px;
    height: 430px;
    transform: rotate(-4deg);
}

.hero-book {
    position: absolute;
    width: 280px;
    height: 420px;
    border-radius: 8px 17px 17px 8px;
    box-shadow: 22px 28px 50px rgba(20, 35, 43, .24);
}

.hero-book-back {
    top: 15px;
    left: -48px;
    background: #9b763d;
    transform: rotate(-8deg);
}

.hero-book-middle {
    top: 7px;
    left: 23px;
    background: #315362;
    transform: rotate(5deg);
}

.hero-book-front {
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), transparent),
        #172b38;
    color: white;
}

.hero-book-front strong {
    font-family: Garamond, Georgia, serif;
    font-size: 3.2rem;
    line-height: .9;
    letter-spacing: -.04em;
}

.book-mark,
.hero-book-front small {
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-note {
    position: absolute;
    right: 0;
    bottom: 20px;
    padding: 15px 18px;
    border: 1px solid rgba(176, 138, 70, .3);
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
}

.hero-note span,
.hero-note strong {
    display: block;
}

.hero-note span {
    margin-bottom: 3px;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.new-books-section {
    padding: 110px 0 120px;
}

.section-heading-split {
    display: grid;
    grid-template-columns: 1fr .65fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 48px;
}

.section-heading-split h2 {
    margin-bottom: 0;
}

.section-heading-split p {
    margin: 0;
    color: var(--muted);
}

.new-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-book {
    position: relative;
}

.featured-book-main {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(260px, .85fr) 1fr;
    gap: 30px;
    align-items: center;
}

.featured-book-cover {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 410px;
    border-radius: 22px;
    background: #e6dfd2;
    box-shadow: var(--shadow-small);
    text-decoration: none;
}

.featured-book:not(.featured-book-main) .featured-book-cover {
    min-height: 350px;
}

.featured-book-cover img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform .5s ease;
}

.featured-book:hover .featured-book-cover img {
    transform: scale(1.045);
}

.generated-cover {
    min-height: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    color: var(--white);
}

.generated-cover span,
.generated-cover small {
    color: var(--gold-light);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.generated-cover strong {
    font-family: Garamond, Georgia, serif;
    font-size: 2.8rem;
    line-height: .95;
}

.cover-badge {
    position: absolute;
    top: 17px;
    left: 17px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--gold);
    color: white;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.featured-book-content {
    padding: 6px 4px;
}

.book-number {
    display: block;
    margin-bottom: 25px;
    color: var(--gold);
    font-family: Garamond, Georgia, serif;
    font-size: 1.5rem;
}

.featured-book-content h3 {
    margin: 9px 0 4px;
    font-family: Garamond, Georgia, serif;
    font-size: 2rem;
}

.featured-book-content h3 a {
    text-decoration: none;
}

.book-author {
    margin-top: 0;
    color: var(--gold);
    font-weight: 750;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.more-books-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.more-book {
    flex: 0 0 auto;
    transition: transform .3s ease;
}

.more-book-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #e6dfd2;
    box-shadow: var(--shadow-small);
    text-decoration: none;
}

.more-book:not(.more-book-center) .more-book-cover {
    width: 200px;
    height: 300px;
}

.more-book-center .more-book-cover {
    width: 260px;
    height: 390px;
}

.more-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.more-book:hover .more-book-cover img {
    transform: scale(1.045);
}

.more-book .generated-cover {
    min-height: 100%;
    height: 100%;
    padding: 20px;
}

.more-book:not(.more-book-center) .generated-cover strong {
    font-size: 1.6rem;
}

.more-book-center .generated-cover strong {
    font-size: 2.2rem;
}

.more-book:not(.more-book-center) .cover-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    font-size: .62rem;
}

.more-book-center .cover-badge {
    top: 15px;
    left: 15px;
    padding: 6px 10px;
    font-size: .68rem;
}

.empty-feature {
    padding: 60px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--white);
    text-align: center;
}

.center-action {
    margin-top: 55px;
    text-align: center;
}

.manifesto-section {
    padding: 115px 0;
    background: #17252e;
    color: var(--white);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 70px;
}

.manifesto-number {
    color: var(--gold-light);
    font-family: Garamond, Georgia, serif;
    font-size: 6rem;
    line-height: 1;
}

.manifesto-grid h2 {
    max-width: 900px;
    margin-bottom: 25px;
}

.large-copy {
    max-width: 780px;
    color: #d7dde0;
    font-size: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.value-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.035);
}

.value-card > span {
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.value-card h3 {
    margin-top: 40px;
    margin-bottom: 10px;
}

.value-card p {
    margin-bottom: 0;
    color: #c4cdd1;
}

.visited-books-section {
    padding: 60px 0;
}

.visited-scroll-box {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
}

.visited-scroll-box::-webkit-scrollbar {
    height: 8px;
}

.visited-scroll-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.01);
    border-radius: 4px;
}

.visited-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.visited-book-card {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.visited-book-card:hover {
    transform: translateY(-4px);
}

.visited-book-cover {
    width: 160px;
    height: 240px;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visited-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visited-generated-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
}

.visited-generated-cover span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.visited-generated-cover strong {
    font-size: 0.9rem;
    line-height: 1.3;
}

.visited-book-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.visited-book-info strong {
    font-size: 0.9rem;
    line-height: 1.3;
}

.visited-book-info small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.visited-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.visited-pagination .btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.visited-page-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.author-highlight {
    padding: 115px 0;
    background: var(--paper-2);
}

.author-highlight-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 90px;
}

.author-highlight h2 {
    max-width: 720px;
}

.author-highlight p {
    max-width: 680px;
    color: var(--muted);
}

.author-portrait-placeholder {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    border-radius: 25px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.author-portrait-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.author-portrait-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    color: white;
}

.author-portrait-overlay span,
.author-portrait-overlay small {
    color: var(--gold-light);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.author-portrait-overlay strong {
    font-family: Garamond, Georgia, serif;
    font-size: 4.5rem;
    line-height: .85;
}

.donation-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(216, 189, 131, .18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f7f4ed 0%,
            #eee7da 100%
        );
}

.donation-section::before {
    position: absolute;
    top: -180px;
    left: -180px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(176, 138, 70, .16);
    border-radius: 50%;
    content: "";
}

.donation-section::after {
    position: absolute;
    right: -130px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(176, 138, 70, .14);
    border-radius: 50%;
    content: "";
}

.donation-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 45px;
    padding: 60px;
    overflow: hidden;
    border: 1px solid rgba(176, 138, 70, .25);
    border-radius: 30px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 25px 70px rgba(23, 43, 56, .12);
    backdrop-filter: blur(12px);
}

.donation-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 2.4rem;
    box-shadow: 0 15px 35px rgba(23, 43, 56, .2);
}

.donation-content {
    max-width: 850px;
}

.donation-content h2 {
    margin: 8px 0 18px;
    font-family: Garamond, Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.donation-content p {
    max-width: 760px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.donation-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.donation-paypal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 14px 24px;
    text-decoration: none;
}

.donation-paypal-btn i {
    font-size: 1.2rem;
}

.donation-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #77716a;
    font-size: .82rem;
}

.donation-note i {
    color: var(--gold);
}

.partnership-banner {
    padding: 90px 0;
    background: var(--white);
}

.partnership-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 50px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ede4d4, #f7f4ed);
}

.partnership-inner h2 {
    max-width: 800px;
    margin-bottom: 12px;
}

.partnership-inner p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {

    .home-hero-grid,
    .section-heading-split,
    .author-highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 500px;
    }

    .new-books-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-book-main {
        grid-column: span 2;
    }

    .more-books-row {
        gap: 20px;
    }

    .more-book:not(.more-book-center) .more-book-cover {
        width: 160px;
        height: 240px;
    }

    .more-book-center .more-book-cover {
        width: 210px;
        height: 315px;
    }

    .partnership-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .donation-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 45px;
    }

    .donation-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .donation-content h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 650px) {

    .home-hero,
    .new-books-section,
    .manifesto-section,
    .author-highlight {
        padding: 75px 0;
    }

    .hero-stage {
        min-height: 440px;
        transform: scale(.82);
        transform-origin: center;
    }

    .hero-orbit-one {
        width: 430px;
        height: 430px;
    }

    .new-books-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .featured-book-main {
        grid-column: auto;
        display: block;
    }

    .featured-book-cover,
    .featured-book:not(.featured-book-main) .featured-book-cover {
        min-height: 390px;
    }

    .featured-book-content {
        padding: 24px 4px 10px;
    }

    .more-books-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .more-book:not(.more-book-center) .more-book-cover {
        width: 130px;
        height: 195px;
    }

    .more-book-center .more-book-cover {
        width: 170px;
        height: 255px;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .manifesto-number {
        font-size: 4rem;
    }

    .author-portrait-placeholder {
        min-height: 430px;
    }

    .partnership-inner {
        padding: 30px;
    }

    .donation-section {
        padding: 70px 0;
    }

    .donation-card {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .donation-icon {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }

    .donation-content h2 {
        font-size: 2.2rem;
    }

    .donation-content p {
        font-size: .98rem;
    }

    .donation-actions {
        width: 100%;
    }

    .donation-paypal-btn {
        width: 100%;
    }

    .donation-note {
        align-items: flex-start;
    }
}