/* ============================================================================
   JONAH BECKETT — a novelist's author site. Deep teal-black ink on warm paper,
   one teal accent, a red kept for status, and three saturated bands (harbor,
   plum, rose) behind the pull quotes. Cormorant Garamond for display, Newsreader
   for reading, Montserrat for the small tracked labels and the buttons.
   Everything is scoped under `.jb-site` so it can never leak into the Puck
   editor chrome.

   THE 2026-11 REFRESH. The site was first ported from a static Bootstrap build
   and kept that build's furniture: a floating capsule nav, white cards on soft
   shadows, a three-layer hero. This sheet replaces the furniture and keeps the
   identity. What changed, in one place:

     - FLAT, RULED LAYOUTS. Hairlines and white space do the separating; the
       book jackets are the only things that still cast a shadow.
     - A READING FACE. Body copy is Newsreader (`--text`), which follows a
       merchant's Body font; Montserrat (`--sans`) is now the label face only
       and stays put (lib/fontOverrides.ts).
     - A SOLID, STICKY BAR in the ink, and an ink footer.
     - EVERY DARK GROUND SETS CONTEXT TOKENS (`--fg`, `--fg-soft`, `--fg-mute`,
       `--rule`, `--label`, `--btn-*`), and components letter in those rather
       than in `--ink` directly. That is what lets any section stand on the Ink
       swatch without a per-block list of exceptions.

   THREE COLOR VALUES ARE DELIBERATELY DARKER THAN THE ORIGINAL SOURCE:

     meta / genre lines        #7b8a8c  3.41:1 → #5a6a6c / #607072  (4.9:1+)
     "in progress" status      #cc5a61  3.84:1 → #b6363f 5.56:1
     badge fill (white on it)  #cc5a61  3.84:1 → #b6363f 5.85:1

   `--rose` is the lettering and the badge; `--rose-lit` stays on the progress
   bar, where a fill's 3:1 bar is the one that applies.

   THE DARK GROUNDS ARE PINNED rather than derived from the ink
   (lib/brandOverrides.ts). Deriving them turns every dark band mid-grey under a
   light `text` override while the lettering on it stays white. The three bands
   are each mixed 40% toward a blue-black, which is what gives white type room
   to spare on them.
   ========================================================================== */

/* <ThemeImg> emits each asset's intrinsic width/height so the browser reserves
   the box before the photo loads. Those attributes are author-origin
   presentational hints, one per axis: a rule that sets only a width overrides
   that hint and leaves the height hint standing. Handing the height back to
   the ratio is what every sizing rule below already assumes. */
img {
  height: auto;
}

/* Cart drawer + product-detail + search tokens. All three render at the
   document root, OUTSIDE `.jb-site`, so they cannot read the wrapper's
   palette. The theme ships cart-off — an author sells through booksellers —
   but a merchant can turn it on per site to sell signed editions, and these
   keep the drawer, /shop and the search overlay in the site's colors. */
:root {
  --cart-bg: #fbf9f4;
  --cart-fg: #0b1d20;
  --cart-muted: #5a6a6c;
  --cart-border: #e8e2d5;
  --cart-accent: #236f75;
  --cart-accent-fg: #fbf9f4;
  --cart-sale: #b6363f;
  --cart-radius: 2px;
  --cart-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --cart-font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --pd-card-bg: #ffffff;
  --pd-card-radius: 2px;
}

.jb-site {
  /* ---------------------------------------------------------------- palette */
  --ink: #0b1d20;
  --paper: #fbf9f4;
  --linen: #f4f0e7;
  /* The one hue that is a brand color rather than a decoration: the form's
     accent, the button hovers, the drop caps, the cart. */
  --accent: #236f75;
  /* The accent as SMALL TEXT and the focus ring on the light grounds.
     lib/brandOverrides.ts re-picks it for the page and the linen whatever
     accent a merchant sets; the teal reads there as it ships. */
  --accent-text: #236f75;
  /* The accent as small text ON THE INK: the eyebrows over the hero and the
     page heads, the footer's column heads, the quote mark. A pale tint of the
     accent, re-picked the same way for the pinned dark grounds. */
  --accent-lite: #8fd0d2;
  /* The lettering that lands on an --accent fill. */
  --on-accent: #fbf9f4;

  /* Measured text tones — see the header note. */
  --ink-soft: #3d4b4d;
  --ink-mute: #5a6a6c;
  --ink-faint: #607072;

  /* The "warning" red, split in two: the darker value carries lettering and
     the badge, the lighter one fills the progress bar and nothing else. */
  --rose: #b6363f;
  --rose-lit: #cc5a61;

  /* The lettering on the blank cover mock-up. Pinned: it lands on a fixed
     photographic asset, not on a surface a merchant can re-tint. */
  --plate-ink: #22201c;

  /* The dark grounds. Pinned — see the header note. `--band-ink` is what each
     band is mixed toward. */
  --dark: #0b1d20;
  --harbour: #2d6f7c;
  --plum: #753f5d;
  --band-ink: #141727;

  /* Type ON a dark ground or a photograph. White alphas, so they composite
     correctly over whichever ground they land on. */
  --on-band: #ffffff;
  --on-band-soft: rgba(255, 255, 255, 0.86);
  --on-band-mute: rgba(255, 255, 255, 0.72);
  --on-band-line: rgba(255, 255, 255, 0.24);
  /* The light button that stands on a dark ground, and its lettering. Pinned
     for the same reason the grounds are: `--paper` and `--ink` trade places
     under an inverted palette, and the ground under this button does not. */
  --on-dark-fill: #fbf9f4;
  --on-light: #0b1d20;

  /* Hairlines. Mixed from the ink, so they follow a brand override. */
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);

  /* THE CARD SURFACE (the form, a dropdown, a venue card). It rides the PAGE
     GROUND rather than being pinned white: listed in the `background` slot
     (lib/brandOverrides.ts) so a dark-page override does not strand light ink
     on a white card. */
  --card: #ffffff;

  /* ----------------------------------------------------------- context tokens */
  /* What a component letters and rules in. The light values here; every dark
     ground re-points them further down. */
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --rule: var(--line-strong);
  --rule-soft: var(--line);
  --label: var(--accent-text);
  --status: var(--rose-ink, var(--rose));
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-hover-bg: var(--accent);
  --btn-hover-fg: var(--on-accent);
  --ring: var(--accent-text);

  /* ------------------------------------------------------------------ shape */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 1240px;
  --edge: clamp(20px, 4.4vw, 56px);
  --r: 2px;
  --bar-h: 84px;
  /* The cover artwork is a transparent 3-D render with clear margin around it,
     so a `box-shadow` draws a rectangle floating off the jacket. These follow
     the book's own silhouette instead. */
  --drop-md: drop-shadow(0 10px 10px rgba(11, 29, 32, 0.2));
  --drop-lg: drop-shadow(0 30px 34px rgba(11, 29, 32, 0.34));
  --drop-dark: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5));

  /* Shared nav dropdown / mega-menu tokens
     (components/storefront/nav-menu.css). The bar is the ink, but a dropdown
     PANEL hangs below it onto the page, so it takes the page's light surface. */
  --menu-bg: var(--card);
  --menu-fg: var(--ink);
  --menu-muted: var(--ink-mute);
  --menu-accent: var(--accent-text);
  --menu-border: var(--line);
  --menu-hover-bg: var(--linen);
  --menu-radius: 2px;
  --menu-heading-font: var(--serif);
  --menu-ph-bg: var(--linen);

  /* The enquiry form's aside sticks under the bar (components/AppointmentBlock). */
  --appt-sticky-top: calc(var(--bar-h) + 28px);

  /* NOTE: the --loc-* family is NOT declared here. `.loc-section` and
     `.loc-detail` re-declare those tokens on themselves (locations.css), so an
     inherited value loses. They are set on those two selectors further down. */

  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* `clip`, never `hidden`: a page renders THREE sibling wrappers (header zone,
     body, footer zone), and `overflow-x: hidden` computes overflow-y to `auto`
     per spec — turning the short header wrapper into a scroll container that
     clips the mobile panel hanging below it (docs/THEMES-GUIDE.md §6). */
  overflow-x: clip;
}

