body.atlas-book {
    --wine: #332337;
    --paper: #faf6ef;
    --gold: #ffcca4;
    color: var(--wine);
    background: var(--paper);
    font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.atlas-book * { box-sizing: border-box; }
.atlas-book .report-page-content { max-width: 70rem; padding: 0 clamp(1rem, 4vw, 4rem) 2rem; }
.atlas-book main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(17rem, .85fr); gap: 2rem; margin-block: 2rem; align-items: start; }
.atlas-book .order-grid { display: contents; }
.book-cover {
    position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.4rem, 4vw, 3.5rem);
    border-radius: 1rem; background: #251b30; color: #fff4e3;
}
.book-cover::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(130deg, #211626ee, #24192cac 62%, #2f203c88), url("/images/karta-arkanov/night.webp") center / cover;
}
.atlas-book .imprint { margin: 0 0 .8rem; color: #795338; font: 650 .7rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .13em; }
.atlas-book .book-cover .imprint, .book-cover a { color: var(--gold); }
.atlas-book h1, .atlas-book h2 { margin: 0; font: 400 clamp(1.7rem, 3.2vw, 2.7rem)/1.06 Georgia, serif; letter-spacing: -.04em; }
.atlas-book h1 { font-size: clamp(2.7rem, 5.3vw, 4.6rem); }
.book-cover em { color: var(--gold); }
.book-cover p:not(.imprint) { margin: 1.5rem 0; max-width: 40ch; }
.book-cover a { display: inline-block; padding-block: .4rem; }
.purchase-box { background: #fffcf8; border: 1px solid #d7c8b6; border-radius: 1rem; padding: clamp(1.25rem, 2.5vw, 2.2rem); box-shadow: 0 8px 30px #4936410a; }
.purchase-box .price { border-bottom: 1px solid #dbcebf; margin: .65rem 0 1rem; padding-bottom: .65rem; }
.price strong { font: 400 2rem/1.2 Georgia, serif; }
.price { display: flex; align-items: center; gap: .85rem; }
.price span { color: #685962; font-size: .85rem; line-height: 1.35; }
.purchase-box label, .purchase-box small { display: block; }
.purchase-box small, .purchase-box .fine { color: #685962; font-size: .84rem; }
.purchase-box input { width: 100%; min-width: 0; min-height: 46px; margin: .35rem 0 .8rem; background: white; color: var(--wine); }
.purchase-box button, .book-button { display: inline-block; border-radius: .5rem; padding: .9rem 1.25rem; background: var(--wine); color: #fff6e8; font-size: 1rem; line-height: 1.4; font-weight: 600; text-decoration: none; }
.purchase-box button { width: 100%; font-weight: 600; }
.purchase-box button:hover, .book-button:hover { background: #563651; }
.book-contents {
    grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr);
    gap: clamp(1.2rem,4vw,3rem); align-items: start; margin-top: 1rem;
}
.chapter-intro {
    position: relative; isolation: isolate; overflow: hidden; color: #fff1e1;
    padding: clamp(1.4rem,3.5vw,2.7rem); border-radius: 1.1rem;
    background: linear-gradient(155deg,#2d2137f5 12%,#32263ee6 56%,#28223975), url('/images/karta-arkanov/night.webp') 62% center/cover;
}
.chapter-intro::after {
    content: ""; position: absolute; z-index: -1; right: -5.5rem; bottom: -7rem; width: 15rem; height: 15rem;
    border: 1px solid #eab98760; border-radius: 50%; box-shadow: 0 0 0 1.2rem #eab98710, 0 0 0 1.26rem #eab98730;
}
.chapter-intro p { margin-block: 1rem 1.5rem; max-width: 36ch; color: #f1dfde; }
.chapter-intro .chapter-alternative, .book-cover a {
    display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem;
    border: 1px solid #d0a994; border-radius: 2rem; color: #ffe0bd; text-decoration: none;
    font: 600 .88rem/1.4 system-ui,sans-serif; background: #312536;
}
.chapter-intro .chapter-alternative:hover, .book-cover a:hover { background: #51394b; }
.chapter-shelf { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.chapter-shelf a {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.65rem,2vw,1.2rem);
    padding: .85rem 1rem; border: 1px solid #dbccc0; border-radius: .85rem;
    color: #342636; background: #fffaf3; text-decoration: none;
}
.chapter-shelf a:hover, .chapter-shelf a:focus-visible { background: #f6e9db; border-color: #ac8164; }
.chapter-number {
    display: grid; place-items: center; width: 2.3rem; aspect-ratio: 1; border-radius: 50%;
    background: #efe3d5; color: #70503b; font: 400 1.1rem Georgia,serif;
}
.chapter-shelf strong { display: block; font: 500 clamp(1.1rem,2vw,1.4rem)/1.2 Georgia,serif; }
.chapter-shelf small { display: block; color: #655763; font-size: .85rem; margin-top: .2rem; }
.chapter-arrow { color: #835b48; }
.sample-book main { display: block; max-width: 48rem; margin-inline: auto; }
.sample-pages article { padding-block: 1.65rem; }
.sample-pages article p:last-child { margin-bottom: 0; }
.atlas-book :focus-visible { outline: 3px solid #a55538; outline-offset: 3px; }
@media (max-width: 720px) {
    .atlas-book main { grid-template-columns: minmax(0,1fr); gap: 1rem; margin-block: 1rem; }
    .book-cover p:not(.imprint) { margin: .75rem 0; }
    .book-contents { grid-template-columns: 1fr; }
}

.personal-cover::before { background-image: linear-gradient(100deg,#231829f5 10%,#221829e8 48%,#22182959),url('/images/karta-arkanov/colibri.webp'); }
.pair-cover::after {
    content: ""; position: absolute; z-index: -1; top: -2rem; right: -2.3rem;
    width: clamp(9rem,15vw,14rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffdaa67a;
    box-shadow: -2.5rem 1.1rem 0 -1px #302338, -2.5rem 1.1rem 0 0 #f0b69464;
}
