/* ==========================================================================
   Milly J.S. — Elusive Idyll
   Design system derived from the Elusive Idyll cover:
   turquoise sky, peach-coral clouds, sparkle stars, champagne-gold lettering.

   1.  Tokens
   2.  Base
   3.  Typography
   4.  Layout
   5.  Buttons & links
   6.  Header & navigation
   7.  Sky (clouds, stars, light)
   8.  Book mockup
   9.  Homepage sections
   10. Purchase components
   11. Newsletter & forms
   12. Inner pages
   13. Footer, sticky CTA, consent
   14. Motion
   15. Responsive
   16. Reduced motion & print
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
    /* Sky — sampled from the cover */
    --abyss: #022c33;
    --deep: #04424d;
    --turquoise-deep: #05505c;
    --teal: #0a6f7c;
    --teal-rich: #037e91;
    --aqua: #1f9b9f;
    --aqua-light: #38a7a3;
    --cyan-soft: #a4ddd6;
    --mist: #dff2ee;

    /* Paper */
    --cream: #fbf4e6;
    --ivory: #fffaf1;
    --parchment: #f4e8d2;

    /* Gold — from the title lettering */
    --gold-100: #fff1c7;
    --gold-200: #f8d86b;
    --gold-300: #ecc84d;
    --gold-400: #e0b832;
    --gold-500: #c18f0c;
    --gold-ink: #85600a;          /* gold on cream, AA */
    --champagne: #ead7a6;

    /* Clouds */
    --peach: #efa588;
    --peach-soft: #f7cdb3;
    --coral: #eb9870;
    --blush: #f3c3b3;

    /* Text */
    --ink: #0b3036;
    --ink-soft: #3a5559;
    --on-sky: #fbf4e6;
    --on-sky-soft: rgba(251, 244, 230, 0.84);
    --line: rgba(11, 48, 54, 0.14);
    --line-gold: rgba(193, 143, 12, 0.38);
    --line-sky: rgba(248, 216, 107, 0.22);

    --success: #0b6b52;
    --error: #a3322a;

    /* Gradients */
    --gold-text: linear-gradient(100deg, #c18f0c 0%, #e0b832 16%, #f8d86b 32%, #fff3c4 42%, #f8d86b 52%, #e0b832 68%, #c9960f 84%, #ecc84d 100%);
    --gold-fill: linear-gradient(135deg, #fce9aa 0%, #f3d170 34%, #e0b53f 68%, #cf9f28 100%);

    /* Type */
    --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
    --font-caps: "Marcellus", "Cormorant", Georgia, serif;
    --font-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

    /* Space & shape */
    --container: 1240px;
    --gutter: clamp(1.25rem, 4.5vw, 3rem);
    --section-y: clamp(3.5rem, 7vw, 6rem);
    --header-h: 84px;
    --radius: 2px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.45, 0.05, 0.2, 1);

    --star-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff4cc' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23fff4cc' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='15' fill='url(%23g)'/%3E%3Cpath fill='%23fffaf0' d='M24 7c.7 8.9 8.1 16.3 17 17-8.9.7-16.3 8.1-17 17-.7-8.9-8.1-16.3-17-17 8.9-.7 16.3-8.1 17-17Z'/%3E%3C/svg%3E");
    --star-svg-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23f8d86b' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23f8d86b' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='15' fill='url(%23g)'/%3E%3Cpath fill='%23d2a01c' d='M24 7c.7 8.9 8.1 16.3 17 17-8.9.7-16.3 8.1-17 17-.7-8.9-8.1-16.3-17-17 8.9-.7 16.3-8.1 17-17Z'/%3E%3C/svg%3E");
}

/* 2. Base ================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--abyss);
}

body {
    margin: 0;
    /* Column layout keeps the footer at the bottom of short pages on tall screens. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img,
picture,
svg,
canvas,
video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

main { display: block; flex: 1 0 auto; outline: none; }
[hidden] { display: none !important; }

::selection { background: var(--gold-200); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--gold-200);
    outline-offset: 3px;
    border-radius: 1px;
}
.section--paper :focus-visible,
.section--ivory :focus-visible,
.newsletter :focus-visible,
.consent :focus-visible { outline-color: var(--teal); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1em; height: 1em; flex: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem; left: 0.75rem;
    z-index: 100;
    padding: 0.8rem 1.2rem;
    background: var(--gold-200);
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 3. Typography ============================================================ */

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.005em;
    text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.4rem;
    font-family: var(--font-caps);
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.eyebrow--light { color: var(--gold-200); }

.section-head--center .eyebrow,
.synopsis__head .eyebrow,
.empty-state .eyebrow,
.teaser .eyebrow,
.final-cta .eyebrow,
.newsletter .eyebrow { justify-content: center; }

.section-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.4rem, 4.8vw, 4.1rem);
    color: var(--ink);
}
.section-title em,
.intro__title em,
.newsletter__title em { color: var(--teal); font-weight: 500; }
.section-title--light { color: var(--on-sky); }

.lead {
    font-size: clamp(1.12rem, 1.4vw, 1.3rem);
    line-height: 1.72;
    color: var(--ink-soft);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .gold-text {
        background-image: var(--gold-text);
        background-size: 240% 100%;
        background-position: 0% 50%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 2px 14px rgba(1, 36, 42, 0.45));
        animation: shimmer 11s ease-in-out infinite;
    }
}
.gold-text { color: var(--gold-200); }

.prose { max-width: 44rem; }
.prose h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
.prose h3 { margin: 2rem 0 0.7rem; font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--teal); text-decoration-color: rgba(10, 111, 124, 0.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose > :first-child { margin-top: 0; }

.link-underline {
    color: var(--teal);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size 0.5s var(--ease-out);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }

/* 4. Layout ================================================================ */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--cream); }
.section--ivory {
    background:
        radial-gradient(60% 50% at 100% 0%, rgba(239, 165, 136, 0.12), transparent 70%),
        radial-gradient(50% 45% at 0% 100%, rgba(56, 167, 163, 0.08), transparent 70%),
        var(--ivory);
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { max-width: 54rem; margin-inline: auto; text-align: center; }
.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}
.section-head--split .section-title { margin-bottom: 0; }
.section-head__aside { max-width: 30rem; margin: 0; color: var(--ink-soft); }

.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem 2.2rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* 5. Buttons & links ======================================================= */

.btn {
    --btn-h: 3.3rem;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: var(--btn-h);
    padding: 0 1.9rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, color 0.4s;
}
.btn__label { position: relative; }
.btn__icon {
    width: 1.15em;
    height: 1.15em;
    transition: transform 0.6s var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--lg { --btn-h: 3.8rem; padding: 0 2.3rem; font-size: 0.82rem; }
.btn--sm { --btn-h: 2.75rem; padding: 0 1.2rem; font-size: 0.7rem; letter-spacing: 0.16em; gap: 0.5rem; }

/* BUY THE BOOK — champagne gold with dark teal text */
.btn--buy,
.btn--gold {
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(120, 80, 0, 0.25),
        0 14px 32px -14px rgba(224, 184, 50, 0.7),
        0 2px 6px rgba(2, 44, 51, 0.18);
}
.btn--buy::before,
.btn--gold::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.7) 48%, transparent 66%);
    transform: translateX(-120%);
    transition: transform 1.1s var(--ease-out);
}
.btn--buy::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 1px;
    pointer-events: none;
}
.btn--buy:hover,
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(120, 80, 0, 0.25),
        0 22px 44px -16px rgba(236, 200, 77, 0.85),
        0 4px 10px rgba(2, 44, 51, 0.2);
}
.btn--buy:hover::before,
.btn--gold:hover::before { transform: translateX(120%); }

.hero .btn--buy::before { animation: sweep 7s 2.6s var(--ease-soft) infinite; }

.btn--ghost {
    color: var(--on-sky);
    border-color: rgba(248, 216, 107, 0.55);
    background: rgba(2, 44, 51, 0.16);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--gold-200); background: rgba(248, 216, 107, 0.12); color: #fff; }
.section--paper .btn--ghost,
.section--ivory .btn--ghost,
.consent .btn--ghost { color: var(--ink); border-color: rgba(11, 48, 54, 0.35); background: transparent; }

.btn--nav { --btn-h: 2.6rem; padding: 0 1.15rem; font-size: 0.68rem; letter-spacing: 0.18em; gap: 0.5rem; }
.btn--nav .btn__icon { display: none; }

.btn--text {
    --btn-h: auto;
    padding: 0.25rem 0;
    color: var(--gold-200);
    background: none;
    box-shadow: none;
    font-size: 0.72rem;
    overflow: visible;
}
.btn--text::before, .btn--text::after { display: none; }
.btn--text:hover { transform: none; box-shadow: none; color: var(--gold-100); }

.link-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--teal);
}
.link-arrow::after {
    content: "";
    position: absolute;
    left: 0; right: 1.8rem; bottom: 0.1rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow__icon { width: 1.2em; height: 1.2em; transition: transform 0.6s var(--ease-out); }
.link-arrow:hover .link-arrow__icon { transform: translateX(5px); }
.link-arrow--light { color: var(--gold-200); }

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
}
.link-button:hover { text-decoration-color: currentColor; }