/* The anchor offset is a LITERAL: `--bar-h` is declared on the site wrapper,
   and a var() referenced from `html` has nothing to resolve against. Keep it
   in step with --bar-h (84px) plus a little air. */
html:has(.jb-site) {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

/* -------------------------------------------------------------------- reset */
.jb-site *,
.jb-site *::before,
.jb-site *::after {
  box-sizing: border-box;
}
.jb-site img {
  display: block;
  max-width: 100%;
}
/* `:where()` IS LOAD-BEARING on every element rule here. `.jb-site a` is
   (0,1,1) and `.jb-btn` is (0,1,0), so a plain element rule OUTRANKS every
   component class on the site — the first build of this theme shipped teal
   lettering on its dark buttons and a hero name at body-heading size for
   exactly that reason. Zero-specificity makes each of these a tie with any
   single class, decided by source order, and every component rule comes
   later. */
.jb-site :where(a) {
  color: var(--label);
  text-decoration: none;
  transition: color 0.16s ease;
}
.jb-site :where(a:hover) {
  color: var(--fg);
}
.jb-site ::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.jb-site :where(h1, h2, h3, h4, p, figure, blockquote, ul, dl, dd) {
  margin: 0;
}
.jb-site :where(ul) {
  padding: 0;
  list-style: none;
}
.jb-site :focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- type scale */
/* Cormorant Garamond at 500 for display: at 400 the face goes thin and grey at
   the sizes a heading runs on a screen, and 600 is kept for the small titles
   (a card, a character) that have to hold beside body copy. */
.jb-site :where(h1, h2, h3, h4) {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--fg);
}
.jb-site :where(h1) {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}
.jb-site :where(h2) {
  font-size: clamp(2.1rem, 3.75vw, 3.4rem);
}
.jb-site :where(h3) {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
}
.jb-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}
.jb-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.75vw, 3.4rem);
  line-height: 1.05;
  /* `--display-tighten`: a merchant's poster heading face zeroes it, so its
     letters never touch (lib/fontOverrides.ts). */
  letter-spacing: calc(-0.01em * var(--display-tighten, 1));
}
.jb-h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}
.jb-body {
  color: var(--fg-soft);
}
.jb-body + .jb-body {
  margin-top: 1.1em;
}
.jb-lead {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--fg-mute);
  font-size: 18px;
  line-height: 1.6;
}

/* The small tracked label over a heading, in the label face. */
.jb-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}

.jb-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.jb-section {
  padding-block: clamp(64px, 7.6vw, 120px);
}
.jb-section-head {
  margin-bottom: clamp(32px, 3.6vw, 56px);
}
.jb-section-head .jb-eyebrow {
  margin-bottom: 14px;
}
.jb-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 3.6vw, 56px);
}
.jb-head-row .jb-section-head {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- swatch grounds */
/* `bgColorField` stores a token; the block renders it as `bg-<token>`. Two
   lists share these: the section grounds (paper / linen / ink) and the band
   grounds (harbor / plum / rose / ink). */
.jb-site .bg-paper {
  background: var(--paper);
}
.jb-site .bg-linen {
  background: var(--linen);
}
.jb-site .bg-ink {
  background: var(--dark);
}
.jb-site .bg-harbour {
  background: color-mix(in srgb, var(--harbour) 60%, var(--band-ink));
}
.jb-site .bg-plum {
  background: color-mix(in srgb, var(--plum) 60%, var(--band-ink));
}
.jb-site .bg-rose {
  background: color-mix(in srgb, var(--rose) 60%, var(--band-ink));
}
/* EVERY DARK GROUND, in one list: the Ink swatch and the three bands, the
   hero, a page head, the out-now band and the footer. Each re-points the
   context tokens, so a heading, a rule, a label, a button and a focus ring
   inside one all come out light without the block knowing where it stands.
   The grounds are pinned, so every value here is pinned too. */
.jb-site :is(.bg-ink, .bg-harbour, .bg-plum, .bg-rose, .jb-hero, .jb-banner, .jb-feature, .jb-footer) {
  --fg: var(--on-band);
  --fg-soft: var(--on-band-soft);
  --fg-mute: var(--on-band-mute);
  --rule: var(--on-band-line);
  --rule-soft: rgba(255, 255, 255, 0.14);
  --label: var(--accent-lite);
  --status: #f0a3a8;
  --btn-bg: var(--on-dark-fill);
  --btn-fg: var(--on-light);
  --btn-hover-bg: #ffffff;
  --btn-hover-fg: var(--on-light);
  --ring: #ffffff;
  color: var(--fg-soft);
}

/* ------------------------------------------------------------------ buttons */
/* One solid button and one outlined one, both in the label face, plus a text
   link with an arrow for every secondary action. They letter in the context
   tokens, so the same markup is the ink button on the paper and the paper
   button on the ink. */
.jb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* A wider substitute face in the label slot would wrap a two-word label. */
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.jb-btn:hover {
  border-color: var(--btn-hover-bg);
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}
.jb-btn-ghost {
  border-color: var(--rule);
  background: transparent;
  color: var(--fg);
}
.jb-btn-ghost:hover {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}
/* The light button named outright, for a block that sits on a photograph. */
.jb-btn-light {
  border-color: var(--on-dark-fill);
  background: var(--on-dark-fill);
  color: var(--on-light);
}
.jb-btn-light:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--on-light);
}
.jb-btn-sm {
  min-height: 44px;
  padding: 0 22px;
}
.jb-btn-block {
  display: flex;
  width: 100%;
}
.jb-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 34px;
}
.jb-btn-row.is-center {
  justify-content: center;
}
.jb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jb-link:hover {
  color: var(--label);
}
.jb-link-label {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}
.jb-arrow {
  flex: none;
  width: 18px;
  height: 10px;
  transition: transform 0.18s ease;
}
.jb-link:hover .jb-arrow {
  transform: translateX(4px);
}

