:root {
    --ochre: #B98648;
    --ochre-text: #8A5F27;
    --forest: #1F4023;
}

/* Palette and details from the book's interior spreads */
.opt-palette ::selection { background: var(--ochre); color: #141413; }
.opt-palette main p.text-muted,
.opt-palette #about p.text-muted,
.opt-palette #contact p.text-xs { color: var(--ochre-text); }
.opt-palette main blockquote { border-left-color: var(--ochre); }
.opt-palette #contact a.inline-block { background: var(--ochre-text); }
.opt-palette #contact a.inline-block:hover { background: #734E1E; }

/* Quotes */
.bold-quote {
    background: var(--forest);
    padding: clamp(48px, 7vw, 88px) 24px;
    text-align: center;
}
.bold-quote blockquote {
    max-width: 720px;
    margin: 0 auto;
    color: #FCFBF9;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.2;
}

.quote-label {
    margin: 0 0 20px;
    color: #DDB77F;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.rotate-stage { display: grid; }
.rotate-stage blockquote {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}
.rotate-stage blockquote.is-active { opacity: 1; visibility: visible; }
.rotate-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.rotate-dots button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.rotate-dots button::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    background: rgba(252, 251, 249, 0.35);
}
.rotate-dots button.is-active::before { background: #DDB77F; }
/* Book spreads */
.inside-book {
    position: relative;
    z-index: 31; /* sits above the journey line, so spreads cover it */
    --gutter: max(24px, calc((100vw - 1024px) / 2 + 40px));
    padding: clamp(64px, 9vw, 112px) 0;
    border-top: 1px solid #E6E2DA;
}
.inside-book .quote-label { color: var(--ochre-text); margin-bottom: 10px; }
.inside-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    max-width: 1024px;
    margin: 0 auto 28px;
    padding: 0 40px;
}
.inside-head h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
}
.inside-sub {
    margin: 8px 0 0;
    color: #6E6B64;
    font-size: 15px;
    font-weight: 300;
}
.spread-nav { display: flex; gap: 8px; }
.spread-nav button {
    width: 44px;
    height: 44px;
    border: 1px solid #141413;
    border-radius: 50%;
    background: transparent;
    color: #141413;
    font-size: 18px;
    cursor: pointer;
}
.spread-nav button:hover { background: #141413; color: #FCFBF9; }
.spread-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    padding: 8px var(--gutter) 24px;
    scrollbar-width: none;
}
.spread-track::-webkit-scrollbar { display: none; }
.spread-slide {
    flex: 0 0 min(860px, 84vw);
    margin: 0;
    scroll-snap-align: start;
}
.spread-slide button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.spread-slide img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 18px 40px -16px rgba(20, 20, 19, 0.35);
}
.spread-slide figcaption {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #6E6B64;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.spread-viewer {
    width: min(96vw, 1500px);
    max-width: none;
    max-height: 96vh;
    padding: 0;
    border: 0;
    background: #141413;
    color: #FCFBF9;
}
.spread-viewer::backdrop { background: rgba(20, 20, 19, 0.9); }
.viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.viewer-bar p { margin: 0; }
.viewer-bar button {
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: #FCFBF9;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}
.viewer-frame { overflow-x: auto; }
.viewer-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(96vh - 130px);
    object-fit: contain;
}
.viewer-hint { display: none; }
@media (max-width: 700px) {
    .inside-head { padding: 0 24px; }
    .spread-nav { display: none; }
    .viewer-frame img { width: 200%; max-width: none; max-height: none; }
    .viewer-hint {
        display: block;
        margin: 0;
        padding: 0 16px 12px;
        color: rgba(252, 251, 249, 0.6);
        font-size: 12px;
        text-align: center;
    }
}

/* Journey line */
.route-svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    pointer-events: none;
    overflow: visible;
}
.route-svg .route-line {
    fill: none;
    stroke: var(--ochre-text);
    stroke-width: 1.5;
    opacity: 0.55;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
}
.route-svg .route-halo {
    fill: none;
    stroke: #FCFBF9;
    stroke-width: 4;
    opacity: 0.55;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
}
.route-svg .route-mask { fill: none; stroke: #fff; stroke-width: 12; }
.route-svg circle { fill: var(--ochre); stroke: #FCFBF9; stroke-width: 2; }
.route-svg text {
    fill: var(--ochre-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    paint-order: stroke;
    stroke: #FCFBF9;
    stroke-width: 4px;
}