/* 6. Header & navigation =================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    color: var(--on-sky);
    view-transition-name: site-header;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 44, 51, 0.5), rgba(2, 44, 51, 0));
    transition: background-color 0.5s, box-shadow 0.5s;
    pointer-events: none;
}
.site-header.is-scrolled::before {
    background: rgba(3, 58, 68, 0.84);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(248, 216, 107, 0.16), 0 14px 34px -18px rgba(0, 0, 0, 0.45);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    height: var(--header-h);
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
    transition: height 0.5s var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    color: var(--on-sky);
    text-decoration: none;
}
.brand__mark {
    width: 15px;
    height: 15px;
    color: var(--gold-200);
    transition: transform 1.2s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(90deg) scale(1.15); }
.brand__name {
    font-family: var(--font-caps);
    font-size: 1.02rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 2.4rem; }
.site-nav__list {
    display: flex;
    gap: clamp(1.2rem, 2vw, 2.1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__link {
    position: relative;
    display: block;
    padding: 0.55rem 0;
    font-size: 0.73rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(251, 244, 230, 0.86);
    transition: color 0.3s;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0.2em; bottom: 0.25rem;
    height: 1px;
    background: var(--gold-200);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: #fff; }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__index,
.site-nav__aside { display: none; }

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 0.85rem;
    min-height: 44px;
    padding: 0.5rem 0 0.5rem 0.75rem;
    border: 0;
    background: none;
    color: var(--on-sky);
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 28px; height: 11px; }
.nav-toggle__bars span {
    position: absolute;
    right: 0;
    height: 1px;
    background: currentColor;
    transition: transform 0.55s var(--ease-out), top 0.55s var(--ease-out), width 0.55s var(--ease-out);
}
.nav-toggle__bars span:first-child { top: 0; width: 100%; }
.nav-toggle__bars span:last-child { top: 10px; width: 64%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

/* 7. Sky =================================================================== */

