/**
 * Leafline: design system and site-wide styles.
 *
 * Tokens: colors and fonts are overridden per site from the Customizer
 * (inline :root block). Everything else references these variables.
 *
 * Sections:
 *  1. Tokens  2. Base  3. Layout  4. Buttons & forms  5. Header & navigation
 *  6. Hero  7. Home sections  8. Blog & pages  9. Footer  10. Components
 *  11. Responsive  12. Motion & print
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--ll-ink: #18263b;
	--ll-ink-hover: #3e4a5b;
	--ll-on-ink: #ffffff;
	--ll-accent: #f0b429;
	--ll-accent-hover: #d8a225;
	--ll-on-accent: #18263b;
	--ll-paper: #f3f3ee;
	--ll-paper-deep: #eaeae5;
	--ll-surface: #ffffff;
	--ll-muted: #566072;
	--ll-rule: #d9dad2;
	--ll-rule-strong: #b9bbb1;
	--ll-success: #1f6f43;
	--ll-success-bg: #e6f2ea;
	--ll-error: #a12b25;
	--ll-error-bg: #f9e8e6;
	--ll-info-bg: #e8edf4;
	--ll-font-heading: Literata, Georgia, "Times New Roman", serif;
	--ll-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Type scale: perfect fourth (1.333) from a 17px base. */
	--ll-text-xs: 0.8125rem;
	--ll-text-sm: 0.9375rem;
	--ll-text-base: 1.0625rem;
	--ll-text-md: 1.25rem;
	--ll-text-lg: clamp(1.375rem, 1.2rem + 0.6vw, 1.6rem);
	--ll-text-xl: clamp(1.7rem, 1.4rem + 1.2vw, 2.15rem);
	--ll-text-2xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
	--ll-text-3xl: clamp(2.4rem, 1.7rem + 3.2vw, 4rem);

	/* Spacing: 4px grid. */
	--ll-space-1: 0.25rem;
	--ll-space-2: 0.5rem;
	--ll-space-3: 0.75rem;
	--ll-space-4: 1rem;
	--ll-space-5: 1.5rem;
	--ll-space-6: 2rem;
	--ll-space-7: 3rem;
	--ll-space-8: 4rem;
	--ll-section-space: 5rem;
	--ll-container: 1240px;
	--ll-narrow: 720px;
	--ll-gutter: clamp(1rem, 4vw, 2rem);

	/* Radius by hierarchy: covers are books, not cards. */
	--ll-radius-cover: 2px;
	--ll-radius-control: 6px;
	--ll-radius-panel: 10px;
	--ll-shadow-cover: 0 1px 2px rgba(24, 38, 59, 0.12), 0 8px 24px -10px rgba(24, 38, 59, 0.35);
	--ll-shadow-pop: 0 18px 48px -16px rgba(24, 38, 59, 0.35);
	--ll-focus: 0 0 0 2px var(--ll-paper), 0 0 0 4px var(--ll-ink);
	--ll-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ll-header-h: 72px;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ll-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--ll-paper);
	color: var(--ll-ink);
	font-family: var(--ll-font-body);
	font-size: var(--ll-text-base);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ll-font-heading);
	font-weight: 560;
	line-height: 1.15;
	letter-spacing: -0.012em;
	margin: 0 0 var(--ll-space-4);
	color: var(--ll-ink);
	text-wrap: balance;
	font-optical-sizing: auto;
}
h1 { font-size: var(--ll-text-2xl); }
h2 { font-size: var(--ll-text-xl); }
h3 { font-size: var(--ll-text-md); }
h4 { font-size: var(--ll-text-base); }

p { margin: 0 0 var(--ll-space-4); text-wrap: pretty; }

a {
	color: var(--ll-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { display: inline-block; flex: none; vertical-align: middle; }

:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--ll-ink);
	outline-offset: 3px;
	border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--ll-rule); margin: var(--ll-space-7) 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--ll-space-3); border-bottom: 1px solid var(--ll-rule); vertical-align: top; }

blockquote {
	margin: var(--ll-space-6) 0;
	padding-left: var(--ll-space-5);
	border-left: 3px solid var(--ll-accent);
	font-family: var(--ll-font-heading);
	font-size: var(--ll-text-md);
	font-style: italic;
}

code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
pre { background: var(--ll-surface); border: 1px solid var(--ll-rule); padding: var(--ll-space-4); overflow-x: auto; border-radius: var(--ll-radius-control); }

::selection { background: var(--ll-accent); color: var(--ll-on-accent); }

.skip-link:focus { position: fixed !important; }

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

.site-main { padding-bottom: var(--ll-section-space); min-height: 50vh; }

.page-header { padding-block: var(--ll-space-6) var(--ll-space-6); }
.page-title { font-size: var(--ll-text-2xl); margin-bottom: var(--ll-space-3); }
.page-title--display { font-size: var(--ll-text-3xl); font-weight: 480; }
.archive-description { color: var(--ll-muted); max-width: 62ch; }
.archive-description p:last-child { margin-bottom: 0; }

