:root {
    --navy: #071d49;
    --navy-deep: #04132f;
    --blue: #123d88;
    --gold: #d79a18;
    --gold-light: #f1c35c;
    --cream: #f7f2e8;
    --paper: #fffdf8;
    --ink: #101a2e;
    --muted: #667085;
    --line: rgba(7, 29, 73, .14);
    --shadow: 0 24px 70px rgba(7, 29, 73, .14);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Deterrent against casual copy/paste of site content (descriptions,
       reviews, book text) — paired with the contextmenu/copy/cut/dragstart
       blocks in site.js. Not real protection (page source, dev tools and
       screenshots all still work regardless), just enough to stop a quick
       select-and-copy or right-click-save. Re-enabled below wherever a
       visitor is meant to type or copy something of their own (form
       fields, and anything explicitly marked .selectable). */
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"],
.selectable {
    -webkit-user-select: text;
    user-select: text;
}

body.menu-open {
    overflow: hidden;
}

body.preview-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: 18px 0;
    color: #fff;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(4, 19, 47, .95);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.main-nav,
.brand,
.hero-actions,
.section-heading,
.book-card-foot,
.detail-price,
.footer-bottom {
    display: flex;
    align-items: center;
}

.nav-wrap {
    justify-content: space-between;
}

.brand {
    gap: 12px;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand strong {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: .04em;
}

.brand strong em {
    color: var(--gold-light);
    font-style: normal;
}

.brand small {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: .11em;
}

.main-nav {
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
}

.main-nav > a {
    position: relative;
}

.nav-form {
    margin: 0;
}

.language-form {
    margin: 0;
}

.language-form select {
    padding: 8px 26px 8px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 99px;
    font: inherit;
    cursor: pointer;
}

.language-form option {
    color: var(--navy-deep);
}

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

.nav-cta-form {
    display: flex;
}

.nav-form button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.nav-cta-form .nav-cta {
    padding: 11px 18px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 99px;
}

.main-nav > a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--gold-light);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 11px 18px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 99px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: .25s ease;
}

.nav-backdrop {
    display: none;
}

.hero {
    position: relative;
    min-height: 850px;
    padding: 165px 0 95px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 30%, rgba(24, 78, 158, .72), transparent 34%),
        linear-gradient(125deg, var(--navy-deep), var(--navy) 52%, #0b3474);
}

.hero::before {
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, .18), transparent);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 80px;
    align-items: center;
}

.hero-copy h1,
.inner-hero h1,
.catalog-hero h1,
.contact-copy h1 {
    margin: 24px 0;
    font-family: var(--serif);
    font-size: clamp(48px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero-copy h1 em,
.inner-hero h1 em,
.catalog-hero h1 em,
.contact-copy h1 em {
    color: var(--gold-light);
    font-weight: 600;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 25px;
    height: 1px;
    background: currentColor;
}

.eyebrow.light {
    color: var(--gold-light);
}

.hero-lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
}

.hero-actions {
    gap: 28px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 15px 24px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-gold {
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 14px 30px rgba(215, 154, 24, .24);
}

.button-navy {
    color: #fff;
    background: var(--navy);
    box-shadow: 0 14px 30px rgba(7, 29, 73, .18);
}

.button-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
}

.text-link,
.arrow-link {
    font-size: 14px;
    font-weight: 700;
}

.text-link span,
.arrow-link span {
    display: inline-block;
    margin-left: 7px;
    color: var(--gold-light);
    transition: transform .25s ease;
}

.text-link:hover span,
.arrow-link:hover span {
    transform: translate(4px, -2px);
}

.text-link.dark {
    color: var(--navy);
}

.text-link.dark span {
    color: var(--gold);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 650px;
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-facts div {
    display: flex;
    flex-direction: column;
}

.hero-facts strong {
    color: var(--gold-light);
    font-family: var(--serif);
}

.hero-facts span {
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
}

.portrait-frame {
    position: relative;
    max-width: 470px;
    margin: 0 auto;
}

.portrait-frame::before {
    position: absolute;
    inset: 28px -24px -24px 28px;
    content: "";
    border: 1px solid rgba(241, 195, 92, .5);
    border-radius: 90px 24px 24px;
}

.portrait-arch {
    position: relative;
    height: 585px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, .08);
    border-radius: 90px 24px 24px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, .36);
}

.portrait-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: saturate(.9) contrast(1.03);
}

.portrait-card {
    position: absolute;
    right: -48px;
    bottom: 38px;
    z-index: 2;
    width: 255px;
    padding: 20px 24px;
    color: var(--navy);
    background: var(--cream);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .3);
}

