/* Vedici Press, built on the Lamplight brand toolkit.
   Layout: Lamplight. Bands of page and page-deep under a hairline, content capped at 1296px, covers as the only imagery. */
:root {
  --page: #F7F5F0; --page-deep: #EFECE5; --ink: #17171A; --stone: #4F4C46;
  --brass: #B07A22; --brass-text: #664611; --rule: #DDD8CE; --on-ink: #F7F5F0;
  --link: var(--brass-text);
  --shadow-cover: 0 12px 28px rgba(23, 23, 26, 0.22);
  --focus-ring: 0 0 0 2px #F7F5F0, 0 0 0 4px #664611;
  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --page-max: 1296px; --measure: 680px; --gutter: clamp(16px, 5vw, 72px);
  --logo-light: block; --logo-dark: none;
  --glow: rgba(176, 122, 34, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #141416; --page-deep: #1F1E22; --ink: #F1EEE7; --stone: #B4AFA6;
    --brass: #D9A54A; --brass-text: #D9A54A; --rule: #38363B; --on-ink: #141416;
    --shadow-cover: 0 12px 28px rgba(0, 0, 0, 0.6);
    --focus-ring: 0 0 0 2px #141416, 0 0 0 4px #D9A54A;
    --logo-light: none; --logo-dark: block; color-scheme: dark;
    --glow: rgba(217, 165, 74, 0.20);
  }
}
:root[data-theme="dark"] {
  --glow: rgba(217, 165, 74, 0.20);
  --page: #141416; --page-deep: #1F1E22; --ink: #F1EEE7; --stone: #B4AFA6;
  --brass: #D9A54A; --brass-text: #D9A54A; --rule: #38363B; --on-ink: #141416;
  --shadow-cover: 0 12px 28px rgba(0, 0, 0, 0.6);
  --focus-ring: 0 0 0 2px #141416, 0 0 0 4px #D9A54A;
  --logo-light: none; --logo-dark: block; color-scheme: dark;
}