.content-layout { display: block; }
.has-blog-sidebar .content-layout,
.article-layout.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--ll-space-8);
	align-items: start;
}
.sidebar { position: sticky; top: calc(var(--ll-header-h) + 1rem); font-size: var(--ll-text-sm); }
.widget { margin-bottom: var(--ll-space-6); }
.widget-title { font-family: var(--ll-font-body); font-size: var(--ll-text-sm); font-weight: 650; margin-bottom: var(--ll-space-3); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: var(--ll-space-2) 0; border-bottom: 1px solid var(--ll-rule); }

/* 4. Buttons & forms ------------------------------------------------------- */
.button,
button.button,
.wp-element-button,
.wp-block-button__link,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ll-space-2);
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	border: 1px solid var(--ll-ink);
	border-radius: var(--ll-radius-control);
	background: var(--ll-ink);
	color: var(--ll-on-ink);
	font-family: var(--ll-font-body);
	font-size: var(--ll-text-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s var(--ll-ease), border-color 0.15s var(--ll-ease), color 0.15s var(--ll-ease);
}
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { background: var(--ll-ink-hover); border-color: var(--ll-ink-hover); color: var(--ll-on-ink); }
.button:focus-visible,
.wp-element-button:focus-visible { outline: none; box-shadow: var(--ll-focus); }

.button-accent,
.button.button-accent {
	background: var(--ll-accent);
	border-color: var(--ll-accent);
	color: var(--ll-on-accent);
}
.button-accent:hover,
.button.button-accent:hover { background: var(--ll-accent-hover); border-color: var(--ll-accent-hover); color: var(--ll-on-accent); }

.button-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--ll-space-2);
	min-height: 44px; padding: 0.65rem 1.1rem;
	border: 1px solid var(--ll-rule-strong); border-radius: var(--ll-radius-control);
	background: var(--ll-surface); color: var(--ll-ink);
	font: 600 var(--ll-text-sm)/1.2 var(--ll-font-body);
	text-decoration: none; cursor: pointer;
}
.button-secondary:hover { border-color: var(--ll-ink); }

.button-link {
	background: none; border: 0; padding: 0; color: var(--ll-ink);
	font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}

.text-link {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--ll-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }

label { font-weight: 600; font-size: var(--ll-text-sm); }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--ll-rule-strong);
	border-radius: var(--ll-radius-control);
	background: var(--ll-surface);
	color: var(--ll-ink);
	font: 400 var(--ll-text-base)/1.4 var(--ll-font-body);
	transition: border-color 0.15s var(--ll-ease), box-shadow 0.15s var(--ll-ease);
}
textarea { min-height: 140px; resize: vertical; }
select {
	appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23566072' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: none; border-color: var(--ll-ink); box-shadow: 0 0 0 3px rgba(24, 38, 59, 0.18); }
input[type="checkbox"],
input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ll-ink); vertical-align: -0.2em; }
::placeholder { color: #737b89; opacity: 1; }

.field-hint { font-size: var(--ll-text-xs); color: var(--ll-muted); margin: var(--ll-space-1) 0 0; }

/* Search form */
.search-form { display: flex; position: relative; width: 100%; }
.search-form .search-field { padding-right: 3rem; border-radius: var(--ll-radius-control); }
.search-form .search-submit {
	position: absolute; right: 2px; top: 2px; bottom: 2px;
	display: inline-flex; align-items: center; gap: var(--ll-space-2);
	padding: 0 0.85rem; border: 0; border-radius: 4px;
	background: transparent; color: var(--ll-ink); cursor: pointer;
	font: 600 var(--ll-text-sm)/1 var(--ll-font-body);
}
.search-form .search-submit:hover { background: var(--ll-paper-deep); }
.search-form--large .search-field { min-height: 56px; font-size: var(--ll-text-md); padding-left: 1.1rem; padding-right: 8rem; border-color: var(--ll-ink); }
.search-form--large .search-submit { right: 6px; top: 6px; bottom: 6px; padding: 0 1.1rem; background: var(--ll-ink); color: var(--ll-on-ink); border-radius: 4px; }
.search-form--large .search-submit:hover { background: var(--ll-ink-hover); }

/* 5. Header & navigation --------------------------------------------------- */
.announcement-bar { background: var(--ll-ink); color: var(--ll-on-ink); font-size: var(--ll-text-sm); text-align: center; }
.announcement-bar p { margin: 0; padding: 0.55rem 0; }
.announcement-bar a { color: inherit; font-weight: 600; margin-left: var(--ll-space-2); text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; }

.site-header {
	background: var(--ll-paper);
	border-bottom: 1px solid var(--ll-rule);
	z-index: 50;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
.site-header-inner {
	display: flex;
	align-items: center;
	gap: var(--ll-space-6);
	min-height: var(--ll-header-h);
}
.site-branding { display: flex; align-items: center; flex: none; }
.site-branding .custom-logo { max-height: 44px; width: auto; }
.site-title { margin: 0; font-family: var(--ll-font-heading); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.site-title a { text-decoration: none; color: var(--ll-ink); }

.primary-navigation { flex: 1 1 auto; min-width: 0; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-navigation .menu { display: flex; align-items: center; gap: var(--ll-space-1); flex-wrap: wrap; }
.primary-navigation .menu > li { position: relative; display: flex; align-items: center; }
.primary-navigation .menu a {
	display: block; padding: 0.55rem 0.7rem; border-radius: var(--ll-radius-control);
	font-size: var(--ll-text-sm); font-weight: 550; text-decoration: none; color: var(--ll-ink);
}
.primary-navigation .menu a:hover { background: var(--ll-paper-deep); }
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--ll-accent); border-radius: 0; }
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-left: -0.4rem; padding: 0;
	background: none; border: 0; border-radius: 4px; color: var(--ll-muted); cursor: pointer;
}
.submenu-toggle .icon { transform: rotate(90deg); transition: transform 0.15s var(--ll-ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.primary-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	padding: var(--ll-space-2); background: var(--ll-surface);
	border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); box-shadow: var(--ll-shadow-pop);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity 0.15s var(--ll-ease), transform 0.15s var(--ll-ease), visibility 0.15s;
	z-index: 60;
}
.primary-navigation .menu > li:hover > .sub-menu,
.primary-navigation .menu > li.is-open > .sub-menu,
.primary-navigation .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-navigation .sub-menu a { padding: 0.5rem 0.75rem; }

.menu-toggle { display: none; }
.mobile-search { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--ll-space-1); flex: none; }
.header-search { width: clamp(180px, 22vw, 300px); margin-right: var(--ll-space-2); }
.header-search .search-field { min-height: 40px; font-size: var(--ll-text-sm); background: var(--ll-surface); }
.header-action {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--ll-radius-control); color: var(--ll-ink); text-decoration: none;
}
.header-action:hover { background: var(--ll-paper-deep); }
.cart-count,
.wishlist-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--ll-accent); color: var(--ll-on-accent);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.is-empty,
.wishlist-count.is-empty { display: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--ll-text-xs); color: var(--ll-muted); margin-bottom: var(--ll-space-4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--ll-space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--ll-space-2); }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.breadcrumbs a { color: var(--ll-muted); }
.breadcrumbs [aria-current] { color: var(--ll-ink); }