/* White on the red, in every palette: the fill is pinned. */
.jb-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--rose);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Empty-state card the live blocks show inside the editor. */
.jb-empty-card {
  padding: 28px;
  border: 1px dashed var(--rule);
  border-radius: var(--r);
  color: var(--fg-mute);
  font-size: 15px;
}
/* Placeholder box wherever an image slot is empty. */
.jb-ph {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  background: var(--linen);
}
.jb-ph-wide {
  aspect-ratio: 3 / 2;
}

/* -------------------------------------------------------------------- grids */
.jb-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(24px, 3.2vw, 44px);
}

/* ================================================================== HEADER */
/* A solid bar in the ink that sticks to the top of the page.

   THE CHROME WRAPPERS ARE DISSOLVED. The header renders in its OWN wrapper
   tree, separate from the page body: <body> › div.jb-site › div (Puck zone) ›
   header.jb-header › div.jb-bar. Those wrappers are only as tall as the bar,
   and a sticky element can only stick inside its containing block — so without
   this the bar leaves with its parent after 84px of scroll. `display: contents`
   removes BOXES, not DOM ancestry, so the scoped rules and the inherited
   custom properties still apply. `.jb-header` ITSELF is in the list: the
   sticky element is `.jb-bar`, and a parent as tall as the bar gives it no
   room to travel. Switched off inside the editor, where those wrappers are
   what the drag layer measures. lib/navClearance.ts lists this theme as one
   whose bar reserves its own height. */
.jb-site:has(.jb-header):not(.jb-site--editing),
.jb-site:has(.jb-header):not(.jb-site--editing) div:has(.jb-header),
.jb-site:not(.jb-site--editing) .jb-header {
  display: contents;
}
.jb-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dark);
  /* The bar's own controls letter and ring in white; the paper menu panel and
     a dropdown hang below it on light surfaces and take their inks back. */
  --fg: var(--on-band);
  --ring: #ffffff;
  color: var(--on-band-soft);
  font-family: var(--sans);
}
.jb-bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  min-height: var(--bar-h);
}
/* The brand yields before anything else does: with the wrappers dissolved, the
   site wrapper's `overflow-x: clip` no longer contains the bar, and a long
   brand would otherwise push the burger off a phone. */
.jb-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
  overflow-x: clip;
  color: var(--on-band);
}
.jb-brand:hover {
  color: var(--on-band);
}
.jb-wordmark {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 1.82rem);
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.jb-logo-img {
  height: var(--jb-logo-h, 24px);
  width: auto;
}

.jb-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}
/* NavMenu renders a plain link as an <a> and a dropdown's trigger as
   `.nm-trigger`; the links INSIDE a panel are left to nav-menu.css. */
.jb-nav-links > a,
.jb-nav-links .nm-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.16s ease;
}
.jb-nav-links > a:hover,
.jb-nav-links .nm-trigger:hover,
.jb-nav-links > a.is-active,
.jb-nav-links .nm-trigger.is-active {
  color: var(--on-band);
}
/* The current page: a hairline under the label, in the lifted accent. */
.jb-nav-links > a.is-active::after,
.jb-nav-links .nm-trigger.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--accent-lite);
}
.jb-nav-links > a.jb-nav-cta {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--r);
  color: var(--on-band);
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.jb-nav-links > a.jb-nav-cta:hover,
.jb-nav-links > a.jb-nav-cta.is-active {
  border-color: var(--on-dark-fill);
  background: var(--on-dark-fill);
  color: var(--on-light);
}
.jb-nav-links > a.jb-nav-cta.is-active::after {
  content: none;
}
/* A dropdown panel is a light surface: its own inks and ring. */
.jb-bar .nm-panel {
  --fg: var(--ink);
  --ring: var(--accent-text);
  font-family: var(--text);
}

.jb-bar-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}
/* SiteSearch and CartTrigger both render their own button; recolor rather
   than re-layout. */
.jb-site .jb-search button,
.jb-site .jb-cart {
  color: rgba(255, 255, 255, 0.84);
}
.jb-site .jb-search button:hover,
.jb-site .jb-cart:hover {
  color: var(--on-band);
}

/* ---------------------------------------------------------- mobile nav */
.jb-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--on-band);
}
.jb-burger {
  display: grid;
  gap: 5px;
  justify-items: center;
}
.jb-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
}
.jb-nav-toggle.is-open .jb-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.jb-nav-toggle.is-open .jb-burger span:nth-child(2) {
  opacity: 0;
}
.jb-nav-toggle.is-open .jb-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* The panel: a sheet of the paper hanging from the bar, edge to edge.
   IN DOWN, OUT UP. The closed state holds `translateY(-10px)`, so opening
   settles it to 0 (down) and closing returns it upward. `visibility` is
   delayed by the fade duration on close so the panel is not yanked out of the
   hit-test mid-transition. */
.jb-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 18px var(--edge) 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 30px 40px -24px rgba(11, 29, 32, 0.35);
  /* A light surface under the dark bar: its own inks and ring. */
  --fg: var(--ink);
  --ring: var(--accent-text);
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0s linear 0.24s;
}
.jb-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0s;
}
.jb-mobile-links {
  display: grid;
}
.jb-mobile-links a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.jb-mobile-links a.is-active {
  color: var(--accent-text);
}
.jb-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 16px;
  padding: 0 24px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jb-mobile-cta:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.jb-site .jb-search-mobile {
  margin-bottom: 4px;
}
.jb-site .jb-search-mobile button {
  color: var(--ink);
}