.sky {
    --glow-x: 50%;
    --glow-y: 50%;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #03404b 0%, #066a78 60%, #0a7984 100%);
}
.sky--hero {
    --glow-x: 74%;
    --glow-y: 48%;
    background:
        radial-gradient(52% 62% at 74% 48%, rgba(74, 190, 186, 0.72) 0%, rgba(20, 140, 148, 0.3) 48%, transparent 76%),
        radial-gradient(70% 90% at 12% 50%, rgba(2, 52, 62, 0.85) 0%, transparent 70%),
        linear-gradient(172deg, #033d48 0%, #066776 46%, #04515e 100%);
}
/* Each sky below is its own "time of day" from the cover, so neighbouring
   sections never repeat the same backdrop. */

/* Daybreak: inner-page heroes. Each page sets its own sun, sky and cloud tint. */
.sky--page {
    --sun-x: 80%;
    --sun-y: 26%;
    --sun: rgba(255, 206, 160, 0.46);
    --shade-x: 6%;
    --sky-angle: 160deg;
    --sky-top: #033844;
    --sky-mid: #066a78;
    --sky-low: #0b8592;
    --glow-x: var(--sun-x);
    --glow-y: var(--sun-y);
    background:
        radial-gradient(30% 62% at var(--sun-x) var(--sun-y), var(--sun), transparent 72%),
        radial-gradient(60% 95% at var(--shade-x) 100%, rgba(2, 40, 47, 0.75), transparent 70%),
        radial-gradient(55% 85% at var(--sun-x) 42%, rgba(74, 190, 186, 0.5), transparent 74%),
        linear-gradient(var(--sky-angle), var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
.sky--page .cloud img { filter: var(--cloud-tint, none); }

/* About: warm peach morning. */
.page-hero--about .sky--page { --sun-x: 84%; --sun-y: 22%; --sun: rgba(255, 196, 158, 0.6); }
/* Books: gilded, deeper sky with golden clouds. */
.page-hero--books .sky--page {
    --sun-x: 50%; --sun-y: 0%; --sun: rgba(248, 216, 107, 0.55); --shade-x: 96%; --sky-angle: 200deg;
    --sky-top: #01252d; --sky-mid: #044d59; --sky-low: #086a77;
    --cloud-tint: sepia(0.4) saturate(1.35) brightness(1.05);
}
/* Journal: bright aqua daylight, pale misty clouds. */
.page-hero--journal .sky--page {
    --sun-x: 16%; --sun-y: 28%; --sun: rgba(223, 242, 238, 0.55); --shade-x: 94%; --sky-angle: 205deg;
    --sky-top: #045561; --sky-mid: #0b8590; --sky-low: #33a3a0;
    --cloud-tint: saturate(0.7) brightness(1.15);
}
/* Reviews: champagne light from the left. */
.page-hero--reviews .sky--page {
    --sun-x: 24%; --sun-y: 12%; --sun: rgba(234, 215, 166, 0.55); --shade-x: 96%; --sky-angle: 200deg;
    --sky-top: #022e37; --sky-mid: #05586a; --sky-low: #0a7784;
    --cloud-tint: sepia(0.25) saturate(1.2);
}
/* Contact: evening, a coral sun setting low on the right. */
.page-hero--contact .sky--page {
    --sun-x: 78%; --sun-y: 78%; --sun: rgba(239, 140, 104, 0.72);
    --sky-top: #022a33; --sky-mid: #07525f; --sky-low: #1d6c74;
    --cloud-tint: hue-rotate(-14deg) saturate(1.4);
}
/* Allegria: rose dusk, the close of the saga. */
.page-hero--allegria .sky--page {
    --sun-x: 68%; --sun-y: 70%; --sun: rgba(235, 128, 112, 0.7); --sky-angle: 175deg;
    --sky-top: #021f27; --sky-mid: #0a4a58; --sky-low: #2b5f6c;
    --cloud-tint: hue-rotate(-22deg) saturate(1.3);
}
/* Swinging Hearts: a light, blush-pink morning. */
.page-hero--swinging-hearts .sky--page {
    --sun-x: 22%; --sun-y: 30%; --sun: rgba(243, 195, 179, 0.7); --shade-x: 96%; --sky-angle: 200deg;
    --sky-top: #05505c; --sky-mid: #127f8a; --sky-low: #3aa4a0;
    --cloud-tint: hue-rotate(-18deg) saturate(1.15) brightness(1.08);
}
/* Dawn: a pale sunrise band for quotes, dark ink instead of cream. */
.sky--dawn {
    --glow-x: 50%;
    --glow-y: 50%;
    background:
        radial-gradient(38% 62% at 50% 50%, rgba(255, 250, 236, 0.95), rgba(255, 243, 222, 0.45) 50%, transparent 78%),
        radial-gradient(90% 60% at 50% 118%, rgba(239, 165, 136, 0.6), transparent 70%),
        radial-gradient(55% 70% at 0% 0%, rgba(56, 167, 163, 0.42), transparent 70%),
        radial-gradient(55% 70% at 100% 0%, rgba(164, 221, 214, 0.7), transparent 70%),
        linear-gradient(180deg, #c6e7e1 0%, #e8f4ef 36%, #fcf0e3 68%, #f8d6c1 100%);
}
.sky--dawn .sky__glow { background-image: radial-gradient(closest-side, rgba(255, 212, 128, 0.5), rgba(255, 212, 128, 0.16) 55%, transparent); }
.sky--dawn .sky__dust { display: none; }
.sky--dawn .star { --star: var(--star-svg-gold); opacity: 0.9; }
.sky--dawn .cloud img { filter: saturate(1.25) brightness(1.08); }

/* Gilded: the purchase moment. Deep night, a gold spotlight behind the
   book and slowly turning rays of light. */
.sky--gilded {
    --glow-x: 50%;
    --glow-y: 50%;
    background:
        radial-gradient(34% 62% at var(--glow-x) var(--glow-y), rgba(248, 216, 107, 0.36), rgba(224, 184, 50, 0.12) 48%, transparent 74%),
        radial-gradient(70% 90% at 100% 100%, rgba(10, 111, 124, 0.6), transparent 70%),
        radial-gradient(55% 60% at 100% 0%, rgba(239, 165, 136, 0.18), transparent 70%),
        linear-gradient(135deg, #01222a 0%, #033843 55%, #054e5a 100%);
    box-shadow: inset 0 1px 0 rgba(248, 216, 107, 0.38), inset 0 -1px 0 rgba(248, 216, 107, 0.22);
}
.sky--gilded::before {
    content: "";
    position: absolute;
    top: var(--glow-y);
    left: var(--glow-x);
    width: 120vmax;
    aspect-ratio: 1;
    margin: -60vmax 0 0 -60vmax;
    background: repeating-conic-gradient(from 0deg, rgba(248, 216, 107, 0.1) 0deg 3deg, transparent 3deg 12deg);
    -webkit-mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 32%, transparent 62%);
    mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 32%, transparent 62%);
    animation: spin-slow 240s linear infinite;
}
.sky--gilded .sky__glow { background-size: 48% 80%; }
.sky--gilded .cloud img { filter: sepia(0.45) saturate(1.3) brightness(0.85); }

/* Aurora: ribbons of turquoise and gold light over a night sky. */
.sky--aurora {
    background:
        radial-gradient(70% 55% at 50% 115%, rgba(239, 165, 136, 0.3), transparent 70%),
        linear-gradient(180deg, #011d23 0%, #022e37 52%, #03434d 100%);
}
.sky--aurora::before {
    content: "";
    position: absolute;
    inset: -25% -15%;
    background:
        radial-gradient(38% 12% at 26% 40%, rgba(96, 222, 196, 0.7), transparent 70%),
        radial-gradient(34% 10% at 58% 30%, rgba(164, 221, 214, 0.62), transparent 70%),
        radial-gradient(30% 9% at 82% 42%, rgba(248, 216, 107, 0.45), transparent 70%),
        radial-gradient(26% 8% at 46% 66%, rgba(239, 165, 136, 0.32), transparent 70%),
        radial-gradient(40% 14% at 10% 56%, rgba(31, 155, 159, 0.5), transparent 70%),
        radial-gradient(44% 16% at 66% 58%, rgba(56, 167, 163, 0.32), transparent 72%);
    transform: skewY(-9deg);
    animation: aurora 28s ease-in-out infinite alternate;
}
.sky--aurora .cloud img { filter: saturate(0.8) brightness(0.7); }

/* Nocturne: moonlit, with silvered clouds drifting past the moon. */
.sky--nocturne {
    --glow-x: 84%;
    --glow-y: 16%;
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 249, 232, 0.96) 0 2.4rem, rgba(255, 241, 206, 0.34) 2.55rem, rgba(255, 236, 190, 0.1) 9rem, transparent 20rem),
        radial-gradient(70% 70% at 0% 100%, rgba(10, 111, 124, 0.55), transparent 70%),
        linear-gradient(200deg, #04404b 0%, #022a31 55%, #011a1f 100%);
}
.sky--nocturne .sky__glow { background-size: 40% 60%; opacity: 0.7; }
.sky--nocturne .cloud img { filter: grayscale(0.55) brightness(0.78); }

/* Finale: the deepest night, dense with stars, and the first gold of
   morning rising behind the book. */
.sky--cta {
    --glow-y: 70%;
    background:
        radial-gradient(40% 40% at 50% 72%, rgba(255, 214, 176, 0.36), rgba(239, 152, 112, 0.18) 50%, transparent 76%),
        radial-gradient(120% 55% at 50% 100%, rgba(10, 111, 124, 0.5), transparent 70%),
        linear-gradient(180deg, #011419 0%, #022a31 48%, #03363f 100%);
}
.sky--cta .sky__dust { opacity: 1; background-size: 420px 340px; }
.sky--cta .sky__dust::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: 290px 250px;
    background-position: 140px 90px;
    opacity: 0.7;
}
.sky--cta .cloud img { filter: brightness(0.82); }
.sky--footer {
    --glow-x: 50%;
    --glow-y: 0%;
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(10, 111, 124, 0.45), transparent 72%),
        linear-gradient(180deg, #03343c, var(--abyss));
}
.sky--nav {
    background:
        radial-gradient(70% 60% at 50% 45%, rgba(74, 190, 186, 0.55), transparent 75%),
        linear-gradient(165deg, #0a6f7c, #04424d);
}

.sky__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(closest-side, rgba(255, 224, 150, 0.26), rgba(255, 224, 150, 0.08) 55%, transparent) no-repeat;
    background-size: 62% 72%;
    background-position: var(--glow-x) var(--glow-y);
}
.sky--footer .sky__glow { opacity: 0.5; }
.sky--page .sky__glow { opacity: 0.8; }

.sky__dust {
    position: absolute;
    inset: 0;
    opacity: 0.75;
    background-image:
        radial-gradient(1.3px 1.3px at 12% 22%, rgba(255, 246, 214, 0.95), transparent 60%),
        radial-gradient(1px 1px at 27% 64%, rgba(255, 246, 214, 0.8), transparent 60%),
        radial-gradient(1.2px 1.2px at 41% 12%, rgba(255, 246, 214, 0.85), transparent 60%),
        radial-gradient(0.9px 0.9px at 53% 41%, rgba(255, 246, 214, 0.7), transparent 60%),
        radial-gradient(1.4px 1.4px at 68% 78%, rgba(255, 246, 214, 0.9), transparent 60%),
        radial-gradient(1px 1px at 79% 18%, rgba(255, 246, 214, 0.75), transparent 60%),
        radial-gradient(1.1px 1.1px at 88% 56%, rgba(255, 246, 214, 0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 6% 84%, rgba(255, 246, 214, 0.7), transparent 60%),
        radial-gradient(1px 1px at 34% 91%, rgba(255, 246, 214, 0.75), transparent 60%),
        radial-gradient(1.2px 1.2px at 95% 7%, rgba(255, 246, 214, 0.8), transparent 60%),
        radial-gradient(0.9px 0.9px at 60% 5%, rgba(255, 246, 214, 0.7), transparent 60%),
        radial-gradient(1px 1px at 18% 47%, rgba(255, 246, 214, 0.75), transparent 60%);
    background-size: 640px 520px;
}

.sky__clouds { position: absolute; inset: 0; }
.cloud { position: absolute; will-change: transform; }
.cloud img {
    width: 100%;
    height: auto;
    opacity: 0.95;
    animation: drift 90s ease-in-out infinite alternate;
}
.cloud--right img { animation-duration: 70s; animation-delay: -20s; }
.cloud--left img { animation-duration: 110s; animation-delay: -45s; }
.cloud--wisp img { animation-duration: 60s; animation-delay: -12s; }
.cloud--shelf img { animation-duration: 84s; animation-delay: -30s; }

/* Hero composition: clouds frame the book, the copy sits in clear sky. */
.sky--hero .cloud--bank { top: -16%; left: 26%; width: min(60vw, 960px); opacity: 0.92; }
.sky--hero .cloud--right { top: 30%; right: -3%; width: min(22vw, 340px); }
.sky--hero .cloud--left { bottom: 2%; left: -6%; width: min(40vw, 620px); opacity: 0.8; }
.sky--hero .cloud--wisp { top: 12%; left: 4%; width: min(13vw, 200px); opacity: 0.7; }
.sky--hero .cloud--shelf { bottom: 8%; right: 30%; width: min(17vw, 260px); opacity: 0.75; }

.sky--page .cloud--bank { top: -30%; right: -8%; width: min(62vw, 900px); opacity: 0.82; }
.sky--page .cloud--right { bottom: -40%; left: 2%; width: min(16vw, 230px); opacity: 0.5; }
.sky--page .cloud--wisp { top: 30%; left: 44%; width: min(12vw, 170px); opacity: 0.5; }

/* Dawn: clouds hug the corners so the quote sits in open light. */
.sky--dawn .cloud--bank { top: -46%; left: -18%; width: min(50vw, 780px); opacity: 0.6; }
.sky--dawn .cloud--right { top: -8%; right: -6%; width: min(16vw, 250px); opacity: 0.55; }
.sky--dawn .cloud--left { bottom: -34%; right: -6%; width: min(36vw, 540px); opacity: 0.7; }
.sky--dawn .cloud--shelf { bottom: -6%; left: 4%; width: min(13vw, 200px); opacity: 0.5; }

/* Gilded: clouds kept to the far side, away from the spotlight. */
.sky--gilded .cloud--bank { top: -40%; right: -14%; width: min(46vw, 720px); opacity: 0.38; }
.sky--gilded .cloud--left { bottom: -30%; left: -10%; width: min(30vw, 460px); opacity: 0.3; }
.sky--gilded .cloud--right { top: 30%; right: -5%; width: min(14vw, 220px); opacity: 0.32; }

.sky--aurora .cloud--left { bottom: -26%; left: -8%; width: min(38vw, 580px); opacity: 0.45; }
.sky--aurora .cloud--right { bottom: -20%; right: -4%; width: min(18vw, 280px); opacity: 0.4; }
.sky--aurora .cloud--wisp { top: 6%; right: 26%; width: min(10vw, 150px); opacity: 0.3; }

.sky--nocturne .cloud--bank { bottom: -52%; left: -16%; width: min(52vw, 800px); opacity: 0.4; }
.sky--nocturne .cloud--wisp { top: 8%; right: 11%; width: min(11vw, 170px); opacity: 0.55; }

.sky--cta .cloud--bank { bottom: -48%; left: -14%; width: min(50vw, 780px); opacity: 0.55; }
.sky--cta .cloud--right { top: 34%; right: -4%; width: min(18vw, 280px); opacity: 0.5; }
.sky--cta .cloud--left { bottom: -24%; right: -8%; width: min(36vw, 540px); opacity: 0.6; }
.sky--cta .cloud--wisp { top: 10%; left: 8%; width: min(10vw, 150px); opacity: 0.35; }
.sky--cta .cloud--shelf { bottom: 4%; right: 24%; width: min(14vw, 210px); opacity: 0.55; }

.sky--footer .cloud--left { top: -30%; right: -6%; width: min(40vw, 560px); opacity: 0.3; }
.sky--footer .cloud--wisp { bottom: 12%; left: 3%; width: min(12vw, 170px); opacity: 0.3; }

.sky--nav .cloud--bank { top: -8%; left: -30%; width: 150%; opacity: 0.85; }
.sky--nav .cloud--right { bottom: -12%; right: -12%; width: 50%; opacity: 0.8; }

.sky__stars { position: absolute; inset: 0; }
.star {
    position: absolute;
    width: var(--s, 22px);
    height: var(--s, 22px);
    margin: calc(var(--s, 22px) / -2) 0 0 calc(var(--s, 22px) / -2);
    background: var(--star, var(--star-svg)) center / contain no-repeat;
    opacity: 0.85;
    will-change: transform, opacity;
    animation: twinkle 5.5s ease-in-out infinite;
}
.s0  { left: 8%;  top: 16%; --s: 28px; }
.s1  { left: 71%; top: 9%;  --s: 36px; animation-delay: -1.2s; animation-duration: 6.4s; }
.s2  { left: 89%; top: 74%; --s: 26px; animation-delay: -2.6s; }
.s3  { left: 23%; top: 78%; --s: 20px; animation-delay: -3.3s; animation-duration: 4.6s; }
.s4  { left: 56%; top: 21%; --s: 18px; animation-delay: -0.6s; animation-duration: 7.2s; }
.s5  { left: 94%; top: 30%; --s: 20px; animation-delay: -4.1s; }
.s6  { left: 37%; top: 6%;  --s: 16px; animation-delay: -2.1s; animation-duration: 5s; }
.s7  { left: 13%; top: 52%; --s: 16px; animation-delay: -1.7s; animation-duration: 6.8s; }
.s8  { left: 63%; top: 88%; --s: 22px; animation-delay: -3.8s; }
.s9  { left: 46%; top: 60%; --s: 14px; animation-delay: -0.9s; animation-duration: 4.2s; }
.s10 { left: 81%; top: 48%; --s: 16px; animation-delay: -2.9s; animation-duration: 6s; }
.s11 { left: 3%;  top: 88%; --s: 24px; animation-delay: -4.6s; }
.s12 { left: 29%; top: 34%; --s: 14px; animation-delay: -1.4s; animation-duration: 5.8s; }
.s13 { left: 51%; top: 94%; --s: 16px; animation-delay: -3.1s; }
.s14 { left: 76%; top: 26%; --s: 14px; animation-delay: -0.3s; animation-duration: 4.8s; }
.s15 { left: 97%; top: 92%; --s: 18px; animation-delay: -2.2s; }

.sky__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 8. Book mockup =========================================================== */

.book3d {
    --w: 320px;
    --t: calc(var(--w) * 0.075);
    --ry: -17deg;
    --rx: 3deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    width: var(--w);
    aspect-ratio: 763 / 1154;
    perspective: 1900px;
    perspective-origin: 50% 40%;
}
.book3d--hero { --w: clamp(210px, 30vw, 440px); }
.book3d--lg   { --w: clamp(220px, 30vw, 410px); }
.book3d--md   { --w: clamp(190px, 24vw, 330px); }
.book3d--sm   { --w: clamp(140px, 15vw, 200px); }

.book3d__halo {
    position: absolute;
    inset: -28% -42%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 228, 160, 0.42), rgba(120, 222, 214, 0.16) 48%, transparent 74%);
    animation: breathe 8s ease-in-out infinite;
    pointer-events: none;
}
.book3d__float {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: float 7.5s ease-in-out infinite;
}
.book3d__body {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--rx) + var(--tilt-x))) rotateY(calc(var(--ry) + var(--tilt-y)));
}
.book3d__front {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 1px 4px 4px 1px;
    transform: translateZ(calc(var(--t) / 2));
    background: var(--aqua);
    box-shadow:
        0 40px 70px -28px rgba(1, 26, 31, 0.75),
        0 18px 30px -18px rgba(1, 26, 31, 0.6);
}
.book3d__front .cover-picture,
.book3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book3d__sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(255, 255, 255, 0.26) 1.3%, rgba(255, 255, 255, 0) 3%, rgba(0, 0, 0, 0.1) 4.2%, rgba(0, 0, 0, 0) 7.5%),
        linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.08) 100%);
}
.book3d__pages {
    position: absolute;
    top: 1.1%;
    bottom: 1.1%;
    left: calc(100% - var(--t) / 2 - 3px);
    width: var(--t);
    transform: rotateY(90deg);
    background:
        linear-gradient(90deg, rgba(95, 70, 30, 0.35), rgba(95, 70, 30, 0) 20%, rgba(95, 70, 30, 0) 80%, rgba(95, 70, 30, 0.3)),
        repeating-linear-gradient(90deg, #f8f1e2 0 1px, #e7dcc4 1px 2px);
}
.book3d__back {
    position: absolute;
    inset: 0;
    border-radius: 4px 1px 1px 4px;
    background: linear-gradient(90deg, #033e48, #05505c);
    transform: translateZ(calc(var(--t) / -2)) rotateY(180deg);
}
.book3d__shadow {
    position: absolute;
    left: 6%;
    right: -4%;
    bottom: -8%;
    height: 10%;
    background: radial-gradient(closest-side, rgba(1, 24, 29, 0.55), transparent);
    filter: blur(8px);
    animation: shadow 7.5s ease-in-out infinite;
    pointer-events: none;
}

/* 9. Homepage sections ===================================================== */

/* Hero */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.5rem) 0 clamp(4.5rem, 10vh, 7rem);
    overflow: hidden;
    color: var(--on-sky);
    background: var(--deep);
}
.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: clamp(60px, 10vh, 110px);
    background: linear-gradient(180deg, rgba(251, 244, 230, 0) 0%, rgba(239, 165, 136, 0.1) 40%, rgba(247, 205, 179, 0.42) 72%, var(--cream) 100%);
    pointer-events: none;
}
.hero__cursor {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    width: 720px;
    height: 720px;
    margin: -360px 0 0 -360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 226, 150, 0.14), transparent);
    opacity: 0;
    transition: opacity 0.8s;
    pointer-events: none;
    will-change: transform;
}
.hero.has-pointer .hero__cursor { opacity: 1; }

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.hero__title {
    display: flex;
    flex-direction: column;
    margin: 0 0 1.7rem -0.05em; /* optical: pulls the large E flush with the copy below */
    font-size: clamp(4rem, 9.4vw, 9.4rem);
    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -0.012em;
}
.hero__hook {
    max-width: 29ch;
    margin-bottom: 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-style: italic;
    line-height: 1.28;
    color: var(--gold-100);
}
.hero__lede {
    max-width: 44ch;
    margin-bottom: 2.5rem;
    font-size: 1.06rem;
    color: var(--on-sky-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__price { margin-top: 1.2rem; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--on-sky-soft); }
.hero__book { display: flex; justify-content: center; }
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(1.2rem, 4vh, 2.4rem);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 56px;
    color: var(--teal);
    transform: translateX(-50%);
}
.hero__scroll-icon { width: 20px; height: 34px; animation: nudge 2.8s ease-in-out infinite; }