/* 6. Hero: the open book --------------------------------------------------- */
.hero { padding-block: var(--ll-space-6) var(--ll-space-7); }
.spread {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	background: var(--ll-surface);
	border: 1px solid var(--ll-rule);
	border-radius: var(--ll-radius-panel);
	box-shadow: 0 30px 60px -40px rgba(24, 38, 59, 0.45);
	overflow: hidden;
}
/* The gutter: a soft fold where the two pages meet. */
.spread::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: calc(100% * 1.15 / 2.15);
	width: 48px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent 0%, rgba(24, 38, 59, 0.06) 42%, rgba(24, 38, 59, 0.14) 50%, rgba(24, 38, 59, 0.06) 58%, transparent 100%);
	pointer-events: none;
}
.spread--single { grid-template-columns: minmax(0, 1fr); }
.spread--single::after { display: none; }
.spread-page { padding: clamp(1.25rem, 4vw, 4rem); min-width: 0; }
.spread-page--verso { display: flex; flex-direction: column; justify-content: center; }
.spread-page--recto {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	gap: var(--ll-space-6);
	align-items: center;
	background: var(--ll-paper);
}
.hero-title {
	overflow-wrap: break-word;
	font-size: var(--ll-text-3xl);
	font-weight: 470;
	line-height: 1.05;
	letter-spacing: -0.025em;
	max-width: 16ch;
	margin-bottom: var(--ll-space-5);
}
.hero-text { font-size: var(--ll-text-md); color: var(--ll-muted); max-width: 46ch; margin-bottom: var(--ll-space-6); }
.hero-search { max-width: 520px; margin-bottom: var(--ll-space-5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ll-space-5); }
.hero-cover { display: block; }
.hero-cover-img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: var(--ll-radius-cover);
	box-shadow: var(--ll-shadow-cover), 6px 6px 0 -1px var(--ll-paper-deep), 6px 6px 0 0 var(--ll-rule);
}
.hero-book-label { font-size: var(--ll-text-xs); font-weight: 600; color: var(--ll-muted); margin-bottom: var(--ll-space-2); }
.hero-book-title { font-size: var(--ll-text-lg); margin-bottom: var(--ll-space-2); }
.hero-book-title a { text-decoration: none; }
.hero-book-title a:hover { text-decoration: underline; }
.hero-book-author { color: var(--ll-muted); font-size: var(--ll-text-sm); margin-bottom: var(--ll-space-3); }
.hero-book-excerpt { font-size: var(--ll-text-sm); margin-bottom: var(--ll-space-3); }
.hero-book-price { font-weight: 650; font-size: var(--ll-text-md); margin: 0; }
.hero-book-price del { color: var(--ll-muted); font-weight: 400; font-size: var(--ll-text-sm); }
.hero-book-price ins { text-decoration: none; }