.portrait-card span,
.portrait-card small {
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portrait-card strong {
    display: block;
    margin: 4px 0;
    font-family: var(--serif);
    font-size: 24px;
}

.gold-star {
    position: absolute;
    color: var(--gold-light);
}

.star-one {
    top: 70px;
    left: -55px;
    font-size: 28px;
}

.star-two {
    top: 110px;
    left: -20px;
    font-size: 14px;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.orbit-one {
    top: -420px;
    right: -350px;
    width: 1000px;
    height: 1000px;
}

.orbit-two {
    top: -280px;
    right: -210px;
    width: 720px;
    height: 720px;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero-scroll span {
    position: relative;
    width: 1px;
    height: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, .2);
}

.hero-scroll span::after {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background: var(--gold-light);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    to { transform: translateY(200%); }
}

.manifesto {
    background: var(--cream);
}

.manifesto-grid,
.about-intro-grid,
.description-grid {
    display: grid;
    grid-template-columns: .55fr 1.45fr 1fr;
    gap: 60px;
}

.section-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.manifesto blockquote {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.24;
}

.manifesto blockquote em {
    color: var(--gold);
}

.manifesto-copy p {
    margin-top: 0;
    color: var(--muted);
}

.arrow-link {
    color: var(--navy);
}

.arrow-link span {
    color: var(--gold);
}

.section-heading {
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading h2,
.story-content h2,
.newsletter-card h2,
.prose h2,
.legacy-copy h2 {
    margin: 10px 0 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.book-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(7, 29, 73, .07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.book-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    padding: 26px;
    overflow: hidden;
    background: linear-gradient(145deg, #eae5d9, #f9f7f1);
}

.book-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 18px 36px rgba(7, 29, 73, .22);
}

.book-cover > b {
    position: absolute;
    top: 18px;
    right: 0;
    padding: 7px 13px;
    color: var(--navy);
    background: var(--gold-light);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cover-placeholder {
    position: relative;
    display: flex;
    height: 100%;
    padding: 28px 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(35, 89, 172, .85), transparent 35%),
        linear-gradient(145deg, #061735, #0a2e68);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 36px rgba(7, 29, 73, .22);
}

.cover-placeholder::before,
.cover-placeholder::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(241, 195, 92, .34);
}

.cover-placeholder::before {
    inset: 11px;
}

.cover-placeholder::after {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    transform: translateY(-25px);
}

.cover-placeholder span,
.cover-placeholder small,
.cover-placeholder strong,
.cover-placeholder i {
    position: relative;
    z-index: 1;
}

.cover-placeholder span {
    margin-bottom: 45px;
    color: var(--gold-light);
    font-size: 8px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cover-placeholder strong {
    font-family: var(--serif);
    font-size: clamp(24px, 2.3vw, 38px);
    line-height: 1.05;
}

.cover-placeholder i {
    width: 38px;
    height: 2px;
    margin: 20px 0;
    background: var(--gold-light);
}

.cover-placeholder small {
    max-width: 200px;
    color: rgba(255, 255, 255, .64);
    font-size: 9px;
}

.cover-placeholder.large {
    min-height: 620px;
}

.cover-placeholder.large strong {
    font-size: 60px;
}

.book-card-body {
    padding: 24px;
}

.book-meta {
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.book-card h3 {
    margin: 8px 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.15;
}

.book-card-body > p {
    display: -webkit-box;
    min-height: 66px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.book-card-foot {
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.book-card-foot strong {
    color: var(--navy);
    font-size: 14px;
}

.book-card-foot a {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--navy);
    background: var(--cream);
    border-radius: 50%;
    place-items: center;
}

.story-band {
    color: #fff;
    background: var(--navy-deep);
}

.story-grid,
.legacy-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.story-image {
    position: relative;
}

.story-image::before {
    position: absolute;
    inset: 28px -28px -28px 28px;
    content: "";
    border: 1px solid rgba(241, 195, 92, .48);
}

.story-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.image-caption {
    position: absolute;
    right: -74px;
    bottom: 100px;
    z-index: 2;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    transform: rotate(90deg);
}

.story-content h2,
.legacy-copy h2 {
    margin: 18px 0 25px;
    color: #fff;
}

.story-content > p,
.legacy-copy > p {
    color: rgba(255, 255, 255, .66);
    font-size: 17px;
}

.theme-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.theme-list span {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.theme-list b {
    margin-right: 20px;
    color: var(--gold-light);
    font-size: 10px;
}

.newsletter {
    background: var(--cream);
}

.newsletter-card {
    display: flex;
    padding: 58px 65px;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: #fff;
    border-left: 5px solid var(--gold);
    box-shadow: var(--shadow);
}

.newsletter-card h2 {
    font-size: 44px;
}

.newsletter-card p {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--muted);
}

.inner-hero {
    position: relative;
    min-height: 680px;
    padding: 180px 0 95px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 19, 47, .96) 0%, rgba(4, 19, 47, .82) 38%, rgba(4, 19, 47, .38) 72%, rgba(4, 19, 47, .68) 100%),
        linear-gradient(180deg, rgba(4, 19, 47, .22) 0%, rgba(4, 19, 47, .12) 46%, var(--navy-deep) 100%),
        var(--about-hero-image, url("/static/about-hero-memory.png")) center center / cover no-repeat;
    box-shadow: inset 0 -80px 105px rgba(0, 0, 0, .34);
}

.inner-hero-grid {
    position: relative;
    z-index: 1;
    display: block;
}

.inner-hero h1 {
    font-size: clamp(46px, 4.8vw, 68px);
}

.typewriter-heading [data-typewriter-line] {
    visibility: hidden;
}

.typewriter-heading.typing-ready [data-typewriter-line] {
    visibility: visible;
}

.typewriter-heading .typing-cursor::after {
    display: inline-block;
    width: .08em;
    height: .9em;
    margin-left: .08em;
    content: "";
    background: var(--gold-light);
    transform: translateY(.08em);
    animation: typewriter-caret .85s steps(1) infinite;
}

@keyframes typewriter-caret {
    50% {
        opacity: 0;
    }
}

.inner-hero p,
.catalog-hero p,
.contact-copy > p {
    max-width: 650px;
    color: rgba(255, 255, 255, .66);
    font-size: 18px;
}

.about-intro-grid,
.description-grid {
    grid-template-columns: .4fr 1.6fr;
    max-width: 1000px;
}

.prose h2 {
    margin-top: 0;
}

.prose p {
    color: #596276;
    font-size: 17px;
}

.prose .lead {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.45;
}

.values {
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(7, 29, 73, .1);
    border: 1px solid rgba(7, 29, 73, .1);
}

.value-card {
    min-height: 280px;
    padding: 38px 30px;
    background: var(--paper);
    transition: color .3s ease, background .3s ease, transform .3s ease;
}

.value-card:hover {
    z-index: 1;
    color: #fff;
    background: var(--navy);
    transform: translateY(-8px);
}

.value-card span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}

.value-card h3 {
    margin: 50px 0 12px;
    font-family: var(--serif);
    font-size: 30px;
}

.value-card p {
    color: var(--muted);
    font-size: 14px;
}

.value-card:hover p {
    color: rgba(255, 255, 255, .65);
}

.legacy {
    color: #fff;
    background: linear-gradient(120deg, #061735, #0a2e68);
}

.legacy-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 35px 35px 0 rgba(215, 154, 24, .17);
}

.legacy-copy blockquote {
    margin: 34px 0;
    padding-left: 24px;
    color: var(--gold-light);
    border-left: 2px solid var(--gold);
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
}

.catalog-hero {
    position: relative;
    padding: 175px 0 95px;
    overflow: hidden;
    color: #fff;
    background: var(--navy-deep);
    box-shadow:
        inset 0 -65px 75px -38px rgba(0, 0, 0, .85),
        0 24px 55px rgba(7, 29, 73, .24);
}

.catalog-hero::before {
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    content: "";
    background: var(--catalog-hero-image) center 18% / cover no-repeat;
}

.catalog-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 43%, rgba(4, 19, 47, .7) 62%, rgba(4, 19, 47, .12) 100%),
        linear-gradient(0deg, rgba(4, 19, 47, .68), transparent 60%);
}

.catalog-hero .container {
    position: relative;
    z-index: 2;
}

.catalog-hero .container > * {
    max-width: 650px;
}

.catalog-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(46px, 5vw, 70px);
}

.catalog {
    min-height: 650px;
}

.catalog-tools {
    display: grid;
    grid-template-columns: 1.5fr .8fr auto;
    gap: 18px;
    padding: 28px;
    align-items: end;
    background: var(--cream);
    box-shadow: 0 14px 40px rgba(7, 29, 73, .07);
}

.catalog-tools label,
.contact-form-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-tools input,
.catalog-tools select,
.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(7, 29, 73, .16);
    border-radius: 3px;
    outline: 0;
    transition: border .2s ease, box-shadow .2s ease;
}