/* Introduction */
.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: clamp(2.5rem, 6vw, 6.5rem);
}
.intro__title { font-size: clamp(2.3rem, 4.3vw, 3.8rem); line-height: 1.07; }
.pull-quote { margin: 2.2rem 0 0; padding-left: 1.6rem; border-left: 1px solid var(--gold-400); }
.pull-quote blockquote { margin: 0; }
.pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.9vw, 1.6rem);
    font-style: italic;
    line-height: 1.42;
    color: var(--teal);
}

.glance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    border-top: 1px solid var(--line);
}
.glance__item { padding: 1.6rem 1.5rem 0 0; }
.glance__item + .glance__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.glance dt {
    margin-bottom: 0.45rem;
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.glance dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; }
.glance a { color: var(--teal); }

/* Teaser */
.teaser {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y);
    color: var(--deep);
    text-align: center;
}
.teaser__inner { position: relative; z-index: 2; max-width: 62rem; }
.teaser__mark { width: 22px; height: 22px; margin: 0 auto 1.4rem; color: var(--gold-500); }
.teaser__quote {
    max-width: 23ch;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.3vw, 3.6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.18;
    text-shadow: 0 1px 22px rgba(255, 250, 238, 0.9);
}

/* Characters */
.characters__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 70rem;
    margin-inline: auto;
}
.character { text-align: center; }
.character__role {
    margin-bottom: 0.6rem;
    font-family: var(--font-caps);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.character__name {
    margin: 0 0 1.4rem;
    font-size: clamp(2.8rem, 5.4vw, 4.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--teal);
}
.character__text { max-width: 36ch; margin-inline: auto; color: var(--ink-soft); }
.characters__divider { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.characters__line { flex: 1; width: 1px; min-height: 3rem; background: linear-gradient(transparent, var(--gold-400), transparent); }
.characters__mark { width: 18px; height: 18px; color: var(--gold-400); }

/* Interlude */
.interlude {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(280px, 42vh, 420px);
    overflow: hidden;
    color: var(--on-sky);
    text-align: center;
}
.interlude__inner { position: relative; z-index: 2; }
.interlude__line {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.6vw, 6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.04;
    text-shadow: 0 4px 40px rgba(1, 36, 42, 0.45);
}

/* Synopsis preview */
.synopsis-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2.5rem, 7vw, 7rem);
}
.synopsis-preview__head { position: sticky; top: 120px; align-self: start; }
.synopsis-preview__note { color: var(--ink-soft); font-size: 0.95rem; }
.prose--story { max-width: 40rem; }
.prose--story p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    line-height: 1.62;
    color: var(--ink);
}
.prose--story p:first-child::first-letter {
    float: left;
    margin: 0.06em 0.12em 0 0;
    font-size: 4.3em;
    font-weight: 500;
    line-height: 0.78;
    color: var(--gold-ink);
}
.synopsis-preview__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 2.2rem;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