/* 7. Home sections --------------------------------------------------------- */
.home-section { padding-block: calc(var(--ll-section-space) / 2); }
.home-section + .home-section { border-top: 1px solid var(--ll-rule); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ll-space-4); margin-bottom: var(--ll-space-6); flex-wrap: wrap; }
.section-title { font-size: var(--ll-text-xl); margin: 0; }
.section-title--small { font-size: var(--ll-text-lg); margin-bottom: var(--ll-space-5); }
.section-link { font-size: var(--ll-text-sm); font-weight: 600; text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.section-intro { color: var(--ll-muted); max-width: 60ch; margin-top: calc(var(--ll-space-4) * -1); margin-bottom: var(--ll-space-6); }

/* Categories: a typographic index, not a grid of images. */
.category-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: var(--ll-space-6);
	border-top: 1px solid var(--ll-ink);
}
.category-list li { border-bottom: 1px solid var(--ll-rule); }
.category-tile {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--ll-space-3);
	padding: var(--ll-space-4) var(--ll-space-3) var(--ll-space-4) 0; text-decoration: none; height: 100%;
}
.category-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: var(--ll-radius-cover); }
.category-name { font-family: var(--ll-font-heading); font-size: var(--ll-text-md); font-weight: 540; grid-column: 2; }
.category-tile:not(:has(.category-thumb)) .category-name { grid-column: 1 / 3; }
.category-count { font-size: var(--ll-text-xs); color: var(--ll-muted); white-space: nowrap; }
.category-tile:hover .category-name { text-decoration: underline; text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Reading lists */
.reading-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--ll-space-6); }
.reading-list { display: grid; grid-template-columns: 140px 1fr; gap: var(--ll-space-5); padding: var(--ll-space-5); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); }
.reading-list-stack { position: relative; display: block; height: 170px; }
.reading-list-stack img {
	position: absolute; width: 92px; aspect-ratio: 2 / 3; object-fit: cover;
	border-radius: var(--ll-radius-cover); box-shadow: var(--ll-shadow-cover);
}
.reading-list-stack img:nth-child(1) { left: 0; top: 18px; transform: rotate(-6deg); }
.reading-list-stack img:nth-child(2) { left: 22px; top: 6px; transform: rotate(1deg); z-index: 1; }
.reading-list-stack img:nth-child(3) { left: 44px; top: 14px; transform: rotate(7deg); z-index: 2; }
.reading-list-title { font-size: var(--ll-text-md); margin-bottom: var(--ll-space-2); }
.reading-list-title a { text-decoration: none; }
.reading-list-title a:hover { text-decoration: underline; }
.reading-list-body > p { font-size: var(--ll-text-sm); color: var(--ll-muted); }
.reading-list-titles { margin: 0; padding-left: 1.1rem; font-size: var(--ll-text-sm); }
.reading-list-titles li { margin-bottom: var(--ll-space-1); }

/* Offers */
.offers-panel { display: grid; grid-template-columns: minmax(240px, 0.6fr) 2fr; gap: var(--ll-space-7); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ll-ink); color: var(--ll-on-ink); border-radius: var(--ll-radius-panel); }
.offers-panel .section-title { color: var(--ll-on-ink); margin-bottom: var(--ll-space-4); }
.offers-text { font-size: var(--ll-text-md); }
.home-section--offers + .home-section { border-top: 0; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--ll-space-8); align-items: center; }
.spotlight-name { display: flex; align-items: center; gap: var(--ll-space-3); font-family: var(--ll-font-heading); font-size: var(--ll-text-lg); margin: var(--ll-space-5) 0 var(--ll-space-4); }
.spotlight-bio { color: var(--ll-muted); max-width: 58ch; }
.spotlight-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ll-space-5); }
.spotlight-books a { text-decoration: none; display: block; }
.spotlight-books img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--ll-radius-cover); box-shadow: var(--ll-shadow-cover); margin-bottom: var(--ll-space-3); }
.spotlight-book-title { font-size: var(--ll-text-sm); font-weight: 600; }
.spotlight-books a:hover .spotlight-book-title { text-decoration: underline; }
.author-monogram {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--ll-accent); color: var(--ll-on-accent);
	font-family: var(--ll-font-heading); font-size: 1.3rem; font-weight: 600;
}

/* Reviews */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--ll-space-5); }
.review-card figure { margin: 0; height: 100%; padding: var(--ll-space-5); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); display: flex; flex-direction: column; gap: var(--ll-space-3); }
.review-card blockquote { margin: 0; padding: 0; border: 0; font-size: var(--ll-text-base); flex: 1; }
.review-card figcaption { font-size: var(--ll-text-sm); display: flex; flex-wrap: wrap; gap: var(--ll-space-2); color: var(--ll-muted); }
.review-author { font-weight: 650; color: var(--ll-ink); }
.review-verified { color: var(--ll-success); }

/* Trust */
.home-section--trust .section-title { margin-bottom: var(--ll-space-6); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--ll-space-6); }
.trust-list li { border-top: 2px solid var(--ll-ink); padding-top: var(--ll-space-4); }
.trust-list .icon { margin-bottom: var(--ll-space-3); }
.trust-list h3 { font-family: var(--ll-font-body); font-size: var(--ll-text-base); font-weight: 650; margin-bottom: var(--ll-space-2); }
.trust-list p { font-size: var(--ll-text-sm); color: var(--ll-muted); margin: 0; }

/* Newsletter */
.newsletter-panel {
	display: grid; grid-template-columns: 1fr 1fr; gap: var(--ll-space-7); align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem); background: var(--ll-surface); border: 1px solid var(--ll-rule);
	border-left: 6px solid var(--ll-accent); border-radius: var(--ll-radius-panel);
}
.newsletter-panel .section-title { margin-bottom: var(--ll-space-3); }
.newsletter-panel p { color: var(--ll-muted); margin: 0; }