/* ==================================================================== HERO */
/* A title page. The name, a line about the work and two ways in, on the ink;
   beside them a framed portrait built from the theme's own three pictures: the
   painting fills the frame, the author cut-out stands in it cropped at the
   elbows, and the open book overlaps its lower corner. The painting is also
   laid across the whole band at a third of its strength, which is what ties
   the two halves together.

   THE FIGURE IS WIDER THAN ITS FRAME ON PURPOSE. The cut-out's arms run off
   both sides of its own canvas; at 118% the frame crops them the way a
   photograph would, and no hard vertical edge shows inside it. */
.jb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
}
.jb-hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  opacity: 0.3;
}
.jb-hero-grid {
  --hero-gap: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: var(--hero-gap);
  padding-block: clamp(56px, 6vw, 88px) clamp(72px, 7.4vw, 112px);
}
.jb-hero-grid.is-solo {
  grid-template-columns: minmax(0, 1fr);
}
.jb-hero-name {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-caps: small-caps;
  font-size: clamp(3.75rem, 10vw, 9.25rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.jb-hero-copy .jb-eyebrow + .jb-hero-name {
  margin-top: 22px;
}
.jb-hero-blurb {
  margin-top: 30px;
  max-width: 30em;
  color: var(--on-band-soft);
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.55;
}
.jb-hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
}
.jb-hero-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border-radius: var(--r);
  background: #12343a;
}
.jb-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* The hairline frame sits BEHIND the figure, so the author stands in front of
   it rather than inside it. */
.jb-hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.jb-site .jb-hero-figure {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 118%;
  max-width: none;
  transform: translateX(-50%);
}
/* THE BOOK OVERHANGS INTO THE GUTTER AND NO FURTHER. Its left edge is tied to
   the grid's own gap, 8px short of it, so at no width does a white page slide
   under the last words of the blurb in the column beside it (it did, at 30% of
   the frame: 55px into the copy at 1440). */
.jb-site .jb-hero-book {
  position: absolute;
  z-index: 3;
  left: calc(8px - var(--hero-gap));
  bottom: -9%;
  width: 58%;
  max-width: none;
  filter: var(--drop-dark);
}

/* ================================================================= BANNER */
/* The head of an interior page: the eyebrow, the page's <h1> and a line under
   it on the ink, with the photograph beside them running out to the edge of
   the window. With no words in it, the band is the photograph alone. */
.jb-banner {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--edge), 1fr)
    minmax(0, calc((var(--maxw) - 2 * var(--edge)) * 0.56))
    minmax(0, calc((var(--maxw) - 2 * var(--edge)) * 0.44))
    minmax(var(--edge), 1fr);
  background: var(--dark);
}
.jb-banner-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5.4vw, 84px) clamp(24px, 4vw, 64px) clamp(48px, 5.4vw, 84px) 0;
}
.jb-banner.no-photo .jb-banner-copy {
  grid-column: 2 / 4;
}
.jb-banner-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-caps: small-caps;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.jb-banner-copy .jb-eyebrow + .jb-banner-h1 {
  margin-top: 16px;
}
.jb-banner-lead {
  margin-top: 20px;
  max-width: 30em;
  color: var(--on-band-soft);
  font-size: 20px;
  line-height: 1.5;
}
.jb-banner-photo {
  position: relative;
  grid-column: 3 / 5;
  min-height: 300px;
}
.jb-banner.is-tall .jb-banner-photo {
  min-height: 400px;
}
.jb-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.jb-banner.is-bare {
  display: block;
}
.jb-banner.is-bare .jb-banner-photo {
  min-height: 300px;
}
.jb-banner.is-bare.is-tall .jb-banner-photo {
  min-height: 420px;
}

/* ------------------------------------------------------------- cover plate */
/* Every cover slot renders this: the jacket where there is one, and a blank
   kraft mock-up with the title typeset over it where there is not yet. */
.jb-plate {
  position: relative;
  display: block;
  width: 100%;
  /* The plate's type is sized in `cqw`, so the title scales with the plate
     rather than the viewport. NOTE: a container-type box contributes nothing
     to its own inline size, so whatever holds a plate has to give it a real
     width (see the book page's cover column). */
  container-type: inline-size;
}
.jb-plate-art {
  width: 100%;
  height: auto;
}
/* The blank mock-up keeps its own LANDSCAPE ratio rather than being cropped to
   a jacket's: forced to 456:700 it shows a column of blank paper. */
.jb-plate.is-blank .jb-plate-art {
  aspect-ratio: 414 / 272;
  object-fit: cover;
  border-radius: var(--r);
}
/* NO SCRIM, AND DARK INK. The mock-up is a kraft-colored blank jacket and the
   title is set straight onto its front board — `left: 7%; right: 27%` keeps
   the block off the spine down the right-hand quarter. #22201c reads 6.6:1 at
   the mean of the band the type lands on and 5.1:1 at its darkest 1%. */
.jb-plate-inner {
  position: absolute;
  top: 50%;
  left: 7%;
  right: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
  text-align: center;
  color: var(--plate-ink);
}
.jb-plate-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.jb-plate-title {
  display: block;
  margin: 3.2cqw 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 9.6cqw;
  line-height: 1;
}
.jb-plate-note {
  display: block;
  margin-top: 3cqw;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 2.6cqw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================== WHAT'S NEXT */
/* The works in progress, as ruled columns: the plate, how far along it is, the
   title, the pitch and a link. The rule between two columns lives in the
   GUTTER (a pseudo-element), not in a padding on the item — padding would
   leave the middle column narrower than the two beside it. */
.jb-next-grid {
  --gutter: clamp(36px, 5.6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px var(--gutter);
}
.jb-next-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.jb-next-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) / -2);
  width: 1px;
  background: var(--rule);
}
.jb-next-item:nth-child(3n + 1)::before {
  content: none;
}
.jb-next-media {
  display: block;
  width: 100%;
}
.jb-progress-wrap {
  width: 100%;
  margin-top: 26px;
}
/* `--status`: the red as LETTERING, which lib/brandOverrides.ts re-picks for
   whatever page ground a merchant chose (`--rose-ink`); on the Ink it is the
   pinned pale red. */