/* Themes */
.themes {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y);
    color: var(--on-sky);
}
.themes__inner { position: relative; z-index: 2; }
.themes .section-title {
    max-width: 36ch;
    margin-inline: auto;
    font-size: clamp(1.6rem, 2.9vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.32;
}
.themes__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-sky);
}
.theme { position: relative; padding: 2rem 1.8rem 0; }
.theme + .theme { border-left: 1px solid rgba(248, 216, 107, 0.14); }
.theme:first-child { padding-left: 0; }
.theme::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--gold-200);
    transform: rotate(45deg);
}
.theme + .theme::before { left: 1.8rem; }
.theme__numeral { font-family: var(--font-display); font-size: 1rem; font-style: italic; letter-spacing: 0.1em; color: var(--gold-200); }
.theme__title { margin: 0.7rem 0 0.9rem; font-size: clamp(1.6rem, 2.2vw, 1.95rem); color: var(--on-sky); }
.theme__text { font-size: 0.98rem; color: var(--on-sky-soft); }

/* Author introduction */
.author-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}
.author-intro__copy p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }
.author-intro__copy .link-arrow { margin-top: 1rem; }

.portrait { position: relative; max-width: 440px; margin: 0 auto; padding: 14px; }
.portrait__arch {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px 3px 3px;
    background: var(--deep);
    box-shadow: 0 50px 90px -50px rgba(2, 44, 51, 0.65);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-gold);
    border-radius: 999px 999px 6px 6px;
    pointer-events: none;
}
.portrait__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait__monogram {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(6rem, 11vw, 9rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.9;
    text-align: center;
    color: var(--gold-200);
    text-shadow: 0 4px 30px rgba(1, 36, 42, 0.5);
}
.portrait__monogram span {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-caps);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    color: var(--on-sky);
}

/* Future books */
.future { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.2rem, 5vw, 4.5rem); }
.future-book {
    display: grid;
    grid-template-columns: minmax(130px, 0.62fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.4rem, 3vw, 2.6rem);
}
.future-book__plate { display: block; text-decoration: none; }
.plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 763 / 1154;
    padding: 1.2rem;
    overflow: hidden;
    color: var(--gold-200);
    text-align: center;
    background:
        radial-gradient(80% 60% at 50% 40%, rgba(74, 190, 186, 0.35), transparent 75%),
        linear-gradient(170deg, #0a6f7c, #04424d);
    box-shadow: 0 34px 50px -30px rgba(2, 44, 51, 0.7);
    transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}
.future-book:hover .plate { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 44px 60px -30px rgba(2, 44, 51, 0.75); }
.plate__frame { position: absolute; inset: 9px; border: 1px dashed rgba(248, 216, 107, 0.45); }
.plate__mark { width: 12px; height: 12px; margin-bottom: 1rem; }
.plate__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 2.05rem); font-style: italic; line-height: 1; }
.plate__author { margin-top: 0.8rem; font-family: var(--font-caps); font-size: 0.56rem; letter-spacing: 0.3em; color: var(--on-sky); }
.plate__note {
    position: absolute;
    bottom: 1.3rem;
    left: 0; right: 0;
    font-size: 0.54rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(251, 244, 230, 0.72);
}
.future-book__status {
    margin-bottom: 0.6rem;
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.future-book__title { margin-bottom: 0.9rem; font-size: clamp(2rem, 3.4vw, 2.9rem); font-style: italic; font-weight: 400; }
.future-book__title a { text-decoration: none; color: var(--ink); }
.future-book__title a:hover { color: var(--teal); }
.future-book__text { color: var(--ink-soft); }
.future-book .link-arrow { margin-top: 0.6rem; }
.future--dark .future-book__title a { color: var(--on-sky); }
.future--dark .future-book__text { color: var(--on-sky-soft); }
.future--dark .future-book__status { color: var(--gold-200); }

/* Reviews */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.review figure { margin: 0; padding: 2.4rem 0 0; border-top: 1px solid var(--line-gold); }
.review__mark { width: 30px; height: 22px; margin-bottom: 1.2rem; color: var(--gold-400); }
.review__rating { margin-bottom: 0.8rem; color: var(--gold-ink); letter-spacing: 0.2em; }
.review__quote { margin: 0 0 1.4rem; }
.review__quote p { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; line-height: 1.45; }
.review__by { display: flex; flex-direction: column; gap: 0.2rem; }
.review__name { font-family: var(--font-caps); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.review__source { font-size: 0.88rem; color: var(--ink-soft); }
.review__source a { color: var(--teal); }

/* 10. Purchase components ================================================== */

.buy-section {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 7vw, 6rem);
    color: var(--on-sky);
}
.buy-section .sky { --glow-x: 26%; --glow-y: 50%; }
.buy-section__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}
.buy-section__book { display: flex; justify-content: center; }
.buy-section__title { margin-bottom: 1.3rem; font-size: clamp(2.7rem, 5.4vw, 4.6rem); color: var(--on-sky); }
.buy-section__title em { color: var(--gold-200); font-weight: 400; }
.buy-section__text { max-width: 44ch; margin-bottom: 2.4rem; color: var(--on-sky-soft); font-size: 1.08rem; }

.retailers__heading {
    margin-bottom: 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.retailers__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.retailer {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    min-height: 4rem;
    padding: 0.85rem 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(248, 216, 107, 0.38);
    border-radius: var(--radius);
    background: rgba(2, 44, 51, 0.3);
    color: var(--on-sky);
    text-decoration: none;
    transition: transform 0.5s var(--ease-out), border-color 0.4s, background-color 0.4s, box-shadow 0.5s;
}
.retailer:hover {
    border-color: var(--gold-200);
    background: rgba(248, 216, 107, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.5);
}
.retailer__name { display: block; font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1.1; }
.retailer__note { display: block; margin-top: 0.25rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.retailer__icon { width: 18px; height: 18px; color: var(--gold-200); transition: transform 0.5s var(--ease-out); }
.retailer:hover .retailer__icon { transform: translate(3px, -3px); }

.retailer--featured {
    border-color: transparent;
    background: var(--gold-fill);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 30px -16px rgba(224, 184, 50, 0.8);
}
.retailer--featured:hover { background: var(--gold-fill); border-color: transparent; }
.retailer--featured .retailer__icon { color: var(--ink); }


.retailers__price { margin-top: 1.1rem; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--on-sky-soft); }
.retailers__pending {
    max-width: 38ch;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--on-sky-soft);
}
.retailers__pending a { color: var(--gold-200); }

.retailers--light .retailers__heading { color: var(--gold-ink); }
.retailers--light .retailer { border-color: rgba(11, 48, 54, 0.22); background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.retailers--light .retailer:hover { border-color: var(--teal); background: #fff; }
.retailers--light .retailer__icon { color: var(--teal); }
.retailers--light .retailer--featured { background: var(--gold-fill); border-color: transparent; }
.retailers--light .retailer--featured .retailer__icon { color: var(--ink); }
.retailers--light .retailers__price,
.retailers--light .retailers__pending { color: var(--ink-soft); }
.retailers--light .retailers__pending a { color: var(--teal); }
.retailers--compact .retailers__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

/* Final CTA */
.final-cta {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y);
    color: var(--on-sky);
    text-align: center;
}
.final-cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-cta__title {
    max-width: 21ch;
    margin-bottom: 1.8rem;
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
}
.final-cta__line { display: block; font-style: italic; }
.final-cta__line--gold { color: var(--gold-200); }
.final-cta__book { margin: 0 0 2.6rem; }
.final-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; }
.share__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.share__icon { width: 15px; height: 15px; }
.share__list { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; margin: 0; padding: 0; list-style: none; }
.share__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--on-sky-soft);
    font-size: 0.88rem;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 78%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.share__link:hover { color: var(--on-sky); background-size: 100% 1px; }
.share--light .share__label { color: var(--gold-ink); }
.share--light .share__link { color: var(--ink-soft); }
.share--light .share__link:hover { color: var(--ink); }

/* 11. Newsletter & forms =================================================== */

