/* Jeremy Payton: the reading room. Parchment pages, ink bands where the books live. */

:root {
	--jp-head: 'Fraunces', Georgia, serif;
	--jp-body: 'Source Serif 4', Georgia, serif;
	--jp-text: #241B16;
	--jp-muted: #74675D;
	--jp-accent: #8F1414;
	--jp-gold: #B88A3B;
	--jp-gold-t: #7A5620;
	--jp-bg: #F7F1E7;
	--jp-surface: #FFFDF8;
	--jp-border: #D8CABB;
	--jp-ink: #1B1411;
	--jp-ink-text: #EFE6D6;
	--jp-ink-head: #F7F1E7;
	--jp-ink-kick: #D4AE6A;
	--jp-pad: 48px;
	--jp-max: 1200px;
}

/* ------------------------------------------------ reset of the parent's spacing */
html { scroll-padding-top: 20px; }
body { background: var(--jp-bg); color: var(--jp-text); font-family: var(--jp-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.jp-main { margin: 0 !important; padding: 0 !important; }
.jp-main > * { margin-block-start: 0; margin-block-end: 0; }
.jp-main img { max-width: 100%; height: auto; }
a { color: var(--jp-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--jp-gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--jp-head); font-weight: 600; color: var(--jp-text); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 1000; background: var(--jp-surface); padding: 10px 16px; border-radius: 6px; }

.jp-in { max-width: var(--jp-max); margin: 0 auto; padding: 0 var(--jp-pad); box-sizing: content-box; }

/* ------------------------------------------------ small pieces */
.jp-kick { font: 700 13px/1.2 var(--jp-body); letter-spacing: .14em; text-transform: uppercase; color: var(--jp-accent); margin: 0 0 10px; }
.jp-kick--gold, .jp-ink .jp-kick { color: var(--jp-ink-kick); }
.jp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.jp-btn, .jp-news button, .wp-block-search__button, .jp-main .search-form button, .jp-main input[type=submit] {
	display: inline-block; background: var(--jp-accent); color: #fff !important; font: 700 16px/1.2 var(--jp-body);
	padding: 13px 22px; border-radius: 7px; border: 1.5px solid var(--jp-accent); text-decoration: none !important; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.jp-btn:hover { background: #6f0f0f; border-color: #6f0f0f; }
.jp-btn--gold { background: var(--jp-gold); border-color: var(--jp-gold); color: var(--jp-ink) !important; }
.jp-btn--gold:hover { background: #cfa052; border-color: #cfa052; }
.jp-btn--ghost { background: transparent; border-color: var(--jp-ink-head); color: var(--jp-ink-head) !important; }
.jp-btn--ghost:hover { background: rgba(247, 241, 231, .12); border-color: var(--jp-ink-head); }
.jp-btn--ghost-dark { background: transparent; border-color: var(--jp-text); color: var(--jp-text) !important; }
.jp-btn--ghost-dark:hover { background: var(--jp-text); color: var(--jp-bg) !important; border-color: var(--jp-text); }
.jp-more { color: var(--jp-accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.jp-ink .jp-more { color: var(--jp-ink-kick); }
.jp-small { font-size: 14px; color: var(--jp-muted); margin-top: 14px; }
.jp-mb { margin-bottom: 22px !important; }

.jp-sec { padding: 72px 0; }
.jp-sec--flush { padding-top: 0; }
.jp-sec--tight { padding: 48px 0; }
.jp-sec h2, .jp-sechead h2 { font-size: 38px; line-height: 1.15; margin: 0; }
.jp-sechead { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.jp-sub { color: var(--jp-muted); font-size: 17px; margin: 8px 0 0; }

.jp-ink { background: var(--jp-ink); color: var(--jp-ink-text); }
.jp-ink h1, .jp-ink h2, .jp-ink h3 { color: var(--jp-ink-head); }
.jp-ink .jp-sub { color: #CDBFA9; }
.jp-ink a:not(.jp-btn) { color: var(--jp-ink-kick); }

/* ------------------------------------------------ header */
.jp-header { position: relative; z-index: 50; }
.jp-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--jp-pad); background: var(--jp-surface); border-bottom: 1px solid var(--jp-border); }
.jp-logo { font: 600 26px/1 var(--jp-head); color: var(--jp-text) !important; text-decoration: none !important; letter-spacing: -.005em; }
.jp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.jp-nav a { font-size: 16px; font-weight: 600; color: var(--jp-text); text-decoration: none; }
.jp-nav a:hover, .jp-nav a[aria-current] { color: var(--jp-accent); }
.jp-nav__cta { margin-left: 4px; }
.jp-nav__cta .jp-btn { padding: 11px 20px; }
.jp-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: var(--jp-text); }
.jp-burger span[aria-hidden] { display: block; position: relative; height: 2px; background: currentColor; border-radius: 2px; }
.jp-burger span[aria-hidden]::before, .jp-burger span[aria-hidden]::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.jp-burger span[aria-hidden]::before { top: -8px; }
.jp-burger span[aria-hidden]::after { top: 8px; }
.jp-burger[aria-expanded=true] span[aria-hidden] { background: transparent; }
.jp-burger[aria-expanded=true] span[aria-hidden]::before { transform: translateY(8px) rotate(45deg); }
.jp-burger[aria-expanded=true] span[aria-hidden]::after { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------ home hero */
.jp-hero { position: relative; height: 560px; background: #0f0b09; overflow: hidden; }
.jp-hero__pic, .jp-hero__pic img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; }
.jp-hero__pic img { object-fit: cover; object-position: left center; }
.jp-hero__t { position: absolute; right: max(64px, calc((100% - 1296px) / 2 + 64px)); top: 95px; width: 520px; color: var(--jp-ink-text); }
.jp-hero h1 { font-size: 58px; line-height: 1.05; color: var(--jp-ink-head); margin: 0 0 18px; letter-spacing: -.01em; }
.jp-hero p { font-size: 20px; line-height: 1.5; opacity: .92; margin: 0; }

/* ------------------------------------------------ covers and the shelf */
.jp-cover { display: inline-block; --h: 190px; height: var(--h); line-height: 0; }
.jp-cover img, .jp-cover .jp-cover__img { display: block; width: auto !important; max-width: none !important; height: calc(var(--h) / var(--r)) !important;
	margin: calc(var(--h) / var(--r) * var(--pt) * -1) auto calc(var(--h) / var(--r) * var(--pb) * -1); }
.jp-shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; align-items: end; }
.jp-shelf__b { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; min-height: 250px; font-size: 13px; color: #CDBFA9 !important; text-decoration: none !important; }
.jp-shelf__b .jp-cover { margin-bottom: 12px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); transition: transform .2s; }
.jp-shelf__b:hover .jp-cover { transform: translateY(-4px); }
.jp-shelf__b span:last-child { display: block; height: 2.8em; line-height: 1.4; }
.jp-shelf__b:hover span:last-child { color: var(--jp-ink-head); }

/* ------------------------------------------------ cards */
.jp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.jp-card { background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.jp-card__img { display: block; background: #e9dfd0; }
.jp-card__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.jp-card__b { padding: 16px 20px 20px; }
.jp-label { font: 700 12px/1.3 var(--jp-body); letter-spacing: .1em; text-transform: uppercase; color: var(--jp-accent); text-decoration: none; }
.jp-card__t { font-size: 21px !important; line-height: 1.25 !important; margin: 6px 0 8px !important; }
.jp-card__t a { color: var(--jp-text); text-decoration: none; }
.jp-card__t a:hover { color: var(--jp-accent); }
.jp-card__m { font-size: 14px; color: var(--jp-muted); }

/* ------------------------------------------------ topic concordance */
.jp-conc { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--jp-border); }
.jp-conc a { padding: 18px 16px; border-bottom: 1px solid var(--jp-border); border-right: 1px solid var(--jp-border); font-size: 15px; color: var(--jp-text); text-decoration: none; transition: background .15s; }
.jp-conc a:nth-child(4n) { border-right: 0; }
.jp-conc a:hover { background: var(--jp-surface); }
.jp-conc b { font: 600 20px/1.25 var(--jp-head); display: block; margin-bottom: 4px; }
.jp-conc a:hover b { color: var(--jp-accent); }
.jp-conc span { color: var(--jp-muted); font-size: 13px; }
.jp-conc i { font-style: normal; }

/* ------------------------------------------------ reviews */
.jp-sec--revs .jp-in { margin-bottom: 28px; }
/* Without JS or with reduced motion: a static grid that wraps. With JS: .is-marquee, a strip that
   scrolls by itself (cards duplicated in jp.js, copies aria-hidden), paused on hover and focus. */
.jp-revs { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: var(--jp-max); margin: 0 auto; padding: 4px var(--jp-pad) 18px; box-sizing: border-box; }
.jp-rev { flex: 0 1 340px; margin: 0; background: #261c17; border: 1px solid #3a2d25; border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; box-sizing: border-box; }
.jp-revs.is-marquee { display: block; max-width: none; padding: 4px 0 18px; overflow: hidden; }
.jp-revs__track { display: flex; width: max-content; animation: jp-marquee var(--jp-marquee-dur, 60s) linear infinite; will-change: transform; }
.jp-revs.is-marquee .jp-rev { flex: 0 0 auto; width: min(340px, 78vw); margin-right: 22px; }
.jp-revs.is-marquee:hover .jp-revs__track, .jp-revs.is-marquee:focus-within .jp-revs__track { animation-play-state: paused; }
@keyframes jp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.jp-revs__track { animation: none; }
}
.jp-rev__stars { color: var(--jp-gold); letter-spacing: .12em; font-size: 15px; margin-bottom: 10px; }
.jp-rev blockquote { margin: 0 0 16px; padding: 0; border: 0; flex: 1; }
.jp-rev blockquote p { font-size: 17px; line-height: 1.55; font-style: italic; margin: 0; color: var(--jp-ink-text); }
.jp-rev figcaption { font-size: 14px; color: #CDBFA9; }
.jp-rev figcaption b { display: block; color: var(--jp-ink-head); font-size: 15px; }

/* ------------------------------------------------ about */
.jp-about { background: var(--jp-surface); border-top: 1px solid var(--jp-border); border-bottom: 1px solid var(--jp-border); }
.jp-about__g { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.jp-about figure { margin: 0; }
.jp-about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; }
.jp-about figcaption { font-size: 13px; color: var(--jp-muted); margin-top: 8px; line-height: 1.45; }
.jp-about h2 { margin-bottom: 18px !important; }
.jp-about p { font-size: 19px; margin: 0 0 1em; }
.jp-drop::first-letter { font-family: var(--jp-head); font-weight: 700; float: left; font-size: 76px; line-height: .8; padding: 8px 10px 0 0; color: var(--jp-accent); }
.jp-drop a:first-child::first-letter { color: var(--jp-accent); }

/* ------------------------------------------------ newsletter */
.jp-news { background: var(--jp-accent); color: #fff; border-radius: 10px; padding: 44px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.jp-news h2 { color: #fff !important; font-size: 32px !important; line-height: 1.15; margin: 0 0 10px !important; }
.jp-news__t p { opacity: .92; font-size: 17px; margin: 0; }
.jp-news__row { display: flex; gap: 10px; }
.jp-news input[type=email] { flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 7px; padding: 0 16px; font: 17px var(--jp-body); color: var(--jp-text); background: #fff; }
.jp-news button { background: var(--jp-text); border-color: var(--jp-text); padding: 14px 20px; }
.jp-news button:hover { background: #000; border-color: #000; }
.jp-news__small { font-size: 13px; opacity: .85; margin: 10px 0 0; }
.jp-news__small a { color: #fff; }
.jp-news--compact { grid-template-columns: 1fr; gap: 18px; padding: 30px 32px; margin: 30px 0; }
.jp-news--compact h2 { font-size: 26px !important; }

/* ------------------------------------------------ footer */
.jp-foot { background: var(--jp-text); color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.6; }
.jp-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; max-width: var(--jp-max); margin: 0 auto; padding: 48px var(--jp-pad) 28px; box-sizing: content-box; }
.jp-foot .jp-logo { color: #fff !important; font-size: 22px; display: inline-block; margin-bottom: 10px; }
.jp-foot p { margin: 0 0 8px; }
.jp-foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.jp-foot a:hover { color: #fff; text-decoration: underline; }
.jp-foot__t { font: 700 14px/1.2 var(--jp-body) !important; color: #fff !important; margin: 0 0 10px !important; letter-spacing: .02em; }
.jp-foot ul { list-style: none; margin: 0; padding: 0; }
.jp-foot li { margin: 0 0 5px; }
.jp-foot__pub { max-width: var(--jp-max); margin: 0 auto; padding: 16px var(--jp-pad) 28px; box-sizing: content-box; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ------------------------------------------------ article */
.jp-phead { max-width: 880px; padding: 56px var(--jp-pad) 28px; margin: 0 auto; box-sizing: content-box; }
.single .jp-phead { margin-left: max(0px, calc((100% - var(--jp-max) - 2 * var(--jp-pad)) / 2)); }
.jp-crumb { font-size: 13px; color: var(--jp-muted); margin-bottom: 14px; }
.jp-crumb a { color: var(--jp-muted); text-decoration: none; }
.jp-crumb b { color: var(--jp-accent); }
.jp-h1, h1.jp-h1 { font-size: 52px !important; line-height: 1.08 !important; margin: 0 !important; letter-spacing: -.01em; }
.jp-deckp { font-size: 22px; color: var(--jp-muted); line-height: 1.45; margin: 14px 0 0; }
.jp-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--jp-muted); margin-top: 18px; }
.jp-meta a { color: var(--jp-text); text-decoration: none; }
.jp-meta__av { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.jp-phero { max-width: var(--jp-max); margin: 0 auto 40px; padding: 0 var(--jp-pad); box-sizing: content-box; }
.jp-phero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; max-height: 560px; display: block; }

.jp-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; max-width: var(--jp-max); margin: 0 auto !important; padding: 0 var(--jp-pad) 64px; box-sizing: content-box; }
.jp-wrap > * { margin: 0 !important; }
.jp-body { max-width: 68ch; min-width: 0; }
.jp-content { font-size: 19px; line-height: 1.72; }
.jp-content > * { margin-block: 0 1.1em; }
.jp-content h2 { font-size: 32px; line-height: 1.18; margin: 1.6em 0 .55em; scroll-margin-top: 24px; }
.jp-content h3 { font-size: 24px; line-height: 1.25; margin: 1.4em 0 .5em; }
.jp-content h4 { font-size: 20px; margin: 1.2em 0 .4em; }
.jp-content > h2:first-child, .jp-content > h3:first-child { margin-top: 0; }
.jp-content blockquote, .jp-content .wp-block-quote { border-left: 3px solid var(--jp-gold); margin: 1.4em 0; padding: 4px 0 4px 20px; font-style: italic; color: #3a2d25; }
.jp-content figure { margin: 1.6em 0; }
.jp-content figure img { border-radius: 6px; }
.jp-content figcaption { font-size: 14px; color: var(--jp-muted); text-align: center; }
.jp-content ul, .jp-content ol { padding-left: 1.3em; }
.jp-content li { margin-bottom: .35em; }
.jp-content .wp-block-image.alignfull, .jp-content .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }

.jp-toc { position: sticky; top: 24px; align-self: start; font-size: 14px; border-left: 2px solid var(--jp-border); padding-left: 16px; }
.jp-toc:empty { display: none; }
.jp-toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: var(--jp-text); }
.jp-toc a { display: block; padding: 5px 0; color: var(--jp-muted); line-height: 1.35; text-decoration: none; }
.jp-toc a:hover { color: var(--jp-text); }
.jp-toc a.on { color: var(--jp-accent); font-weight: 700; }

.jp-box { border: 1px solid var(--jp-border); background: var(--jp-surface); border-radius: 8px; padding: 20px 24px; margin: 26px 0; font-size: 16.5px; line-height: 1.55; }
.jp-box__h { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--jp-accent); margin-bottom: 8px; }
.jp-bookbox { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.jp-bookbox__c { display: flex; justify-content: center; }
.jp-bookbox .jp-cover { --h: 150px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.jp-bookbox__t { font: 600 22px/1.2 var(--jp-head); margin-bottom: 6px; }
.jp-bookbox p { margin: 0 0 12px; }
.jp-auth { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; border-top: 1px solid var(--jp-border); padding-top: 26px; margin-top: 30px; font-size: 16px; line-height: 1.55; }
.jp-auth__img { width: 96px !important; height: 120px !important; object-fit: cover; border-radius: 8px; }

.jp-comments { background: var(--jp-surface); border-top: 1px solid var(--jp-border); }
.jp-comments > .wp-block-comments { max-width: 720px; margin: 0 auto; padding: 56px var(--jp-pad) 64px; box-sizing: content-box; }
.jp-comments .wp-block-comments-title { font-size: 28px; margin-bottom: 28px; }
.jp-comments .wp-block-comment-template { padding: 0; margin: 0 0 32px; }
.jp-comments .wp-block-comment-template li { list-style: none; margin-bottom: 24px; }
.jp-comments .wp-block-comment-content { background: var(--jp-bg); border-radius: 6px; padding: 14px 16px; font-size: 17px; }
.jp-comments .wp-block-comment-author-name { font-weight: 700; font-size: 16px; }
.jp-comments .wp-block-comment-date, .jp-comments .wp-block-comment-edit-link { font-size: 13px; color: var(--jp-muted); }
.jp-comments .wp-block-comment-date a { color: var(--jp-muted); text-decoration: none; }
.jp-comments .wp-block-comment-reply-link a { font-size: 14px; font-weight: 700; }
.jp-comments textarea, .jp-comments input[type=text], .jp-comments input[type=email], .jp-comments input[type=url] { width: 100%; border: 1px solid var(--jp-border); border-radius: 6px; padding: 10px 12px; font: 17px var(--jp-body); background: #fff; box-sizing: border-box; }
.jp-comments .comment-reply-title { font-size: 24px; }
.jp-comments .wp-block-comments-pagination { margin: 16px 0 32px; }

/* ------------------------------------------------ pages */
.jp-pagehead { padding: 56px var(--jp-pad) 20px !important; }
.jp-pagehead .jp-h1 { margin: 0 auto !important; }
.jp-page { padding: 0 var(--jp-pad) 72px; font-size: 19px; line-height: 1.72; }
.jp-page > * { margin-block: 0 1.1em; }
.jp-page h2 { font-size: 32px; margin-top: 1.5em; margin-bottom: .5em; }
.jp-page .alignwide { max-width: var(--jp-max) !important; }

/* blog page 53: chips, search, grid */
.jp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-chips a { display: inline-block; font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--jp-border); border-radius: 999px; background: var(--jp-surface); color: var(--jp-text); text-decoration: none; line-height: 1.3; }
.jp-chips a:hover { border-color: var(--jp-accent); color: var(--jp-accent); }
.jp-page .wp-block-search { margin-bottom: 2em; }
.wp-block-search__input, .jp-main input[type=search] { border: 1px solid var(--jp-border); border-radius: 7px; padding: 12px 14px; font: 17px var(--jp-body); background: #fff; }
.wp-block-search__inside-wrapper { gap: 8px; }
.jp-bloggrid { max-width: var(--jp-max) !important; width: auto; margin-left: auto !important; margin-right: auto !important; margin-top: 2em !important; }
.jp-pag { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 16px; }
.jp-pag .page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: 9px 12px; border: 1px solid var(--jp-border); border-radius: 6px; background: var(--jp-surface); color: var(--jp-text); text-decoration: none; }
.jp-pag .page-numbers.current { background: var(--jp-text); border-color: var(--jp-text); color: var(--jp-bg); }
.jp-pag .page-numbers.dots { border: 0; background: none; }
.jp-pag a.page-numbers:hover { border-color: var(--jp-accent); color: var(--jp-accent); }

/* archive head */
.jp-ahead { padding: 56px 0 8px; }
.jp-ahead .jp-h1 { margin-bottom: 16px !important; }
.jp-ahead__g { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.jp-ahead__d { font-size: 19px; line-height: 1.65; max-width: 68ch; color: #3a2d25; }
.jp-ahead__d p { margin: 0 0 1em; }
.jp-bookbox--side { margin: 0; }
.jp-bookbox--side .jp-cover { --h: 130px; }

/* book page */
.jp-bhead { padding: 64px 0 48px; }
.jp-bhead__g { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.jp-bhead__c { background: var(--jp-ink); border-radius: 8px; padding: 36px 0; text-align: center; }
.jp-bhead__c .jp-cover { --h: 400px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)); }
.jp-bhead .jp-deckp { margin-top: 16px; }
.jp-points { font-size: 18px; margin: 22px 0 0; padding-left: 22px; line-height: 1.55; }
.jp-points li { margin-bottom: 8px; }
.jp-bookbody { border-top: 1px solid var(--jp-border); padding-top: 48px !important; }
/* The first "Buy Now" and the cover right after it repeat the head above: hidden, not deleted. */
.jp-bookcontent > .wp-block-buttons:first-child, .jp-bookcontent > .wp-block-buttons:first-child + .wp-block-image,
.jp-bookcontent > .wp-block-buttons:first-child + figure { display: none; }
.jp-bookcontent .wp-block-button__link { background: var(--jp-accent); border: 0; border-radius: 7px; padding: 13px 22px; font-weight: 700; }
.jp-bookcontent .wp-block-quote { border-left: 3px solid var(--jp-gold); padding-left: 20px; font-style: italic; }

/* /books/ */
.jp-books { display: grid; gap: 56px; }
.jp-bgroup__h { border-bottom: 1px solid var(--jp-border); padding-bottom: 12px; margin-bottom: 8px; }
.jp-bgroup__h p { color: var(--jp-muted); margin: 0; font-size: 17px; }
.jp-bitem { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--jp-border); }
.jp-bitem:last-child { border-bottom: 0; }
.jp-bitem__c { background: var(--jp-ink); border-radius: 8px; padding: 26px 0; display: flex; justify-content: center; }
.jp-bitem__c .jp-cover { --h: 230px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); }
.jp-bitem h2 { font-size: 32px !important; margin: 0 0 12px !important; }
.jp-bitem h2 a { color: var(--jp-text); text-decoration: none; }
.jp-bitem p { font-size: 18px; line-height: 1.65; margin: 0; }
.jp-bitem .jp-btns { margin-top: 20px; }

/* /topics/ */
.jp-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.jp-topic { display: grid; grid-template-columns: 1fr 120px; gap: 24px; background: var(--jp-surface); border: 1px solid var(--jp-border); border-radius: 8px; padding: 26px 28px; align-items: start; }
.jp-topic h2 { font-size: 26px !important; margin: 0 0 4px !important; }
.jp-topic h2 a { color: var(--jp-text); text-decoration: none; }
.jp-topic h2 a:hover { color: var(--jp-accent); }
.jp-topic p { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.jp-topic__l { font-style: italic; color: var(--jp-muted); }
.jp-topic__cats a { display: inline-block; font-size: 13px; font-weight: 600; margin: 0 10px 4px 0; }
.jp-topic__book { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; text-align: center; color: var(--jp-muted); text-decoration: none; line-height: 1.3; }
.jp-topic__book .jp-cover { --h: 130px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }

/* /start-here/ */
.jp-thanks { background: #eaf1e4; border: 1px solid #b9cfa9; border-radius: 8px; padding: 16px 20px; margin-bottom: 32px; font-size: 17px; }
.jp-paths { display: grid; gap: 64px; }
.jp-path { display: grid; grid-template-columns: 64px 1fr; gap: 28px; }
.jp-path__n { font: 700 64px/1 var(--jp-head); color: var(--jp-accent); }
.jp-path h2 { font-size: 34px !important; margin: 0 0 8px !important; }
.jp-path__b > p { color: var(--jp-muted); font-size: 18px; margin: 0 0 24px; }

/* 404 */
.jp-404 .jp-h1 { margin-bottom: 8px !important; }
.jp-404 form { margin-top: 24px; max-width: 560px; }
.jp-main .search-form { display: flex; gap: 8px; }
.jp-main .search-form label { flex: 1; }
.jp-main .search-form input[type=search] { width: 100%; box-sizing: border-box; }

/* ------------------------------------------------ tablet */
@media (max-width: 1100px) {
	:root { --jp-pad: 32px; }
	.jp-nav ul { gap: 18px; }
	.jp-hero__t { right: 40px; width: 460px; top: 70px; }
	.jp-hero h1 { font-size: 48px; }
	.jp-shelf { grid-template-columns: repeat(7, 150px); overflow-x: auto; padding-bottom: 10px; }
	.jp-wrap { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
	.jp-about__g { grid-template-columns: 300px 1fr; gap: 40px; }
	.jp-bhead__g { grid-template-columns: 340px 1fr; gap: 40px; }
	.jp-bhead__c .jp-cover { --h: 320px; }
	.jp-topics { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ phone */
@media (max-width: 860px) {
	.jp-burger { display: block; }
	.jp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--jp-surface); border-bottom: 1px solid var(--jp-border); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
	.jp-nav.is-open { display: block; }
	.jp-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--jp-pad) 20px; }
	.jp-nav li a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--jp-border); }
	.jp-nav__cta { margin: 14px 0 0; }
	.jp-nav__cta .jp-btn { display: block; text-align: center; border-bottom: 0; }
	.jp-header { position: relative; }
	.jp-wrap { grid-template-columns: 1fr; }
	.jp-toc { display: none; }
	.jp-ahead__g { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
	:root { --jp-pad: 20px; }
	body { font-size: 18px; }
	.jp-bar { padding: 14px 20px; }
	.jp-logo { font-size: 21px; }

	.jp-hero { height: 520px; }
	.jp-hero__pic img { object-position: center top; }
	.jp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(15, 11, 9, .92), rgba(15, 11, 9, 0)); }
	.jp-hero__t { z-index: 1; }
	.jp-hero__t { left: 22px; right: 22px; top: auto; bottom: 30px; width: auto; }
	.jp-hero h1 { font-size: 36px; margin-bottom: 0; }
	.jp-hero p, .jp-hero .jp-kick { display: none; }
	.jp-hero .jp-btns { margin-top: 18px; }
	.jp-hero .jp-btn--ghost { display: none; }

	.jp-sec { padding: 44px 0; }
	.jp-sec--flush { padding-top: 0; }
	.jp-sec h2, .jp-sechead h2 { font-size: 28px; }
	.jp-sechead { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 20px; }
	.jp-ink.jp-sec { padding: 28px 0 30px; }

	.jp-shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--jp-pad)); padding: 0 var(--jp-pad) 8px; }
	.jp-shelf__b { flex: 0 0 auto; min-height: 0; scroll-snap-align: start; width: 118px; }
	.jp-shelf__b .jp-cover { --h: 150px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }

	.jp-cards { grid-template-columns: 1fr; gap: 18px; }
	.jp-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; align-items: start; }
	.jp-card__img img { border-radius: 6px; }
	.jp-card__b { padding: 0; }
	.jp-card__t { font-size: 17px !important; margin: 2px 0 4px !important; }
	.jp-label { font-size: 11px; }
	.jp-card__m { font-size: 13px; }

	.jp-conc { grid-template-columns: 1fr; border-top: 0; }
	.jp-conc a { border-right: 0; padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
	.jp-conc b { font-size: 17px; margin: 0; }
	.jp-conc span { white-space: nowrap; }
	.jp-conc .jp-conc__line { display: none; }

	.jp-rev { padding: 18px 20px; }
	.jp-revs:not(.is-marquee) { flex-direction: column; align-items: stretch; }
	.jp-revs:not(.is-marquee) .jp-rev { flex-basis: auto; }

	.jp-about__g { grid-template-columns: 1fr; gap: 24px; }
	.jp-about figure { max-width: 320px; }

	.jp-news { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
	.jp-news h2 { font-size: 26px !important; }
	.jp-news__row { flex-direction: column; }
	.jp-news button { width: 100%; }

	.jp-foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; }
	.jp-foot__brand { grid-column: 1 / -1; }
	.jp-foot__pub { flex-direction: column; }

	.jp-phead { padding: 32px var(--jp-pad) 20px; }
	.jp-h1, h1.jp-h1 { font-size: 34px !important; line-height: 1.12 !important; }
	.jp-deckp { font-size: 19px; }
	.jp-phero { padding: 0; margin-bottom: 28px; }
	.jp-phero img { border-radius: 0; }
	.jp-wrap { padding-bottom: 40px; }
	.jp-content { font-size: 18px; }
	.jp-content h2 { font-size: 27px; }
	.jp-content h3 { font-size: 22px; }
	.jp-bookbox { grid-template-columns: 90px 1fr; gap: 16px; padding: 18px; }
	.jp-bookbox .jp-cover { --h: 115px; }
	.jp-auth { grid-template-columns: 72px 1fr; gap: 16px; font-size: 15px; }
	.jp-auth__img { width: 72px !important; height: 90px !important; }
	.jp-comments > .wp-block-comments { padding-top: 40px; }

	.jp-pagehead { padding-top: 32px !important; }
	.jp-page { font-size: 18px; padding-bottom: 48px; }
	.jp-ahead { padding-top: 32px; }

	.jp-bhead { padding: 28px 0 32px; }
	.jp-bhead__g { grid-template-columns: 1fr; gap: 24px; }
	.jp-bhead__c { padding: 24px 0; }
	.jp-bhead__c .jp-cover { --h: 260px; }
	.jp-points { font-size: 17px; }

	.jp-bitem { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
	.jp-bitem__c .jp-cover { --h: 200px; }
	.jp-bitem h2 { font-size: 26px !important; }
	.jp-bitem p { font-size: 17px; }
	.jp-topic { grid-template-columns: 1fr 80px; padding: 20px; gap: 14px; }
	.jp-topic__book .jp-cover { --h: 90px; }
	.jp-topic__book span { display: none; }
	.jp-path { grid-template-columns: 1fr; gap: 6px; }
	.jp-path__n { font-size: 44px; }
	.jp-path h2 { font-size: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