/* FAQ (details) */
.home-section--faq .section-title { margin-bottom: var(--ll-space-5); }
.faq-list { border-top: 1px solid var(--ll-ink); }
.faq-list details,
.faq-content .wp-block-details { border-bottom: 1px solid var(--ll-rule); }
.faq-list summary,
.faq-content .wp-block-details summary {
	list-style: none; cursor: pointer; position: relative;
	padding: var(--ll-space-4) var(--ll-space-7) var(--ll-space-4) 0;
	font-family: var(--ll-font-heading); font-size: var(--ll-text-md); font-weight: 520;
}
.faq-list summary::-webkit-details-marker,
.faq-content summary::-webkit-details-marker { display: none; }
.faq-list summary::after,
.faq-content .wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
	transition: transform 0.2s var(--ll-ease);
}
.faq-list details[open] summary::after,
.faq-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq-answer,
.faq-content .wp-block-details > :not(summary) { padding-bottom: var(--ll-space-4); color: var(--ll-muted); max-width: 64ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Admin-only hints */
.admin-hint { margin: var(--ll-space-4) 0; padding: var(--ll-space-3) var(--ll-space-4); border: 1px dashed var(--ll-rule-strong); border-radius: var(--ll-radius-control); font-size: var(--ll-text-sm); color: var(--ll-muted); background: var(--ll-surface); }
.admin-hint span { opacity: 0.8; }

/* 8. Blog & pages ---------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--ll-space-7) var(--ll-space-6); }
.post-list { display: grid; gap: var(--ll-space-6); }
.post-list .post-card { display: grid; grid-template-columns: 240px 1fr; gap: var(--ll-space-5); align-items: start; padding-bottom: var(--ll-space-6); border-bottom: 1px solid var(--ll-rule); }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ll-radius-control); margin-bottom: var(--ll-space-4); }
.post-list .post-card-media img { margin-bottom: 0; }
.entry-category { display: inline-flex; align-items: center; min-height: 24px; font-size: var(--ll-text-xs); font-weight: 650; text-decoration: none; color: var(--ll-muted); margin-bottom: var(--ll-space-2); }
.entry-category:hover { color: var(--ll-ink); text-decoration: underline; }
.post-card-title { font-size: var(--ll-text-md); margin-bottom: var(--ll-space-2); }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; }
.post-card-excerpt { font-size: var(--ll-text-sm); color: var(--ll-muted); }
.post-card-excerpt p { margin-bottom: var(--ll-space-3); }
.post-card-meta,
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ll-space-2); font-size: var(--ll-text-xs); color: var(--ll-muted); margin: 0; }
.entry-meta a { color: var(--ll-ink); }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.post-featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--ll-space-7); align-items: center; margin-bottom: var(--ll-space-8); padding-bottom: var(--ll-space-7); border-bottom: 1px solid var(--ll-rule); }
.post-featured-media img { width: 100%; aspect-ratio: 2 / 1.2; object-fit: cover; border-radius: var(--ll-radius-panel); }
.post-featured-title { font-size: var(--ll-text-2xl); font-weight: 480; }
.post-featured-title a { text-decoration: none; }
.post-featured-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ll-accent); }
.post-featured-excerpt { color: var(--ll-muted); font-size: var(--ll-text-md); }

/* Single article */
.article-header { padding-block: var(--ll-space-6) var(--ll-space-6); }
.article-title { font-size: var(--ll-text-3xl); font-weight: 470; line-height: 1.08; letter-spacing: -0.022em; }
.article-dek { font-family: var(--ll-font-heading); font-size: var(--ll-text-md); color: var(--ll-muted); }
.article-media { margin: 0 auto var(--ll-space-7); }
.article-media img { width: 100%; border-radius: var(--ll-radius-panel); }
.article-media figcaption { font-size: var(--ll-text-xs); color: var(--ll-muted); margin-top: var(--ll-space-2); }
.article-layout { max-width: calc(var(--ll-narrow) + var(--ll-gutter) * 2); }
.article-layout.has-sidebar { max-width: calc(var(--ll-narrow) + 300px + var(--ll-space-8) + var(--ll-gutter) * 2); }

.entry-content { font-family: var(--ll-font-heading); font-size: 1.125rem; line-height: 1.72; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: var(--ll-text-lg); margin-top: var(--ll-space-7); }
.entry-content h3 { font-size: var(--ll-text-md); margin-top: var(--ll-space-6); }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; margin: 0 0 var(--ll-space-4); }
.entry-content li { margin-bottom: var(--ll-space-2); }
.entry-content a { text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--ll-radius-control); }
.entry-content figure { margin: var(--ll-space-6) 0; }
.entry-content figcaption { font-family: var(--ll-font-body); font-size: var(--ll-text-xs); color: var(--ll-muted); }
.entry-content .alignwide { max-width: min(1100px, 100vw - 2 * var(--ll-gutter)); margin-inline: calc((min(1100px, 100vw - 2 * var(--ll-gutter)) - 100%) / -2); }
.entry-content .alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content--full .alignfull { margin-inline: 0; }
.entry-content table { font-family: var(--ll-font-body); font-size: var(--ll-text-sm); }
.commerce-page .entry-content,
.entry-content .woocommerce { font-family: var(--ll-font-body); font-size: var(--ll-text-base); line-height: 1.6; }
.is-style-lead { font-size: var(--ll-text-lg); line-height: 1.5; color: var(--ll-ink); }
.is-style-panel { padding: var(--ll-space-6); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); }
.has-muted-color { color: var(--ll-muted); }