.newsletter {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y);
    text-align: center;
    background:
        radial-gradient(65% 60% at 50% 0%, rgba(239, 165, 136, 0.26), transparent 72%),
        radial-gradient(55% 60% at 100% 100%, rgba(56, 167, 163, 0.16), transparent 70%),
        radial-gradient(45% 50% at 0% 90%, rgba(248, 216, 107, 0.14), transparent 70%),
        linear-gradient(180deg, var(--cream), #faeadf);
}
.newsletter__inner { position: relative; max-width: 46rem; margin: 0 auto; padding-inline: var(--gutter); }
.newsletter__mark { width: 26px; height: 26px; margin: 0 auto 1.1rem; color: var(--gold-400); animation: spin-slow 24s linear infinite; }
.newsletter__title { margin-bottom: 1rem; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.newsletter__text { max-width: 40ch; margin: 0 auto 1.8rem; color: var(--ink-soft); font-size: 1.08rem; }
.newsletter__form { max-width: 36rem; margin-inline: auto; text-align: left; }
.newsletter__row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; }
.newsletter__label {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.newsletter__input,
.field input,
.field textarea {
    width: 100%;
    min-height: 3.3rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(11, 48, 54, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.newsletter__input:focus,
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 111, 124, 0.2);
}
.newsletter__input::placeholder,
.field ::placeholder { color: #6f8386; }

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.check__input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0.12rem 0 0;
    border: 1px solid rgba(11, 48, 54, 0.5);
    border-radius: var(--radius);
    background: #fff center / 80% no-repeat;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.check__input:checked {
    border-color: var(--teal);
    background-color: var(--teal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check__input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.check__label a { color: var(--teal); }

.form-status { min-height: 1.6em; margin: 1rem 0 0; font-size: 0.95rem; }
.form-status--success { color: var(--success); }
.form-status--error { color: var(--error); }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.field__req { color: var(--error); }
.field textarea { min-height: 12rem; resize: vertical; }
.field--error input,
.field--error textarea { border-color: var(--error); }
.field__error { margin: 0.45rem 0 0; font-size: 0.86rem; color: var(--error); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.form__note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.form.is-submitting .btn { opacity: 0.7; pointer-events: none; }

.alert { margin-bottom: 2rem; padding: 1.1rem 1.3rem; border-left: 3px solid; }
.alert p { margin: 0; }
.alert--success { border-color: var(--success); background: #e7f3ee; color: #0a4638; }
.alert--error { border-color: var(--error); background: #fbecea; color: #6d1f18; }

/* 12. Inner pages ========================================================== */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(2rem, 4.5vw, 3.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
    color: var(--on-sky);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title {
    max-width: 16ch;
    font-size: clamp(3rem, 7.4vw, 6.4rem);
    font-weight: 500;
    line-height: 0.96;
}
.page-hero__title em { color: var(--gold-200); font-weight: 400; }
.page-hero__intro { max-width: 46ch; margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--on-sky-soft); }
.page-hero--compact { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-hero--compact .page-hero__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-sky-soft);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.7rem; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; background: var(--gold-200); transform: rotate(45deg); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--on-sky); text-decoration: underline; }

/* Book page */
.book-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(4rem, 8vw, 6rem);
    color: var(--on-sky);
}
.book-hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 80px; background: linear-gradient(180deg, transparent, rgba(247, 205, 179, 0.4) 70%, var(--cream)); pointer-events: none; }
.book-hero .sky { --glow-x: 28%; --glow-y: 50%; }
.book-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
}
.book-hero__book { display: flex; justify-content: center; }
.book-hero__title { margin-bottom: 1.2rem; font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: 0.88; }
.book-hero__author {
    margin-bottom: 1.8rem;
    font-family: var(--font-caps);
    font-size: 0.9rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.book-hero__hook { max-width: 30ch; margin-bottom: 1.1rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-style: italic; line-height: 1.3; color: var(--gold-100); }
.book-hero__intro { max-width: 46ch; margin-bottom: 2.2rem; color: var(--on-sky-soft); }
.book-hero .share { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-sky); }

.synopsis { max-width: 46rem; margin-inline: auto; }
.synopsis__head { margin-bottom: clamp(1.8rem, 3.5vw, 2.5rem); text-align: center; }
.synopsis__hook {
    margin: 0 auto;
    max-width: 24ch;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    color: var(--teal);
}
.synopsis .prose--story { max-width: none; }
.synopsis__closing { font-weight: 600; font-style: italic; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem auto; color: var(--gold-400); }
.ornament::before,
.ornament::after { content: ""; width: 4rem; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament .icon { width: 14px; height: 14px; }
.synopsis__coda {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--ink);
}
.synopsis__coda span { display: block; }
.synopsis__share { display: flex; justify-content: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.world {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y);
    color: var(--on-sky);
}
.world__inner { position: relative; z-index: 2; }
.world__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.world__panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4.1;
    padding: 2rem 1.8rem 2.3rem;
    overflow: hidden;
    border-radius: 999px 999px 3px 3px;
    border: 1px solid rgba(248, 216, 107, 0.3);
}
.world__panel .sky { z-index: -1; }
.world__panel::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(2, 36, 42, 0.78));
}
.world__panel--burgundy .sky {
    background:
        radial-gradient(70% 55% at 50% 30%, rgba(255, 214, 170, 0.6), transparent 75%),
        linear-gradient(180deg, #f2b797 0%, #d98672 42%, #7b4f5a 78%, #3c3a4d 100%);
}
.world__panel--letters .sky { background: radial-gradient(70% 60% at 50% 35%, rgba(52, 170, 170, 0.45), transparent 75%), linear-gradient(180deg, #03404b, #022c33); }
.world__label { margin-bottom: 0.5rem; font-family: var(--font-caps); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-200); }
.world__name { font-size: clamp(2.3rem, 3.6vw, 3.2rem); font-style: italic; font-weight: 400; line-height: 1; color: var(--on-sky); }
.world__line { margin-top: 0.9rem; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.35; color: var(--on-sky-soft); }

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}
.details { margin: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(8rem, 0.45fr) 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.details dt { font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); padding-top: 0.2rem; }
.details dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.buy-box {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    color: var(--on-sky);
    box-shadow: 0 40px 70px -40px rgba(2, 44, 51, 0.7);
}
.buy-box .sky { --glow-y: 8%; }
.buy-box__inner { position: relative; z-index: 2; }
.buy-box__title { margin-bottom: 0.8rem; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.buy-box__text { margin-bottom: 1.8rem; color: var(--on-sky-soft); }

/* Buy page */
.buy-page {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.5rem) 0 3rem;
    overflow: hidden;
    color: var(--on-sky);
}
.buy-page .sky { --glow-x: 27%; --glow-y: 52%; }
.buy-page__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
}
.buy-page__book { display: flex; justify-content: center; }
.buy-page__title { margin-bottom: 1rem; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.92; }
.buy-page__title em { display: block; color: var(--gold-200); font-weight: 400; }
.buy-page__message { max-width: 44ch; margin-bottom: 2.4rem; font-size: 1.1rem; color: var(--on-sky-soft); }
.buy-page__assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin: 2rem 0 0;
    padding: 1.4rem 0 0;
    border-top: 1px solid var(--line-sky);
    list-style: none;
    font-size: 0.85rem;
    color: var(--on-sky-soft);
}
.buy-page__assurance li { display: flex; align-items: center; gap: 0.5rem; }
.buy-page__assurance .icon { width: 16px; height: 16px; color: var(--gold-200); }
.buy-page__more { margin-top: 1.6rem; }

/* About page */
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.story__portrait { position: sticky; top: 110px; }
.story__caption { margin-top: 1.2rem; text-align: center; font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); }
.chapter { position: relative; padding: 0 0 clamp(1.8rem, 3.5vw, 2.6rem) 3.4rem; }
.chapter::before { content: ""; position: absolute; left: 0.6rem; top: 0.9rem; bottom: 0; width: 1px; background: linear-gradient(var(--line-gold), transparent); }
.chapter:last-child::before { display: none; }
.chapter__numeral {
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.3rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gold-ink);
    text-align: center;
    background: var(--cream);
}
.chapter__title { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); font-style: italic; font-weight: 400; color: var(--teal); }
.chapter p { color: var(--ink-soft); font-size: 1.08rem; }
.chapter__book {
    margin: 1.4rem 0 0.6rem;
    font-family: var(--font-caps);
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    color: var(--ink);
}
.chapter__quote { margin: 0; padding-left: 1.4rem; border-left: 1px solid var(--gold-400); }
.chapter__quote p { font-family: var(--font-display); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--teal); }
.source-note { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* Books page */
.featured-book {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}
.featured-book__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem) 1rem;
    overflow: hidden;
}
.featured-book__visual .sky { border-radius: 999px 999px 3px 3px; }
.featured-book__visual .book3d { z-index: 2; }
.featured-book__label { margin-bottom: 0.8rem; font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); }
.featured-book__title { margin-bottom: 0.4rem; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.92; }
.featured-book__author { margin-bottom: 1.6rem; font-family: var(--font-caps); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); font-size: 0.85rem; }
.featured-book__hook { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; line-height: 1.3; color: var(--teal); }
.featured-book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.2rem; }

