/* File: theme/css/humanspark-books.css
* Purpose: Styles for the /books catalogue and individual /books/{slug} sales pages.
* Project: HumanSpark | Date: 2026-04-11
*
* Extracted from components.css to keep that file under its 1,050 budget.
* Loads after components.css in the stack, before interactive.css.
*/
.hs-book-section__intro {
max-width: 62ch; margin: 0 auto var(--hs-space-lg);
font-size: var(--hs-text-md); color: var(--hs-text);
line-height: var(--hs-leading-normal); text-align: center;
}
.hs-section--dark .hs-book-section__intro { color: var(--hs-dark-text); }
.hs-book-section__connect {
margin-top: var(--hs-space-lg); text-align: center;
font-size: var(--hs-text-sm); color: var(--hs-text-muted);
}
.hs-book-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
gap: var(--hs-space-lg);
margin-top: var(--hs-space-lg);
align-items: start;
}
.hs-book-grid--single {
grid-template-columns: minmax(0, 520px);
justify-content: center;
}
.hs-book-card {
display: grid;
grid-template-columns: 140px 1fr;
gap: var(--hs-space-md);
padding: var(--hs-space-md);
border-radius: var(--hs-card-radius);
border: 1px solid var(--hs-border-subtle);
background: var(--hs-white);
box-shadow: var(--hs-card-shadow);
transition: box-shadow 0.2s, transform 0.2s;
align-items: start;
}
.hs-book-card:hover { box-shadow: var(--hs-card-shadow-hover); transform: translateY(-4px); }
.hs-book-card__cover-link { display: block; line-height: 0; }
.hs-book-card__cover {
width: 100%; height: auto; border-radius: 4px;
box-shadow: 0 14px 32px rgba(0, 8, 42, 0.22);
}
.hs-book-card__body { display: flex; flex-direction: column; gap: var(--hs-space-xs); }
.hs-book-card__title {
font-size: var(--hs-text-lg); font-weight: 800; color: var(--hs-navy);
line-height: 1.2; letter-spacing: var(--hs-tracking-snug);
margin: 0;
}
.hs-book-card__title a { color: inherit; text-decoration: none; }
.hs-book-card__title a:hover { color: var(--hs-link); }
.hs-book-card__subtitle {
font-size: var(--hs-text-sm); color: var(--hs-text-muted);
font-style: italic; margin: 0;
}
.hs-book-card__oneliner {
font-size: var(--hs-text-md); color: var(--hs-text);
line-height: var(--hs-leading-tight); margin: 0;
}
.hs-book-card__price {
font-family: 'JetBrains Mono', monospace;
font-size: var(--hs-text-md); color: var(--hs-accent-dark);
font-weight: 700; margin: 0;
}
.hs-book-card__ctas {
display: flex; flex-wrap: wrap; gap: var(--hs-space-sm);
margin-top: var(--hs-space-sm);
}
.hs-book-card__ctas .hs-btn { padding: 0.55em 1em; font-size: var(--hs-text-sm); }
.hs-section--dark .hs-book-card {
background: var(--hs-navy-light); border: none;
border-top: 2px solid var(--hs-accent); color: var(--hs-white);
}
.hs-section--dark .hs-book-card__title,
.hs-section--dark .hs-book-card__title a { color: var(--hs-white); }
.hs-section--dark .hs-book-card__title a:hover { color: var(--hs-accent); }
.hs-section--dark .hs-book-card__oneliner { color: var(--hs-dark-text); }
.hs-section--dark .hs-book-card__subtitle { color: var(--hs-dark-text-muted); }
.hs-book-card--free,
.hs-book-card--no-cover {
grid-template-columns: 1fr;
text-align: left;
}
@media (max-width: 600px) {
.hs-book-card { grid-template-columns: 1fr; text-align: center; }
.hs-book-card__cover { max-width: 200px; margin: 0 auto; }
.hs-book-card__ctas { justify-content: center; }
}
.hs-book-picker {
list-style: none; padding: 0; margin: var(--hs-space-lg) auto 0;
max-width: 780px; display: flex; flex-direction: column; gap: var(--hs-space-sm);
}
.hs-book-picker__item {
display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--hs-space-sm);
padding: var(--hs-space-sm) var(--hs-space-md);
background: rgba(255, 255, 255, 0.04);
border-left: 3px solid var(--hs-accent);
border-radius: 4px;
}
.hs-book-picker__question {
font-size: var(--hs-text-md); color: var(--hs-dark-text); flex: 1 1 auto;
}
.hs-book-picker__arrow { color: var(--hs-accent); font-weight: 700; }
.hs-book-picker__title {
font-weight: 700; color: var(--hs-accent); text-decoration: none;
}
.hs-book-picker__title:hover { text-decoration: underline; }
.hs-book-legacy {
list-style: none; padding: 0; margin: var(--hs-space-lg) auto 0;
max-width: 680px;
display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
gap: var(--hs-space-sm) var(--hs-space-lg);
}
.hs-book-legacy__item {
font-size: var(--hs-text-sm); color: var(--hs-text);
display: flex; justify-content: space-between; gap: var(--hs-space-sm);
padding: var(--hs-space-xs) 0;
border-bottom: 1px solid var(--hs-border-subtle);
}
.hs-book-legacy__item a { color: var(--hs-navy); text-decoration: none; font-weight: 600; }
.hs-book-legacy__item a:hover { color: var(--hs-link); }
.hs-book-legacy__year {
font-family: 'JetBrains Mono', monospace; font-size: var(--hs-text-xs);
color: var(--hs-text-muted);
}
/* --- Individual book sales page hero ---
* Widen beyond `--hs-content-width` (1000px) to 1200px so cover + copy
* have room to breathe, and tilt the grid toward the text column. */
.hs-hero--book.hs-hero--split { align-items: center; max-width: 1200px; grid-template-columns: 1.3fr 0.85fr; }
.hs-hero--book.hs-hero--no-image { grid-template-columns: 1fr; max-width: 780px; }
.hs-book-hero__cover img {
max-width: 420px; width: 100%; height: auto;
border-radius: 4px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hs-hero--book .hs-hero__subtitle {
font-size: var(--hs-text-lg); font-style: italic;
color: var(--hs-dark-text-muted); margin-block: 0 var(--hs-space-md);
}
.hs-book-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--hs-space-sm); margin-top: var(--hs-space-md); }
/* Mobile: collapse book hero to single column. The generic
.hs-hero--split mobile rules lose specificity to the book-specific
grid-template-columns override above (0,2,0 vs 0,1,0), so we repeat
the collapse here scoped to the book variant. */
@media (max-width: 768px) {
.hs-hero--book.hs-hero--split { grid-template-columns: 1fr; text-align: center; }
.hs-book-hero__cover img { max-width: 260px; margin-inline: auto; }
.hs-book-hero__ctas { justify-content: center; }
}
/* --- Book takeaways list ---
* Scoped under .hs-post-content so the ::before checkmark wins over
* the generic `.hs-post-content ul > li::before` gold dot (specificity
* 0,2,3 here beats 0,1,3 there).
*/
.hs-post-content .hs-book-takeaways {
list-style: none; padding: 0; margin: var(--hs-space-md) 0 0;
display: flex; flex-direction: column; gap: var(--hs-space-md);
max-width: 720px;
}
.hs-post-content .hs-book-takeaways > li {
position: relative; padding-left: 2rem;
font-size: var(--hs-text-md); line-height: var(--hs-leading-normal);
margin-bottom: 0;
}
.hs-post-content .hs-book-takeaways > li::before {
content: "\2713"; position: absolute; left: 0; top: 0.1em;
width: auto; height: auto; background: none; border-radius: 0;
color: var(--hs-teal); font-weight: 700; font-size: 1.1em;
}
.hs-books-proof { padding-block: var(--hs-section-pad-compact); }
.hs-books-proof__link { display: flex; flex-direction: column; align-items: center; gap: var(--hs-space-md); text-decoration: none; color: inherit; }
.hs-books-proof__row { display: flex; gap: var(--hs-space-md); justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.hs-books-proof__cover { width: 120px; height: auto; max-height: 180px; object-fit: contain; box-shadow: 0 4px 16px rgba(0, 8, 42, 0.18); transition: transform 160ms ease, box-shadow 160ms ease; }
.hs-books-proof__link:hover .hs-books-proof__cover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 8, 42, 0.25); }
.hs-books-proof__label { margin: 0; font-size: var(--hs-text-sm); font-weight: 700; letter-spacing: var(--hs-tracking-wider); text-transform: uppercase; color: var(--hs-teal); }
.hs-books-proof__arrow { display: inline-block; transition: transform 160ms ease; }
.hs-books-proof__link:hover .hs-books-proof__arrow { transform: translateX(3px); }
@media (max-width: 640px) {
.hs-books-proof__cover { width: 80px; max-height: 120px; }
.hs-books-proof__row { gap: var(--hs-space-sm); }
}