.toc { margin-bottom: var(--ll-space-6); padding: var(--ll-space-4) var(--ll-space-5); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); font-size: var(--ll-text-sm); }
.toc summary { font-weight: 650; cursor: pointer; }
.toc ol { margin: var(--ll-space-3) 0 0; padding-left: 1.2rem; }
.toc li { margin-bottom: var(--ll-space-1); }
.toc .toc-level-3 { margin-left: var(--ll-space-4); list-style-type: circle; }

.article-footer { margin-top: var(--ll-space-7); padding-top: var(--ll-space-6); border-top: 1px solid var(--ll-rule); display: grid; gap: var(--ll-space-6); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ll-space-2); }
.tag-list a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--ll-rule-strong); border-radius: 999px; font-size: var(--ll-text-xs); text-decoration: none; }
.tag-list a:hover { border-color: var(--ll-ink); }
.share-links { display: flex; align-items: center; gap: var(--ll-space-4); flex-wrap: wrap; }
.share-title { font-family: var(--ll-font-body); font-size: var(--ll-text-sm); font-weight: 650; margin: 0; }
.share-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--ll-space-2); }
.share-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ll-rule-strong); border-radius: 50%; color: var(--ll-ink); }
.share-links a:hover { border-color: var(--ll-ink); background: var(--ll-surface); }
.author-box { display: flex; gap: var(--ll-space-4); padding: var(--ll-space-5); background: var(--ll-surface); border-radius: var(--ll-radius-panel); border: 1px solid var(--ll-rule); }
.author-box img { border-radius: 50%; flex: none; }
.author-box-title { font-size: var(--ll-text-md); margin-bottom: var(--ll-space-2); }
.author-box p { font-size: var(--ll-text-sm); color: var(--ll-muted); }

.post-navigation { margin-block: var(--ll-space-7); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ll-space-5); }
.post-navigation a { display: block; padding: var(--ll-space-4); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--ll-ink); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: var(--ll-text-xs); color: var(--ll-muted); margin-bottom: var(--ll-space-1); }
.nav-title { font-family: var(--ll-font-heading); font-weight: 540; }
.related-posts { padding-block: var(--ll-space-7); border-top: 1px solid var(--ll-rule); }
.related-posts .section-title { margin-bottom: var(--ll-space-6); }

/* Comments */
.comments-area { margin-top: var(--ll-space-7); }
.comment-list { list-style: none; padding: 0; margin: 0 0 var(--ll-space-6); }
.comment-list .children { list-style: none; padding-left: var(--ll-space-6); }
.comment-body { padding: var(--ll-space-4) 0; border-bottom: 1px solid var(--ll-rule); }
.comment-author { display: flex; align-items: center; gap: var(--ll-space-3); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--ll-text-xs); }
.comment-metadata a { color: var(--ll-muted); }
.comment-form p { margin-bottom: var(--ll-space-4); }
.comment-form label { display: block; margin-bottom: var(--ll-space-1); }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Search results */
.search-results { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.search-result { padding: var(--ll-space-5) 0; border-bottom: 1px solid var(--ll-rule); }
.search-result-type { font-size: var(--ll-text-xs); color: var(--ll-muted); margin-bottom: var(--ll-space-1); }
.search-result-title { font-size: var(--ll-text-md); margin-bottom: var(--ll-space-2); }
.search-result-excerpt { color: var(--ll-muted); font-size: var(--ll-text-sm); }

/* Pagination */
.pagination,
.woocommerce-pagination { margin-top: var(--ll-space-7); }
.pagination .nav-links,
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: var(--ll-space-2); justify-content: center; border: 0; }
.pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 0.85rem;
	border: 1px solid var(--ll-rule-strong); border-radius: var(--ll-radius-control);
	background: var(--ll-surface); color: var(--ll-ink); font-weight: 600; text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ll-ink); border-color: var(--ll-ink); color: var(--ll-on-ink); }
.pagination a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--ll-ink); background: var(--ll-surface); color: var(--ll-ink); }
.pagination .dots { border: 0; background: none; }

/* Author archive */
.author-profile { display: flex; gap: var(--ll-space-5); align-items: flex-start; }
.author-avatar { border-radius: 50%; }