/* Forthcoming title pages */
.forthcoming { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.forthcoming__plate { max-width: 320px; margin-inline: auto; width: 100%; }
.forthcoming__quote { margin: 0 0 2rem; padding-left: 1.4rem; border-left: 1px solid var(--gold-400); }
.forthcoming__quote p { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem); font-style: italic; line-height: 1.45; color: var(--teal); }
.forthcoming__quote figcaption { margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.forthcoming p:not(.eyebrow) { color: var(--ink-soft); }

/* Journal */
.entries { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.entry { border-bottom: 1px solid var(--line); }
.entry__link {
    display: grid;
    grid-template-columns: 11rem 1fr auto;
    align-items: baseline;
    gap: 1rem 3rem;
    padding: 1.6rem 0;
    color: inherit;
    text-decoration: none;
}
.entry__date { font-family: var(--font-caps); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); }
.entry__title { margin-bottom: 0.6rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); transition: color 0.3s; }
.entry__excerpt { margin: 0; color: var(--ink-soft); }
.entry__arrow { width: 26px; height: 26px; color: var(--teal); transition: transform 0.5s var(--ease-out); }
.entry__link:hover .entry__title { color: var(--teal); }
.entry__link:hover .entry__arrow { transform: translateX(6px); }
.entry-draft { display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.45rem; background: #b13d24; color: #fff; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.14em; vertical-align: middle; }
.article { max-width: 44rem; margin-inline: auto; }
.article .prose { font-size: 1.1rem; }
.article__back { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.empty-state { max-width: 40rem; margin-inline: auto; text-align: center; }
.empty-state__mark { width: 24px; height: 24px; margin: 0 auto 1.6rem; color: var(--gold-400); }
.empty-state__title { margin-bottom: 1rem; font-size: clamp(2rem, 3.6vw, 3rem); font-style: italic; font-weight: 400; }
.empty-state p { color: var(--ink-soft); }
.empty-state .section-actions { margin-top: 1.8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-aside { position: sticky; top: 110px; display: grid; gap: 2.5rem; }
.contact-aside__block { padding-top: 1.6rem; border-top: 1px solid var(--line-gold); }
.contact-aside__title { margin-bottom: 0.7rem; font-size: 1.6rem; font-style: italic; font-weight: 400; }
.contact-aside p { color: var(--ink-soft); font-size: 0.98rem; }
.contact-aside__book { display: flex; gap: 1.2rem; align-items: center; }
.contact-aside__book .cover-picture { width: 84px; flex: none; box-shadow: 0 16px 30px -14px rgba(2, 44, 51, 0.6); }

/* Legal */
.legal-notice {
    margin: 0 0 2.5rem;
    padding: 1.1rem 1.3rem;
    border: 1px dashed #c0563b;
    background: #fdf1ea;
    color: #6d2415;
    font-size: 0.95rem;
}
.legal-notice strong { display: block; margin-bottom: 0.2rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.ph { padding: 0 0.3em; border-radius: 2px; background: #fde4d8; color: #8a2f1c; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82em; }
.legal-meta { margin-bottom: 2rem; font-size: 0.9rem; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
.table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.table code { font-size: 0.85em; }

/* 404 */
.lost {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.5rem) 0 3rem;
    overflow: hidden;
    color: var(--on-sky);
    text-align: center;
}
.lost__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.lost__title { margin-bottom: 1.2rem; font-size: clamp(3.2rem, 8vw, 7rem); font-style: italic; font-weight: 400; line-height: 0.95; }
.lost__text { max-width: 36ch; margin-bottom: 2.6rem; color: var(--on-sky-soft); font-size: 1.12rem; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }


/* 13. Footer, sticky CTA, consent ========================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(3rem, 5.5vw, 4.5rem);
    background: var(--abyss);
    color: var(--on-sky-soft);
    font-size: 0.95rem;
}
.site-footer__top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.site-footer__line { margin: 1rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--on-sky); }
.site-footer__book { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.4rem; }
.site-footer__thumb { flex: none; width: 64px; box-shadow: 0 16px 26px -10px rgba(0, 0, 0, 0.7); transition: transform 0.6s var(--ease-out); }
.site-footer__thumb:hover { transform: translateY(-3px) rotate(-1.5deg); }
.site-footer__book-title { margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.35rem; }
.site-footer__book-title a { color: var(--on-sky); text-decoration: none; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer__heading {
    margin-bottom: 1.2rem;
    font-family: var(--font-caps);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.site-footer ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.site-footer__col a { display: inline-block; padding: 0.2rem 0; color: var(--on-sky-soft); text-decoration: none; transition: color 0.3s; }
.site-footer__col a:hover { color: var(--on-sky); text-decoration: underline; text-decoration-color: var(--gold-200); }
.site-footer__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 2rem;
    padding-block: 1.3rem 1.5rem;
    border-top: 1px solid rgba(248, 216, 107, 0.14);
    font-size: 0.82rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex !important; flex-wrap: wrap; gap: 0.4rem 1.4rem !important; }
.site-footer__legal a { color: var(--on-sky-soft); text-decoration: none; }
.site-footer__legal a:hover { color: var(--on-sky); text-decoration: underline; }

.sticky-buy { display: none; }

.consent {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: min(26rem, calc(100% - 2rem));
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--line-gold);
    background: var(--ivory);
    color: var(--ink);
    box-shadow: 0 30px 60px -24px rgba(2, 44, 51, 0.5);
    animation: rise 0.8s var(--ease-out) both;
}
.consent__title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 1.5rem; }
.consent__mark { width: 14px; height: 14px; color: var(--gold-400); }
.consent__text { font-size: 0.9rem; color: var(--ink-soft); }
.consent__text a { color: var(--teal); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* 14. Motion =============================================================== */

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: 0.12s; }
.js .reveal--d2 { transition-delay: 0.24s; }
.js .reveal--d3 { transition-delay: 0.36s; }
.js .reveal--mask {
    transform: none;
    clip-path: inset(18% 0 0 0);
    transition: opacity 1.2s var(--ease-out), clip-path 1.6s var(--ease-out);
}
.js .reveal--mask.is-visible { clip-path: inset(0 0 0 0); }

.js .hero-rise { animation: rise 1.5s var(--ease-out) both; }
.js .hero-rise--2 { animation-delay: 0.12s; }
.js .hero-rise--3 { animation-delay: 0.26s; }
.js .hero-rise--4 { animation-delay: 0.38s; }
.js .hero-rise--5 { animation-delay: 0.5s; }
.js .hero-rise--book { animation: book-in 1.8s 0.1s var(--ease-out) both; }

@keyframes rise { from { opacity: 0.01; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes book-in { from { opacity: 0.01; transform: translate3d(0, 40px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sweep { 0%, 78% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(4%, -2%, 0); } }
@keyframes twinkle { 0%, 100% { opacity: 0.28; transform: scale(0.55); } 50% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes shadow { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: 0.7; transform: scaleX(0.9); } }
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes aurora { from { opacity: 0.8; transform: skewY(-9deg) translate3d(-4%, 2%, 0); } to { opacity: 1; transform: skewY(-6deg) translate3d(4%, -3%, 0) scaleY(1.12); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease-soft) both vt-out; }
::view-transition-new(root) { animation: 0.6s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* 15. Responsive =========================================================== */

@media (max-width: 1119px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        background:
            radial-gradient(70% 50% at 85% 10%, rgba(74, 190, 186, 0.45), transparent 72%),
            radial-gradient(60% 40% at 0% 100%, rgba(239, 165, 136, 0.22), transparent 70%),
            linear-gradient(170deg, #055a67 0%, #04424d 55%, var(--abyss) 100%);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.55s var(--ease-out), visibility 0s linear 0.55s;
    }
    .nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.55s var(--ease-out); }
    .nav-open { overflow: hidden; }
    .nav-open .sticky-buy { visibility: hidden; }
    .nav-open .site-header::before { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

    .site-nav__list { flex-direction: column; gap: 0; width: 100%; }
    .site-nav__item { border-bottom: 1px solid rgba(248, 216, 107, 0.12); }
    .site-nav__link {
        display: flex;
        align-items: baseline;
        gap: 1.3rem;
        padding: 0.7rem 0;
        font-family: var(--font-display);
        font-size: clamp(2rem, 7vw, 2.9rem);
        letter-spacing: 0;
        line-height: 1.1;
        text-transform: none;
        color: var(--on-sky);
        opacity: 0;
        transform: translate3d(0, 18px, 0);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), color 0.3s;
    }
    .site-nav__link::after { display: none; }
    .site-nav__link[aria-current="page"] .site-nav__text { font-style: italic; color: var(--gold-200); }
    .site-nav__index { display: inline; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--gold-200); }
    .nav-open .site-nav__link { opacity: 1; transform: none; }
    .nav-open .site-nav__item:nth-child(2) .site-nav__link { transition-delay: 0.05s; }
    .nav-open .site-nav__item:nth-child(3) .site-nav__link { transition-delay: 0.1s; }
    .nav-open .site-nav__item:nth-child(4) .site-nav__link { transition-delay: 0.15s; }
    .nav-open .site-nav__item:nth-child(5) .site-nav__link { transition-delay: 0.2s; }
    .nav-open .site-nav__item:nth-child(6) .site-nav__link { transition-delay: 0.25s; }

    .site-nav__cta { margin-top: 2.2rem; }
    .site-nav__cta .btn--nav { --btn-h: 3.5rem; padding: 0 2rem; font-size: 0.78rem; }
    .site-nav__cta .btn--nav .btn__icon { display: block; }
    .site-nav__aside { display: block; margin-top: auto; padding-top: 2.5rem; }
    .site-nav__hook { max-width: 26ch; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: rgba(248, 216, 107, 0.8); }
}

@media (max-width: 1023px) {
    .glance { grid-template-columns: repeat(2, 1fr); }
    .glance__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .glance__item:nth-child(n + 3) { margin-top: 1.4rem; border-top: 1px solid var(--line); }
    .themes__list { grid-template-columns: repeat(2, 1fr); row-gap: 2.8rem; }
    .theme:nth-child(3) { padding-left: 0; border-left: 0; }
    .theme:nth-child(3)::before { left: 0; }
    .future { grid-template-columns: 1fr; max-width: 40rem; }
    .site-footer__top { grid-template-columns: 1fr; }
    .world__grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
    .world__panel { scroll-snap-align: start; }
    .entry__link { grid-template-columns: 1fr auto; }
    .entry__date { grid-column: 1 / -1; }

    /* The centred heading spans the full width here: tuck the moon into the
       top corner, above the eyebrow, so it never sits on the text. */
    .sky--nocturne {
        --glow-x: 96%;
        --glow-y: 0%;
        background:
            radial-gradient(circle at calc(100% - 2.4rem) 2.1rem, rgba(255, 249, 232, 0.96) 0 1.15rem, rgba(255, 241, 206, 0.34) 1.25rem, rgba(255, 236, 190, 0.1) 5rem, transparent 11rem),
            radial-gradient(70% 70% at 0% 100%, rgba(10, 111, 124, 0.55), transparent 70%),
            linear-gradient(200deg, #04404b 0%, #022a31 55%, #011a1f 100%);
    }
    .sky--nocturne .cloud--wisp { top: 0.6rem; right: 0.4rem; width: min(22vw, 150px); }
}

@media (max-width: 899px) {
    :root { --header-h: 72px; }

    .hero { padding-top: calc(var(--header-h) + 0.8rem); justify-content: flex-start; }
    .hero__inner { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
    .hero__book { order: -1; }
    .hero__copy { display: flex; flex-direction: column; align-items: center; }
    .hero .eyebrow { justify-content: center; }
    .hero__title { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 0.22em; margin-bottom: 1.1rem; font-size: clamp(3.1rem, 13.5vw, 5.4rem); line-height: 0.95; }
    .hero__title { margin-left: 0; }
    .hero__hook { margin-inline: auto; }
    .hero__lede { margin-inline: auto; margin-bottom: 2rem; }
    .hero__actions { justify-content: center; }
    .hero__scroll { display: none; }
    .book3d--hero { --w: clamp(170px, 50vw, 290px); --ry: -13deg; }
    .sky--hero {
        background:
            radial-gradient(80% 42% at 50% 24%, rgba(74, 190, 186, 0.7) 0%, rgba(20, 140, 148, 0.28) 50%, transparent 78%),
            linear-gradient(180deg, #045867 0%, #05606e 40%, #033e49 100%);
    }
    .sky--hero .sky__glow { background-position: 50% 22%; background-size: 110% 50%; }
    .sky--hero .cloud--bank { top: -8%; left: -40%; width: 130vw; }
    .sky--hero .cloud--right { top: 14%; right: -14%; width: 38vw; }
    .sky--hero .cloud--left { bottom: 6%; left: -30%; width: 90vw; opacity: 0.55; }
    .sky--hero .cloud--wisp,
    .sky--hero .cloud--shelf { display: none; }

    .intro__grid,
    .synopsis-preview__grid,
    .author-intro__grid,
    .buy-section__inner,
    .book-hero__inner,
    .buy-page__inner,
    .details-grid,
    .contact-grid,
    .story,
    .featured-book,
    .forthcoming { grid-template-columns: 1fr; }

    .synopsis-preview__head,
    .story__portrait,
    .contact-aside { position: static; }

    .characters__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .characters__divider { flex-direction: row; }
    .characters__line { flex: none; width: 4rem; height: 1px; min-height: 0; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }

    .buy-section__inner,
    .buy-page__inner,
    .book-hero__inner { text-align: center; }
    .buy-section .sky { --glow-x: 50%; --glow-y: 24%; }
    .buy-section__copy .eyebrow,
    .buy-page__copy .eyebrow,
    .book-hero__copy .eyebrow { justify-content: center; }
    .buy-section__text,
    .buy-page__message,
    .book-hero__hook,
    .book-hero__intro { margin-inline: auto; }
    .buy-page__book .book3d { --w: clamp(160px, 44vw, 260px); }
    .buy-page { align-items: flex-start; }
    .buy-page__assurance,
    .book-hero .share { justify-content: center; }
    .retailers__heading { text-align: center; }
    .retailers__pending { margin-inline: auto; }
    .book-hero .breadcrumbs ol { justify-content: center; }

    .author-intro__portrait { max-width: 340px; margin-inline: auto; width: 100%; }
    .story__portrait { max-width: 320px; margin-inline: auto; width: 100%; }
    .forthcoming__plate { max-width: 240px; }
    .featured-book__visual { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* Short phones: keep BUY THE BOOK above the fold. */
@media (max-width: 899px) and (max-height: 760px) {
    .book3d--hero { --w: clamp(140px, 40vw, 200px); }
    .hero__inner { gap: 1.2rem; }
    .hero .eyebrow { margin-bottom: 0.8rem; }
    .hero__lede { display: none; }
    .hero__hook { margin-bottom: 1.6rem; }
}

@media (max-width: 767px) {
    .sticky-buy {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.55rem 0.55rem 0.55rem 0.65rem;
        border: 1px solid rgba(248, 216, 107, 0.3);
        border-radius: 4px;
        background: rgba(3, 58, 68, 0.94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
        transform: translate3d(0, calc(100% + 2rem), 0);
        visibility: hidden;
        transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
    }
    .sticky-buy.is-visible { transform: none; visibility: visible; transition: transform 0.6s var(--ease-out); }
    .sticky-buy__book { width: 32px; flex: none; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.6); }
    .sticky-buy__text { flex: 1; min-width: 0; margin: 0; line-height: 1.2; }
    .sticky-buy__title { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--on-sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sticky-buy__author { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-200); }
    .sticky-buy .btn .btn__icon { display: none; }
    .site-footer { padding-bottom: 5.5rem; }
    .consent { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

    .form__row { grid-template-columns: 1fr; }
    .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .world__grid { grid-template-columns: repeat(3, 78vw); }
    .details > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 599px) {
    body { font-size: 1rem; }
    .btn--lg { --btn-h: 3.5rem; padding: 0 1.6rem; font-size: 0.76rem; }
    .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; }
    .hero__lede { font-size: 1rem; }
    .glance { grid-template-columns: 1fr; }
    .glance__item,
    .glance__item + .glance__item { padding-left: 0; border-left: 0; }
    .glance__item + .glance__item { margin-top: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
    .glance__item:first-child { padding-top: 1.2rem; }
    .themes__list { grid-template-columns: 1fr; }
    .theme,
    .theme + .theme { padding-left: 0; border-left: 0; }
    .theme + .theme::before { left: 0; }
    .future-book { grid-template-columns: minmax(110px, 0.55fr) 1fr; gap: 1.2rem; }
    .future-book__title { font-size: 1.9rem; }
    .newsletter__row { grid-template-columns: 1fr; }
    .newsletter__submit { width: 100%; }
    .synopsis-preview__actions { flex-direction: column; align-items: flex-start; }
    .chapter { padding-left: 2.6rem; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
    .page-hero__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }

    /* Skies: vw-sized clouds shrink to specks on phones, so scale them up
       and keep them to the edges, clear of the text. */
    .sky--dawn .cloud--bank { top: -22%; left: -36%; width: 92vw; }
    .sky--dawn .cloud--left { bottom: -16%; right: -30%; width: 80vw; }
    .sky--dawn .cloud--right,
    .sky--dawn .cloud--shelf { display: none; }
    .sky--gilded .cloud--bank { top: -10%; right: -40%; width: 90vw; }
    .sky--gilded .cloud--left { bottom: -8%; left: -30%; width: 70vw; }
    .sky--aurora .cloud--left { width: 80vw; }
    .sky--cta .cloud--bank { width: 100vw; left: -30%; }
    .sky--cta .cloud--left { width: 70vw; }
    .sky--cta .cloud--wisp { display: none; }
}

/* Narrow phones: the plate and copy no longer fit side by side. */
@media (max-width: 420px) {
    .future-book { grid-template-columns: 1fr; gap: 1.4rem; }
    .future-book__plate { width: min(58%, 190px); }
}

@media (hover: none) {
    .btn:hover, .retailer:hover { transform: none; }
}

/* 16. Reduced motion & print =============================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .js .reveal,
    .js .reveal--mask { opacity: 1; transform: none; clip-path: none; }
    .star { animation: none !important; opacity: 0.8; transform: none; }
    .sky__particles, .hero__cursor { display: none; }
    @view-transition { navigation: none; }
}

@media print {
    .site-header, .sticky-buy, .consent, .sky, .hero__scroll, .newsletter, .site-footer .sky, .share { display: none !important; }
    body { background: #fff; color: #000; }
    .hero, .page-hero, .book-hero, .buy-section, .final-cta, .teaser, .interlude, .themes, .buy-page, .site-footer { color: #000; background: #fff; min-height: 0; padding-block: 1.5rem; }
    .gold-text { color: #000 !important; -webkit-text-fill-color: #000; background: none; filter: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
