/*
 * AlexanderKaine.com — The Eighth Order
 *
 * Release: WEB-3.1C.2
 * Created: 2026-11-11 PT
 *
 * Change Note:
 * - NEW book-specific staging stylesheet.
 * - Implements the approved six-part editorial composition.
 * - Adds responsive book hero and cover presentation.
 * - Adds synopsis, story-world, character, and format sections.
 * - Adds closing discovery layout.
 * - Uses existing destination-base.css design tokens.
 * - Keeps all selectors destination- and book-scoped.
 * - Does not modify frozen homepage or shared PHP contracts.
 *
 * WEB-3.2.1 — 2026-11-12 08:24 PST
 * - Expanded desktop edition grid to four columns.
 * - Preserved tablet and phone grid behavior.
 * - No unrelated CSS changes.
 *
 * WEB-3.2.2A.1 — 2026-11-12 08:55 PST
 * - Normalized page-owned cover figure margin.
 * - Established equal desktop Story columns.
 * - Removed 340px introduction width restriction.
 * - Preserved existing responsive rules.
 * - Isolated candidate only; no deployment.
 *
 * Production deployment: NOT AUTHORIZED.
 */

/* ==========================================================
   01 — BOOK HERO
   ========================================================== */

.ak-destination-page .ak-book-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-block: clamp(72px, 9vw, 138px);

    background:
        radial-gradient(
            ellipse at 76% 42%,
            rgba(172, 120, 53, .17),
            transparent 43%
        ),
        linear-gradient(
            115deg,
            #090b0e 5%,
            #151a20 58%,
            #090b0e 100%
        );
}

.ak-destination-page .ak-book-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(4, 6, 9, .20),
            rgba(4, 6, 9, .02) 70%
        );

    pointer-events: none;
}

.ak-destination-page .ak-book-hero__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, .85fr);

    align-items: center;
    gap: clamp(48px, 7vw, 120px);
}

.ak-destination-page .ak-book-hero__content {
    min-width: 0;
}

.ak-destination-page .ak-book-hero__series {
    margin: 24px 0 0;

    color: var(--ak-d-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    line-height: 1.6;
    text-transform: uppercase;
}

.ak-destination-page .ak-book-hero__description {
    max-width: 610px;
    margin: 32px 0 0;

    color: var(--ak-d-text-soft);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.85;
}

.ak-destination-page .ak-book-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;

    margin-top: 38px;
}

.ak-destination-page .ak-book-hero__art {
    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 0;
    margin: 0;
}

.ak-destination-page .ak-book-hero__cover {
    display: block;
    width: min(100%, 390px);
    height: auto;
    aspect-ratio: 5 / 8;
    object-fit: contain;

    border: 1px solid rgba(216, 184, 121, .24);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .55),
        0 0 55px rgba(197, 164, 106, .08);
}

.ak-destination-page .ak-book-hero__caption {
    margin: 22px 0 0;

    color: var(--ak-d-muted);
    font-size: 12px;
    letter-spacing: .12em;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

/* ==========================================================
   02 — STORY SYNOPSIS
   ========================================================== */

.ak-destination-page .ak-book-synopsis {
    background: var(--ak-d-bg);
}

.ak-destination-page .ak-book-synopsis__layout {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;
    gap: clamp(36px, 6vw, 100px);
}

.ak-destination-page .ak-book-synopsis__intro {
    min-width: 0;
}

.ak-destination-page .ak-book-synopsis__body {
    max-width: var(--ak-d-container-reading);
    min-width: 0;
}

.ak-destination-page .ak-book-synopsis__body p {
    margin: 0 0 1.5em;

    color: var(--ak-d-text-soft);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.95;
}

.ak-destination-page .ak-book-synopsis__body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   03 — INSIDE THE NOVEL
   ========================================================== */

.ak-destination-page .ak-book-world {
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(172, 120, 53, .08),
            transparent 45%
        ),
        var(--ak-d-surface);
}

.ak-destination-page .ak-book-world__header {
    max-width: 850px;
    margin-bottom: clamp(38px, 5vw, 72px);
}

.ak-destination-page .ak-book-world__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ak-destination-page .ak-book-world__card {
    min-width: 0;
    padding: clamp(26px, 3vw, 42px);

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

    background: rgba(9, 11, 14, .56);
}

.ak-destination-page .ak-book-world__number {
    display: block;
    margin-bottom: 28px;

    color: var(--ak-d-gold);
    font-size: 12px;
    letter-spacing: .25em;
}