.jb-progress-label {
  color: var(--status);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.jb-progress {
  height: 3px;
  margin-top: 10px;
  background: var(--rule);
}
.jb-progress-bar {
  display: block;
  height: 100%;
  /* The lighter red: this is a FILL, so the 3:1 bar applies. */
  background: var(--rose-lit);
}
.jb-next-title {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 29px;
  line-height: 1.1;
  color: var(--fg);
}
.jb-next-title a {
  color: inherit;
}
.jb-next-title a:hover {
  color: var(--label);
}
.jb-next-text {
  margin-top: 12px;
  margin-bottom: 14px;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.65;
}
.jb-next-item .jb-link {
  margin-top: auto;
}
/* The catalogue's Forthcoming row: the same columns with no bar and no pitch. */
.jb-plate-genre {
  margin-top: 24px;
}
.jb-plate-genre + .jb-next-title {
  margin-top: 10px;
}
.jb-next-grid.is-plates .jb-next-title {
  margin-bottom: 8px;
}

/* ========================================================== FEATURED BOOK */
/* The out-now band, split down the middle: the pitch on the ink, the
   photograph running out to the edge of the window, and the jacket standing
   on the seam between them. */
.jb-feature {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--edge), 1fr)
    minmax(0, calc((var(--maxw) - 2 * var(--edge)) * 0.5))
    minmax(0, calc((var(--maxw) - 2 * var(--edge)) * 0.5))
    minmax(var(--edge), 1fr);
  background: var(--dark);
}
.jb-feature-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 8vw, 128px) clamp(24px, 4vw, 64px) clamp(72px, 8vw, 128px) 0;
}
/* Room for the half of the jacket that stands on this side of the seam. */
.jb-feature.has-cover .jb-feature-copy {
  padding-right: 200px;
}
.jb-feature.no-photo .jb-feature-copy {
  grid-column: 2 / 4;
}
.jb-feature-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.04;
  color: #ffffff;
}
.jb-feature-copy .jb-badge + .jb-feature-h2 {
  margin-top: 24px;
}
.jb-feature-lead {
  margin-top: 22px;
  color: var(--on-band-soft);
  font-size: 19px;
  line-height: 1.6;
}
.jb-feature-copy .jb-btn {
  margin-top: 36px;
}
.jb-feature-photo {
  position: relative;
  grid-column: 3 / 5;
  min-height: 620px;
}
.jb-feature.no-photo .jb-feature-photo {
  min-height: 0;
}
.jb-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.jb-site .jb-feature-cover {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 50%;
  width: 300px;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: var(--drop-dark);
}

/* =============================================================== PULL QUOTE */
/* A band of flat color with a hairline frame inside it, like a bookplate: the
   quote mark, a line in the author's voice and who said it. With a jacket, the
   jacket stands to the left; without one the quote is centered. */
.jb-quote-band {
  padding-block: clamp(40px, 4.6vw, 72px);
}
.jb-quote-frame {
  padding: clamp(36px, 5vw, 76px) clamp(24px, 5.4vw, 84px);
  border: 1px solid var(--on-band-line);
}
.jb-quote-frame.has-cover {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5.4vw, 84px);
}
.jb-quote-frame:not(.has-cover) {
  text-align: center;
}
.jb-quote-frame:not(.has-cover) .jb-quote-body {
  max-width: 900px;
  margin-inline: auto;
}
.jb-quote-frame:not(.has-cover) .jb-quote-cite {
  justify-content: center;
  text-align: left;
}
.jb-quote-cover .jb-plate {
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.42));
}
.jb-quote-cover .jb-btn {
  margin-top: 26px;
}
.jb-quote-glyph {
  display: inline-block;
  width: 46px;
  height: auto;
  color: var(--accent-lite);
}
.jb-quote-text {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}
.jb-quote-cite {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.jb-avatar {
  display: block;
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe9e8;
}
.jb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The author cut-out is a half-length figure; a face crop is what a round
     avatar wants out of it. */
  object-position: 50% 10%;
}
.jb-quote-name {
  display: block;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jb-quote-source {
  display: block;
  margin-top: 3px;
  color: var(--on-band-soft);
  font-size: 16px;
  line-height: 1.4;
}

/* ============================================================ GENRE MARQUEE */
/* A ribbon of the genres the author works in, sliding under the hero. The
   track holds as many copies as the band needs (MarqueeTrack), each after the
   first aria-hidden. EVERY ITEM CARRIES ITS OWN TRAILING SPACE — the padding,
   the rule and the margin after it — so one copy is exactly one loop step and
   the seam between two copies is the same gap as between two genres. */
.jb-marquee {
  overflow: hidden;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--linen);
}
.jb-marquee-track {
  display: flex;
  width: max-content;
  animation: jb-marquee 60s linear infinite;
}
.jb-marquee-run {
  display: flex;
  align-items: center;
  flex: none;
}
.jb-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 34px;
  padding-right: 34px;
  border-right: 1px solid var(--line-strong);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.jb-marquee-item img {
  width: auto;
  height: 34px;
  max-width: 72px;
  object-fit: contain;
}
/* MarqueeTrack sets --marquee-copies and each loop slides exactly one copy. */
@keyframes jb-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / var(--marquee-copies, 2)));
  }
}
/* Paused inside the editor: a strip sliding under the drag layer cannot be
   grabbed. */
.jb-marquee.is-paused .jb-marquee-track {
  animation-play-state: paused;
}
/* Reduced motion: a still row of genres, not a stopped strip. Stopping the
   track alone froze its first frame with a genre cut off at the edge. So the
   loop's copies (`.jb-marquee-copy`) are hidden and the genres sit centered,
   wrapping into rows, with the rules between them dropped. */
@media (prefers-reduced-motion: reduce) {
  .jb-marquee {
    padding-inline: var(--edge);
  }
  .jb-marquee-track {
    width: auto;
    animation: none;
  }
  .jb-marquee-copy {
    display: none;
  }
  .jb-marquee-run {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
  }
  .jb-marquee-item {
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* A long genre wraps beside its illustration instead of squeezing it. */
  .jb-marquee-item img {
    flex: none;
  }
}

/* ============================================================== AUTHOR STRIP */
/* A portrait in a 4:5 frame with a hairline offset behind it, beside a heading,
   the copy and up to two ways on. */
.jb-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(40px, 7.4vw, 112px);
}
.jb-about-grid.is-right {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
}
.jb-about-grid.is-right .jb-about-media {
  order: 2;
}
.jb-about-media {
  position: relative;
  margin: 0 18px 18px 0;
}
.jb-about-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--rule);
}
.jb-about-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
}
.jb-about-media .jb-ph {
  position: relative;
  aspect-ratio: 4 / 5;
}
.jb-about-copy .jb-eyebrow {
  margin-bottom: 14px;
}
.jb-about-copy .jb-h2 {
  margin-bottom: 26px;
}
.jb-about-copy .jb-body {
  font-size: 18px;
  line-height: 1.72;
}
/* A biography — more than one paragraph — opens on a drop cap; a single
   paragraph beside the home page's portrait does not. */