.catalog-tools input:focus,
.catalog-tools select:focus,
.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 154, 24, .1);
}

.catalog-heading {
    display: flex;
    margin: 38px 0 20px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.catalog-heading strong {
    color: var(--navy);
    font-size: 20px;
}

.catalog-heading a {
    color: var(--gold);
    font-weight: 700;
}

.catalog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 70px;
    text-align: center;
    background: var(--cream);
}

.empty-state h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 34px;
}

.empty-state p {
    color: var(--muted);
}

.book-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 150px;
    padding: 82px 0 22px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(4, 19, 47, .96), rgba(7, 29, 73, .88)),
        linear-gradient(90deg, var(--navy-deep), var(--blue));
}

.book-detail-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
    filter: saturate(.9);
}

.book-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 19, 47, .95) 0%, rgba(4, 19, 47, .7) 58%, rgba(4, 19, 47, .34) 100%),
        linear-gradient(0deg, rgba(4, 19, 47, .72), transparent 64%);
}

.book-detail-hero .container {
    max-width: 1180px;
}

.book-detail-hero .eyebrow {
    color: var(--gold-light);
}

.book-detail-hero h1 {
    max-width: 820px;
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.02;
}

.book-detail-hero p {
    max-width: 620px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .78);
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
}

.book-detail {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f0ebdf, var(--paper));
}

.book-detail-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.detail-cover {
    max-width: 480px;
    padding: 35px;
    background: #e6dfd1;
    box-shadow: var(--shadow);
}

.detail-cover > img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    box-shadow: 0 22px 45px rgba(7, 29, 73, .2);
}

.back-link {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-title {
    margin: 14px 0 8px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

.detail-subtitle {
    margin: 0 0 25px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 23px;
    font-style: italic;
    font-weight: 600;
}

.detail-lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
}

/* Groups "Read a free preview" with "Listen to the audiobook" (when both
   exist) the way Amazon's own product page keeps "Read sample" and
   "Listen to sample" together as a pair, rather than one being an
   afterthought further down the page. */
.preview-actions {
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 26px 0;
}

.preview-actions .preview-button {
    margin: 0 0 12px;
}

.preview-actions .preview-button:last-child {
    margin-bottom: 0;
}

.preview-button {
    display: flex;
    max-width: 430px;
    margin: 26px 0;
    padding: 15px 18px;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    background: rgba(241, 195, 92, .13);
    border: 1px solid rgba(215, 154, 24, .35);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(7, 29, 73, .08);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}

.preview-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(7, 29, 73, .13);
}

/* A visibly secondary action beside "Read a free preview" — same shape,
   quieter fill — so it (Fixed layout, Listen, whichever combination a
   book actually has) doesn't compete for the same amount of attention as
   the primary read action. */
.preview-button-secondary {
    background: rgba(7, 29, 73, .04);
    border-color: var(--line);
}

.preview-button-secondary .preview-icon {
    background: var(--cream);
}

.preview-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--navy);
    background: var(--gold-light);
    border-radius: 50%;
    place-items: center;
}

.preview-button > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.preview-button strong {
    font-family: var(--serif);
    font-size: 17px;
}

.preview-button small {
    color: var(--muted);
    font-size: 11px;
}

.preview-button b {
    color: var(--gold);
    font-size: 20px;
}

.detail-price {
    gap: 24px;
    margin: 26px 0;
}

.edition-list {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.edition-option {
    display: flex;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(7, 29, 73, .06);
}

.edition-option > div {
    display: flex;
    min-width: 150px;
    flex-direction: column;
}

.edition-option > div strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 18px;
}

.edition-option > div span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.edition-option input,
.cart-quantity input {
    width: 64px;
    padding: 10px;
    border: 1px solid var(--line);
}

.detail-price > strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 30px;
}

.detail-price > span {
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.in-stock {
    color: #166534;
    background: #dcfce7;
}

.out-stock {
    color: #991b1b;
    background: #fee2e2;
}

.book-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 38px;
    border-top: 1px solid var(--line);
}

.book-specs div {
    display: flex;
    padding: 13px 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.book-specs div:nth-child(odd) {
    padding-right: 25px;
}

.book-specs div:nth-child(even) {
    padding-left: 25px;
    border-left: 1px solid var(--line);
}

.book-specs dt {
    color: var(--muted);
    font-size: 11px;
}

.book-specs dd {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.book-description {
    background: var(--cream);
}

/* A compact floating mini-player — Audible's own popup is the model here
   (cover art, a scrub bar, big circular play/pause with ±30s either side,
   a speed toggle and a collapsible chapter list underneath) — rather than
   a full-viewport reader panel. An audiobook's own "page" is just audio;
   it never needed that much screen, and staying small is what makes it
   feel like a real floating player instead of a second reading panel. */
.audio-player-modal {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: grid;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    place-items: center;
    transition: opacity .25s ease, visibility .25s ease;
}

.audio-player-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.audio-player-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 19, 47, .72);
    border: 0;
    cursor: pointer;
}

.audio-player-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 340px);
    padding: 28px 24px 20px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(4, 19, 47, .38);
    text-align: center;
}

.audio-player-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    color: var(--muted);
    background: var(--cream);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    place-items: center;
}

.audio-player-cover {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(7, 29, 73, .22);
}

.audio-player-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player-cover-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    background: var(--navy);
    font-size: 44px;
    place-items: center;
}

.audio-player-book-title {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
}

.audio-player-track-label {
    margin: 4px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

/* The page currently narrating, shown only when the admin has turned
   Book.audiobook_show_text on (see detail.html) — a fixed, scrollable
   height rather than letting the modal grow with it, since a full page of
   text would otherwise push the transport controls off-screen. */
.audio-player-text {
    width: 100%;
    max-height: 160px;
    margin-bottom: 16px;
    padding: 12px 14px;
    overflow-y: auto;
    background: var(--cream);
    border-radius: 10px;
    text-align: left;
}

.audio-player-text p {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.6;
}

/* One <span> per sentence (see renderNarratedText in site.js) — highlighted
   sentence-by-sentence as playback reaches it. This is an *estimate* by
   proportion of the page's text length, not real word-level timing
   (Replicate's response carries none), so it's a soft highlight rather than
   a hard box — closer to "roughly where we are" than exact karaoke sync. */
.audio-player-sentence {
    transition: background-color .2s ease;
    border-radius: 3px;
}

.audio-player-sentence.is-active {
    background: rgba(215, 154, 24, .28); /* var(--gold) at low opacity */
    box-shadow: 0 0 0 2px rgba(215, 154, 24, .28);
}

.audio-player-range {
    width: 100%;
    accent-color: var(--gold);
}

.audio-player-times {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 20px;
}

.audio-player-skip {
    display: grid;
    width: 40px;
    height: 40px;
    color: var(--navy);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    place-items: center;
}

/* Both children land in the same single grid cell (rather than one
   `position: absolute` with no offset of its own, which just left it
   floating unaligned next to the arrow) — centered on top of each other
   the way a real "skip 30s" icon prints the number inside the arrow. */
.audio-player-skip span,
.audio-player-skip small {
    grid-area: 1 / 1;
}

.audio-player-skip small {
    margin-top: 3px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
}

.audio-player-playpause {
    display: grid;
    width: 60px;
    height: 60px;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    place-items: center;
}

.audio-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.audio-player-speed,
.audio-player-chapters-toggle {
    color: var(--navy);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.audio-player-chapter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-height: 220px;
    margin-top: 14px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
}

.audio-player-chapter-list[hidden] {
    display: none;
}

.audio-player-chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 6px;
    color: var(--ink);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
}