/* About */
.page-header--editorial { padding-top: var(--ll-space-8); }
.entry-content--editorial > p:first-child::first-letter {
	float: left; font-size: 4.2em; line-height: 0.82; padding: 0.06em 0.08em 0 0; font-weight: 500; color: var(--ll-ink);
}
.author-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--ll-space-6); }
.author-tile { padding-top: var(--ll-space-4); border-top: 2px solid var(--ll-ink); }
.author-tile h3 { margin: var(--ll-space-3) 0 var(--ll-space-2); font-size: var(--ll-text-md); }
.author-tile h3 a { text-decoration: none; }
.author-tile h3 a:hover { text-decoration: underline; }
.author-tile p { font-size: var(--ll-text-sm); color: var(--ll-muted); }
.author-count { font-weight: 600; color: var(--ll-ink) !important; }
.values-columns h3 { font-size: var(--ll-text-md); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: var(--ll-space-8); align-items: start; }
.contact-main .entry-content { font-family: var(--ll-font-body); font-size: var(--ll-text-base); margin-bottom: var(--ll-space-5); }
.contact-details { padding: var(--ll-space-5); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-radius: var(--ll-radius-panel); }
.contact-details h2 { font-size: var(--ll-text-md); }
.contact-details dl { margin: 0; }
.contact-details dt { font-size: var(--ll-text-xs); font-weight: 650; color: var(--ll-muted); margin-top: var(--ll-space-4); }
.contact-details dd { margin: var(--ll-space-1) 0 0; }
.contact-note { font-size: var(--ll-text-sm); color: var(--ll-muted); margin: var(--ll-space-5) 0 0; }

/* Legal */
.legal-updated { font-size: var(--ll-text-sm); color: var(--ll-muted); }
.legal-page .entry-content { font-size: 1.0625rem; }

/* Newsletter landing */
.newsletter-hero { padding-block: var(--ll-space-8); text-align: left; }
.newsletter-landing-form { margin-top: var(--ll-space-6); padding: var(--ll-space-6); background: var(--ll-surface); border: 1px solid var(--ll-rule); border-left: 6px solid var(--ll-accent); border-radius: var(--ll-radius-panel); }

/* 404 */
.error-404 { padding-block: var(--ll-space-8); }
.error-code { font-family: var(--ll-font-heading); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; font-weight: 300; color: var(--ll-muted); margin: 0 0 var(--ll-space-4); letter-spacing: -0.04em; text-decoration: underline; text-decoration-color: var(--ll-accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.error-search { margin: var(--ll-space-6) 0; }
.error-links { display: flex; flex-wrap: wrap; gap: var(--ll-space-5); list-style: none; padding: 0; margin: 0; font-weight: 600; }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ll-ink); color: var(--ll-on-ink); padding-block: var(--ll-space-8) var(--ll-space-5); font-size: var(--ll-text-sm); }
.site-footer a { color: var(--ll-on-ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--ll-space-7); }
.footer-site-title { font-family: var(--ll-font-heading); font-size: 1.5rem; margin-bottom: var(--ll-space-3); }
.footer-site-title a { text-decoration: none; }
.footer-about { opacity: 0.85; max-width: 40ch; }
.footer-heading { font-family: var(--ll-font-body); font-size: var(--ll-text-sm); font-weight: 650; color: var(--ll-on-ink); margin-bottom: var(--ll-space-4); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: var(--ll-space-2); }
.footer-nav a,
.footer-contact a { text-decoration: none; opacity: 0.85; }
.footer-nav a:hover,
.footer-contact a:hover { text-decoration: underline; opacity: 1; }
.footer-contact address { font-style: normal; line-height: 1.9; opacity: 0.85; }
.social-links { list-style: none; margin: var(--ll-space-4) 0 0; padding: 0; display: flex; gap: var(--ll-space-2); }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; }
.social-links a:hover { border-color: var(--ll-accent); color: var(--ll-accent); }
.footer-widgets { margin-top: var(--ll-space-7); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ll-space-4); margin-top: var(--ll-space-8); padding-top: var(--ll-space-5); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.copyright { margin: 0; opacity: 0.75; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ll-space-5); }
.legal-nav a { opacity: 0.75; text-decoration: none; }
.legal-nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--ll-accent); }

/* 10. Components ----------------------------------------------------------- */
.empty-state { text-align: center; padding: var(--ll-space-8) var(--ll-space-5); max-width: 560px; margin-inline: auto; }
.empty-state > .icon { color: var(--ll-muted); margin: 0 auto var(--ll-space-4); }
.empty-state h2 { font-size: var(--ll-text-lg); }
.empty-state p { color: var(--ll-muted); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--ll-space-3); margin-top: var(--ll-space-5); }
.empty-search { max-width: 420px; margin: var(--ll-space-5) auto; }
.empty-state--compact { padding-block: var(--ll-space-6); }

.badge {
	display: inline-flex; align-items: center; padding: 0.2rem 0.55rem;
	border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.3;
}
.badge-sale { background: var(--ll-accent); color: var(--ll-on-accent); }
.badge-free { background: var(--ll-ink); color: var(--ll-on-ink); }

.notice-box { padding: var(--ll-space-4) var(--ll-space-5); border-radius: var(--ll-radius-control); border-left: 4px solid var(--ll-ink); background: var(--ll-info-bg); margin-bottom: var(--ll-space-5); }
.notice-box--success { border-color: var(--ll-success); background: var(--ll-success-bg); }
.notice-box--error { border-color: var(--ll-error); background: var(--ll-error-bg); }

.is-loading { position: relative; pointer-events: none; opacity: 0.6; }
.is-loading::after {
	content: ""; position: absolute; inset: 50% auto auto 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
	border: 2px solid var(--ll-rule-strong); border-top-color: var(--ll-ink); border-radius: 50%;
	animation: ll-spin 0.7s linear infinite;
}