.jb-about-copy .jb-h2 + .jb-body:has(+ .jb-body)::first-letter,
.jb-prose-part:first-of-type > .jb-body:first-child::first-letter {
  float: left;
  padding: 0.07em 0.09em 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.2em;
  line-height: 0.78;
  color: var(--fg);
}

/* ================================================================== BOOKS */
/* The catalogue, as shelves: every jacket in a row stands on one hairline,
   with its title and genre under it. SUBGRID IS WHAT HOLDS THE LINE — each
   book spans three rows of the shelf's own grid (jacket, title, genre), so a
   two-line title beside a one-line one cannot push its jacket off the shelf. */
.jb-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: -52px;
}
.jb-book {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  margin-bottom: 52px;
  text-align: center;
}
.jb-book-cover {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
}
/* A real width, not a cap alone: the plate is a container-type box. */
.jb-book-cover .jb-plate {
  flex: 0 1 214px;
  width: min(100%, 214px);
  margin-bottom: -5px;
  filter: var(--drop-md);
  transition: transform 0.22s ease;
}
/* The blank mock-up is a flat board, not a 3-D render: it stands ON the line. */
.jb-book-cover .jb-plate.is-blank {
  margin-bottom: 0;
}
.jb-book-cover:hover .jb-plate {
  transform: translateY(-8px);
}
.jb-book-h {
  margin-top: 22px;
  padding: 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.18;
}
.jb-book-h a {
  color: var(--fg);
}
.jb-book-h a:hover {
  color: var(--label);
}
.jb-book-genre {
  margin-top: 8px;
  padding: 0 10px;
  color: var(--fg-mute);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================== BOOK DETAIL */
.jb-bookhero {
  padding-top: clamp(44px, 4.8vw, 72px);
}
.jb-bookhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 104px);
}
.jb-bookhero-cover .jb-plate {
  filter: var(--drop-lg);
}
/* The jacket lifted over the photograph above it (the block's own switch). */
.jb-bookhero.is-lifted .jb-bookhero-cover {
  position: relative;
  z-index: 1;
  margin-top: -210px;
}
.jb-bookhero-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.5rem, 4.9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: calc(-0.005em * var(--display-tighten, 1));
  color: var(--fg);
}
.jb-bookhero-copy .jb-badge + .jb-bookhero-h1 {
  margin-top: 20px;
}
.jb-status {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.jb-status.is-available {
  color: var(--fg-mute);
}
.jb-status.is-progress {
  color: var(--status);
}
.jb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.jb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  color: var(--fg-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jb-bookhero-copy .jb-body {
  font-size: 18px;
  line-height: 1.75;
}
/* The synopsis opens a size up. */
.jb-bookhero-copy :is(.jb-bookhero-h1, .jb-status, .jb-tags) + .jb-body {
  margin-top: 30px;
  color: var(--fg);
  font-size: 21px;
  line-height: 1.6;
}

/* ========================================================= CHARACTER LIST */
.jb-cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px clamp(32px, 6vw, 88px);
}
.jb-cast-item {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.jb-cast-top {
  display: flex;
  align-items: center;
  gap: 18px;
}
.jb-cast-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 58px;
  height: 58px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.jb-cast-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.05;
}
.jb-cast-role {
  margin-top: 6px;
  color: var(--label);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.jb-cast-body {
  margin-top: 20px;
  color: var(--fg-soft);
  font-size: 16.5px;
  line-height: 1.7;
}

/* ================================================================== PROSE */
.jb-prose-col {
  max-width: calc(720px + 2 * var(--edge));
}
.jb-prose-col.is-wide {
  max-width: calc(880px + 2 * var(--edge));
}
.jb-prose-col > .jb-eyebrow {
  margin-bottom: 14px;
}
.jb-prose-col > .jb-h2 {
  margin-bottom: 30px;
}
.jb-prose-part + .jb-prose-part {
  margin-top: 34px;
}
.jb-prose-part .jb-body {
  font-size: 18.5px;
  line-height: 1.78;
}
.jb-prose-sub {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  color: var(--fg);
}
.jb-prose-list {
  margin-top: 16px;
}
.jb-prose-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule-soft);
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1.6;
}
.jb-prose-list li:last-child {
  border-bottom: 1px solid var(--rule-soft);
}
.jb-prose-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 23px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
/* Three small diamonds close a piece of prose, before its buttons. */
.jb-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.jb-ornament i {
  width: 6px;
  height: 6px;
  background: var(--rule);
  transform: rotate(45deg);
}
.jb-ornament i:nth-child(2) {
  background: var(--accent);
}

/* ================================================================= PRAISE */
/* The first review is set large and takes the left column; the rest run small
   in two columns beside it. One review alone is the large one, full width. */
.jb-praise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px clamp(28px, 4.2vw, 64px);
}
.jb-praise-card {
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  /* The business's reply (ReviewReply) under the name takes the quote's ink. */
  --reply-ink: var(--fg);
}
.jb-praise-card.is-lead {
  grid-row: span 2;
}
.jb-praise-card.is-lead:only-child {
  grid-column: 1 / -1;
  max-width: 860px;
}
.jb-stars {
  color: var(--label);
  font-size: 13px;
  letter-spacing: 0.22em;
}
.jb-praise-text {
  color: var(--fg);
  font-size: 17px;
  line-height: 1.62;
}
.jb-stars + .jb-praise-quote {
  margin-top: 14px;
}
.jb-praise-card.is-lead .jb-praise-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  line-height: 1.2;
}
.jb-praise-card.is-lead .jb-stars + .jb-praise-quote {
  margin-top: 20px;
}
.jb-praise-card footer {
  margin-top: 20px;
}
.jb-praise-card.is-lead footer {
  margin-top: 30px;
}
.jb-praise-name {
  color: var(--fg);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jb-praise-role {
  margin-top: 2px;
  color: var(--fg-mute);
  font-size: 15px;
  font-style: italic;
}

/* ================================================================ JOURNAL */
.jb-post {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.jb-post img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}
.jb-post-meta {
  margin-top: 20px;
  color: var(--fg-mute);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.jb-post-title {
  margin-top: 10px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  transition: color 0.16s ease;
}
.jb-post:hover .jb-post-title {
  color: var(--label);
}
.jb-post-excerpt {
  margin-top: 10px;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.62;
}

/* ============================================================== NEWSLETTER */
/* A band with the invitation on the left and the signup on the right: an
   underlined field and the light button. */
.jb-news {
  padding-block: clamp(56px, 6.2vw, 96px);
}
.jb-news-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6.4vw, 96px);
}
.jb-news-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.06;
  color: #ffffff;
}
.jb-news-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.jb-news-input {
  flex: 1 1 auto;
  /* `width: 0` would let a row shrink the field, but it collapses a STACKED
     field to its padding on a phone; `min-width: 0` plus a real width is the
     shape that works in both. */
  min-width: 0;
  width: 100%;
  min-height: 50px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--text);
  font-size: 18px;
}
.jb-news-input::placeholder {
  color: var(--on-band-mute);
  opacity: 1;
}
.jb-news-input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.jb-news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--on-dark-fill);
  border-radius: var(--r);
  background: var(--on-dark-fill);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.jb-news-btn:hover {
  border-color: #ffffff;
  background: #ffffff;
}
.jb-news-note,
.jb-news-err {
  margin-top: 18px;
  color: var(--on-band-mute);
  font-size: 14px;
  line-height: 1.55;
}
.jb-news-err {
  color: #ffffff;
}
.jb-news-note a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jb-news-done {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: #ffffff;
}