.audio-player-chapter-item:last-child {
    border-bottom: 0;
}

.audio-player-chapter-item.is-active {
    color: var(--navy);
    font-weight: 700;
}

.audio-player-chapter-preview-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    color: var(--navy);
    background: var(--cream);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    place-items: center;
    transition: opacity .25s ease, visibility .25s ease;
}

.preview-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 19, 47, .72);
    border: 0;
    cursor: pointer;
}

.preview-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 980px);
    max-height: min(86vh, 780px);
    max-height: min(86dvh, 780px);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 30px 80px rgba(4, 19, 47, .38);
}

.preview-text {
    display: grid;
    gap: 16px;
    padding: 24px;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.book-description .prose,
.book-cover img,
.detail-cover img,
.book-detail-hero img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.preview-chapter {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
}

.preview-chapter span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.preview-chapter h3 {
    margin: 8px 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 24px;
}

.preview-chapter p {
    margin: 0;
    color: var(--muted);
}

.book-reviews {
    position: relative;
    background:
        radial-gradient(circle at 12% 8%, rgba(215, 154, 24, .10), transparent 38%),
        linear-gradient(180deg, var(--paper), var(--cream));
}

.reviews-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.review-summary { position: sticky; top: 110px; }

.review-summary h2 {
    margin: 14px 0 22px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1.05;
}

.review-empty-note { color: var(--muted); }

/* Headline number: the average when readers rated it, else how many wrote. */
.review-score {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 40px -24px rgba(7, 29, 73, .35);
}

.review-score-num {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.review-score small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.review-score-label { color: var(--navy); font-size: 15px; font-weight: 700; }

/* Gold stars filled to --rating (0-5) with one gradient — no star markup per review. */
.review-stars {
    display: inline-block;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--gold) calc(var(--rating, 0) / 5 * 100%), #d7dce8 0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.review-stars.is-large { font-size: 24px; }

.review-form {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.review-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 154, 24, .14);
}

.review-list {
    display: grid;
    gap: 18px;
}

.review-card {
    position: relative;
    overflow: hidden;
    padding: 28px 30px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 20px 44px -30px rgba(7, 29, 73, .45);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.review-card:hover {
    border-color: rgba(215, 154, 24, .55);
    box-shadow: 0 26px 54px -28px rgba(7, 29, 73, .5);
    transform: translateY(-3px);
}

/* Big faded quotation mark behind the text. */
.review-quote {
    position: absolute;
    top: -6px;
    right: 22px;
    color: rgba(215, 154, 24, .16);
    font-family: var(--serif);
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.review-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.review-avatar {
    display: grid;
    flex: none;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px -8px rgba(7, 29, 73, .6);
}

.review-avatar.av-1 { background: linear-gradient(135deg, #123d88, #071d49); }
.review-avatar.av-2 { background: linear-gradient(135deg, #e0a82c, #b97f0a); }
.review-avatar.av-3 { background: linear-gradient(135deg, #1f7a6d, #0f4c43); }
.review-avatar.av-4 { background: linear-gradient(135deg, #8a3f6b, #55223f); }

.review-who { min-width: 0; flex: 1; }

.review-who strong {
    display: block;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.2;
}

.review-meta { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.review-who small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.review-meta .review-stars { font-size: 13px; letter-spacing: 1px; }

/* "Log in to review" sits on a light background here, so the default
   (light-on-dark) outline button would be invisible. */
.review-summary .button-outline {
    margin-top: 22px;
    color: var(--navy);
    border-color: var(--navy);
    background: transparent;
}

.review-summary .button-outline:hover { color: #fff; background: var(--navy); }

.review-card h3 {
    position: relative;
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 19px;
}

.review-card p {
    position: relative;
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.78;
    opacity: .86;
}

.empty-review {
    border-style: dashed;
    box-shadow: none;
}

.empty-review:hover { transform: none; box-shadow: none; border-color: var(--line); }

.related {
    background: var(--paper);
}

.contact-page {
    min-height: 850px;
    padding: 155px 0 100px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 70%, rgba(24, 78, 158, .5), transparent 32%),
        var(--navy-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.contact-copy h1 {
    font-size: clamp(46px, 4.8vw, 68px);
}

.contact-notes {
    margin-top: 45px;
}

.contact-notes > div {
    display: grid;
    grid-template-columns: 45px 1fr;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.contact-notes span {
    color: var(--gold-light);
    font-size: 10px;
}

.contact-notes p {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.contact-notes strong {
    display: block;
    color: #fff;
    font-family: var(--serif);
    font-size: 18px;
}

.legal-page {
    padding: 150px 0 100px;
    background: linear-gradient(180deg, var(--cream), var(--paper));
}

.legal-card {
    max-width: 900px;
    padding: 56px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin: 14px 0 18px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.02;
}

.legal-card h2 {
    margin: 36px 0 10px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 28px;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
}

.legal-card ul {
    margin: 0;
    padding-left: 20px;
}

.legal-updated {
    margin: 0 0 28px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-form-card {
    padding: 48px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.contact-form-card h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 42px;
}

.contact-form-card > p {
    margin: 0 0 30px;
    color: var(--muted);
}

.contact-form-card form {
    display: grid;
    gap: 18px;
}

.contact-form-card textarea {
    resize: vertical;
}

.form-error {
    color: #b42318;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    padding: 145px 20px 80px;
    background:
        radial-gradient(circle at 70% 30%, rgba(24, 78, 158, .6), transparent 30%),
        var(--navy-deep);
    place-items: center;
}

.auth-card {
    width: min(100%, 620px);
    padding: 38px 42px;
    background: var(--paper);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.auth-card h1 {
    margin: 10px 0 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 44px;
}

.auth-card > p {
    margin: 0 0 28px;
    color: var(--muted);
}

.auth-card form,
.checkout-form {
    display: grid;
    gap: 14px;
}

.auth-card .signup-form {
    grid-template-columns: 1fr 1fr;
}

.signup-field-full_name,
.signup-field-email {
    grid-column: span 1;
}

.signup-field-username,
.signup-field-password1,
.signup-field-password2,
.signup-form > .button {
    grid-column: 1 / -1;
}

.auth-card label,
.checkout-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-card input,
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--line);
    outline: 0;
}

.auth-card input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 154, 24, .1);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 8px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--navy);
    background: var(--cream);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-toggle .eye-closed,
.password-toggle.showing .eye-open {
    display: none;
}

.password-toggle.showing .eye-closed {
    display: block;
}

.help-text {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.help-text ul {
    margin: 5px 0;
    padding-left: 18px;
}

.auth-card .auth-switch {
    margin: 24px 0 0;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 700;
}

.order-page {
    min-height: 750px;
    padding: 145px 0 100px;
    background: var(--cream);
}

.order-heading {
    margin-bottom: 45px;
    padding: 36px 40px;
    color: #fff;
    background: var(--navy);
}

.order-heading h1 {
    margin: 5px 0;
    font-family: var(--serif);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.1;
}

.order-heading p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
}

.cart-hero {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    padding: 150px 0 90px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--navy-deep);
}

.cart-hero::before,
.cart-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cart-hero::before {
    background-image: var(--cart-hero-image);
    background-size: cover;
    background-position: center 28%;
}

.cart-hero::after {
    background:
        linear-gradient(90deg, rgba(4, 19, 47, .96) 0%, rgba(4, 19, 47, .78) 50%, rgba(4, 19, 47, .34) 100%),
        linear-gradient(0deg, rgba(4, 19, 47, .72), transparent 58%);
}

.cart-hero h1 {
    max-width: 780px;
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: clamp(58px, 8vw, 104px);
    line-height: .98;
}

.cart-page {
    padding-top: 80px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 85px 1fr auto auto auto;
    gap: 20px;
    padding: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
}

.cart-cover {
    width: 85px;
    height: 110px;
}

.cart-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-cover .cover-placeholder {
    padding: 8px;
}

.cart-cover .cover-placeholder strong {
    font-size: 13px;
}

.cart-cover .cover-placeholder::before,
.cart-cover .cover-placeholder::after {
    display: none;
}

.cart-copy h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 22px;
}

.cart-copy p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.cart-copy > strong,
.cart-subtotal {
    color: var(--gold);
    font-size: 13px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-quantity button,
.remove-button {
    padding: 7px;
    color: var(--navy);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.remove-button {
    font-size: 24px;
}

.cart-summary,
.checkout-form,
.order-confirmation,
.delivery-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 15px 40px rgba(7, 29, 73, .08);
}

.cart-summary {
    position: sticky;
    top: 100px;
}

.cart-summary > span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cart-summary > div {
    display: flex;
    margin: 20px 0;
    padding: 18px 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cart-summary .button {
    width: 100%;
}

.cart-summary > p {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.cart-summary > p a {
    color: var(--gold);
    font-weight: 700;
}

.checkout-form {
    grid-template-columns: 1fr 1fr;
}

.checkout-form h2,
.delivery-card h2 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 30px;
}

.checkout-form label:nth-of-type(4),
.checkout-form label:nth-of-type(7) {
    grid-column: 1 / -1;
}

.checkout-form .button {
    grid-column: 1 / -1;
}

.checkout-summary > div {
    align-items: center;
}

.checkout-summary p {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
}

.checkout-summary p small {
    display: block;
    color: var(--muted);
}

.checkout-summary .summary-total {
    font-size: 18px;
}

.order-list {
    display: grid;
    gap: 10px;
}

.order-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 120px 120px 30px;
    gap: 18px;
    padding: 22px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.order-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.order-row span {
    color: var(--muted);
    font-size: 12px;
}

.order-row b {
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}

.status-confirmed,
.status-completed {
    color: #166534;
    background: #dcfce7;
}

.status-cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.narrow-order {
    max-width: 850px;
}

.order-confirmation > div {
    display: flex;
    flex-wrap: wrap;
    padding: 17px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.order-confirmation > div .button {
    padding: 8px 16px;
    gap: 8px;
}

.order-confirmation p {
    display: flex;
    margin: 0;
    flex-direction: column;
}

.order-confirmation p span {
    color: var(--muted);
    font-size: 12px;
}

.order-confirmation .confirmation-total {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 22px;
    border-bottom: 0;
}

.delivery-card {
    margin: 20px 0;
}

.delivery-card p {
    color: var(--muted);
}

.dashboard-page {
    min-height: 850px;
    padding: 140px 0 100px;
    background: var(--cream);
}

.dashboard-welcome {
    display: flex;
    min-height: 235px;
    padding: 45px 52px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(30, 92, 190, .72), transparent 34%),
        var(--navy-deep);
}

.dashboard-welcome.compact {
    min-height: 190px;
}

.dashboard-welcome h1 {
    margin: 10px 0 3px;
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
}

.dashboard-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}

.dashboard-nav {
    display: grid;
    position: sticky;
    /* Same offset .cart-summary already uses for the same reason: the
       site header is position:fixed, not part of normal flow, so nothing
       pushes a sticky element below it automatically — this keeps the nav
       clear of it once scrolled up under it. .dashboard-layout's own
       align-items:start (rather than the grid default of stretch) is what
       lets this sidebar stop growing to match the taller main-content
       column and actually engage sticky instead of just sitting pinned to
       a box that's already full page height. */
    top: 100px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 15px 40px rgba(7, 29, 73, .06);
}

.dashboard-nav a,
.dashboard-nav button {
    display: flex;
    width: 100%;
    padding: 13px 14px;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: var(--navy);
    background: var(--cream);
}

.dashboard-nav span {
    width: 22px;
    color: var(--gold);
    font-size: 17px;
    text-align: center;
}

.dashboard-nav form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-stats article {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
}

.dashboard-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-stats strong {
    display: block;
    margin-top: 8px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 38px;
}

.dashboard-panel,
.settings-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 15px 40px rgba(7, 29, 73, .06);
}

.dashboard-panel-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.dashboard-panel-heading span,
.settings-heading > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-panel-heading h2,
.settings-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 28px;
}

.dashboard-panel-heading a {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.reader-workspace {
    margin-bottom: 22px;
}

.reader-dialogue {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    padding: 18px;
    align-items: stretch;
    background: #fbf8ef;
    border: 1px solid rgba(215, 154, 24, .22);
}

.reader-marker {
    display: flex;
    min-height: 170px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #ffe27a 0%, #f4bf35 100%);
    box-shadow: 10px 10px 0 rgba(7, 29, 73, .08);
}

.reader-marker span {
    color: rgba(7, 29, 73, .62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.reader-marker strong {
    margin-top: 10px;
    color: var(--navy-deep);
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.05;
}

.reader-marker small {
    margin-top: 12px;
    color: rgba(7, 29, 73, .72);
    font-size: 13px;
    font-weight: 700;
}

.reader-auto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.reader-auto p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.reader-progress {
    width: min(100%, 520px);
    height: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(215, 154, 24, .28);
}

.reader-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f4bf35, #ffe27a);
}

.reader-auto .button {
    width: fit-content;
}

.dashboard-order {
    display: grid;
    grid-template-columns: 70px 1fr 1fr 110px 100px;
    gap: 15px;
    padding: 17px 8px;
    align-items: center;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.dashboard-order > span {
    color: var(--muted);
}

.dashboard-order > b {
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
}

.dashboard-order > strong:last-child {
    color: var(--navy);
    text-align: right;
}

.dashboard-library {
    display: flex;
    flex-direction: column;
}

.dashboard-library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 8px;
    border-top: 1px solid var(--line);
    color: var(--navy);
    font-weight: 600;
}

.dashboard-library-item .button {
    padding: 8px 16px;
    gap: 8px;
}

.dashboard-empty {
    padding: 50px 15px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.dashboard-empty h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 28px;
}

.dashboard-empty p {
    color: var(--muted);
}

.dashboard-empty a {
    color: var(--gold);
    font-weight: 700;
}

.settings-content {
    display: grid;
    gap: 22px;
}

.settings-heading {
    margin-bottom: 24px;
}

.settings-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.settings-card label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.settings-card label:first-of-type,
.settings-card .button {
    grid-column: 1 / -1;
}

.settings-card input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    outline: 0;
}

.settings-card input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 154, 24, .1);
}

.settings-card .button {
    width: max-content;
}

.messages {
    position: fixed;
    top: 95px;
    right: 0;
    left: 0;
    z-index: 60;
}

.message {
    margin-left: auto;
    max-width: 460px;
    padding: 14px 18px;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 80px 0 25px;
    color: rgba(255, 255, 255, .58);
    background: #030e24;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-brand p {
    max-width: 430px;
}

.footer-grid h3 {
    margin: 4px 0 20px;
    color: #fff;
    font-family: var(--serif);
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.footer-grid a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal-delay {
    transition-delay: .16s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .main-nav {
        gap: 18px;
    }

    .hero-grid,
    .inner-hero-grid,
    .story-grid,
    .legacy-grid,
    .book-detail-grid,
    .contact-grid {
        gap: 50px;
    }

    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 34px, 720px);
    }

    .site-header.scrolled {
        backdrop-filter: none;
    }

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 53;
        cursor: pointer;
    }

    .menu-toggle.open span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 52;
        display: flex;
        width: min(75vw, 360px);
        max-width: 360px;
        padding: 100px 28px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        overflow-y: auto;
        color: #fff;
        background:
            radial-gradient(circle at 0 0, rgba(241, 195, 92, .15), transparent 150px),
            var(--navy-deep);
        border-top-left-radius: 42px;
        border-left: 1px solid rgba(241, 195, 92, .2);
        font-family: var(--serif);
        font-size: 24px;
        box-shadow: -18px 0 50px rgba(0, 0, 0, .28);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .35s ease, visibility .35s ease;
    }

    .main-nav::before {
        position: absolute;
        top: 0;
        left: 42px;
        width: 72px;
        height: 3px;
        content: "";
        background: linear-gradient(90deg, var(--gold-light), transparent);
        border-radius: 99px;
    }

    .nav-form button {
        font-family: var(--serif);
        font-size: 24px;
    }

    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 51;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(2, 10, 26, .58);
        opacity: 0;
        visibility: hidden;
        cursor: pointer;
        transition: opacity .35s ease, visibility .35s ease;
    }

    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-cta {
        margin-top: 6px;
        font-family: var(--sans);
        font-size: 14px;
    }

    .main-nav > .nav-cta,
    .main-nav > .nav-cta-form {
        width: 100%;
        margin-top: auto;
    }

    .main-nav > .nav-cta {
        text-align: center;
    }

    .main-nav > .nav-cta-form .nav-cta {
        width: 100%;
    }

    .hero {
        padding-top: 135px;
    }

    .hero-grid,
    .inner-hero-grid,
    .story-grid,
    .legacy-grid,
    .book-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 60px;
    }

    .portrait-frame {
        max-width: 430px;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .manifesto-copy {
        max-width: 560px;
    }

    .book-grid,
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-grid,
    .legacy-grid {
        max-width: 650px;
    }

    .story-image,
    .legacy-image {
        max-width: 500px;
    }

    .newsletter-card {
        padding: 45px;
        flex-direction: column;
        align-items: flex-start;
    }

    .inner-hero {
        padding-top: 140px;
    }

    .about-intro-grid,
    .description-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .catalog-tools {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-tools .button {
        grid-column: 1 / -1;
    }

    .detail-cover {
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 35px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .order-row {
        grid-template-columns: 60px 1fr 1fr 100px;
    }

    .order-row strong:nth-of-type(2),
    .order-row i {
        display: none;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        grid-template-columns: repeat(3, 1fr) auto;
    }

    .dashboard-nav form {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .reader-dialogue {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 540px);
    }

    .section {
        padding: 68px 0;
    }

    .site-header {
        padding: 10px 0;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand strong {
        font-size: 17px;
    }

    .brand small {
        font-size: 8px;
    }

    .hero {
        display: flex;
        min-height: 760px;
        padding: 118px 0 54px;
        align-items: flex-end;
        background:
            linear-gradient(180deg, rgba(4, 19, 47, .18) 0%, rgba(4, 19, 47, .48) 30%, rgba(4, 19, 47, .96) 70%, var(--navy-deep) 100%),
            var(--hero-mobile-image) center 12% / cover no-repeat;
        box-shadow: inset 0 -42px 70px rgba(0, 0, 0, .3);
    }

    .hero-copy {
        position: relative;
        z-index: 2;
        width: 100%;
        padding-top: 180px;
        text-shadow: 0 3px 18px rgba(0, 0, 0, .62);
    }

    .hero-copy .button,
    .hero-copy .hero-facts {
        text-shadow: none;
    }

    .hero-portrait {
        display: none;
    }

    .hero-copy h1,
    .inner-hero h1,
    .catalog-hero h1,
    .contact-copy h1 {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.08;
    }

    .hero-copy h1 {
        margin: 18px 0;
    }

    .hero .eyebrow {
        max-width: 290px;
        font-size: 9px;
        line-height: 1.5;
    }

    .hero-lead,
    .inner-hero p,
    .catalog-hero p,
    .contact-copy > p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 18px;
        margin-top: 28px;
    }

    .hero-actions .button {
        width: 100%;
        padding-inline: 18px;
    }

    .hero-actions .text-link {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin-top: 34px;
        padding-top: 0;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 14px;
        background: rgba(4, 19, 47, .48);
        overflow: hidden;
        backdrop-filter: blur(10px);
    }

    .hero-facts div {
        min-width: 0;
        padding: 13px 14px;
    }

    .hero-facts div:first-child {
        border-right: 1px solid rgba(255, 255, 255, .14);
    }

    .hero-facts div:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .hero-facts strong {
        font-size: 14px;
    }

    .hero-facts span {
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portrait-arch {
        height: 470px;
    }

    .portrait-card {
        right: 12px;
        bottom: 20px;
    }

    .star-one,
    .star-two,
    .hero-scroll {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 30px;
    }

    .section-heading h2,
    .story-content h2,
    .newsletter-card h2 {
        font-size: 36px;
    }

    .manifesto {
        position: relative;
        overflow: hidden;
    }

    .manifesto::after {
        position: absolute;
        top: -70px;
        right: -80px;
        width: 190px;
        height: 190px;
        content: "";
        border: 1px solid rgba(215, 154, 24, .22);
        border-radius: 50%;
    }

    .manifesto-grid {
        position: relative;
        z-index: 1;
        gap: 22px;
    }

    .manifesto blockquote {
        font-size: 32px;
        line-height: 1.2;
    }

    .manifesto-copy {
        padding-top: 22px;
        border-top: 1px solid rgba(7, 29, 73, .12);
    }

    .featured {
        padding-bottom: 76px;
    }

    .book-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        width: 100%;
        max-width: 380px;
        margin-inline: auto;
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(7, 29, 73, .11);
    }

    .book-cover {
        padding: 20px;
    }

    .book-card-body {
        padding: 20px;
    }

    .book-card h3 {
        font-size: 24px;
    }

    .story-grid {
        gap: 48px;
    }

    .story-image {
        width: calc(100% - 12px);
    }

    .story-image img {
        aspect-ratio: 4 / 4.6;
        border-radius: 4px;
    }

    .story-image::before {
        inset: 15px -10px -15px 15px;
    }

    .story-content > p {
        font-size: 16px;
    }

    .theme-list {
        gap: 0 18px;
        margin: 28px 0 32px;
    }

    .theme-list span {
        display: flex;
        align-items: center;
        font-size: 13px;
    }

    .theme-list b {
        margin-right: 10px;
    }

    .image-caption {
        display: none;
    }

    .newsletter {
        padding: 54px 0;
    }

    .newsletter-card {
        position: relative;
        padding: 36px 24px;
        gap: 28px;
        overflow: hidden;
        border-left: 0;
        border-top: 4px solid var(--gold);
        border-radius: 14px;
    }

    .newsletter-card h2 {
        font-size: 34px;
    }

    .newsletter-card .button {
        width: 100%;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 220px;
    }

    .value-card h3 {
        margin-top: 28px;
    }

    .catalog-hero {
        padding: 140px 0 75px;
    }

    .catalog-hero::before {
        width: 68%;
        background-position: center 16%;
    }

    .catalog-hero::after {
        background:
            linear-gradient(90deg, rgba(4, 19, 47, .97) 0%, rgba(4, 19, 47, .84) 55%, rgba(4, 19, 47, .3) 100%),
            linear-gradient(0deg, rgba(4, 19, 47, .82), transparent 65%);
    }

    .catalog-tools {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .catalog-tools .button {
        grid-column: auto;
    }

    .book-detail-hero {
        min-height: 135px;
        padding: 76px 0 20px;
    }

    .book-detail-hero h1 {
        font-size: 27px;
    }

    .book-detail {
        padding-top: 58px;
    }

    .detail-cover {
        padding: 20px;
    }

    .cover-placeholder.large {
        min-height: 470px;
    }

    .cover-placeholder.large strong {
        font-size: 42px;
    }

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

    .book-specs div:nth-child(odd),
    .book-specs div:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .preview-modal {
        padding: 12px;
    }

    .preview-modal-panel {
        max-height: 88vh;
        max-height: 88dvh;
    }

    .preview-modal-header {
        padding: 18px;
    }

    .preview-modal-header h2 {
        font-size: 24px;
    }

    .preview-modal-actions {
        gap: 6px;
    }

    .preview-close {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 15px;
    }

    .preview-frame {
        max-height: none;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .review-summary h2 {
        font-size: 36px;
    }

    .review-summary { position: static; }
    .review-score-num { font-size: 44px; }
    .review-card { padding: 22px 20px 20px; border-radius: 18px; }
    .review-quote { font-size: 96px; right: 14px; }

    .contact-page {
        padding-top: 130px;
    }

    .contact-form-card {
        padding: 30px 22px;
    }

    .auth-card {
        padding: 34px 22px;
    }

    .legal-page {
        padding: 120px 0 68px;
    }

    .legal-card {
        padding: 34px 22px;
    }

    .auth-card .signup-form {
        grid-template-columns: 1fr;
    }

    .signup-field-full_name,
    .signup-field-email,
    .signup-field-username,
    .signup-field-password1,
    .signup-field-password2,
    .signup-form > .button {
        grid-column: auto;
    }

    .order-page {
        padding-top: 120px;
    }

    .order-heading {
        padding: 28px 22px;
    }

    .cart-hero {
        min-height: 430px;
        padding: 130px 0 70px;
    }

    .cart-hero h1 {
        font-size: 54px;
    }

    .cart-page {
        padding-top: 60px;
    }

    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
    }

    .cart-cover {
        width: 70px;
        height: 95px;
    }

    .cart-quantity {
        grid-column: 2;
    }

    .cart-subtotal {
        grid-column: 3;
        grid-row: 1;
    }

    .checkout-form {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .checkout-form h2,
    .checkout-form label:nth-of-type(4),
    .checkout-form label:nth-of-type(7),
    .checkout-form .button {
        grid-column: auto;
    }

    .edition-option {
        align-items: stretch;
        flex-direction: column;
    }

    .edition-option input {
        width: 100%;
    }

    .order-row {
        grid-template-columns: 50px 1fr;
    }

    .dashboard-page {
        padding-top: 120px;
    }

    .dashboard-welcome {
        padding: 32px 24px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-nav {
        grid-template-columns: 1fr 1fr;
        /* The header itself shrinks at this width (see .site-header
           above) — matching that here keeps the same small gap under it
           instead of leaving the wider desktop offset's now-oversized gap
           above the stuck nav. */
        top: 76px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .reader-dialogue {
        padding: 14px;
    }

    .dashboard-order {
        grid-template-columns: 55px 1fr 90px;
    }

    .dashboard-order span:nth-of-type(2),
    .dashboard-order strong:last-child {
        display: none;
    }

    .settings-card {
        padding: 22px;
    }

    .settings-card form {
        grid-template-columns: 1fr;
    }

    .settings-card label:first-of-type,
    .settings-card .button {
        grid-column: auto;
    }

    .order-row span:nth-of-type(2),
    .order-row b {
        grid-column: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   "Look inside" picker — choose Reflowable or Fixed layout before reading.
   ========================================================================== */
.reader-picker .preview-modal-backdrop {
    background: radial-gradient(circle at 50% 30%, rgba(18, 61, 136, .55), rgba(4, 19, 47, .9));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.picker-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 880px);
    max-height: 92vh;
    max-height: 92dvh;
    overflow: auto;
    background: var(--paper);
    border-radius: 24px;
    box-shadow: 0 40px 110px rgba(4, 19, 47, .55), 0 0 0 1px rgba(255, 255, 255, .12);
    transform: translateY(18px) scale(.97);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.reader-picker.open .picker-panel { transform: none; opacity: 1; }

.picker-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.picker-close:hover { background: rgba(255, 255, 255, .28); }

.picker-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 64px 28px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(110, 150, 255, .35), transparent 50%),
        linear-gradient(135deg, var(--blue), var(--navy-deep));
}

.picker-cover {
    flex: none;
    width: 72px;
    height: 104px;
    object-fit: cover;
    border-radius: 3px 7px 7px 3px;
    box-shadow: 8px 12px 26px -8px rgba(0, 0, 0, .6), inset 3px 0 6px rgba(0, 0, 0, .2);
}

.picker-head-copy { min-width: 0; }

.picker-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    color: var(--gold-light);
    background: rgba(241, 195, 92, .14);
    border: 1px solid rgba(241, 195, 92, .35);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.picker-head h2 {
    margin: 10px 0 4px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 3.2vw, 1.7rem);
    line-height: 1.2;
}

.picker-head p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .95rem; }

.picker-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 26px 28px 8px;
}

.picker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.picker-card:hover,
.picker-card:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 22px 46px -22px rgba(7, 29, 73, .55), 0 0 0 3px rgba(215, 154, 24, .22);
    outline: none;
    transform: translateY(-4px);
}

.picker-visual {
    position: relative;
    display: grid;
    height: 210px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #eef2fb, var(--cream));
}

/* Reflowable: a sheet of "text" with font samples + theme swatches. */
.picker-sheet {
    width: 62%;
    padding: 16px 18px 18px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 14px 30px -12px rgba(7, 29, 73, .4);
    transition: transform .35s ease;
}

.picker-card:hover .picker-sheet { transform: rotate(-2deg) scale(1.03); }

.picker-fonts { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; color: var(--navy); }
.picker-fonts b { font-size: 1.5rem; line-height: 1; }
.picker-fonts .f-serif { font-family: "Times New Roman", Times, serif; }
.picker-fonts .f-sans { font-family: var(--sans); font-size: 1.25rem; }
.picker-fonts .f-mono { font-family: Georgia, serif; font-style: italic; font-size: 1.15rem; }

.picker-sheet i {
    display: block;
    height: 6px;
    margin-top: 8px;
    background: #d9deea;
    border-radius: 3px;
}

.picker-sheet i.short { width: 62%; }

.picker-swatches { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }

.picker-swatches u {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(7, 29, 73, .25);
    text-decoration: none;
}

.picker-swatches u:nth-child(1) { background: #fffdf8; }
.picker-swatches u:nth-child(2) { background: #f4ead5; }
.picker-swatches u:nth-child(3) { background: #1b2230; }

/* Fixed layout: the real first page peeking up from the bottom, fading out. */
.picker-visual-fixed { align-items: start; }

.picker-visual-fixed::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    pointer-events: none;
    background: linear-gradient(to top, #f4f1ea, rgba(244, 241, 234, 0));
}

.picker-page {
    display: block;
    width: 52%;
    height: auto;
    margin-top: 22px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 16px 34px -10px rgba(7, 29, 73, .5), 0 0 0 1px rgba(7, 29, 73, .08);
    transition: transform .35s ease;
    -webkit-user-drag: none;
}

.picker-card:hover .picker-page { transform: rotate(2deg) scale(1.04); }

.picker-body { display: grid; gap: 8px; padding: 18px 20px 6px; }
.picker-body strong { font-family: var(--serif); font-size: 1.25rem; }
.picker-body small { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.picker-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }

.picker-tags li {
    padding: 3px 10px;
    color: var(--navy);
    background: rgba(7, 29, 73, .06);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.picker-go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 20px 18px;
    padding: 11px 16px;
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(215, 154, 24, .9);
}

.picker-go b { transition: transform .2s ease; }
.picker-card:hover .picker-go b { transform: translateX(4px); }

.picker-foot { margin: 6px 0 0; padding: 14px 28px 22px; color: var(--muted); font-size: .84rem; text-align: center; }

@media (max-width: 720px) {
    .picker-head { gap: 16px; padding: 24px 58px 22px 20px; }
    .picker-cover { width: 56px; height: 82px; }
    .picker-options { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px 4px; }
    .picker-card { flex-direction: row; flex-wrap: wrap; }
    .picker-visual { width: 128px; height: auto; min-height: 150px; }
    .picker-sheet { width: 82%; padding: 10px; }
    .picker-fonts b { font-size: 1.1rem; }
    .picker-body { flex: 1; min-width: 0; padding: 14px 14px 0; }
    .picker-body small { display: none; }
    .picker-go { width: 100%; margin: 0 14px 14px; }
    .picker-swatches { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .picker-panel, .picker-card, .picker-sheet, .picker-page, .picker-go b { transition: none; }
}

/* Audiobook chapters the visitor can't play yet, and the buy prompt shown
   when playback reaches the end of the free part. */
.audio-player-chapter-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.audio-player-chapter-name { min-width: 0; }

.audio-player-chapter-item.is-locked { opacity: .62; }
.audio-player-chapter-item.is-locked:hover { opacity: .85; }
.audio-player-chapter-lock { flex: none; font-size: .95rem; }

.audio-player-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 10px 16px;
    color: var(--navy-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 22px -12px rgba(215, 154, 24, .9);
}

.audio-player-buy[hidden] { display: none; }
