/* Book jackets and old paper: live typography and controls, decorative header artwork. */
:root {
    --rk-bg: #0b202b;
    --rk-surface: #fbf7ed;
    --rk-surface-soft: #f3ecdc;
    --rk-text: #101f2a;
    --rk-text-soft: #596572;
    --rk-border: #ded0b6;
    --rk-accent: #a83216;
    --rk-accent-dark: #782510;
    --rk-link: #8b301a;
    --rk-shadow: 0 3px 12px #49371d1c;
}
body {
    background-color: #f6f0e2;
    background-image: radial-gradient(ellipse at 0 15%, #d6bd8624, transparent 50%),
        repeating-linear-gradient(17deg, #92733b03 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at 90% 85%, #ddcba82e, transparent 60%);
    color: var(--rk-text);
    font-family: Georgia, 'Times New Roman', serif;
}
h1, h2, h3, h4, h5, .btn, .navbar-brand { font-family: Georgia, 'Times New Roman', serif; }
h1 { font-size: clamp(2.1rem, 3.5vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; }
h2, h3 { font-weight: 700; }
.text-muted, .lead { color: var(--rk-text-soft) !important; }
.site-shell > .site-main > .container, .site-header .container, .site-footer .container { max-width: 1660px; width: 94%; }
.site-main > .container { padding-top: 1.65rem !important; padding-bottom: 2rem !important; }
.site-main > .container > .mb-4:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2rem !important; }
.site-main > .container > .mb-4:first-child h1, .site-main > .container > .mb-4:first-child .lead { margin-bottom: .25rem; }
.site-header {
    position: relative;
    isolation: isolate;
    background: radial-gradient(ellipse at 70% 10%, #25414b, transparent 70%), #0b202b;
    border-bottom: 4px double #d4af6c;
    box-shadow: 0 2px 0 #fff9e8;
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: min(70%, 900px);
    background: url('../images/night-city-header.png') center 42% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
    mask-image: linear-gradient(to right, transparent, #000 35%);
    opacity: .8;
    pointer-events: none;
    z-index: -1;
}
.site-header .navbar { padding: .25rem 0; min-height: 100px; }
.site-header .bookish-brand { display: flex; align-items: center; gap: .7rem; color: #efcf8e !important; margin-right: 1.7rem; padding: 0; text-align: left; white-space: nowrap; }
.bookish-brand img { flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; }
.brand-title { font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 2px #0005; }
.brand-star { font-size: 2rem; padding-left: .2rem; font-weight: 400; }
.brand-subtitle { font: .68rem/1.8 'Segoe UI', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.site-header .nav-link { font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; white-space: nowrap; color: #f6ecda !important; padding: .65rem .5rem; text-shadow: 0 1px 3px #06121c; }
.site-header .top-tabs .nav-link { border-bottom: 2px solid transparent; }
.site-header .top-tabs .nav-link.active { border-bottom-color: #d7a348; color: #fff !important; }
.site-header .nav-link:hover { color: #efcf8e !important; }
.site-header .account-nav .nav-link { color: #efcf8e !important; white-space: normal; overflow-wrap: anywhere; }
.site-header .navbar-toggler { border-color: #d4af6c; background: #f7e4bb; }
.site-header .navbar-toggler-icon {
    filter: none;
    background: linear-gradient(#122b37, #122b37) center 25% / 22px 2px no-repeat,
        linear-gradient(#122b37, #122b37) center / 22px 2px no-repeat,
        linear-gradient(#122b37, #122b37) center 75% / 22px 2px no-repeat;
}
.site-header .admin-subnav { border-color: #b9924f55 !important; background: #091b27b3; }
.site-main .bb-book-grid { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); }
.site-main .bb-book-card { border: 1px solid #ddceb4; border-radius: .8rem; background: linear-gradient(115deg, #fffdf6a6, #f9f4e8e6); box-shadow: 0 4px 12px #4e371c24, inset 0 0 20px #eadcc330; overflow: hidden; }
.site-main .bb-book-card::before { content: ''; display: block; height: 2px; background: linear-gradient(90deg, #b77822, #e5c993, #b77822); margin: 7px 11px 0; }
.site-main .bb-book-body { padding: 1.3rem; }
.site-main .bb-book-cover { width: 120px; max-height: 184px; border-radius: .4rem; margin: 0 1.3rem .45rem 0; box-shadow: 0 2px 4px #24170944; }
.site-main .bb-book-content { font-size: 1.08rem; line-height: 1.42; }
.site-main .bb-book-content h2 { font-size: 1.65rem; font-weight: 700; line-height: 1.13; letter-spacing: -.025em; }
.site-main .bb-book-content > .text-muted.small:first-child { color: #9a301a !important; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; margin-bottom: .5rem !important; }
.site-main .bb-book-content > .text-muted:not(.small) { font-size: 1.12rem; }
.site-main .bb-book-content p.small { font-size: 1rem; line-height: 1.45; }
.site-main .bb-book-content > .vote-summary { clear: both; padding-top: .5rem; margin-top: .5rem; border-top: 1px solid #d6c7ac; color: #942e17; font-size: 1.08rem; }
.site-main .bb-book-content > .vote-summary::before { content: '▂▅▇'; color: #b47b2e; font-size: .9rem; letter-spacing: 1px; margin-right: .65rem; }
.site-main .bb-book-content .btn[data-bs-target^='#feature-details'],
.site-main .bb-book-content .btn[data-bs-target^='#book-details'],
.site-main .btn-primary {
    color: #fff4dc; background: linear-gradient(#aa391d, #84250f);
    border: 1px solid #73250f; border-radius: .4rem;
    box-shadow: inset 0 0 0 2px #e5be78, inset 0 0 0 3px #8a3a1d, 0 2px 3px #42251030;
    padding: .65rem 1rem; font-weight: 700; text-shadow: 0 1px 1px #491a0e;
}
.site-main .bb-book-content .btn[data-bs-target^='#feature-details'],
.site-main .bb-book-content .btn[data-bs-target^='#book-details'] { font-size: 1.15rem; width: 100%; }
.site-main .bb-book-content .btn[data-bs-target^='#feature-details']::after,
.site-main .bb-book-content .btn[data-bs-target^='#book-details']::after { content: ' →'; margin-left: .55rem; font-weight: 400; }
.site-main .btn-primary:hover, .site-main .bb-book-content .btn[data-bs-toggle='modal']:hover { background: #76230f; color: #fff; }
.site-main .btn-outline-dark { color: #6e301b; border-color: #ad8c5b; }
.site-main .btn-outline-dark:hover { background: #6e301b; color: #fff; }
.modal-content, .hero-panel, .soft-panel { background: #fbf7ed; border: 1px solid #d5bd91; border-radius: .7rem; }
.modal-header, .modal-footer { border-color: #ddceb4; }
.modal-title { font-weight: 700; }
.form-control, .form-select { background-color: #fffdf7; border-color: #cabba1; }
.form-control:focus, .form-select:focus { background-color: #fffefb; border-color: #a77b36; }
.table { --bs-table-bg: transparent; }
.site-footer { background: #0b202b; border-top: 3px double #c49a55; }
.site-footer .network-link { color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid #b7802d; outline-offset: 4px; }
@media (max-width: 1399.98px) {
    .site-header .navbar-collapse { background: #0b202bf2; padding: .75rem 1rem; border-top: 1px solid #cfab6b55; margin-top: .5rem; }
    .site-header .nav-link { padding: .55rem .2rem; }
    .site-header .top-tabs .nav-link.active { border-bottom-color: transparent; color: #efcf8e !important; }
}
@media (max-width: 575.98px) {
    .site-header .navbar { min-height: 82px; }
    .site-header .bookish-brand { gap: .35rem; margin-right: .4rem; }
    .bookish-brand img { width: 48px; height: 60px; }
    .brand-title { font-size: 2.25rem; }
    .brand-star { font-size: 1.4rem; }
    .brand-subtitle { font-size: .5rem; letter-spacing: .1em; }
    .site-main .bb-book-body { padding: 1rem; }
    .site-main .bb-book-cover { width: 92px; max-height: 140px; margin-right: 1rem; }
    .site-main .bb-book-content h2 { font-size: 1.4rem; }
    .site-shell > .site-main > .container, .site-header .container { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .book-card { transition: none; } }