.ak-destination-page .ak-book-world__title {
    margin: 0 0 18px;

    color: var(--ak-d-text);
    font-family: var(--ak-d-font-display);
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
}

.ak-destination-page .ak-book-world__description {
    margin: 0;

    color: var(--ak-d-text-soft);
    font-size: 15px;
    line-height: 1.85;
}

/* ==========================================================
   04 — JACK COOPER CINEMATIC INVESTIGATION
   Release WEB-3.1D.3C.11N.4E.4 — 2026-11-12 06:45 PST
   Change: desktop top padding 114px to 179px;
   approved shorter editorial copy in page-owned PHP;
   Jack Cooper heading reduced by 10% using a page-owned rule.
   11N.2: desktop-only image-proportional minimum height;
   no changes to artwork, copy, or shared components.
   11N.4A: desktop top padding 179px to 224px to move
   the complete text composition below the lamp rim.
   11N.4C.2: desktop top padding 224px to 205px;
   Jack Cooper eyebrow uses navy #17202b and weight 700
   for improved contrast over the lamp illumination.
   Artwork, editorial copy, and shared CSS unchanged.
   11N.4D.2: desktop top padding 205px to 230px;
   removed Jack Cooper development-status paragraph
   from page-owned PHP. Shared contracts unchanged.
   11N.4H.4 — 2026-11-12 08:00 PST
   Added a 12% bottom-edge cinematic image fade on
   tablet/phone, blending into editorial #090d12.
   Removed reading panel divider. Desktop unchanged.
   11N.4H.1 — 2026-11-12 07:42 PST
   Repositioned tablet/phone Jack Cooper heading into
   illuminated wall area beneath lamp; refined reading
   panel spacing and subtle upper divider.
   Desktop, artwork, PHP, shared contracts unchanged.
   11N.4F.2F.1 — 2026-11-12 07:34 PST
   Tablet/phone: approved cinematic intro and dark
   editorial reading panel; original artwork retained.
   Desktop styling and shared contracts unchanged.
   11N.4E.4: final desktop description max-width 520px;
   replaces the 540px editorial boundary refinement.
   Preserves 570px content container, 230px top padding,
   eyebrow, heading, artwork, and responsive contracts.
   Image-first composition: approved artwork supplies all
   illumination, shadows, atmosphere, and FBI details.
   ========================================================== */

