.main-nav a[aria-current="page"] {
    color: var(--text);
}

.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.books-intro {
    padding: 92px 0 44px;
    border-bottom: 1px solid var(--line);
}

.books-intro h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.9rem, 7vw, 6.5rem);
    font-weight: 500;
    line-height: 0.98;
}

.books-intro-copy {
    max-width: 680px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.affiliate-note {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.books-global-status {
    min-height: 26px;
    margin-top: 22px;
    color: var(--muted);
}

.books-global-status.error {
    color: var(--danger);
}

.books-global-status.success {
    color: var(--success);
}

.books-section {
    padding: 54px 0 76px;
}

.books-recommended {
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.books-heading {
    margin-bottom: 34px;
}

.books-list {
    display: grid;
    gap: 26px;
}

.book-card {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    border-top: 1px solid var(--line);
    padding-top: 26px;
}

.book-cover-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.book-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
}

.book-body {
    min-width: 0;
    padding-left: clamp(24px, 5vw, 72px);
}

.book-section-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.book-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 500;
    line-height: 1.03;
}

.book-author {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.book-summary {
    max-width: 740px;
    margin: 24px 0 0;
    color: var(--muted);
    line-height: 1.7;
    white-space: pre-line;
}

.book-primary-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.amazon-link::after {
    content: " ↗";
}

.book-reactions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.book-reaction {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}

.book-reaction:hover,
.book-reaction[aria-pressed="true"] {
    border-color: var(--accent);
    color: var(--text);
}

.book-reaction[aria-pressed="true"]::before {
    content: "✓ ";
}

.book-comments {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.book-comments h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.book-comment-form {
    max-width: 760px;
    margin-top: 18px;
}

.book-comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.book-comment-form textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    line-height: 1.5;
}

.book-comment-form-row {
    margin-top: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.book-comment-count {
    color: var(--muted);
    font-size: 0.76rem;
}

.book-login-prompt {
    margin-top: 18px;
    padding: 16px 0;
    color: var(--muted);
}

.book-login-prompt button {
    margin-left: 6px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 750;
}

.book-comments-list {
    max-width: 760px;
    margin-top: 22px;
    display: grid;
}

.book-comment {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.book-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.75rem;
}

.book-comment strong {
    color: var(--text);
}

.book-comment-identity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.book-author-badge {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.book-comment p {
    margin: 10px 0 0;
    line-height: 1.55;
}

.pending-label,
.featured-label {
    color: var(--accent);
    font-weight: 800;
}

.books-empty {
    min-height: 150px;
    padding: 40px 0;
    display: grid;
    align-content: center;
    border-block: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 700px) {
    .books-intro {
        padding-top: 62px;
    }

    .books-intro h1 {
        font-size: clamp(2.6rem, 14vw, 4.2rem);
    }

    .book-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .book-body {
        padding-left: 18px;
    }

    .book-title {
        font-size: clamp(1.65rem, 8vw, 2.4rem);
    }

    .book-comments {
        margin-left: -122px;
    }

    .book-comment-form-row {
        align-items: stretch;
        flex-direction: column;
    }
}