body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 28px; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* Container, sections */
.vp-container { max-width: var(--page-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.vp-section { border-top: 1px solid var(--rule); background: var(--page); }
.vp-section--deep { border-top: 0; background: var(--page-deep); }
.vp-section > .vp-container { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 36px; }
.vp-section__head { display: flex; flex-direction: column; gap: 12px; }
.vp-section__title { margin: 0; max-width: 900px; font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; }
.vp-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.vp-split__main { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.vp-split__side { flex: 2 1 320px; min-width: 0; }
.vp-reading { margin: 0; max-width: 640px; font-family: var(--font-serif); font-size: 20px; line-height: 32px; }
.vp-credit { margin: 0; font-size: 16px; line-height: 24px; color: var(--stone); }

/* Header and footer */
.vp-header { border-bottom: 1px solid var(--rule); background: var(--page); }
.vp-header .vp-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-top: 20px; padding-bottom: 20px; }
.vp-header__logo img { height: 60px; width: auto; }
.vp-nav { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.vp-nav a { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 0; }
.vp-nav a:hover, .vp-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.vp-footer { border-top: 1px solid var(--rule); background: var(--page); color: var(--stone); font-size: 16px; line-height: 24px; }
.vp-footer .vp-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 32px; padding-bottom: 32px; }
.vp-footer img { height: 48px; width: auto; }
.vp-footer p { margin: 0; }
.theme-switch { display: inline-flex; gap: 4px; align-items: center; }
.theme-switch button { font: inherit; font-size: 16px; color: var(--stone); background: transparent; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: none; }
.theme-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* Buttons */
.vp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; box-sizing: border-box; padding: 0 28px; font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.vp-btn:hover { background: var(--page-deep); text-decoration: none; }
.vp-btn--primary { background: var(--ink); color: var(--on-ink); }
.vp-btn--primary:hover { background: var(--ink); color: var(--on-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.vp-btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.vp-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Eyebrow and rule */
.vp-eyebrow { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); }
.vp-eyebrow--quiet { color: var(--stone); }
.vp-rule { width: 72px; height: 3px; background: var(--brass); border: 0; margin: 0; }

/* Statement */
.vp-statement { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.vp-statement--page { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); gap: 20px; }
.vp-statement__title { margin: 0; max-width: 1060px; font-family: var(--font-serif); font-size: clamp(44px, 6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.vp-statement__title--page { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.vp-lead { margin: 0; max-width: 780px; font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; color: var(--stone); }

.vp-crumbs { margin: 0; padding-top: 24px; font-size: 16px; line-height: 24px; color: var(--stone); }

/* BookFeature */
.vp-feature { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.vp-feature__cover { flex: 0 1 360px; display: block; max-width: 100%; }
.vp-feature__cover img, .cover-img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1347; box-shadow: var(--shadow-cover); }
.vp-feature__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.vp-feature__names { display: flex; flex-direction: column; gap: 6px; }
.vp-feature__title { margin: 0; font-family: var(--font-serif); font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.vp-feature__subtitle { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 32px; color: var(--stone); }
.vp-feature__author { margin: 4px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.vp-feature__tagline { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 34px; font-weight: 600; }
.vp-feature__text { max-width: 640px; display: flex; flex-direction: column; gap: 16px; font-family: var(--font-serif); font-size: 20px; line-height: 32px; }
.vp-feature__text p { margin: 0; }
.vp-feature__meta { margin: 0; font-size: 16px; line-height: 24px; color: var(--stone); }
.vp-feature .vp-btn-row { margin-top: 6px; }
.vp-feature--hero { align-items: flex-start; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.vp-feature--hero .vp-feature__cover { flex-basis: 400px; }
.vp-feature--hero .vp-feature__body { flex-basis: 460px; gap: 20px; }
.vp-feature--hero .vp-feature__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.vp-feature--hero .vp-feature__subtitle { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }

/* Pillars */
.vp-pillars { display: flex; flex-wrap: wrap; gap: 40px; }
.vp-pillar { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vp-pillar h3, .vp-pillar h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 600; }
.vp-pillar p { margin: 0; }

/* BookCard */
.vp-shelf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.vp-book { display: flex; flex-direction: column; gap: 8px; width: 240px; max-width: 100%; color: var(--ink); text-decoration: none; }
.vp-book__title { margin: 8px 0 0; font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; }
.vp-book__author, .vp-book__meta { margin: 0; color: var(--stone); }
.vp-book__meta { font-size: 16px; line-height: 24px; }
.vp-book__slot { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 3; box-sizing: border-box; border: 2px dashed var(--stone); color: var(--stone); font-size: 16px; }
a.vp-book:hover .vp-book__title { text-decoration: underline; text-underline-offset: 0.2em; }

/* Editions */
.vp-editions { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.vp-editions__table { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vp-editions__table h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.vp-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 18px; line-height: 26px; }
.vp-table th { text-align: left; padding: 0 16px 12px 0; font-size: 15px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); border-bottom: 1px solid var(--rule); }
.vp-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.vp-table th:last-child, .vp-table td:last-child { padding-right: 0; }
.vp-table td:first-child { font-weight: 700; }
.vp-details { flex: 1 1 300px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-content: start; }
.vp-details dt { font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.vp-details dd { margin: 4px 0 0; }

/* PullQuote */
.vp-quote { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.vp-quote blockquote { margin: 0; max-width: var(--measure); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 34px; }
.vp-quote--large blockquote { font-size: clamp(28px, 3vw, 36px); line-height: 1.3; }
.vp-quote figcaption { font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.vp-quote--large figcaption { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* Resource, Aside, CopyValue, QuestionList, Follow */
.vp-resource { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; background: var(--page-deep); }
.vp-resource__cover { display: block; width: 96px; height: auto; aspect-ratio: 900 / 1347; box-shadow: var(--shadow-cover); }
.vp-resource__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vp-resource__title { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; }
.vp-resource__body > p { margin: 0; }
.vp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.vp-actions .vp-credit { flex: 1 1 200px; }
.vp-aside { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ink); padding-top: 20px; }
.vp-aside h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 600; }
.vp-aside__book { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; }
.vp-aside p { margin: 0; }
.vp-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.vp-copy__label { margin: 0; flex: 0 0 104px; font-weight: 700; }
.vp-copy__value { margin: 0; flex: 1 1 160px; font-variant-numeric: tabular-nums; }
.vp-copy--plain { border-top: 0; padding-top: 0; gap: 12px; }
.vp-copy--plain .vp-copy__value { flex: 0 1 auto; font-size: 20px; font-weight: 700; }
.vp-questions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.vp-questions li { display: flex; gap: 16px; }
.vp-questions__n { flex: 0 0 32px; font-family: var(--font-serif); font-weight: 600; color: var(--brass-text); }
.vp-subhead { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 32px; font-weight: 600; }

/* Signup band: newsletter or follow */
.signup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.signup__words { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.signup__words p { margin: 0; color: var(--stone); }
.signup__action { flex: 1 1 380px; min-width: 0; }
.vp-field { display: flex; flex-direction: column; gap: 8px; }
.vp-field__label { font-size: 17px; line-height: 24px; font-weight: 700; }
.vp-field__row { display: flex; flex-wrap: wrap; gap: 12px; }
.vp-input { flex: 1 1 240px; min-width: 0; min-height: 56px; box-sizing: border-box; padding: 0 18px; font-family: var(--font-sans); font-size: 18px; color: var(--ink); background: var(--page); border: 2px solid var(--stone); border-radius: 0; }
.vp-input::placeholder { color: var(--stone); }
.vp-field__note { margin: 0; font-size: 16px; line-height: 24px; color: var(--stone); min-height: 24px; }

.about-grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.about-grid__text { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.about-grid__text > div { display: flex; flex-direction: column; gap: 12px; }
.about-grid__text h2 { margin: 0; font-family: var(--font-serif); font-size: 28px; line-height: 36px; font-weight: 600; }
.about-grid__quote { flex: 2 1 300px; min-width: 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 12px 20px; font-size: 16px; line-height: 24px; max-width: calc(100% - 32px); box-sizing: border-box; }

@media (max-width: 640px) {
  .vp-details { grid-template-columns: minmax(0, 1fr); }
  .vp-header__logo img { height: 52px; }
}

/* Site extras */
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 12px 20px; font-weight: 700; }
.skip:focus { top: 16px; }
.u-gap-16 { gap: 16px !important; }
.u-gap-20 { gap: 20px !important; }
.u-gap-12 { gap: 12px !important; }
.u-mt-8 { margin-top: 8px; }
.u-mt-4 { margin-top: 4px; }
.u-p0 { margin: 0; }
.u-max-640 { margin: 0; max-width: 640px; }
.u-stone { color: var(--stone); }
.u-bold { font-weight: 700; }
.u-pad-40 { padding-top: 40px !important; padding-bottom: 40px !important; }
.u-pad-24 { padding-top: 24px; padding-bottom: 24px; }
.measure { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.vp-reading--big { font-size: 24px; line-height: 36px; }
.split-420 { flex-basis: 420px !important; gap: 20px !important; }
.shelf-note { flex: 1 1 320px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.not-found { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }

[hidden] { display: none !important; }

/* Home: short press intro, then the book */
.vp-intro { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.vp-intro__title { margin: 0; max-width: 900px; font-family: var(--font-serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; font-weight: 600; letter-spacing: -0.012em; }
.vp-intro .vp-lead { max-width: 720px; }
.vp-section--flush { border-top: 0; }
.vp-section--flush > .vp-container { padding-top: 8px; }
.vp-feature--home .vp-feature__cover { flex-basis: 340px; }

/* Honest "not yet available" state for a buy button */
.vp-btn--pending { border-style: dashed; border-color: var(--stone); color: var(--stone); cursor: default; }
.vp-btn--pending:hover { background: transparent; }

@media (max-width: 640px) {
  .vp-feature__cover { flex-basis: auto; width: 62%; max-width: 260px; }
  .vp-feature--hero .vp-feature__cover, .vp-feature--home .vp-feature__cover { flex-basis: auto; }
  .vp-feature { gap: 28px; }
}

.vp-table td, .vp-table th { white-space: nowrap; }

/* Excerpt: a book page on screen. One centred reading column, indented paragraphs, no gaps. */
.excerpt { max-width: 680px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 88px); box-sizing: content-box; }
.excerpt__head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.excerpt__title { margin: 0; font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.012em; }
.excerpt__deck { margin: 0; font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 22px); line-height: 1.55; color: var(--stone); }
.excerpt__meta { margin: 0; font-size: 16px; line-height: 24px; color: var(--stone); }
.excerpt__body { font-family: var(--font-serif); font-size: 20px; line-height: 1.75; hyphens: manual; }
.excerpt__body p { margin: 0; text-indent: 1.5em; }
.excerpt__body p em { font-style: italic; }
.excerpt__scene { text-indent: 0 !important; margin-bottom: 20px !important; font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.excerpt__scene + p { text-indent: 0; }
.excerpt__scene + p::first-line { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 1.08em; }
.excerpt__end { margin: 40px 0 0; text-align: center; font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.4em; color: var(--stone); }

.keep-reading { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 72px); }
.keep-reading__cover { flex: 0 1 220px; display: block; max-width: 100%; }
.keep-reading__cover img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1347; box-shadow: var(--shadow-cover); }
.keep-reading__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) {
  .excerpt__body { font-size: 19px; line-height: 1.7; }
  .keep-reading__cover { flex-basis: auto; width: 45%; max-width: 180px; }
}

picture { display: contents; }

/* Library tools: find it nearby, or ask for it */
.libtools { display: flex; flex-direction: column; gap: 28px; max-width: 640px; margin-top: 8px; }
.libtools__find, .libtools__ask { display: flex; flex-direction: column; gap: 8px; }
.libtools__ask > .vp-field__label { margin: 0; }
.libtools__zip { flex: 1 1 200px; }
.vp-copy--block { flex-direction: column; align-items: stretch; gap: 12px; border: 1px solid var(--rule); border-top-width: 1px; padding: 16px; background: var(--page); }
.libtools__text { flex: none; margin: 0; font-size: 17px; line-height: 26px; font-variant-numeric: tabular-nums; }

/* Print: a clean sheet for librarians and book clubs */
@media print {
  :root, :root[data-theme="dark"] {
    --page: #FFFFFF; --page-deep: #FFFFFF; --ink: #000000; --stone: #333333; --brass: #7A5A1E; --brass-text: #000000; --rule: #BBBBBB; --on-ink: #FFFFFF; --link: #000000;
    --shadow-cover: none; --logo-light: block; --logo-dark: none; color-scheme: light;
  }
  @page { margin: 0.6in; }
  body { font-size: 11pt; line-height: 1.45; background: #fff; }
  .skip, .vp-nav, .theme-switch, .toast, #signup, .vp-btn-row, .vp-actions .vp-btn, .libtools__find, .libtools .vp-btn-row, .vp-copy .vp-btn, .vp-crumbs, .keep-reading .vp-btn-row { display: none !important; }
  .vp-header .vp-container, .vp-footer .vp-container { padding-top: 0; padding-bottom: 12px; }
  .vp-header__logo img { height: 44px; }
  .vp-footer img { height: 32px; }
  .vp-section > .vp-container, .vp-statement, .vp-feature--hero, .vp-intro { padding-top: 16px !important; padding-bottom: 16px !important; gap: 12px; }
  .vp-section { border-top: 1px solid var(--rule); }
  .vp-feature__cover, .vp-feature--hero .vp-feature__cover, .vp-feature--home .vp-feature__cover { flex: 0 0 1.9in; }
  .vp-feature, .vp-split, .vp-editions { gap: 0.3in; }
  .vp-feature { flex-wrap: nowrap; align-items: flex-start; }
  .vp-feature__body, .vp-feature--hero .vp-feature__body, .vp-feature--home .vp-feature__body { flex: 1 1 0; min-width: 0; gap: 10px; }
  .vp-split__main, .vp-split__side, .vp-editions__table, .vp-details { flex-basis: 0 !important; min-width: 0; }
  .vp-feature__tagline { font-size: 14pt; line-height: 1.3; }
  .vp-feature__title { font-size: 26pt; }
  .vp-feature__text, .vp-reading, .excerpt__body { font-size: 11pt; line-height: 1.5; }
  .vp-section__title, .vp-statement__title, .vp-intro__title, .excerpt__title { font-size: 18pt; }
  .vp-table { min-width: 0; font-size: 10pt; }
  .table-scroll { overflow: visible; }
  a { color: inherit; text-decoration: none; }
  .vp-pillars, .vp-questions li, .vp-table, .vp-details, .vp-resource, .vp-aside, figure { break-inside: avoid; }
  .vp-feature__meta a { display: none; }
}


/* ---- Interaction polish (Motion rule: feedback only, never decoration) ---- */

/* Buttons: quick color feedback, a slight press */
.vp-btn { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.vp-btn:active:not(.vp-btn--pending) { transform: translateY(1px); }
.vp-btn.is-done { border-color: var(--brass); }
a { transition: text-decoration-color 150ms ease; }

/* Covers you can click lift slightly on hover (mouse and trackpad only) */
@media (hover: hover) {
  a.vp-feature__cover img, a.vp-book .cover-img, a.keep-reading__cover img { transition: transform 200ms ease, box-shadow 200ms ease; }
  a.vp-feature__cover:hover img, a.vp-book:hover .cover-img, a.keep-reading__cover:hover img {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(23, 23, 26, 0.26);
  }
}

/* Reading progress on the excerpt page */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: calc(3px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; z-index: 20; pointer-events: none; }
.read-progress__bar { height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; }

/* Spotlight on the featured book. "large": more cover, more room. "glow": the same, with a soft lamplight behind it. */
[data-spotlight="large"] .vp-feature--home .vp-feature__cover,
[data-spotlight="glow"] .vp-feature--home .vp-feature__cover { flex-basis: 420px; }
[data-spotlight="large"] .vp-feature--hero .vp-feature__cover,
[data-spotlight="glow"] .vp-feature--hero .vp-feature__cover { flex-basis: 460px; }
[data-spotlight="large"] .vp-feature--home, [data-spotlight="glow"] .vp-feature--home { padding-top: 24px; padding-bottom: 24px; }
[data-spotlight="glow"] .vp-feature--home .vp-feature__cover,
[data-spotlight="glow"] .vp-feature--hero .vp-feature__cover { position: relative; isolation: isolate; }
[data-spotlight="glow"] .vp-feature--home .vp-feature__cover::before,
[data-spotlight="glow"] .vp-feature--hero .vp-feature__cover::before {
  content: ""; position: absolute; z-index: -1; inset: -14% -22% -10%;
  background: radial-gradient(closest-side, var(--glow) 60%, transparent 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .vp-btn, a, a.vp-feature__cover img, a.vp-book .cover-img, a.keep-reading__cover img { transition: none !important; }
  .vp-btn:active, a.vp-feature__cover:hover img, a.vp-book:hover .cover-img, a.keep-reading__cover:hover img { transform: none !important; }
}
@media print { .read-progress { display: none; } }

[data-spotlight="glow"] main { overflow-x: clip; }

/* Mobile buy bar (book page, phones only). Appears without animation once the main Buy button has scrolled away. */
.buybar { display: none; }
@media (max-width: 640px) {
  .buybar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--page); border-top: 1px solid var(--rule);
    box-shadow: 0 -6px 18px rgba(23, 23, 26, 0.10);
  }
  .buybar__text { min-width: 0; }
  .buybar__title { margin: 0; font-family: var(--font-serif); font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__actions { display: flex; gap: 8px; flex-shrink: 0; }
  body.has-buybar .vp-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .buybar { display: none !important; } }

/* Format picker: choose Kindle, paperback or hardcover; the Buy button follows */
.fmt { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fmt__legend { padding: 0; margin-bottom: 10px; font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.fmt__options { display: flex; flex-wrap: wrap; gap: 10px; }
.fmt__opt { position: relative; flex: 1 1 140px; max-width: 200px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--stone); background: var(--page); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.fmt__opt input { grid-row: 1 / span 2; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.fmt__name { font-weight: 700; font-size: 17px; line-height: 22px; }
.fmt__price { font-size: 16px; line-height: 22px; color: var(--stone); font-variant-numeric: tabular-nums; }
.fmt__opt:has(input:checked) { border-color: var(--ink); background: var(--page-deep); }
.fmt__opt:has(input:checked) .fmt__price { color: var(--ink); }
.fmt__opt:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.fmt__opt:has(input:disabled) { cursor: default; border-style: dashed; }
.fmt__opt:has(input:disabled) .fmt__name, .fmt__opt:has(input:disabled) .fmt__price { color: var(--stone); }
.fmt__opt:hover:not(:has(input:disabled)) { background: var(--page-deep); }
.fmt__detail { margin: 0; font-size: 16px; line-height: 24px; color: var(--stone); }
@media (max-width: 640px) { .fmt__opt { max-width: none; flex-basis: 100px; padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) { .fmt__opt { transition: none; } }
@media print { .fmt__opt input { display: none; } .fmt__opt { border-width: 1px; } }

/* Contact form (only built when contact_form.action is set) */
.contact-form { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--rule); padding-top: 16px; }
.contact-form .vp-input { flex: 0 0 auto; }
.vp-input--area { min-height: 160px; padding: 14px 18px; line-height: 28px; resize: vertical; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