.ak-destination-page .ak-book-character {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 230px 64px;

    background-color: #090d12;
    background-image:
        url("../../images/books/jack-cooper-cinematic-background-v2.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ak-destination-page .ak-book-character__grid {
    display: block;
    position: relative;
    z-index: 1;
}

/* 11N.2 — Desktop-only image-proportional section sizing. */
@media (min-width: 901px) {
    .ak-destination-page .ak-book-character {
        min-height: max(800px, 55.56vw);
    }
}

.ak-destination-page .ak-book-character__content {
    width: 100%;
    max-width: 570px;
    min-width: 0;
}

/* Jack Cooper heading only; shared heading remains unchanged. */
.ak-destination-page .ak-book-character__content .ak-d-heading {
    font-size: clamp(30.6px, 3.6vw, 55.8px);
}

/* 11N.4C.2 — Desktop-only illuminated eyebrow contrast. */
@media (min-width: 901px) {
    .ak-destination-page .ak-book-character__content .ak-d-eyebrow {
        color: #17202b;
        font-weight: 700;
    }
}

/* 11N.4E.4 — Final desktop editorial text boundary. */
@media (min-width: 901px) {
    .ak-destination-page .ak-book-character__description {
        max-width: 520px;
    }
}

.ak-destination-page .ak-book-character__description {
    margin: 28px 0 0;
    color: #e1e0db;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
}

.ak-destination-page .ak-book-character__description p {
    margin: 0;
}

.ak-destination-page .ak-book-character__description p + p {
    margin-top: 24px;
}

.ak-destination-page .ak-book-character__action {
    margin-top: 34px;
    color: #e1e0db;
}

/* ==========================================================
   05 — FORMATS AND AVAILABILITY
   ========================================================== */

.ak-destination-page .ak-book-formats {
    background: var(--ak-d-bg);
}

.ak-destination-page .ak-book-formats__header {
    max-width: 820px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.ak-destination-page .ak-book-formats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ak-destination-page .ak-book-format {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: clamp(26px, 3vw, 42px);

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

    background: var(--ak-d-surface);
}

.ak-destination-page .ak-book-format__eyebrow {
    margin: 0 0 18px;

    color: var(--ak-d-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ak-destination-page .ak-book-format__title {
    margin: 0 0 18px;

    color: var(--ak-d-text);
    font-family: var(--ak-d-font-display);
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 400;
    line-height: 1.2;
}

.ak-destination-page .ak-book-format__description {
    margin: 0 0 24px;

    color: var(--ak-d-text-soft);
    font-size: 15px;
    line-height: 1.85;
}

.ak-destination-page .ak-book-format__status {
    display: inline-flex;
    align-items: center;

    margin-top: auto;
    padding-top: 18px;

    border-top: 1px solid var(--ak-d-border);

    color: var(--ak-d-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ak-destination-page .ak-book-format__action {
    margin-top: 22px;
}

/* ==========================================================
   06 — CLOSING DISCOVERY
   ========================================================== */

.ak-destination-page .ak-book-discovery {
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(172, 120, 53, .11),
            transparent 52%
        ),
        var(--ak-d-surface);
}

.ak-destination-page .ak-book-discovery__header {
    max-width: 820px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.ak-destination-page .ak-book-discovery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ak-destination-page .ak-book-discovery__card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: clamp(28px, 3.5vw, 50px);

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

    background: rgba(9, 11, 14, .58);
}

.ak-destination-page .ak-book-discovery__eyebrow {
    margin: 0 0 20px;

    color: var(--ak-d-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ak-destination-page .ak-book-discovery__title {
    margin: 0 0 20px;

    color: var(--ak-d-text);
    font-family: var(--ak-d-font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
}

.ak-destination-page .ak-book-discovery__description {
    margin: 0 0 28px;

    color: var(--ak-d-text-soft);
    font-size: 16px;
    line-height: 1.85;
}

.ak-destination-page .ak-book-discovery__action {
    margin-top: auto;
}

/* ==========================================================
   07 — TABLET
   ========================================================== */

@media (max-width: 900px) {
    .ak-destination-page .ak-book-hero__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(230px, .75fr);

        gap: 36px;
    }

    .ak-destination-page .ak-book-hero__cover {
        width: min(100%, 300px);
    }

    .ak-destination-page .ak-book-synopsis__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .ak-destination-page .ak-book-world__grid,
    .ak-destination-page .ak-book-formats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 11N.4F.2F.1 — Tablet/phone cinematic-editorial split. */
    .ak-destination-page .ak-book-character {
        padding-block: 0;
        background-image: none;
        background-color: #090d12;
    }

    .ak-destination-page .ak-book-character__grid {
        width: 100%;
        max-width: none;
        padding-inline: 0;
    }

    .ak-destination-page .ak-book-character__content {
        max-width: none;
    }

    .ak-destination-page .ak-book-character__intro {
        position: relative;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: clamp(350px, 58vw, 520px);
        padding:
            clamp(112px, 17vw, 150px)
            max(32px, calc((100vw - 1120px) / 2))
            44px;

        background-color: #111820;
        background-image:
            url("../../images/books/jack-cooper-cinematic-background-v2.png");
        background-position: 54% center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    /*
     * 11N.4H.4 — Bottom 12% cinematic fade.
     * Transparent through 88%; progressively darkens
     * into the editorial panel background.
     */
    .ak-destination-page .ak-book-character__intro::after {
        content: "";
        position: absolute;
        z-index: 0;
        inset: 88% 0 0;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(9, 13, 18, 0) 0%,
            rgba(9, 13, 18, .18) 30%,
            rgba(9, 13, 18, .58) 68%,
            #090d12 100%
        );
    }

    .ak-destination-page .ak-book-character__intro > * {
        position: relative;
        z-index: 1;
    }

    .ak-destination-page .ak-book-character__intro .ak-d-eyebrow {
        color: #e5c58e;
        font-weight: 700;
    }

    .ak-destination-page .ak-book-character__intro .ak-d-heading {
        max-width: 570px;
        color: #ffffff;
    }

    .ak-destination-page .ak-book-character__reading {
        padding: 48px max(32px, calc((100vw - 1120px) / 2)) 58px;
        background: #090d12;
    }

    .ak-destination-page .ak-book-character__description {
        max-width: 650px;
        margin-top: 0;
    }
}

/* ==========================================================
   08 — PHONE
   ========================================================== */

@media (max-width: 600px) {
    .ak-destination-page .ak-book-hero {
        padding-block: 56px 72px;
    }

    .ak-destination-page .ak-book-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .ak-destination-page .ak-book-hero__art {
        grid-row: 1;
    }

    .ak-destination-page .ak-book-hero__cover {
        width: min(72vw, 265px);
    }

    .ak-destination-page .ak-book-hero__content {
        text-align: center;
    }

    .ak-destination-page .ak-book-hero__description {
        margin-inline: auto;
        font-size: 16px;
        line-height: 1.75;
    }

    .ak-destination-page .ak-book-hero__actions {
        justify-content: center;
    }

    .ak-destination-page .ak-book-world__grid,
    .ak-destination-page .ak-book-formats__grid,
    .ak-destination-page .ak-book-discovery__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ak-destination-page .ak-book-character__intro {
        min-height: clamp(310px, 88vw, 430px);
        padding: clamp(100px, 26vw, 128px) 24px 32px;
        background-position: 60% center;
    }

    .ak-destination-page .ak-book-character__intro .ak-d-heading {
        font-size: clamp(29px, 7.5vw, 40px);
    }

    .ak-destination-page .ak-book-character__reading {
        padding: 40px 24px 48px;
    }

    .ak-destination-page .ak-book-character__description {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.8;
    }
}

/* ==========================================================
   09 — REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .ak-destination-page .ak-book-hero *,
    .ak-destination-page .ak-book-character *,
    .ak-destination-page .ak-book-discovery * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================
   10 — FORCED COLORS
   ========================================================== */

@media (forced-colors: active) {
    .ak-destination-page .ak-book-hero__cover,
    .ak-destination-page .ak-book-world__card,
    .ak-destination-page .ak-book-format,
    .ak-destination-page .ak-book-discovery__card {
        border: 1px solid CanvasText;
    }
}

/* ==========================================================
   11 — PRINT
   ========================================================== */

@media print {
    .ak-destination-page .ak-book-hero,
    .ak-destination-page .ak-book-world,
    .ak-destination-page .ak-book-character,
    .ak-destination-page .ak-book-formats,
    .ak-destination-page .ak-book-discovery {
        background: #ffffff;
        color: #000000;
    }

    .ak-destination-page .ak-book-hero__cover {
        max-width: 220px;
        box-shadow: none;
    }

    .ak-destination-page .ak-book-world__card,
    .ak-destination-page .ak-book-format,
    .ak-destination-page .ak-book-discovery__card {
        break-inside: avoid;
    }
}


/* WEB-3.8 Release 6.4C — scoped editorial accents; existing compositions retained. */
.ak-destination-page .ak-book-synopsis__intro > .ak-d-eyebrow,
.ak-destination-page .ak-book-world__header > .ak-d-eyebrow,
.ak-destination-page .ak-book-character__intro > .ak-d-eyebrow,
.ak-destination-page .ak-book-formats__header > .ak-d-eyebrow,
.ak-destination-page .ak-book-discovery__header > .ak-d-eyebrow {
  display: inline-flex; align-items: center; gap: 18px; max-width: 100%;
}
.ak-destination-page .ak-book-synopsis__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-world__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-character__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-formats__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-discovery__header > .ak-d-eyebrow::after {
  content: ""; display: block; flex: 0 1 64px; min-width: 20px; height: 2px; background: var(--ak-d-gold);
}
.ak-destination-page .ak-book-synopsis__body > p,
.ak-destination-page .ak-book-character__description > p {
  padding-inline-start: clamp(20px, 3vw, 30px);
}
.ak-destination-page .ak-book-synopsis__body > p:first-child,
.ak-destination-page .ak-book-character__description > p:first-child {
  border-inline-start: 2px solid var(--ak-d-gold); padding-inline-start: calc(clamp(20px, 3vw, 30px) - 2px);
}
@media (forced-colors: active) {
.ak-destination-page .ak-book-synopsis__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-world__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-character__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-formats__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-discovery__header > .ak-d-eyebrow::after {
  background: CanvasText; forced-color-adjust: none;
}
.ak-destination-page .ak-book-synopsis__body > p:first-child,
.ak-destination-page .ak-book-character__description > p:first-child {
  border-inline-start-color: CanvasText;
}
}
@media print {
.ak-destination-page .ak-book-synopsis__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-world__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-character__intro > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-formats__header > .ak-d-eyebrow::after,
.ak-destination-page .ak-book-discovery__header > .ak-d-eyebrow::after {
  background: #555;
}
.ak-destination-page .ak-book-synopsis__body > p:first-child,
.ak-destination-page .ak-book-character__description > p:first-child {
  border-inline-start-color: #555;
}
}
