.book-page {
    --book-paper: #f7f3ed;
    --book-ink: var(--text);
    --book-ink-soft: var(--muted);
    --book-rule: rgba(15, 23, 42, 0.12);
    --book-navy: #1a2438;
    --book-signal: var(--signal);
    background: var(--book-paper);
    overflow-x: clip;
}

.book-page .site-shell,
.book-page .site-content {
    overflow-x: clip;
}

.book-content {
    display: grid;
    gap: 0;
}

.book-page .site-content > section {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.book-section-intro {
    display: grid;
    gap: 0.4rem;
    max-width: 34rem;
}

.book-section-intro .eyebrow {
    color: var(--book-ink-soft);
}

.book-section-intro h2 {
    margin: 0;
    color: var(--book-ink);
    font-size: clamp(1.7rem, 3.1vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.book-section-intro p {
    margin: 0.45rem 0 0;
    max-width: 36ch;
    color: var(--book-ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
}

.book-page .site-content > .book-hero {
    box-sizing: border-box;
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    padding: 7.25rem 0 2.5rem;
}

.container.book-hero-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    min-height: 0;
    height: 100%;
    gap: clamp(2.2rem, 7vw, 6.5rem);
}

.book-hero-cover {
    margin: 0;
    justify-self: center;
    min-width: 0;
    transform-origin: 50% 70%;
}

.book-hero-cover img {
    display: block;
    width: auto;
    max-width: min(100%, 26rem);
    max-height: calc(100dvh - 12rem);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2.2rem 2.8rem rgba(15, 23, 42, 0.22));
}

.motion-safe .book-hero-cover {
    animation: book-cover-float 5.8s ease-in-out infinite;
}

@keyframes book-cover-float {
    0%,
    100% {
        transform: translate3d(0, 0.4rem, 0) rotate(-1.15deg);
    }

    25% {
        transform: translate3d(0.22rem, -0.35rem, 0) rotate(-0.2deg);
    }

    50% {
        transform: translate3d(0, -1rem, 0) rotate(0.8deg);
    }

    75% {
        transform: translate3d(-0.18rem, -0.28rem, 0) rotate(-0.4deg);
    }
}

.motion-safe .book-hero-cover img {
    animation: book-cover-shadow 5.8s ease-in-out infinite;
}

@keyframes book-cover-shadow {
    0%,
    100% {
        filter: drop-shadow(0 1.5rem 1.8rem rgba(15, 23, 42, 0.16));
    }

    50% {
        filter: drop-shadow(0 2.8rem 3.4rem rgba(15, 23, 42, 0.28));
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-hero-cover,
    .book-hero-cover img {
        animation: none;
    }
}

.book-hero-copy {
    display: grid;
    justify-items: start;
    gap: 0;
    max-width: 34rem;
}

.book-hero-copy .eyebrow {
    margin-bottom: 0.55rem;
    color: var(--book-ink-soft);
}

.book-hero-copy h1 {
    margin: 0 0 1.15rem;
    color: var(--book-ink);
    font-family: var(--font-sans);
    font-size: var(--text-h1);
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.book-hero-lead {
    margin: 0 0 0.4rem;
    max-width: 34ch;
    color: var(--book-ink);
    font-size: 1.12rem;
    line-height: 1.5;
}

.book-hero-meta {
    margin: 0 0 1.45rem;
    color: var(--book-ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.book-hero-copy .button-row {
    margin-top: 0.7rem;
    align-items: baseline;
    gap: 1.35rem;
}

.book-method-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.15rem 0 0.5rem;
    border-bottom: 1px solid currentColor;
    color: var(--book-navy);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.book-method-cta::after {
    content: "→";
    font-size: 1.12em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.book-method-cta:hover {
    gap: 0.95rem;
}

.book-method-cta:hover::after {
    transform: translateX(0.1rem);
}

.book-method-cta:focus-visible {
    outline: 2px solid var(--book-navy);
    outline-offset: 4px;
}

.book-hero-quiet {
    color: var(--book-ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.book-hero-quiet:hover {
    color: var(--book-navy);
}

.book-origin-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: center;
    padding-top: 0.25rem;
    border-top: 1px solid var(--book-rule);
}

.book-origin-copy {
    display: grid;
    gap: 1.15rem;
    padding-top: 0.15rem;
}

.book-origin-context {
    margin: 0;
    max-width: 42ch;
    color: var(--book-ink-soft);
    font-size: 1.02rem;
    line-height: 1.62;
}

.book-origin-insight {
    margin: 0.15rem 0 0;
    padding: 0;
    max-width: 28em;
    border: 0;
    color: var(--book-ink);
}

.book-origin-insight p {
    margin: 0;
    font-family: Caveat, "Segoe Script", "Bradley Hand", cursive;
    font-size: clamp(1.55rem, 2.55vw, 2.15rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: 0.01em;
}

.book-page .site-content > .book-themes {
    position: relative;
    isolation: isolate;
    padding: clamp(5.75rem, 9vw, 7.5rem) 0 clamp(4.5rem, 6.5vw, 6rem);
    overflow: hidden;
    background: #0f172a;
    color: #fff;
}

.book-themes::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.18));
}

.book-themes-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.18fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.75rem);
    align-items: stretch;
}

.book-themes-eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.book-themes-copy {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    min-height: 100%;
}

.book-themes-copy h2 {
    margin: 0;
    max-width: 7.15em;
    margin-left: auto;
    color: #fff;
    font-size: clamp(2.45rem, 4.25vw, 4.7rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: right;
}

.book-themes-gold {
    color: var(--book-signal);
}

.book-themes-register {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 0;
    margin-top: 1.15rem;
    position: relative;
    z-index: 1;
}

.book-themes-register article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.95rem;
    padding: 1.28rem 0 1.38rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.book-themes-register article:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.book-themes-register i,
.book-themes-register svg {
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0.12rem;
    color: #fff;
    stroke-width: 1.7;
}

.book-themes-term {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.book-themes-desc {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.45;
}

.book-gallery-section .book-section-intro {
    margin-bottom: 2rem;
}

.book-gallery-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.book-gallery-card {
    margin: 0;
    overflow: hidden;
    background: #e8e2d8;
}

.book-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.book-page .site-content > .book-close {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    background: var(--book-navy);
}

.book-close-half {
    display: grid;
    align-items: center;
    min-width: 0;
    min-height: 22rem;
    padding-block: clamp(4.75rem, 8vw, 6.75rem);
}

.book-close-half--ink {
    justify-items: end;
    justify-content: end;
    padding-left: max(1rem, calc(50vw - (min(100vw - 2rem, var(--container)) / 2)));
    padding-right: clamp(1.6rem, 4vw, 3.25rem);
    background: var(--book-navy);
    color: var(--book-paper);
}

.book-close-half--paper {
    justify-items: start;
    justify-content: start;
    padding-right: max(1rem, calc(50vw - (min(100vw - 2rem, var(--container)) / 2)));
    padding-left: clamp(1.6rem, 4vw, 3.25rem);
    background: var(--book-paper);
    color: var(--book-navy);
}

.book-close-copy {
    display: grid;
    justify-items: start;
    gap: 1.15rem;
    width: min(100%, 26rem);
}

.book-close-half--ink .book-section-intro {
    gap: 0.35rem;
    max-width: none;
}

.book-close-half--ink .book-section-intro h2 {
    max-width: 16ch;
    font-size: clamp(1.85rem, 3.3vw, 2.7rem);
    line-height: 1.02;
}

.book-close-half--ink .book-section-intro p {
    margin-top: 0.7rem;
    max-width: 28ch;
    font-size: 0.95rem;
    line-height: 1.5;
}

.book-method-lines {
    display: grid;
    gap: 0.12em;
    margin: 0;
    color: inherit;
    font-size: clamp(1.28rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.book-close-half--ink .button-secondary {
    background: var(--book-paper);
    border-color: var(--book-paper);
    color: var(--book-navy);
    box-shadow: none;
}

.book-close-half--paper .book-method-cta {
    margin-top: 0.55rem;
    width: max-content;
    border-bottom-color: rgba(26, 36, 56, 0.28);
    font-size: 1.02rem;
}

.book-close-half--ink .eyebrow {
    color: rgba(247, 243, 237, 0.68);
}

.book-close-half--paper .eyebrow {
    color: rgba(26, 36, 56, 0.55);
}

.book-close-half--ink .book-section-intro h2,
.book-close-half--ink .book-section-intro p {
    color: var(--book-paper);
}

.book-close-half--ink .book-section-intro p {
    color: rgba(247, 243, 237, 0.78);
}

@media (max-width: 960px) {
    .container.book-hero-grid,
    .book-origin-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .book-themes-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .book-themes-eyebrow,
    .book-themes-copy,
    .book-themes-register {
        grid-column: 1;
        grid-row: auto;
    }

    .book-themes-copy {
        min-height: 0;
    }

    .book-themes-copy h2 {
        margin-left: 0;
        max-width: none;
        text-align: left;
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .book-themes-register {
        margin-top: 0.4rem;
    }

    .book-themes-register article {
        padding: 0.95rem 0 1.05rem;
    }

    .book-page .site-content > .book-close {
        grid-template-columns: 1fr;
    }

    .book-close-half--ink,
    .book-close-half--paper {
        justify-items: start;
        padding-inline: 1rem;
    }

    .book-page .site-content > .book-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 6.5rem 0 3rem;
    }

    .container.book-hero-grid {
        height: auto;
    }

    .book-hero-cover img {
        width: min(58vw, 18rem);
        max-height: 42vh;
    }

    .book-gallery-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .book-page .site-content > section {
        padding: 3.4rem 0;
    }

    .book-page .site-content > .book-themes {
        padding: 4.25rem 0 3.5rem;
    }

    .book-page .site-content > .book-close {
        padding: 0;
    }

    .book-hero-cover img {
        width: min(72vw, 16.5rem);
        max-height: 38vh;
    }

    .book-gallery-feed {
        grid-template-columns: 1fr;
    }
}