@keyframes ll-spin { to { transform: rotate(360deg); } }

body.drawer-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(24, 38, 59, 0.45); z-index: 90; }

/* Companion forms (newsletter, contact) */
.ll-form { display: grid; gap: var(--ll-space-4); }
.ll-form-row { display: grid; gap: var(--ll-space-1); }
.ll-form-row--inline { grid-template-columns: 1fr auto; gap: var(--ll-space-2); align-items: end; }
.ll-form-row--inline .button { min-height: 48px; }
.ll-form-row--inline input { min-height: 48px; }
.ll-form-consent { display: flex; gap: var(--ll-space-2); align-items: flex-start; font-weight: 400; font-size: var(--ll-text-sm); color: var(--ll-muted); }
.ll-form-consent input { margin-top: 0.2rem; }
.ll-form-required { color: var(--ll-error); }
.ll-form-message { padding: var(--ll-space-3) var(--ll-space-4); border-radius: var(--ll-radius-control); font-size: var(--ll-text-sm); margin: 0; }
.ll-form-message--success { background: var(--ll-success-bg); color: var(--ll-success); }
.ll-form-message--error { background: var(--ll-error-bg); color: var(--ll-error); }
.ll-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ll-form-note { font-size: var(--ll-text-xs); color: var(--ll-muted); margin: 0; }
.ll-form [aria-invalid="true"] { border-color: var(--ll-error); }
.ll-field-error { color: var(--ll-error); font-size: var(--ll-text-xs); margin: 0; }

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
	.header-search { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.spotlight { grid-template-columns: 1fr; gap: var(--ll-space-6); }
	.offers-panel { grid-template-columns: 1fr; gap: var(--ll-space-5); }
}

@media (max-width: 960px) {
	:root { --ll-header-h: 64px; }
	.site-header-inner { gap: var(--ll-space-3); }
	.primary-navigation { order: -1; flex: none; }
	.site-branding { flex: 1 1 auto; }
	.menu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin-left: -10px; padding: 0;
		background: none; border: 0; border-radius: var(--ll-radius-control); color: var(--ll-ink); cursor: pointer;
	}
	.primary-menu-wrap {
		position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px);
		padding: 72px var(--ll-space-5) var(--ll-space-6);
		background: var(--ll-paper); border-right: 1px solid var(--ll-rule); box-shadow: var(--ll-shadow-pop);
		overflow-y: auto; z-index: 100;
		transform: translateX(-102%); visibility: hidden;
		transition: transform 0.25s var(--ll-ease), visibility 0.25s;
	}
	.menu-open .primary-menu-wrap { transform: none; visibility: visible; }
	.menu-open .site-header { z-index: 120; } /* Lift the header's stacking context above the backdrop (z 90). */
	.menu-open .menu-toggle { position: fixed; top: 10px; left: calc(var(--ll-gutter) - 2px); margin: 0; z-index: 101; background: var(--ll-paper); }
	.admin-bar.menu-open .menu-toggle { top: 56px; }
	.primary-navigation .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-navigation .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--ll-rule); }
	.primary-navigation .menu > li > a { flex: 1; padding: var(--ll-space-4) 0; font-size: var(--ll-text-base); }
	.primary-navigation .menu a:hover { background: none; text-decoration: underline; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.primary-navigation .sub-menu {
		position: static; min-width: 0; width: 100%; padding: 0 0 var(--ll-space-3) var(--ll-space-4);
		background: none; border: 0; box-shadow: none; display: none;
		opacity: 1; visibility: visible; transform: none;
	}
	.primary-navigation .menu > li.is-open > .sub-menu { display: block; }
	.mobile-search { display: block; margin-top: var(--ll-space-5); }
	.has-blog-sidebar .content-layout,
	.article-layout.has-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.spread { grid-template-columns: minmax(0, 1fr); }
	.spread::after { display: none; }
	.spread-page--recto { border-top: 1px solid var(--ll-rule); }
	.post-featured { grid-template-columns: 1fr; gap: var(--ll-space-5); }
	.contact-layout { grid-template-columns: 1fr; gap: var(--ll-space-6); }
	.newsletter-panel { grid-template-columns: 1fr; gap: var(--ll-space-5); }
}

@media (max-width: 600px) {
	.spread-page--recto { grid-template-columns: 120px 1fr; gap: var(--ll-space-4); }
	.hero-book-excerpt { display: none; }
	.reading-list { grid-template-columns: 1fr; }
	.post-list .post-card { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: var(--ll-space-6); }
	.spotlight-books { gap: var(--ll-space-3); }
	.search-form--large .search-field { padding-right: 3.5rem; }
	.search-form--large .search-submit span { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
	.author-profile { flex-direction: column; }
	.header-action { width: 40px; }
	.site-title { font-size: 1.25rem; }
}

@media (max-width: 782px) {
	.admin-bar.has-sticky-header .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar.has-sticky-header .site-header { top: 0; }
}

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

@media print {
	.site-header,
	.site-footer,
	.announcement-bar,
	.share-links,
	.post-navigation,
	.related-posts,
	.comments-area { display: none !important; }
	body { background: #fff; }
}