/* ================================================================ PRODUCTS */
/* Signed editions and the bookshop's categories, from the site's own
   catalogue (cart off by default). */
.jb-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 48px clamp(24px, 3.2vw, 44px);
}
.jb-book-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.jb-book-media {
  display: block;
  width: 100%;
}
.jb-book-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--r);
  transition: transform 0.22s ease;
}
.jb-book-media:hover img {
  transform: translateY(-6px);
}
.jb-book-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
}
.jb-book-title a {
  color: var(--fg);
}
.jb-book-title a:hover {
  color: var(--label);
}
.jb-book-meta {
  margin-top: 6px;
  color: var(--fg-mute);
  font-size: 16px;
}
.jb-book-card .jb-link {
  margin-top: 6px;
}

/* ========================================================= TEMPLATE NOTICE */
.jb-notice {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--linen);
}
.jb-notice-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px 40px;
}
.jb-notice-text {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.jb-notice-text a,
.jb-enquiry-fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================ ENQUIRY */
/* The shared form block (components/AppointmentBlock) brings its own band:
   110px above and below, on a 1080px measure inside 24px gutters. So this
   section adds no padding of its own, and the fine print under the form is
   set on the block's measure and pulled up into its bottom padding rather
   than left a hand's width below the card. */
.jb-enquiry {
  background: var(--paper);
  /* The form's fields sit on the paper inside the card, under a firmer line.
     Both are the block's own hooks (`--appt-field-bg` falls back to a fixed
     white): pointed at the page ground, a field keeps its ground with the ink
     under a dark brand override, where a white box carried light lettering at
     1.1:1. */
  --appt-field-bg: var(--paper);
  --appt-field-line: var(--line-strong);
}
/* The browser's own placeholder grey (#757575) is 4.6:1 on a white field and
   4.4:1 on the paper, so the placeholders take the site's meta grey instead:
   5.4:1 here, and it follows the palette with the field's ground. */
.jb-enquiry :is(input, textarea)::placeholder {
  color: var(--ink-mute);
  opacity: 1;
}
.jb-enquiry > .jb-container {
  max-width: 1128px;
  padding-inline: 24px;
}
.jb-enquiry-fine {
  max-width: 62ch;
  margin-top: -62px;
  padding-bottom: clamp(56px, 6vw, 88px);
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================ LEGAL PAGES */
/* richpage.css loses to the reset above on source order, so the prose margins
   are restored here rather than left to it. The page's own first heading is
   set as the page title, over a rule. */
.jb-page .rich-page {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}
.jb-page .rich-page :is(h1, h2, h3, h4) {
  margin: 1.5em 0 0.45em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}
.jb-page .rich-page h1 {
  margin-bottom: 0.6em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.02;
}
.jb-page .rich-page h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}
.jb-page .rich-page h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.65rem);
}
.jb-page .rich-page :is(h1, h2, h3, h4):first-child {
  margin-top: 0;
}
.jb-page .rich-page p {
  margin: 0 0 1.1em;
}
.jb-page .rich-page :is(ul, ol) {
  margin: 0 0 1.1em 1.3em;
  padding-left: 0;
  list-style: revert;
}
.jb-page .rich-page li {
  margin-bottom: 0.5em;
}
.jb-page .rich-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================== FOOTER */
/* The ink again: the wordmark and the site's line on the left, the link
   columns beside them, and the legal line under a hairline. */
.jb-footer {
  background: var(--dark);
}
.jb-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.62fr));
  gap: 44px clamp(24px, 4vw, 64px);
  padding-block: clamp(56px, 6vw, 92px) clamp(44px, 4.6vw, 72px);
}
.jb-footer-word {
  display: inline-block;
  color: #ffffff;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  line-height: 1;
}
.jb-footer-word:hover {
  color: #ffffff;
}
/* The uploaded site logo in place of the wordmark. Block, so the inline link
   around it adds no line box of its own; height-only sizing drops the width
   hint, as .jb-logo-img does. */
.jb-footer-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.jb-footer-blurb {
  margin-top: 20px;
  max-width: 27em;
  color: var(--on-band-mute);
  font-size: 16px;
  line-height: 1.65;
}
.jb-footer-col {
  display: flex;
  flex-direction: column;
}
.jb-footer-head {
  margin-bottom: 14px;
  color: var(--accent-lite);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.jb-footer-col a {
  padding: 6px 0;
  color: var(--on-band-soft);
  font-size: 16.5px;
  line-height: 1.4;
}
.jb-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jb-footer-base {
  padding-block: 24px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-band-mute);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------- Your Privacy Choices */
/* The footer's last line: the shared row from
   components/storefront/PrivacyChoices, set on the footer's own measure and in
   its legal line's type. */
.jb-site .jb-footer .ev-privacy-choices-row {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--edge) 26px;
  text-align: left;
  justify-content: flex-start;
}
.jb-site .jb-footer .ev-privacy-choices {
  color: var(--on-band-mute);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jb-site .jb-footer .ev-privacy-choices:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.jb-site .jb-footer .ev-privacy-choices-icon {
  color: #ffffff;
}

/* =============================================================== LOCATIONS */
/* `.loc-section` and `.loc-detail` re-declare the --loc-* family on
   themselves, so these have to be set ON those selectors — an inherited value
   loses and the block falls back to the app-wide brown. */
.jb-site .loc-section,
.jb-site .loc-detail {
  --loc-heading-font: var(--serif);
  --loc-body-font: var(--text);
  --loc-ink: var(--ink);
  --loc-accent: var(--accent);
  /* The eyebrow, the "near me" button and the card links letter in this; the
     active filter and toggle fills keep the accent. */
  --loc-accent-text: var(--accent-text);
  --loc-border: var(--line-strong);
  --loc-muted: var(--ink-mute);
  --loc-radius: 2px;
  --loc-sticky-top: calc(var(--bar-h) + 28px);
  --loc-map-h: min(calc(100dvh - var(--loc-sticky-top) - 32px), 460px);
  /* `--surface`, NOT `--loc-surface`. The card's own rule is
     `background: var(--surface, #fff)` — there is no `--loc-` prefixed
     spelling of it. Under a dark-page override the ink goes light while a
     white card would stay white. */
  --surface: var(--card);
}
/* Two shared literals that only bite on a re-tinted site: both paint
   `color: #fff` on a `--loc-accent` ground. */
.jb-site .loc-filter button.is-active,
.jb-site .loc-nearme-btn.is-on {
  color: var(--on-accent);
}
/* The venues stand on the linen under the form's paper; a single venue's own
   page stays on the paper. The cards keep the card surface. */
.jb-locs {
  background: var(--linen);
}
.jb-locs.jb-loc-page {
  background: transparent;
}
/* A venue's name is a link to its page: the ink, like every title on the
   site, and the accent on hover. */
.jb-site .loc-card-name .loc-card-link {
  color: var(--ink);
}
.jb-site .loc-card-name .loc-card-link:hover {
  color: var(--accent-text);
}
.jb-site .loc-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.jb-site .loc-heading {
  font-weight: 500;
}
.jb-site .loc-card-name {
  font-weight: 600;
}

/* ============================================================== BREAKPOINTS */
@media (max-width: 1040px) {
  .jb-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jb-feature.has-cover .jb-feature-copy {
    padding-right: 170px;
  }
  .jb-site .jb-feature-cover {
    width: 240px;
  }
  .jb-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jb-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  /* The bar's links collapse into the panel; the burger takes their place. */
  .jb-nav-links {
    display: none;
  }
  .jb-nav-toggle {
    display: block;
  }
  /* The bar sticks, so the page scrolling never moves the panel. On a phone
     held sideways the sheet ran past the bottom of the screen and the last
     link could not be reached. Cap it at the space under the bar — 100% is the
     bar it hangs from — and let it scroll itself. */
  .jb-mobile-menu {
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* As a scroller it would also scroll sideways past a label with no break
       in it, so wrap that instead. `anywhere`, not `break-word`: the sheet and
       its link list are grids, and a grid column never shrinks below its
       widest unbroken word unless that word may break. */
    overflow-wrap: anywhere;
  }
  /* The desktop search sits in the action row beside the cart; the panel
     carries its own mount. `:not(.jb-search-mobile)` IS LOAD-BEARING: the
     panel's mount is `class="jb-search jb-search-mobile"`, so an unqualified
     rule here hides it too and the phone menu ships with no search at all. */
  .jb-site .jb-search:not(.jb-search-mobile) {
    display: none;
  }
  /* The shared cookie pill and consent banner are bottom-`fixed` and render
     OUTSIDE this theme's wrapper, so nothing the nav does with z-index gets
     under them — on a short screen they float on the last rows of the open
     sheet. Hide them while it is open; closing the menu paints both straight
     back, so nothing is dismissed and no consent is implied. Leave
     .ev-consent-overlay alone — the preference center is a real modal. */
  body:has(.jb-site .jb-mobile-menu.is-open) .ev-consent-reopen,
  body:has(.jb-site .jb-mobile-menu.is-open) .ev-consent-banner {
    display: none;
  }
}

@media (max-width: 820px) {
  .jb-site {
    --bar-h: 68px;
    font-size: 16.5px;
  }
  .jb-logo-img {
    /* A wide logo floors the brand at its intrinsic width. */
    max-height: 30px;
  }

  /* Every two-column block stacks. */
  .jb-hero-grid,
  .jb-about-grid,
  .jb-about-grid.is-right,
  .jb-news-inner,
  .jb-bookhero-grid,
  .jb-quote-frame.has-cover,
  .jb-notice-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .jb-hero-art {
    justify-self: center;
    width: min(100%, 400px);
    margin-top: 8px;
  }
  .jb-site .jb-hero-book {
    left: -3%;
    bottom: -7%;
    width: 52%;
  }

  /* The out-now band and a page head: the photograph first, the words under. */
  .jb-feature,
  .jb-banner {
    display: flex;
    flex-direction: column;
  }
  .jb-feature-photo {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .jb-site .jb-feature-cover {
    left: var(--edge);
    top: auto;
    bottom: 0;
    width: 150px;
    transform: translateY(42%);
  }
  .jb-feature-copy,
  .jb-feature.has-cover .jb-feature-copy {
    padding: 56px var(--edge) 64px;
  }
  .jb-feature.has-cover .jb-feature-copy {
    padding-top: 104px;
  }
  .jb-banner-photo,
  .jb-banner.is-tall .jb-banner-photo {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .jb-banner-copy {
    padding: 40px var(--edge) 48px;
  }
  .jb-banner.is-bare .jb-banner-photo,
  .jb-banner.is-bare.is-tall .jb-banner-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .jb-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: -40px;
  }
  .jb-book {
    margin-bottom: 40px;
  }
  .jb-next-grid,
  .jb-grid3,
  .jb-praise-grid,
  .jb-cast-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked, the rule between two works runs ACROSS, above each after the
     first. */
  .jb-next-grid {
    row-gap: 0;
  }
  .jb-next-item + .jb-next-item {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--rule);
  }
  .jb-next-item::before {
    content: none;
  }
  .jb-praise-card.is-lead {
    grid-row: auto;
  }
  .jb-about-grid.is-right .jb-about-media {
    order: 0;
  }
  .jb-about-media {
    max-width: 440px;
  }
  .jb-quote-cover {
    max-width: 170px;
  }
  .jb-bookhero-cover {
    max-width: 250px;
  }
  .jb-bookhero.is-lifted .jb-bookhero-cover {
    margin-top: -150px;
  }
  .jb-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jb-news-row {
    flex-direction: column;
  }
  .jb-marquee-item {
    font-size: 21px;
  }
}

/* A reader who has asked for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  html:has(.jb-site) {
    scroll-behavior: auto;
  }
  .jb-site *,
  .jb-site *::before,
  .jb-site *::after {
    transition: none !important;
  }
  .jb-book-cover:hover .jb-plate,
  .jb-book-media:hover img,
  .jb-link:hover .jb-arrow {
    transform: none;
  }
}
