/*
Theme Name: JourneyMan
Theme URI: https://genestrother.substack.com/
Author: The JourneyMan's Journal
Author URI: https://genestrother.substack.com/
Description: A dark, Substack-style storytelling theme for writers. Full-width banner that never crops your artwork, a featured-post hero with Most Popular, Latest / Top / Discussions tabs, a subscribe sidebar, and a clean reading layout with drop caps. Built for The JourneyMan's Journal.
Version: 1.6.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: journeyman
Tags: blog, news, three-columns, right-sidebar, grid-layout, custom-background, custom-header, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, editor-style, wide-blocks
*/

/* ==========================================================================
   1. Tokens (values measured from the original Substack theme)
   ========================================================================== */
:root {
	--bg: #292524;
	--bg-elev: #363231;
	--bg-2: #464242;
	--bg-3: #656362;
	--bg-4: #848281;
	--border: #3e3b3a;
	--muted: #a9a8a7;
	--text: #ffffff;
	--text-soft: #eeeeee;
	--accent: #d97706;
	--accent-hover: #bf6905;
	--font-head: "Roboto Slab", Rockwell, "Rockwell Nova", Georgia, serif;
	--font-body: Spectral, Georgia, "Times New Roman", serif;
	--font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--font-meta: "SF Compact", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1280px;
	--gutter: 28px;
	--radius: 8px;
	--topbar-h: 64px;
	--banner-max: 1400px;
	--banner-strip: 320px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

::selection {
	background: rgba(217, 119, 6, 0.45);
	color: #fff;
}

.site-content {
	overflow-x: clip;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.icon {
	display: block;
	flex-shrink: 0;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	font: 600 15px/20px var(--font-ui);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--accent {
	background: var(--accent);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn--accent:hover {
	background: var(--accent-hover);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--text-soft);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

.btn--soft {
	background: var(--bg-elev);
	color: var(--text);
}

.btn--soft:hover {
	background: var(--bg-2);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--text-soft);
	transition: background-color 0.15s ease;
}

.icon-btn:hover {
	background: rgba(255, 255, 255, 0.08);
}

.pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--radius);
	background: var(--bg-elev);
	color: var(--text);
	font: 500 12px/20px var(--font-ui);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.pill-btn:hover {
	background: var(--bg-2);
}

/* ==========================================================================
   4. Header: top bar
   ========================================================================== */
.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(41, 37, 36, 0.94);
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar.is-scrolled {
	border-bottom-color: var(--border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.admin-bar .topbar {
	top: 32px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--container);
	min-height: var(--topbar-h);
	margin: 0 auto;
	padding: 12px var(--gutter);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--text);
}

.brand__name {
	overflow: hidden;
	font: 700 17px/24px var(--font-head);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.brand:hover .brand__name {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.pub-icon {
	display: block;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: var(--radius);
	object-fit: cover;
}

.pub-icon--monogram {
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #fff;
	font: 700 16px/1 var(--font-head);
}

.topbar__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
}

.btn--subscribe {
	margin-left: 4px;
}

.btn--account {
	width: 40px;
	padding: 0;
}

.account-avatar {
	border-radius: 50%;
}

/* Search drop-down (native popover) */
.search-panel {
	position: fixed;
	inset: var(--topbar-h) 0 auto 0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--bg);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	color: var(--text);
}

.admin-bar .search-panel {
	top: calc(32px + var(--topbar-h));
}

.search-panel__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 760px;
	margin: 0 auto;
	padding: 16px var(--gutter);
}

.search-form {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
}

.search-form__icon {
	position: absolute;
	left: 13px;
	color: var(--muted);
	pointer-events: none;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px 0 40px;
	border: 1px solid var(--border);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--bg-elev);
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.search-form__input:focus {
	outline: none;
	border-color: var(--accent);
}

.search-form__input::placeholder {
	color: var(--bg-4);
}

.search-form__submit {
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--border);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--bg-2);
	font: 600 14px/20px var(--font-ui);
}

.search-form__submit:hover {
	background: var(--bg-3);
}

/* ==========================================================================
   5. Header: banner (shows the whole image; nothing is cropped)
   ========================================================================== */
.banner {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background: #1c1918;
	isolation: isolate;
}

.banner__backdrop {
	position: absolute;
	inset: -60px;
	z-index: -1;
	background-image: var(--banner-img);
	background-position: center;
	background-size: cover;
	filter: blur(40px) saturate(1.2) brightness(0.5);
	transform: scale(1.08);
}

.banner__frame {
	position: relative;
	max-width: var(--banner-max);
	margin: 0 auto;
}

.banner__link {
	display: block;
}

.banner__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Soft edges where the banner meets the blurred backdrop on wide screens. */
@media (min-width: 1400px) {
	.banner--full .banner__img {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	}
}

/* Optional Substack-style cropped strip */
.banner--cover .banner__frame {
	max-width: none;
}

.banner--cover .banner__img {
	height: var(--banner-strip);
	object-fit: cover;
	object-position: 50% 40%;
}

/* Smaller, still uncropped, on posts and pages */
.banner--compact .banner__frame {
	display: flex;
	justify-content: center;
	padding: 20px var(--gutter) 44px;
}

.banner--compact .banner__img {
	width: auto;
	max-width: 100%;
	height: 210px;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	object-fit: contain;
}

/* ==========================================================================
   6. Header: navigation card
   ========================================================================== */
.nav-card {
	position: relative;
	z-index: 2;
	max-width: var(--container);
	margin: -48px auto 0;
	padding: 0 var(--gutter);
	border-radius: 12px 12px 0 0;
	background: var(--bg);
}

.has-compact-banner .nav-card {
	margin-top: -28px;
}

.no-banner .nav-card {
	margin-top: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

.nav-card__scroll {
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.nav-card__scroll::-webkit-scrollbar {
	display: none;
}

.nav-menu {
	display: flex;
	width: max-content;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	position: relative;
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 12px;
	color: var(--text);
	font: 500 14px/20px var(--font-body);
	letter-spacing: -0.15px;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.nav-menu a:hover {
	opacity: 0.8;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
	font-weight: 700;
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-ancestor > a::after {
	position: absolute;
	right: 12px;
	bottom: 0;
	left: 12px;
	height: 3px;
	background: currentColor;
	content: "";
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
	position: relative;
	padding: 8px;
	border-radius: var(--radius);
	transition: background-color 0.15s ease;
}

.card:hover {
	background: rgba(255, 255, 255, 0.025);
}

.card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	background: var(--bg-elev);
}

.card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.card__body {
	margin-top: 12px;
	min-width: 0;
}

.card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--text);
	font: 700 19px/26px var(--font-head);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Whole card is clickable via the title link. */
.card--grid .card__title a::before,
.card--stack .card__title a::before,
.card--feature .card__title a::before,
.card--popular .card__title a::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
}

.card__subtitle {
	margin: 4px 0 0;
	overflow: hidden;
	color: var(--text);
	font: 400 14px/20px var(--font-ui);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 5px;
	margin-top: 4px;
	color: var(--muted);
	font: 500 11px/20px var(--font-meta);
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

/* Comment + share row (visible on hover) */
.card-actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	margin: 4px 0 0 -6px;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.card:hover .card-actions,
.card:focus-within .card-actions {
	opacity: 1;
}

@media (hover: none) {
	.card-actions {
		opacity: 1;
	}
}

.card-actions__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font: 500 13px/20px var(--font-ui);
}

.card-actions__item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.card-actions__share {
	margin-left: auto;
}

/* Featured (center of the hero) */
.card--feature .card__media {
	border-radius: 4px;
}

.card--feature .card__img {
	object-position: 50% 50%;
}

.card--feature .card__body {
	margin-top: 0;
	padding: 32px 16px 0;
	text-align: center;
}

.card--feature .card__title {
	padding-bottom: 8px;
	font-size: 30px;
	line-height: 38px;
	text-wrap: balance;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.card--feature .card__subtitle {
	display: -webkit-box;
	margin-top: 0;
	font-size: 17px;
	line-height: 24px;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.card--feature .post-meta {
	justify-content: center;
	margin-top: 8px;
}

/* Most Popular rows */
.card--popular {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	min-height: 108px;
}

.card--popular .card__body {
	margin-top: 0;
}

.card--popular .card__title {
	font-size: 15px;
	line-height: 20px;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.card--popular .card__media {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	aspect-ratio: 1;
}

/* Archive rows */
.card--list {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0 20px;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

.card--list:hover {
	background: transparent;
}

.card--list .card__body {
	flex: 1;
	margin-top: 0;
}

.card--list .card__subtitle {
	display: -webkit-box;
	margin-top: 6px;
	color: var(--muted);
	font-size: 15px;
	line-height: 22px;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.card--list .card__media {
	width: 150px;
	flex-shrink: 0;
}

.card--list .card-actions {
	margin-top: 6px;
	opacity: 1;
}

/* ==========================================================================
   8. Homepage
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 293fr) 1px minmax(0, 604fr) 1px minmax(0, 293fr);
	align-items: start;
	column-gap: 8px;
}

.hero__rule {
	align-self: stretch;
	margin: 8px 0;
	background: var(--border);
}

.hero__col--stack {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 8px 0;
}

.section-head__title {
	margin: 0;
	font: 700 17px/24px var(--font-head);
}

.section-head__link {
	color: var(--text);
	font: 500 11px/20px var(--font-meta);
	letter-spacing: 0.2px;
	text-transform: uppercase;
	white-space: nowrap;
}

.section-head__link:hover {
	text-decoration: underline;
}

.popular-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 12px;
}

.section-rule {
	margin: 24px 8px;
	border: 0;
	border-top: 1px solid var(--border);
}

.home-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 286px;
	align-items: start;
	column-gap: 24px;
}

.feed-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding: 0 8px;
}

.tabs {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}

.tabs__btn {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font: 600 13px/20px var(--font-ui);
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tabs__btn:hover {
	color: var(--text);
}

.tabs__btn[aria-selected="true"],
.tabs__btn[aria-current="page"] {
	background: var(--bg-elev);
	color: var(--text);
}

.feed-search {
	display: flex;
	align-items: center;
	gap: 4px;
}

.feed-search__input {
	width: 0;
	height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	font-size: 15px;
	opacity: 0;
	visibility: hidden;
	transition: width 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.feed-search.is-open .feed-search__input {
	width: 200px;
	padding: 0 12px;
	border-color: var(--border);
	background: var(--bg-elev);
	opacity: 1;
	visibility: visible;
}

.feed-search__input:focus {
	outline: none;
	border-color: var(--accent);
}

.feed-search__input::placeholder {
	color: var(--bg-4);
}

.tab-panel[hidden] {
	display: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px 16px;
}

.see-all {
	margin: 16px 8px 0;
	padding-right: 12px;
}

.empty-note {
	margin: 8px;
	padding: 32px 24px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

.empty-state {
	padding: 80px 0;
	text-align: center;
}

/* Sidebar */
.home-sidebar {
	padding-right: 8px;
}

.side-about__icon {
	display: inline-block;
}

.side-about__name {
	margin: 8px 0 0;
	font: 700 17px/24px var(--font-head);
}

.side-about__name a:hover {
	text-decoration: underline;
}

.side-about__text {
	margin: 4px 0 0;
	color: var(--muted);
	font: 400 12px/20px var(--font-ui);
}

.side-about .subscribe-form {
	margin-top: 24px;
}

.side-block {
	margin-top: 40px;
}

.side-block__title {
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	font: 700 17px/24px var(--font-head);
}

.rec-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.rec__link {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rec__img {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: var(--radius);
	object-fit: cover;
}

.rec__img--empty {
	background: var(--bg-2);
	font: 700 16px/1 var(--font-head);
}

.rec__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rec__name {
	font: 700 15px/20px var(--font-head);
}

a.rec__link:hover .rec__name {
	text-decoration: underline;
}

.rec__author {
	color: var(--muted);
	font: 400 12px/20px var(--font-ui);
}

/* Widgets (sidebar + below posts) */
.widget {
	margin-top: 40px;
	color: var(--text);
	font: 400 14px/20px var(--font-ui);
}

.widget h2,
.widget h3,
.widget .wp-block-heading,
.widget .wp-block-search__label,
.post-widget__title {
	display: block;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font: 700 17px/24px var(--font-head);
}

.widget ul,
.widget ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul ul {
	margin-top: 8px;
	padding-left: 12px;
}

.widget a:hover {
	text-decoration: underline;
}

.widget .wp-block-latest-comments {
	padding: 0;
}

.widget .wp-block-latest-comments__comment {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
}

.widget .wp-block-latest-comments__comment-meta,
.widget .wp-block-latest-comments__comment-excerpt p {
	margin: 0;
	font-size: 13px;
}

.widget .wp-block-latest-comments__comment-author {
	font-weight: 600;
}

.widget .wp-block-latest-posts__post-date,
.widget .post-date {
	display: block;
	color: var(--muted);
	font-size: 12px;
}

.wp-block-search__inside-wrapper {
	display: flex;
}

.wp-block-search__input,
.widget_search .search-field {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--bg-elev);
	color: var(--text);
	font: 400 15px/20px var(--font-ui);
}

.wp-block-search__input:focus {
	outline: none;
	border-color: var(--accent);
}

.wp-block-search__button {
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-left: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--bg-2);
	color: var(--text);
	font: 600 14px/20px var(--font-ui);
}

.wp-block-search__button:hover {
	background: var(--bg-3);
}

.widget select {
	width: 100%;
	height: 40px;
	padding: 0 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.post-widgets .widget:first-child {
	margin-top: 0;
}

/* ==========================================================================
   9. Subscribe form
   ========================================================================== */
.subscribe-form {
	display: flex;
	width: 100%;
}

.subscribe-form__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--accent);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--bg-elev);
	color: var(--text);
	font: 400 15px/20px var(--font-ui);
	-webkit-appearance: none;
	appearance: none;
}

.subscribe-form__input::placeholder {
	color: var(--bg-4);
}

.subscribe-form__input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px var(--accent);
}

.subscribe-form__button {
	flex-shrink: 0;
	height: 40px;
	padding: 0 20px;
	border: 1px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent);
	color: #fff;
	font: 500 14px/1 var(--font-ui);
	transition: background-color 0.15s ease;
}

.subscribe-form__button:hover {
	border-color: var(--accent-hover);
	background: var(--accent-hover);
}

.subscribe-note {
	margin: 10px 0 0;
	color: #86efac;
	font: 500 14px/20px var(--font-ui);
}

.subscribe-note--error {
	color: #fca5a5;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--border);
}

.footer-subscribe {
	padding: 64px 20px;
	text-align: center;
}

.footer-subscribe__inner {
	max-width: 560px;
	margin: 0 auto;
}

.footer-subscribe__title {
	margin: 0;
	font: 700 30px/36px var(--font-head);
}

.footer-subscribe__text {
	margin: 12px auto 0;
	font: 400 17px/24px var(--font-ui);
}

.footer-subscribe .subscribe-form {
	max-width: 301px;
	margin: 24px auto 0;
}

.footer-subscribe .subscribe-form--plugin {
	max-width: 420px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font: 400 13px/20px var(--font-ui);
}

.footer-links a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer-links a:hover {
	color: var(--accent);
}

.legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal-links li::before {
	margin-right: 6px;
	content: "\00b7";
}

.legal-links a {
	text-decoration: underline;
}

.legal-links a:hover {
	color: var(--text);
}

/* Toast (share → "Link copied") */
.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 200;
	padding: 10px 16px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	color: #1c1917;
	font: 600 14px/20px var(--font-ui);
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ==========================================================================
   11. Single post & page
   ========================================================================== */
.post-single {
	max-width: 768px;
	margin: 0 auto;
	padding: 32px 20px 0;
}

.post-header {
	margin-bottom: 16px;
}

.post-title {
	margin: 0;
	font: 700 32px/36px var(--font-head);
	overflow-wrap: break-word;
	text-wrap: balance;
}

.post-subtitle {
	margin: 12px 0 0;
	color: var(--muted);
	font: 400 18px/24px var(--font-head);
}

.byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.byline__avatar img {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.byline__author,
.byline__date {
	display: block;
	font: 500 11px/20px var(--font-meta);
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.byline__author:hover {
	text-decoration: underline;
}

.byline__date {
	color: var(--muted);
}

.post-ufi {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 14px;
}

.post-ufi .pill-btn {
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
}

.post-ufi .pill-btn:hover {
	border-color: var(--bg-3);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
}

.post-ufi--bottom {
	margin-top: 40px;
	padding: 16px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.post-hero {
	margin: 24px 0 28px;
}

.post-hero img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

.post-hero figcaption {
	margin-top: 8px;
	color: var(--muted);
	font: 400 13px/20px var(--font-ui);
	text-align: center;
}

.post-single--page .post-header {
	margin-bottom: 28px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.post-tags a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--bg-elev);
	font: 600 13px/20px var(--font-ui);
}

.post-tags a:hover {
	background: var(--bg-2);
}

.post-subscribe {
	margin-top: 40px;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	text-align: center;
}

.post-subscribe__text {
	margin: 0 0 16px;
	font: 400 17px/24px var(--font-ui);
}

.post-subscribe .subscribe-form {
	max-width: 380px;
	margin: 0 auto;
}

.post-navigation {
	margin-top: 32px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: background-color 0.15s ease;
}

.post-navigation a:hover {
	background: rgba(255, 255, 255, 0.03);
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.nav-label {
	display: block;
	color: var(--muted);
	font: 500 11px/20px var(--font-meta);
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.nav-title {
	display: block;
	font: 700 16px/22px var(--font-head);
}

.post-widgets {
	margin-top: 40px;
}

/* ==========================================================================
   12. Article typography
   ========================================================================== */
.entry-content {
	color: var(--text);
	font: 400 19px/1.6 var(--font-body);
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 20px;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 40px 0 16px;
	font-family: var(--font-head);
	font-weight: 700;
}

.entry-content h1 { font-size: 30px; line-height: 1.25; }
.entry-content h2 { font-size: 26px; line-height: 1.25; }
.entry-content h3 { font-size: 22px; line-height: 1.3; }
.entry-content h4 { font-size: 19px; line-height: 1.35; }
.entry-content h5,
.entry-content h6 { font-size: 16px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.4px; }

.entry-content a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--accent);
}

.entry-content strong,
.entry-content b {
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 6px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-top: 6px;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 28px 0;
	padding: 0 0 0 20px;
	border-left: 4px solid var(--accent);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font: 500 14px/20px var(--font-ui);
	font-style: normal;
}

.entry-content .wp-block-pullquote {
	margin: 40px 0;
	padding: 24px 0;
	border-top: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.entry-content .wp-block-pullquote p {
	font: 400 26px/1.35 var(--font-head);
}

.entry-content img {
	border-radius: 2px;
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: 8px;
	color: var(--muted);
	font: 400 13px/20px var(--font-ui);
	text-align: center;
}

.entry-content hr,
.entry-content .wp-block-separator {
	width: 100%;
	max-width: none;
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--border);
	background: none;
	opacity: 1;
}

.entry-content .wp-block-separator.is-style-dots {
	border: 0;
	text-align: center;
}

.entry-content .wp-block-separator.is-style-dots::before {
	color: var(--muted);
}

.entry-content code,
.entry-content kbd {
	padding: 2px 5px;
	border-radius: 4px;
	background: var(--bg-elev);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82em;
}

.entry-content pre {
	overflow: auto;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--bg-elev);
	font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.entry-content pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font: 400 15px/1.5 var(--font-ui);
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--border);
	text-align: left;
}

.entry-content th {
	background: var(--bg-elev);
}

.entry-content .wp-block-button__link,
.entry-content .button {
	display: inline-block;
	padding: 10px 20px;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font: 600 15px/20px var(--font-ui);
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--accent-hover);
	color: #fff;
}

.entry-content .is-style-outline .wp-block-button__link {
	border: 1px solid var(--accent);
	background: transparent;
	color: var(--accent);
}

.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-block-audio {
	margin: 28px 0;
}

.entry-content .wp-block-audio audio {
	width: 100%;
}

/* Drop cap: first paragraph, Substack style */
.entry-content.has-dropcap > p:first-child::first-letter,
.entry-content .has-drop-cap:not(:focus)::first-letter {
	float: left;
	margin: 6px 10px 0 -2px;
	color: var(--accent);
	font-family: var(--font-head);
	font-size: 72px;
	font-weight: 400;
	font-style: normal;
	line-height: 54px;
	text-transform: uppercase;
}

/* Wide and full blocks */
.entry-content .alignwide {
	position: relative;
	left: 50%;
	width: min(1080px, calc(100vw - 40px));
	max-width: none;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	transform: translateX(-50%);
}

.entry-content .alignfull img,
.entry-content .alignwide img {
	width: 100%;
}

.alignleft {
	float: left;
	margin: 6px 24px 16px 0;
}

.alignright {
	float: right;
	margin: 6px 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.wp-caption {
	max-width: 100%;
}

.sticky,
.bypostauthor {
	/* Classes required by WordPress; styling handled by the cards. */
	outline: 0;
}

.page-links {
	display: flex;
	gap: 8px;
	margin-top: 32px;
	font: 600 14px/20px var(--font-ui);
}

.page-links a,
.page-links > .post-page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--bg-elev);
	text-decoration: none;
}

/* ==========================================================================
   13. Comments
   ========================================================================== */
.comments-area {
	margin-top: 48px;
	padding-bottom: 48px;
}

.comments-title {
	margin: 0 0 16px;
	font: 700 20px/24px var(--font-ui);
}

.comment-respond {
	margin-bottom: 8px;
}

.comment-reply-title {
	margin: 0 0 8px;
	font: 600 15px/20px var(--font-ui);
}

.comment-reply-title small {
	margin-left: 8px;
	font-weight: 500;
}

.comment-reply-title small a {
	color: var(--muted);
	text-decoration: underline;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.comment-form > p {
	margin: 0;
}

.comment-form-comment,
.comment-form .logged-in-as,
.comment-form .comment-notes,
.comment-form-cookies-consent,
.comment-form .form-submit {
	grid-column: 1 / -1;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font: 500 13px/20px var(--font-ui);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	color: var(--text);
	font: 400 15px/22px var(--font-ui);
}

.comment-form textarea {
	min-height: 96px;
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.comment-form textarea::placeholder {
	color: var(--bg-4);
}

.comment-form .logged-in-as,
.comment-notes,
.comment-form-cookies-consent label {
	color: var(--muted);
	font: 400 13px/20px var(--font-ui);
}

.comment-form .logged-in-as a {
	text-decoration: underline;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent label {
	margin: 0;
}

.comment-form-cookies-consent input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
}

.comment-form .form-submit {
	display: flex;
	justify-content: flex-end;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list {
	margin-top: 24px;
}

.comment-list .children {
	padding-left: 44px;
}

.comment-body {
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--border);
}

.comment-avatar img {
	border-radius: 50%;
}

.comment-main {
	flex: 1;
	min-width: 0;
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.comment-author {
	font: 600 14px/20px var(--font-ui);
}

.comment-date {
	color: var(--muted);
	font: 400 13px/20px var(--font-ui);
}

.comment-content {
	margin-top: 4px;
	font: 400 15px/22px var(--font-ui);
}

.comment-content p {
	margin: 0 0 8px;
}

.comment-content a {
	text-decoration: underline;
}

.comment-actions {
	display: flex;
	gap: 12px;
	margin-top: 4px;
	color: var(--muted);
	font: 600 13px/20px var(--font-ui);
}

.comment-actions a:hover {
	color: var(--text);
}

.comment-awaiting {
	color: var(--accent);
	font-size: 13px;
}

.pingback .comment-body,
.trackback .comment-body {
	display: block;
	font-size: 14px;
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	font: 600 14px/20px var(--font-ui);
}

/* ==========================================================================
   14. Lists, archive, search, 404
   ========================================================================== */
.narrow {
	max-width: 768px;
	margin: 0 auto;
	padding: 40px 20px 48px;
}

.narrow--center {
	text-align: center;
}

.narrow--center .search-form {
	max-width: 520px;
	margin: 24px auto;
}

.list-header {
	margin-bottom: 24px;
}

.list-header__eyebrow {
	margin: 0 0 6px;
	color: var(--muted);
	font: 500 12px/20px var(--font-meta);
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.list-header__title {
	margin: 0;
	font: 700 32px/40px var(--font-head);
}

.list-header__desc {
	margin-top: 8px;
	color: var(--muted);
	font: 400 16px/24px var(--font-ui);
}

.list-header .search-form {
	margin-top: 16px;
}

.lead {
	color: var(--muted);
	font: 400 17px/26px var(--font-ui);
}

.feed-toolbar--archive {
	padding: 0;
}

.post-list {
	border-top: 1px solid var(--border);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius);
	background: var(--bg-elev);
	font: 600 14px/20px var(--font-ui);
}

a.page-numbers:hover {
	background: var(--bg-2);
}

.page-numbers.current {
	background: var(--accent);
	color: #fff;
}

.page-numbers.dots {
	background: transparent;
}

/* ==========================================================================
   15. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto !important;
	clip-path: none;
	border-radius: var(--radius);
	background: #fff;
	color: #1c1917;
	font: 600 14px/20px var(--font-ui);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1120px) {
	.hero {
		grid-template-areas:
			"feature feature"
			"stack popular";
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px 16px;
	}

	.hero__rule {
		display: none;
	}

	.hero__col--feature {
		grid-area: feature;
	}

	.hero__col--stack {
		grid-area: stack;
	}

	.hero__col--popular {
		grid-area: popular;
	}

	.card--feature {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: 24px;
	}

	.card--feature .card__body {
		padding: 0 8px 0 0;
		text-align: left;
	}

	.card--feature .post-meta {
		justify-content: flex-start;
	}

	.card--feature .card__title {
		font-size: 28px;
		line-height: 34px;
	}
}

@media (max-width: 1024px) {
	.home-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0 32px;
		margin: 40px 8px 0;
		padding: 32px 0 0;
		border-top: 1px solid var(--border);
	}

	.home-sidebar .side-block {
		margin-top: 0;
	}
}

@media (max-width: 900px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .topbar {
		top: 46px;
	}
}

@media (max-width: 700px) {
	:root {
		--gutter: 16px;
	}

	.container {
		padding: 0 8px;
	}

	.hero {
		grid-template-areas:
			"feature"
			"stack"
			"popular";
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.card--feature {
		display: block;
	}

	.card--feature .card__body {
		padding: 16px 0 0;
		text-align: center;
	}

	.card--feature .post-meta {
		justify-content: center;
	}

	.card--feature .card__title {
		font-size: 26px;
		line-height: 32px;
	}

	.hero__col--stack {
		gap: 8px;
	}

	.hero__col--popular {
		margin-top: 16px;
	}

	.home-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.feed-toolbar {
		flex-wrap: wrap;
	}

	.feed-search.is-open .feed-search__input {
		width: 150px;
	}


	.card--list .card__media {
		width: 96px;
	}

	.card--list {
		gap: 16px;
	}

	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		grid-column: 1;
	}
}

@media (max-width: 640px) {
	.topbar__inner {
		gap: 8px;
		min-height: 56px;
		padding: 8px 12px;
	}

	.brand {
		gap: 10px;
	}

	.brand__name {
		font-size: 15px;
	}

	.topbar__actions .icon-btn--share {
		display: none;
	}

	.btn--subscribe {
		height: 36px;
		padding: 0 12px;
		font-size: 14px;
	}

	.btn--signin {
		height: 36px;
		padding: 0 10px;
		font-size: 14px;
	}

	.nav-card {
		margin-top: -16px;
		padding: 0 4px;
		border-radius: 10px 10px 0 0;
	}

	.has-compact-banner .nav-card {
		margin-top: -12px;
	}

	.banner--compact .banner__frame {
		padding: 12px 12px 24px;
	}

	.banner--compact .banner__img {
		width: 100%;
		height: auto;
	}

	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-title {
		font-size: 28px;
		line-height: 34px;
	}

	.entry-content {
		font-size: 18px;
	}

	.entry-content.has-dropcap > p:first-child::first-letter,
	.entry-content .has-drop-cap:not(:focus)::first-letter {
		font-size: 64px;
		line-height: 50px;
	}

	.post-single {
		padding-top: 24px;
	}

	.footer-subscribe {
		padding: 48px 20px;
	}
}

@media (max-width: 600px) {
	.admin-bar .topbar {
		top: 0;
	}
}

@media (max-width: 420px) {
	.btn--signin {
		display: none;
	}

	.brand__name {
		font-size: 14px;
	}
}

@media print {
	.topbar,
	.banner,
	.nav-card,
	.site-footer,
	.post-ufi,
	.post-subscribe,
	.comments-area,
	.post-navigation {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.entry-content,
	.post-title {
		color: #000;
	}
}

/* ==========================================================================
   17. Block styles & patterns
   ========================================================================== */
.entry-content .is-style-journeyman-framed img {
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--bg-elev);
}

.entry-content .is-style-journeyman-lead {
	color: var(--text);
	font-size: 22px;
	line-height: 1.5;
}

.entry-content .journeyman-callout {
	margin: 40px 0;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.entry-content .journeyman-callout h3 {
	margin-top: 0;
}

/* ==========================================================================
   18. Landing page (v1.1): intro, chapters, About Gene, Journal, photos
   ========================================================================== */
:root {
	--bg-deep: #201c1b;
	--bg-deep: color-mix(in srgb, var(--bg) 78%, #000);
	--text-2: #d6d3d1;
	--accent-soft: #f0a94a;
	--accent-soft: color-mix(in srgb, var(--accent) 62%, #fff);
}

.btn--lg {
	height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	font-size: 16px;
}

.btn--outline {
	border: 1px solid var(--bg-3);
	background: transparent;
	color: var(--text);
}

.btn--outline:hover {
	border-color: var(--text);
	background: rgba(255, 255, 255, 0.04);
}

.btn .icon {
	transition: transform 0.2s ease;
}

.btn:hover .icon-arrow-r {
	transform: translateX(3px);
}

.btn:hover .icon-arrow-d {
	transform: translateY(2px);
}

/* Intro statement */
.lp-intro {
	position: relative;
	padding: 76px var(--gutter) 72px;
	overflow: hidden;
	text-align: center;
}

.lp-intro::before {
	position: absolute;
	top: -120px;
	left: 50%;
	width: min(1100px, 120%);
	height: 520px;
	background: radial-gradient(closest-side, rgba(217, 119, 6, 0.18), transparent);
	content: "";
	pointer-events: none;
	transform: translateX(-50%);
}

.lp-intro__inner {
	position: relative;
	max-width: 840px;
	margin: 0 auto;
}

.lp-intro__eyebrow {
	margin: 0 0 18px;
	color: var(--accent-soft);
	font: 600 13px/20px var(--font-meta);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lp-intro__title {
	margin: 0;
	font: 700 clamp(40px, 6.2vw, 72px)/1.03 var(--font-head);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.lp-intro__title em,
.chapter-head__title em {
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.lp-intro__text {
	max-width: 640px;
	margin: 24px auto 0;
	color: var(--text-2);
	font: 400 clamp(18px, 2.1vw, 21px)/1.55 var(--font-body);
	text-wrap: pretty;
}

.lp-intro__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

.lp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 660px;
	margin: 52px auto 0;
	padding: 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.lp-stats__item {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	padding: 20px 12px;
}

.lp-stats__item + .lp-stats__item {
	border-left: 1px solid var(--border);
}

.lp-stats__value {
	margin: 0;
	font: 700 30px/1.1 var(--font-head);
}

.lp-stats__label {
	color: var(--muted);
	font: 500 11px/16px var(--font-meta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Chapter headings */
.chapter-head {
	margin-bottom: 32px;
}

.chapter-head--center {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.chapter-head__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--muted);
	font: 600 12px/16px var(--font-meta);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.chapter-head--center .chapter-head__eyebrow,
.chapter-head__eyebrow--center {
	justify-content: center;
}

.chapter-head__num {
	color: var(--accent);
	font-weight: 700;
}

.chapter-head__rule {
	width: 36px;
	height: 1px;
	background: var(--accent);
	opacity: 0.7;
}

.chapter-head__title {
	margin: 0;
	font: 700 clamp(30px, 4vw, 46px)/1.08 var(--font-head);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.chapter-head__text {
	margin: 14px 0 0;
	color: var(--text-2);
	font: 400 19px/1.5 var(--font-body);
}

/* 01 About Gene */
.lp-about {
	padding: 104px 0;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.lp-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 80px;
	max-width: 1180px;
}

.lp-about__grid--text {
	grid-template-columns: minmax(0, 1fr);
	max-width: 780px;
}

.lp-about__media {
	position: relative;
	margin: 0 18px 18px 0;
}

.lp-about__frame {
	position: relative;
}

.lp-about__frame::before {
	position: absolute;
	inset: 18px -18px -18px 18px;
	z-index: 0;
	border: 1.5px solid var(--accent);
	border-radius: 16px;
	content: "";
	opacity: 0.65;
}

.lp-about__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
	object-fit: cover;
}

.lp-about__caption {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(24, 21, 20, 0.82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.lp-about__name {
	font: 700 16px/20px var(--font-head);
}

.lp-about__role {
	color: var(--accent-soft);
	font: 600 11px/16px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lp-about__lead {
	margin: 0 0 22px;
	color: var(--text);
	font: italic 400 clamp(24px, 2.6vw, 30px)/1.35 var(--font-body);
	text-wrap: balance;
}

.lp-about__story p {
	margin: 0 0 18px;
	color: var(--text-2);
	font: 400 19px/1.65 var(--font-body);
}

.lp-about__quote {
	margin: 26px 0;
	padding: 2px 0 2px 22px;
	border-left: 3px solid var(--accent);
}

.lp-about__quote p {
	margin: 0;
	color: var(--text);
	font: 400 21px/1.5 var(--font-head);
}

.lp-about__sign {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--border);
}

.lp-about__logo {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.lp-about__signame strong {
	display: block;
	font: 700 18px/22px var(--font-head);
}

.lp-about__signame span {
	color: var(--muted);
	font: 500 11px/16px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lp-about__btn {
	margin-left: auto;
}

/* 02 Journal */
.lp-journal {
	padding: 96px 0 48px;
	border-top: 1px solid var(--border);
}

.lp-journal__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
	padding: 0 8px;
}

.lp-journal__head .chapter-head {
	margin-bottom: 0;
}

.lp-journal__all {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	padding: 8px 0;
	border-bottom: 1px solid var(--accent);
	font: 600 15px/20px var(--font-ui);
	white-space: nowrap;
}

.lp-journal__all:hover {
	color: var(--accent-soft);
}

/* 03 Photos + social */
.lp-gallery {
	padding: 104px 0;
	border-top: 1px solid var(--border);
	background: radial-gradient(1100px 420px at 50% 0, rgba(217, 119, 6, 0.09), transparent 70%), var(--bg-deep);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links__link {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bg-elev);
	color: var(--text);
	transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.social-links__link:hover,
.social-links__link:focus-visible {
	background: var(--accent);
	color: #fff;
	transform: translateY(-2px);
}

.social-links--lg {
	justify-content: center;
	gap: 14px;
	margin: 0 0 44px;
}

.social-links--lg .social-links__link {
	width: 54px;
	height: 54px;
	border: 1px solid var(--border);
}

.social-links--lg .icon {
	width: 22px;
	height: 22px;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
	grid-auto-rows: 220px;
	gap: 12px;
}

.photo-grid__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: var(--bg-elev);
}

.photo-grid--8 .photo-grid__item:nth-child(8n + 1),
.photo-grid--8 .photo-grid__item:nth-child(8n + 4) {
	grid-row: span 2;
}

.photo-grid--8 .photo-grid__item:nth-child(8n + 7),
.photo-grid--8 .photo-grid__item:nth-child(8n + 8) {
	grid-column: span 2;
}

.photo-grid__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	transition: transform 0.6s ease, filter 0.3s ease;
}

.photo-grid--8 .photo-grid__item:nth-child(8n + 7) .photo-grid__img,
.photo-grid--8 .photo-grid__item:nth-child(8n + 8) .photo-grid__img {
	object-position: 50% 55%;
}

.photo-grid__item:hover .photo-grid__img {
	transform: scale(1.04);
}

.photo-grid__item::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	content: "";
	pointer-events: none;
}

.photo-grid__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.photo-grid__item:hover .photo-grid__zoom,
.photo-grid__item:focus-visible .photo-grid__zoom {
	opacity: 1;
}

/* Photo viewer */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	color: #fff;
	overscroll-behavior: contain;
	touch-action: pinch-zoom;
	-webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 12, 11, 0.94);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
}

/* Controls fade in after the photo lands, and out before it leaves. */
.lightbox__chrome {
	opacity: 0;
	transition: opacity 0.3s ease 0.12s;
}

.lightbox.is-ready .lightbox__chrome {
	opacity: 1;
}

.lightbox.is-closing .lightbox__chrome {
	opacity: 0;
	transition-delay: 0s;
	transition-duration: 0.15s;
}

.lightbox__bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 6px max(22px, env(safe-area-inset-left));
}

.lightbox__count {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font: 600 13px/1 var(--font-ui);
	letter-spacing: 0.14em;
	font-variant-numeric: tabular-nums;
}

.lightbox__tools {
	display: flex;
	gap: 10px;
}

.lightbox__btn {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox__btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lightbox__btn:hover {
	border-color: var(--accent);
	background: var(--accent);
}

.lightbox__btn:focus-visible,
.lightbox__thumb:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.lightbox__stage {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: 0;
	padding: 6px 84px;
	place-items: center;
	touch-action: pinch-zoom;
}

.lightbox__img {
	display: block;
	max-width: none;
	border-radius: 6px;
	background: #1c1918;
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
	will-change: transform;
}

.lightbox__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--accent);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.lightbox.is-loading .lightbox__spinner {
	opacity: 1;
	animation: lightbox-spin 0.8s linear infinite;
}

.lightbox__error {
	position: absolute;
	margin: 0;
	color: var(--text-2);
	font: italic 17px/1.5 var(--font-body);
}

.lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	margin-top: -22px;
}

.lightbox__prev {
	left: max(20px, env(safe-area-inset-left));
}

.lightbox__next {
	right: max(20px, env(safe-area-inset-right));
}

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__count {
	display: none;
}

.lightbox__cap {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
	padding: 10px 28px 6px;
	color: rgba(255, 255, 255, 0.86);
	font: italic 400 18px/1.5 var(--font-body);
	text-align: center;
	text-wrap: balance;
}

.lightbox__cap[hidden] {
	display: none;
}

.lightbox__thumbs {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	padding: 10px 22px calc(16px + env(safe-area-inset-bottom));
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.lightbox__thumbs::-webkit-scrollbar {
	display: none;
}

.lightbox__thumbs[hidden] {
	display: none;
}

/* Centre the strip when it is short enough to fit. */
.lightbox__thumbs::before,
.lightbox__thumbs::after {
	flex: 1 0 0;
	content: "";
}

.lightbox__thumb {
	flex: none;
	width: 58px;
	height: 58px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 9px;
	background: #1c1918;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.lightbox__thumb:hover {
	opacity: 0.9;
}

.lightbox__thumb.is-active {
	border-color: var(--accent);
	opacity: 1;
	transform: translateY(-2px);
}

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

/* Photos in posts and pages that open large */
img.is-zoomable {
	cursor: zoom-in;
}

a > img.is-zoomable {
	cursor: inherit;
}

a:has(> img.is-zoomable) {
	cursor: zoom-in;
}

img.is-zoomable:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.lightbox-open,
.menu-open {
	overflow: hidden;
}

/* Keep the page from jumping sideways when the scrollbar goes away. */
.lightbox-open {
	padding-right: var(--jm-sbw, 0);
}

/* Scroll reveal (only when JS has run) */
.js-reveal .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Card placeholder for posts without pictures */
.card__media--empty {
	position: relative;
	display: grid;
	place-items: center;
	background: var(--bg-elev);
	isolation: isolate;
}

.card__media--empty::before {
	position: absolute;
	inset: -24px;
	z-index: -1;
	background: var(--banner-url, linear-gradient(135deg, var(--bg-elev), var(--bg-2))) center / cover no-repeat;
	content: "";
	filter: blur(18px) saturate(1.15) brightness(0.42);
}

.card__placeholder {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--accent);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
	color: #fff;
}

.card__placeholder.has-logo {
	background: var(--logo-url) center / cover no-repeat, #fff;
}

.card--feature .card__placeholder {
	width: 72px;
	height: 72px;
	border-radius: 16px;
}

/* ==========================================================================
   19. Subscribe chapter + footer (v1.1)
   ========================================================================== */
.footer-subscribe {
	padding: 96px 20px;
	background: radial-gradient(900px 340px at 50% 0, rgba(217, 119, 6, 0.13), transparent 70%);
}

.footer-subscribe__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 22px;
	border-radius: 16px;
	box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.16), 0 14px 30px rgba(0, 0, 0, 0.4);
}

.footer-subscribe__title {
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.1;
}

.footer-subscribe .subscribe-form {
	max-width: 400px;
}

.footer-subscribe .subscribe-form__input,
.footer-subscribe .subscribe-form__button {
	height: 48px;
	font-size: 16px;
}

.footer-main {
	border-top: 1px solid var(--border);
	background: var(--bg-deep);
}

.footer-main__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	max-width: var(--container);
	margin: 0 auto;
	padding: 64px var(--gutter) 56px;
}

.footer-about__brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font: 700 20px/1.2 var(--font-head);
}

.footer-about__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.footer-about__tagline {
	max-width: 420px;
	margin: 20px 0 24px;
	color: #e7e5e4;
	font: 400 21px/1.5 var(--font-body);
}

.footer-col__title {
	margin: 8px 0 16px;
	color: var(--muted);
	font: 600 12px/16px var(--font-meta);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.footer-col__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col__links a {
	display: inline-block;
	padding: 7px 0;
	font: 400 17px/1.4 var(--font-body);
	transition: color 0.15s ease;
}

.footer-col__links a:hover {
	color: var(--accent-soft);
}

.footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--border);
	background: var(--bg-deep);
	color: var(--muted);
	font: 400 13px/20px var(--font-ui);
}

.footer-bar__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
}

.footer-bar__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-bar__since {
	font: 600 11px/16px var(--font-meta);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.footer-bar__top {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bg-elev);
	color: var(--text);
}

.footer-bar__top:hover {
	background: var(--accent);
}

/* ==========================================================================
   20. Phone menu drawer (native popover)
   ========================================================================== */
.menu-toggle {
	display: none;
}

.drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(400px, 86vw);
	max-width: 86vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 12px 20px calc(28px + env(safe-area-inset-bottom));
	overflow-y: auto;
	border: 0;
	border-left: 1px solid var(--border);
	background: var(--bg);
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
	color: var(--text);
}

.drawer:popover-open,
.drawer.is-open {
	display: flex;
	flex-direction: column;
	gap: 24px;
	animation: jm-drawer-in 0.28s ease;
}

.drawer::backdrop {
	background: rgba(12, 10, 10, 0.6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

@keyframes jm-drawer-in {
	from {
		opacity: 0;
		transform: translateX(28px);
	}
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.drawer__head .brand__name {
	white-space: normal;
}

.drawer .drawer-menu {
	flex-direction: column;
	width: auto;
	margin: 0;
}

.drawer .drawer-menu a {
	height: auto;
	padding: 15px 2px;
	border-bottom: 1px solid var(--border);
	font: 700 22px/1.2 var(--font-head);
	letter-spacing: -0.01em;
}

.drawer .drawer-menu a::after {
	display: none;
}

.drawer .drawer-menu .current-menu-item > a,
.drawer .drawer-menu .current_page_item > a {
	color: var(--accent-soft);
}

.drawer .drawer-menu .current-menu-item > a::before {
	width: 8px;
	height: 8px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--accent);
	content: "";
}

.drawer__actions {
	display: grid;
	gap: 10px;
}

.drawer__tagline {
	margin: auto 0 0;
	color: var(--muted);
	font: italic 400 17px/1.5 var(--font-body);
}

@supports not selector(:popover-open) {
	.search-panel,
	.drawer {
		display: none;
	}

	.search-panel.is-open {
		display: block;
		z-index: 150;
	}

	.drawer.is-open {
		z-index: 150;
	}
}

/* ==========================================================================
   21. Responsive (v1.1)
   ========================================================================== */
@media (max-width: 1120px) {
	.lp-about__grid {
		gap: 56px;
	}
}

@media (max-width: 960px) {
	.lp-about__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
		max-width: 680px;
	}

	.lp-about__media {
		width: min(100%, 440px);
		margin: 0 auto 18px;
	}

	.footer-main__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.menu-toggle {
		display: inline-grid;
		margin-right: -6px;
	}

	.topbar__search,
	.topbar__actions .icon-btn--share,
	.topbar__actions .btn--signin,
	.topbar__actions .btn--account,
	.nav-card {
		display: none;
	}

	.topbar {
		transition: transform 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}

	.topbar.is-hidden {
		box-shadow: none;
		transform: translateY(-100%);
	}

	.topbar__inner {
		gap: 10px;
		min-height: 60px;
		padding: 10px 16px;
	}

	.brand {
		gap: 10px;
	}

	.brand__name {
		display: -webkit-box;
		font-size: 15px;
		line-height: 18px;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.btn--subscribe {
		height: 38px;
		margin-left: 0;
		padding: 0 14px;
		font-size: 14px;
	}

	.search-panel {
		top: 60px;
	}

	/* Intro */
	.lp-intro {
		padding: 48px 20px 52px;
	}

	.lp-intro__eyebrow {
		margin-bottom: 14px;
		font-size: 12px;
		letter-spacing: 0.16em;
	}

	.lp-intro__ctas {
		flex-direction: column;
		margin-top: 28px;
	}

	.lp-intro__ctas .btn {
		width: 100%;
	}

	.lp-stats {
		margin-top: 40px;
	}

	.lp-stats__item {
		padding: 16px 6px;
	}

	.lp-stats__value {
		font-size: 22px;
	}

	.lp-stats__label {
		font-size: 10px;
		letter-spacing: 0.08em;
	}

	/* Chapters */
	.lp-about,
	.lp-gallery {
		padding: 64px 0;
	}

	.lp-about .container,
	.lp-gallery .container {
		padding: 0 20px;
	}

	.lp-about__frame::before {
		inset: 12px -12px -12px 12px;
	}

	.lp-about__media {
		margin: 0 12px 12px 0;
	}

	.lp-about__story p {
		font-size: 18px;
	}

	.lp-about__btn {
		width: 100%;
		margin: 8px 0 0;
	}

	.lp-journal {
		padding: 64px 0 32px;
	}

	.lp-journal .container {
		padding: 0 14px;
	}

	.lp-journal__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 20px;
	}

	.chapter-head {
		margin-bottom: 24px;
	}

	.chapter-head__eyebrow {
		margin-bottom: 12px;
	}

	.chapter-head__text {
		font-size: 18px;
	}

	.social-links--lg {
		gap: 10px;
		margin-bottom: 32px;
	}

	.social-links--lg .social-links__link {
		width: 48px;
		height: 48px;
	}

	.photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 150px;
		gap: 8px;
	}

	.photo-grid__item {
		border-radius: 10px;
	}

	.photo-grid__zoom {
		display: none;
	}

	.lightbox__stage {
		padding: 4px 8px;
	}

	.lightbox__bar {
		padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
	}

	.lightbox__btn {
		width: 42px;
		height: 42px;
	}

	.lightbox__nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
		border-color: rgba(255, 255, 255, 0.1);
		background: rgba(20, 17, 16, 0.55);
	}

	/* Touch screens swipe between photos; the arrows would only cover the picture. */
	@media (hover: none) and (pointer: coarse) {
		.lightbox__nav {
			display: none;
		}
	}

	.lightbox__prev {
		left: 10px;
	}

	.lightbox__next {
		right: 10px;
	}

	.lightbox__cap {
		padding: 8px 20px calc(18px + env(safe-area-inset-bottom));
		font-size: 16px;
	}

	.lightbox__thumbs {
		display: none;
	}

	/* Journal cards become compact rows */
	.hero__col--stack {
		gap: 0;
	}

	.post-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.card--stack,
	.card--grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 108px;
		align-items: start;
		gap: 14px;
		padding: 16px 4px;
		border-bottom: 1px solid var(--border);
		border-radius: 0;
	}

	.card--stack:hover,
	.card--grid:hover {
		background: transparent;
	}

	.card--stack .card__media,
	.card--grid .card__media {
		order: 2;
		width: 108px;
		height: 108px;
		aspect-ratio: auto;
		border-radius: 8px;
	}

	.card--stack .card__body,
	.card--grid .card__body {
		order: 1;
		margin-top: 0;
	}

	.card--stack .card__title,
	.card--grid .card__title {
		font-size: 17px;
		line-height: 22px;
	}

	.card--stack .card__subtitle,
	.card--grid .card__subtitle {
		display: -webkit-box;
		margin-top: 4px;
		color: var(--muted);
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.card--stack .card__placeholder,
	.card--grid .card__placeholder {
		width: 36px;
		height: 36px;
		border-radius: 9px;
	}

	.card--grid .card-actions {
		display: none;
	}

	.card--feature {
		padding: 0 4px 8px;
	}

	.card--feature .card__media {
		border-radius: 10px;
	}

	.card--feature .card__title {
		font-size: 25px;
		line-height: 31px;
	}

	.card--popular {
		min-height: 0;
		padding: 14px 4px;
		border-bottom: 1px solid var(--border);
		border-radius: 0;
	}

	.popular-list {
		gap: 0;
		margin-top: 4px;
	}

	.section-rule {
		margin: 24px 4px;
	}

	.feed-toolbar {
		flex-wrap: nowrap;
		padding: 0 4px;
	}

	.tabs {
		flex: 1;
	}

	.tabs__btn {
		flex: 1;
		justify-content: center;
		height: 36px;
	}

	.lp-journal .feed-search.is-open .feed-search__input {
		position: absolute;
		right: 52px;
		left: 12px;
		z-index: 2;
		width: auto;
	}

	.feed-toolbar--archive {
		flex-wrap: wrap;
	}

	.feed-toolbar--archive .tabs {
		flex: 1 1 100%;
	}

	.feed-toolbar--archive .feed-search {
		flex: 1 1 100%;
	}

	.feed-toolbar--archive .feed-search.is-open .feed-search__input {
		flex: 1;
		width: auto;
		height: 42px;
	}

	.home-sidebar {
		margin: 40px 4px 0;
	}

	.section-head__link {
		margin: -10px 0;
		padding: 10px 0;
	}

	.card--list .card-actions__item {
		height: 36px;
		padding: 0 10px;
	}

	.see-all {
		width: calc(100% - 8px);
		margin: 20px 4px 0;
	}

	/* Subscribe + footer */
	.footer-subscribe {
		padding: 64px 20px;
	}

	.footer-subscribe .subscribe-form {
		max-width: none;
	}

	.footer-main__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 36px 20px;
		padding: 48px 20px 40px;
	}

	.footer-about__tagline {
		font-size: 19px;
	}

	.footer-col__links a {
		padding: 9px 0;
		font-size: 16px;
	}

	.footer-bar {
		flex-direction: column;
		padding-right: 20px;
		padding-left: 20px;
		text-align: center;
	}

	.footer-bar__left {
		justify-content: center;
	}

	/* Posts and pages */
	.post-single {
		padding-right: 18px;
		padding-left: 18px;
	}

	.post-ufi .pill-btn {
		height: 38px;
	}

	.narrow {
		padding: 28px 18px 40px;
	}

	.list-header__title {
		font-size: 28px;
		line-height: 34px;
	}
}

@media (max-width: 380px) {
	.brand__icon {
		width: 28px;
		height: 28px;
	}

	.brand__name {
		font-size: 14px;
	}

	.btn--subscribe {
		padding: 0 11px;
		font-size: 13px;
	}

	.card--stack,
	.card--grid {
		grid-template-columns: minmax(0, 1fr) 92px;
	}

	.card--stack .card__media,
	.card--grid .card__media {
		width: 92px;
		height: 92px;
	}
}

/* ==========================================================================
   22. Book covers: narrow Media & Text blocks (Bookshelf and anywhere else)
   ========================================================================== */
.entry-content .wp-block-media-text.is-narrow-media {
	grid-template-columns: var(--jm-cover, 128px) minmax(0, 1fr) !important;
	align-items: start;
	gap: 0 30px;
	margin: 0 0 32px;
	padding: 0 0 32px;
	border-bottom: 1px solid var(--border);
}

.entry-content .wp-block-media-text.is-narrow-media.has-media-on-the-right {
	grid-template-columns: minmax(0, 1fr) var(--jm-cover, 128px) !important;
}

.entry-content .is-narrow-media > .wp-block-media-text__media {
	align-self: start;
	margin: 0;
}

.entry-content .is-narrow-media > .wp-block-media-text__media a {
	display: block;
}

.entry-content .is-narrow-media > .wp-block-media-text__media img {
	display: block;
	width: 100%;
	max-width: min(100%, var(--jm-media-max, 100%));
	height: auto;
	margin: 0 auto;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-content .is-narrow-media > .wp-block-media-text__media a:hover img,
.entry-content .is-narrow-media > .wp-block-media-text__media a:focus-visible img {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(217, 119, 6, 0.6);
	transform: translateY(-4px) rotate(-1.2deg);
}

.entry-content .is-narrow-media > .wp-block-media-text__content {
	align-self: start;
	padding: 0 !important;
}

.entry-content .is-narrow-media > .wp-block-media-text__content > :first-child {
	margin-top: 0;
}

.entry-content .is-narrow-media > .wp-block-media-text__content > :last-child {
	margin-bottom: 0;
}

.entry-content .is-narrow-media > .wp-block-media-text__content p {
	margin-bottom: 14px;
}

.entry-content .is-narrow-media > .wp-block-media-text__content em:first-child,
.entry-content .is-narrow-media > .wp-block-media-text__content strong:first-child {
	color: var(--text);
}

@media (max-width: 600px) {
	.entry-content .wp-block-media-text.is-narrow-media,
	.entry-content .wp-block-media-text.is-narrow-media.is-stacked-on-mobile {
		display: flow-root !important;
		margin-bottom: 26px;
		padding-bottom: 26px;
	}

	.entry-content .is-narrow-media > .wp-block-media-text__media {
		float: left;
		width: 96px;
		margin: 6px 18px 10px 0;
	}

	.entry-content .is-narrow-media.has-media-on-the-right > .wp-block-media-text__media {
		float: right;
		margin: 6px 0 10px 18px;
	}

	.entry-content .is-narrow-media > .wp-block-media-text__content {
		display: block;
	}
}

/* ==========================================================================
   23. Contact page
   ========================================================================== */
.contact-hero {
	position: relative;
	padding: 72px 20px 48px;
	overflow: hidden;
	text-align: center;
}

.contact-hero::before {
	position: absolute;
	top: -140px;
	left: 50%;
	width: min(1000px, 120%);
	height: 480px;
	background: radial-gradient(closest-side, rgba(217, 119, 6, 0.16), transparent);
	content: "";
	pointer-events: none;
	transform: translateX(-50%);
}

.contact-hero__inner {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
}

.contact-hero__title {
	margin: 0;
	font: 700 clamp(36px, 5.2vw, 60px)/1.05 var(--font-head);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.contact-hero__title em {
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-style: italic;
	font-weight: 400;
}

.contact-hero__text {
	max-width: 620px;
	margin: 20px auto 0;
	color: var(--text-2);
	font: 400 19px/1.55 var(--font-body);
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: 40px;
	max-width: 1120px;
	padding-bottom: 96px;
}

.contact-side__photo {
	margin: 0 0 20px;
}

.contact-side__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	object-fit: cover;
}

.contact-side__card {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--bg-deep);
}

.contact-side__title {
	margin: 0 0 6px;
	color: var(--muted);
	font: 600 12px/16px var(--font-meta);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.contact-ways {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.contact-ways a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.contact-ways li:last-child a {
	border-bottom: 0;
}

.contact-ways__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bg-elev);
	color: var(--accent-soft);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-ways a:hover .contact-ways__icon {
	background: var(--accent);
	color: #fff;
}

.contact-ways strong {
	display: block;
	font: 700 16px/1.3 var(--font-head);
}

.contact-ways small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font: 400 13px/1.4 var(--font-ui);
}

.contact-card {
	padding: 32px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--bg-elev), var(--bg-deep));
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.contact-card__title {
	margin: 0 0 20px;
	font: 700 26px/1.2 var(--font-head);
}

.contact-card__text {
	margin-bottom: 20px;
	font-size: 17px;
}

.contact-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.contact-form__field {
	margin: 0 0 16px;
}

.contact-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--text-2);
	font: 600 13px/20px var(--font-ui);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.4 var(--font-ui);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.contact-form select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9a8a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
}

.contact-form textarea {
	min-height: 170px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
}

.contact-form ::placeholder {
	color: var(--bg-4);
}

.contact-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 6px;
}

.contact-form__privacy {
	margin: 0;
	color: var(--muted);
	font: 400 13px/1.4 var(--font-ui);
}

.contact-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 12px;
	font: 500 15px/1.4 var(--font-ui);
}

.contact-note p {
	margin: 0;
}

.contact-note--ok {
	border: 1px solid rgba(34, 197, 94, 0.4);
	background: rgba(34, 197, 94, 0.12);
	color: #bbf7d0;
}

.contact-note--error {
	border: 1px solid rgba(239, 68, 68, 0.4);
	background: rgba(239, 68, 68, 0.12);
	color: #fecaca;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 640px;
	}

	.contact-main {
		order: -1;
	}

	.contact-side__photo {
		max-width: 360px;
		margin: 0 auto 20px;
	}
}

@media (max-width: 600px) {
	.contact-hero {
		padding: 44px 20px 32px;
	}

	.contact-grid {
		gap: 28px;
		padding: 0 14px 64px;
	}

	.contact-card {
		padding: 22px 18px;
	}

	.contact-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.contact-form__foot .btn {
		width: 100%;
	}
}

/* ==========================================================================
   24. Google AdSense: keep ads tidy and out of the way
   ========================================================================== */

/* Empty ad slots collapse instead of leaving holes (per AdSense docs). */
ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}

/* ...and so does the labelled band around them, so no lone "Advertisement" line is left. */
.google-auto-placed:has(ins.adsbygoogle[data-ad-status="unfilled"]):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))),
.ad-spot:has(ins.adsbygoogle[data-ad-status="unfilled"]):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))) {
	display: none !important;
}

/* Auto-placed in-page ads: centered, inside the reading column, with breathing room. */
.google-auto-placed {
	clear: both;
	width: 100% !important;
	max-width: 760px;
	margin: 44px auto !important;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	text-align: center;
}

.google-auto-placed::before,
.ad-spot::before {
	display: block;
	margin: 0 0 10px;
	color: var(--bg-4);
	font: 600 10px/16px var(--font-meta);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	content: "Advertisement";
}

.google-auto-placed ins.adsbygoogle,
.ad-spot ins.adsbygoogle {
	max-width: 100%;
	margin: 0 auto !important;
}

/* An ad dropped into a grid takes its own full row instead of squeezing a column. */
.hero > .google-auto-placed,
.post-grid > .google-auto-placed,
.photo-grid > .google-auto-placed,
.home-body > .google-auto-placed,
.lp-about__grid > .google-auto-placed,
.contact-grid > .google-auto-placed,
.footer-main__inner > .google-auto-placed,
.popular-list > .google-auto-placed,
.hero__col > .google-auto-placed {
	grid-column: 1 / -1;
}

/* Never inside the header, menus or buttons. */
.topbar .google-auto-placed,
.nav-card .google-auto-placed,
.drawer .google-auto-placed {
	display: none !important;
}

/* Theme ad spots (Appearance > Widgets) */
.ad-spot {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 20px;
	text-align: center;
}

.ad-spot--home {
	padding: 40px 20px;
	border-top: 1px solid var(--border);
}

.ad-spot--post {
	margin-top: 40px;
	padding: 22px 0 0;
	border-top: 1px solid var(--border);
}

.ad-spot .widget {
	margin: 0;
}

@media (max-width: 767px) {
	.google-auto-placed {
		margin: 32px auto !important;
		padding-top: 16px;
	}

	.google-auto-placed,
	.ad-spot {
		overflow: hidden;
	}
}

/* ==========================================================================
   Forms and shop (WooCommerce cart, checkout, coupon boxes, notices)
   Every field reads clearly on the dark page: light text on a dark field.
   ========================================================================== */
:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"], [type="color"]), textarea, select) {
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
	background-color: var(--bg-elev);
	color: var(--text);
	caret-color: var(--accent);
	color-scheme: dark;
}

:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"], [type="color"]), textarea, select):focus {
	border-color: var(--accent);
	outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
	outline-offset: 1px;
}

::placeholder {
	color: var(--muted);
	opacity: 1;
}

select option {
	background: var(--bg-elev);
	color: var(--text);
}

input:-webkit-autofill {
	-webkit-text-fill-color: var(--text);
	-webkit-box-shadow: 0 0 0 40px var(--bg-elev) inset;
}

/* Tables */
.woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 24px;
	border: 1px solid var(--border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--text);
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table thead th {
	border-top: 0;
	background: var(--bg-elev);
	color: var(--muted);
	font: 600 12px/1.2 var(--font-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.woocommerce table.shop_table .product-name a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce table.shop_table .product-name a:hover {
	color: var(--accent);
}

.woocommerce table.shop_table .product-thumbnail img {
	width: 64px;
	height: auto;
	border-radius: 6px;
}

.woocommerce table.shop_table td.actions {
	padding: 16px;
}

.woocommerce a.remove {
	display: inline-grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	color: var(--muted) !important;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.woocommerce a.remove:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

.woocommerce .quantity .qty {
	width: 4.2em;
	min-height: 44px;
	text-align: center;
	font: 600 16px/1 var(--font-ui);
}

.woocommerce .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	float: left;
}

.woocommerce .coupon input.input-text {
	width: 220px;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
}

.woocommerce td.actions > button[name="update_cart"] {
	float: right;
}

.woocommerce td.actions::after {
	display: block;
	clear: both;
	content: "";
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
	color: #fff;
	font: 600 15px/1.2 var(--font-ui);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--accent-hover);
	color: #fff;
}

.woocommerce button.button:disabled,
.woocommerce button.button[disabled],
.woocommerce button.button:disabled[disabled] {
	background: var(--bg-2);
	box-shadow: none;
	color: var(--muted);
	cursor: not-allowed;
	opacity: 0.7;
}

.woocommerce .coupon button.button {
	background: var(--bg-2);
	box-shadow: none;
}

.woocommerce .coupon button.button:hover {
	background: var(--bg-3);
}

.woocommerce .cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.woocommerce .cart_totals {
	width: min(100%, 460px);
}

.woocommerce .cart_totals h2 {
	margin: 0 0 14px;
	font-size: 24px;
}

.woocommerce .cart_totals table.shop_table th {
	width: 38%;
	color: var(--muted);
	font-weight: 600;
}

.woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin: 0;
	font-size: 17px;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: 10px;
	background: var(--bg-elev);
	color: var(--text);
	list-style: none;
}

.woocommerce-error {
	border-left-color: #dc2626;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: var(--accent);
}

/* Checkout fields */
.woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	color: var(--muted);
	font: 600 13px/1.3 var(--font-ui);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
}

.select2-container--default .select2-selection--single {
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 14px;
	color: var(--text);
	line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.select2-dropdown {
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: var(--bg-elev);
	color: var(--text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--accent);
	color: #fff;
}

/* WooCommerce blocks cart and checkout */
.wc-block-components-quantity-selector {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 12px;
	background: var(--bg-elev);
	color: var(--text);
}

.wc-block-components-quantity-selector::after {
	border-color: rgba(255, 255, 255, 0.18);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	background: transparent;
	color: var(--text);
	opacity: 1;
}

.wc-block-components-text-input input,
.wc-block-components-text-input.is-active input,
.wc-block-components-combobox .components-form-token-field__input-container,
.wc-block-components-address-form select,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border-color: rgba(255, 255, 255, 0.28);
	background-color: var(--bg-elev);
	color: var(--text);
}

.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--muted);
}

.wc-block-components-button:not(.is-link) {
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
}

.wc-block-components-product-name,
.wc-block-components-totals-item__label {
	color: var(--text);
}

@media (max-width: 767px) {
	/* The cart table becomes a stack of cards on phones */
	.woocommerce-cart-form__contents thead {
		display: none;
	}

	.woocommerce-cart-form__contents,
	.woocommerce-cart-form__contents tbody {
		display: block;
		border: 0;
	}

	.woocommerce table.shop_table.cart {
		border: 0;
		border-radius: 0;
	}

	.woocommerce-cart-form__contents tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 6px 14px;
		margin: 0 0 14px;
		padding: 14px;
		border: 1px solid var(--border);
		border-radius: 12px;
		background: var(--bg-elev);
	}

	.woocommerce table.shop_table.cart td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 0;
		border: 0;
		text-align: right;
	}

	.woocommerce table.shop_table.cart td::before {
		color: var(--muted);
		font: 600 12px/1.2 var(--font-ui);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		content: attr(data-title);
	}

	.woocommerce table.shop_table.cart td.product-remove {
		position: absolute;
		top: 6px;
		right: 6px;
		z-index: 2;
		width: auto;
	}

	.woocommerce table.shop_table.cart td.product-remove::before,
	.woocommerce table.shop_table.cart td.product-thumbnail::before {
		content: none;
	}

	.woocommerce table.shop_table.cart td.product-thumbnail {
		grid-row: 1 / span 2;
		grid-column: 1;
		align-self: start;
	}

	.woocommerce table.shop_table.cart td.product-thumbnail:empty {
		display: none;
	}

	/* No cover picture on a line: use the whole width. */
	.woocommerce-cart-form__contents tr.cart_item:not(:has(td.product-thumbnail:not(:empty))) {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-cart-form__contents tr.cart_item:not(:has(td.product-thumbnail:not(:empty))) td.product-name {
		grid-column: 1;
	}

	.woocommerce table.shop_table.cart td.product-thumbnail img {
		width: 72px;
	}

	.woocommerce table.shop_table.cart td.product-name {
		grid-column: 2;
		padding-right: 30px;
		font-size: 16px;
		text-align: left;
	}

	.woocommerce table.shop_table.cart td.product-name::before {
		content: none;
	}

	.woocommerce table.shop_table.cart td.product-price,
	.woocommerce table.shop_table.cart td.product-quantity,
	.woocommerce table.shop_table.cart td.product-subtotal {
		grid-column: 1 / -1;
	}

	.woocommerce table.shop_table.cart td.product-subtotal {
		padding-top: 8px;
		border-top: 1px solid var(--border);
		font-weight: 700;
	}

	.woocommerce-cart-form__contents tr:not(.cart_item) {
		display: block;
	}

	.woocommerce table.shop_table.cart td.actions {
		display: block;
		width: 100%;
		padding: 0;
		text-align: left;
	}

	.woocommerce table.shop_table.cart td.actions::before {
		content: none;
	}

	.woocommerce .coupon {
		float: none;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		margin-bottom: 12px;
	}

	.woocommerce .coupon input.input-text {
		width: 100%;
	}

	.woocommerce td.actions > button[name="update_cart"] {
		float: none;
		width: 100%;
	}

	.woocommerce .cart-collaterals {
		display: block;
	}

	.woocommerce .cart_totals {
		width: 100%;
	}
}

/* ==========================================================================
   About page (story layout), same look as the home page's About chapter
   ========================================================================== */
.about-page__article {
	max-width: none;
	padding: 0;
}

.about-hero {
	padding: 88px 0 56px;
	background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: 80px;
	max-width: 1180px;
}

.about-hero__grid--text {
	grid-template-columns: minmax(0, 1fr);
	max-width: 780px;
}

.about-hero__title {
	font-size: clamp(36px, 5.2vw, 60px);
}

.about-hero .chapter-head {
	margin-bottom: 0;
}

.about-hero__lead {
	max-width: 30em;
	margin: 26px 0 0;
}

.about-hero__media {
	margin: 0 18px 18px 0;
}

.about-hero .lp-about__img {
	cursor: zoom-in;
}

.about-body {
	max-width: 820px;
	padding-top: 24px;
	padding-bottom: 96px;
}

/* The story: one calm column, everything in the site's own type and colors. */
.about-story {
	color: var(--text-2);
	font: 400 19px/1.7 var(--font-body);
}

.about-story > * {
	margin-top: 0;
	margin-bottom: 22px;
}

.about-story :where(div, section, article, aside, table, thead, tbody, tr, td, th, figure, p, span, li, ul, ol, blockquote, h1, h2, h3, h4, h5, h6, details, summary, pre, dl, dt, dd) {
	box-shadow: none;
	color: inherit;
}

.about-story h2,
.about-story h3,
.about-story h4 {
	color: var(--text);
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.about-story h2 {
	margin: 64px 0 18px;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1.15;
}

.about-story h2::before {
	display: block;
	width: 36px;
	height: 1px;
	margin-bottom: 16px;
	background: var(--accent);
	content: "";
	opacity: 0.8;
}

.about-story > h2:first-child {
	margin-top: 0;
}

.about-story h3 {
	margin: 40px 0 12px;
	font-size: 22px;
	line-height: 1.25;
}

.about-story h4 {
	margin: 32px 0 10px;
	color: var(--accent-soft);
	font: 600 13px/18px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.about-story p {
	margin: 0 0 22px;
}

.about-story strong,
.about-story b {
	color: var(--text);
}

.about-story blockquote,
.about-story .wp-block-quote {
	margin: 36px 0;
	padding: 2px 0 2px 24px;
	border: 0;
	border-left: 3px solid var(--accent);
	background: none;
	color: var(--text);
	font: 400 22px/1.5 var(--font-head);
}

.about-story blockquote p {
	margin: 0 0 12px;
	color: var(--text);
}

.about-story blockquote cite {
	display: block;
	color: var(--muted);
	font: 600 12px/18px var(--font-meta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Pictures: rounded, quietly lifted, captions in the site's italic. */
.about-story img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.about-story figure,
.about-story > p > img:only-child {
	margin: 40px 0;
}

.about-story figure img {
	width: 100%;
}

.about-story figcaption,
.about-story .wp-caption-text {
	margin-top: 12px;
	color: var(--muted);
	font: italic 400 15px/1.5 var(--font-body);
	text-align: center;
}

.about-story .alignleft,
.about-story .alignright {
	max-width: 46%;
	margin-top: 6px;
	margin-bottom: 18px;
}

.about-story .alignleft {
	float: left;
	margin-right: 32px;
}

.about-story .alignright {
	float: right;
	margin-left: 32px;
}

.about-story .aligncenter,
.about-story .wp-block-image.aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.about-story .wp-block-gallery,
.about-story .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 14px;
	margin: 40px 0;
	padding: 0;
	list-style: none;
}

.about-story .wp-block-gallery figure,
.about-story .wp-block-gallery .wp-block-image,
.about-story .gallery-item {
	width: 100% !important;
	max-width: none;
	margin: 0;
	flex: none;
}

.about-story .wp-block-gallery img,
.about-story .gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	box-shadow: none;
	object-fit: cover;
}

/* Columns and boxes from the old layout become tidy cards that stack on phones. */
.about-story .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 28px;
	margin: 36px 0;
}

.about-story .wp-block-column {
	flex: none;
	min-width: 0;
}

.about-story .wp-block-column > :last-child {
	margin-bottom: 0;
}

.about-story .wp-block-group.has-background,
.about-story .wp-block-cover,
.about-story .wp-block-media-text {
	margin: 36px 0;
	padding: 26px 28px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-elev);
}

.about-story [class*="has-"][class*="-background-color"],
.about-story .has-background {
	background-color: var(--bg-elev) !important;
}

.about-story [class*="has-"][class*="-color"]:not([class*="background"]),
.about-story .has-text-color {
	color: inherit !important;
}

.about-story .wp-block-media-text {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 28px;
}

.about-story .wp-block-media-text__media img {
	width: 100%;
}

.about-story hr,
.about-story .wp-block-separator {
	width: 36px;
	height: 1px;
	margin: 48px 0;
	border: 0;
	background: var(--accent);
	opacity: 0.7;
}

.about-story ul,
.about-story ol {
	padding-left: 1.3em;
}

.about-story li {
	margin-bottom: 8px;
}

.about-story li::marker {
	color: var(--accent);
}

.about-story table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.about-story td,
.about-story th {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--border);
	background: none;
	text-align: left;
}

.about-story iframe,
.about-story video {
	display: block;
	max-width: 100%;
	border: 0;
	border-radius: 12px;
}

.about-story .wp-block-embed__wrapper {
	position: relative;
}

.about-story a {
	color: var(--accent-soft);
	text-decoration-color: rgba(217, 119, 6, 0.5);
	text-underline-offset: 3px;
}

.about-story a:hover {
	color: var(--accent);
}

.about-story .wp-block-button__link,
.about-story a.button {
	display: inline-flex;
	align-items: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 700 15px/20px var(--font-ui);
	text-decoration: none;
}

.about-story::after {
	display: block;
	clear: both;
	content: "";
}

@media (max-width: 960px) {
	.about-hero {
		padding: 56px 0 40px;
	}

	.about-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		max-width: 680px;
	}

	.about-hero__media {
		width: min(100%, 440px);
		margin: 0 auto 18px;
	}
}

@media (max-width: 767px) {
	.about-hero {
		padding: 40px 0 28px;
	}

	.about-hero .container,
	.about-body {
		padding-right: 20px;
		padding-left: 20px;
	}

	.about-hero__media {
		margin: 0 12px 12px 0;
	}

	.about-body {
		padding-bottom: 64px;
	}

	.about-story {
		font-size: 18px;
		line-height: 1.65;
	}

	.about-story h2 {
		margin-top: 48px;
	}

	.about-story blockquote,
	.about-story .wp-block-quote {
		margin: 28px 0;
		padding-left: 18px;
		font-size: 20px;
	}

	.about-story figure,
	.about-story > p > img:only-child {
		margin: 28px 0;
	}

	.about-story .alignleft,
	.about-story .alignright {
		float: none;
		max-width: 100%;
		margin: 28px 0;
	}

	.about-story .wp-block-media-text {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-story .wp-block-group.has-background,
	.about-story .wp-block-cover,
	.about-story .wp-block-media-text {
		padding: 20px;
	}
}

/* ==========================================================================
   About page: professional profile layout (1.4.0)
   Hero, "at a glance" strip, section list that follows the reader, timeline,
   bookshelf row and a contact band. Every part is optional.
   ========================================================================== */
.about-page .about-hero {
	padding: 96px 0 72px;
	border-bottom: 1px solid var(--border);
}

.about-page .about-hero__title {
	font-size: clamp(40px, 5.6vw, 68px);
	letter-spacing: -0.02em;
	line-height: 1.04;
}

.about-page .about-hero__lead {
	max-width: 26em;
	color: var(--text);
	font-size: clamp(20px, 2.1vw, 26px);
	line-height: 1.45;
}

.about-page .about-hero__lead::before {
	display: block;
	width: 48px;
	height: 2px;
	margin-bottom: 22px;
	background: var(--accent);
	content: "";
}

/* At a glance. */
.about-facts {
	border-bottom: 1px solid var(--border);
	background: var(--bg-elev);
}

.about-facts .container {
	max-width: 1080px;
}

.about-facts__list {
	display: grid;
	grid-template-columns: repeat(var(--facts, 4), minmax(0, 1fr));
	margin: 0;
	padding: 0;
}

.about-facts__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 8px;
	padding: 30px 28px;
	border-left: 1px solid var(--border);
}

.about-facts__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.about-facts__item dd {
	margin: 0;
	color: var(--accent-soft);
	font: 700 clamp(30px, 3.6vw, 46px) / 1 var(--font-head);
	letter-spacing: -0.01em;
}

.about-facts__item dt {
	color: var(--muted);
	font: 600 12px / 18px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Story with a section list beside it. */
.about-page .about-body {
	padding-top: 56px;
	padding-bottom: 72px;
}

.about-body--rail {
	display: grid;
	grid-template-columns: 188px minmax(0, 1fr);
	gap: 72px;
	align-items: start;
	max-width: 1080px;
}

.about-body--rail .about-story {
	max-width: 740px;
}

.about-rail {
	position: sticky;
	top: calc(var(--topbar-h) + 32px);
}

.about-rail__label {
	margin: 0 0 14px;
	color: var(--muted);
	font: 600 12px / 18px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.about-rail__list {
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--border);
	list-style: none;
}

.about-rail__list a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	color: var(--text-2);
	font: 500 14px / 1.35 var(--font-ui);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.about-rail__list a:hover {
	color: var(--text);
}

.about-rail__list a.is-active {
	border-left-color: var(--accent);
	color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.about-rail) {
		scroll-behavior: smooth;
	}
}

/* Story typography. */
.about-page .about-story > p:first-child {
	color: var(--text);
	font-size: 21px;
	line-height: 1.6;
}

.about-page .about-story blockquote,
.about-page .about-story .wp-block-quote {
	margin: 44px 0;
	padding: 4px 0 4px 28px;
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.4;
	text-wrap: balance;
}

/* A table of years becomes a timeline. */
.about-story table.about-timeline {
	margin: 36px 0;
	overflow: visible;
}

.about-story .about-timeline tbody {
	display: block;
}

.about-story .about-timeline tr {
	position: relative;
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 24px;
	padding: 14px 0 18px 28px;
	border-left: 2px solid var(--border);
}

.about-story .about-timeline tr::before {
	position: absolute;
	top: 21px;
	left: -7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(217, 119, 6, 0.55);
	content: "";
}

.about-story .about-timeline td,
.about-story .about-timeline th {
	display: block;
	padding: 0;
	border: 0;
}

.about-story .about-timeline td:first-child,
.about-story .about-timeline th:first-child {
	color: var(--accent-soft);
	font: 700 19px / 1.4 var(--font-head);
}

/* Books. */
.about-books {
	padding: 80px 0;
	border-top: 1px solid var(--border);
	background: var(--bg-deep);
}

.about-books__inner {
	max-width: 1080px;
}

.about-books__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 32px;
}

.about-books__title {
	margin: 0;
	color: var(--text);
	font: 700 clamp(26px, 3vw, 34px) / 1.15 var(--font-head);
	letter-spacing: -0.01em;
}

.about-books__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent-soft);
	font: 600 15px / 20px var(--font-ui);
	text-decoration: none;
}

.about-books__all:hover {
	color: var(--accent);
}

.about-books__row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 140px));
	justify-content: start;
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-books__card {
	display: block;
	color: var(--text);
	text-decoration: none;
}

.about-books__cover {
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: var(--bg-elev);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-books__card:hover .about-books__cover,
.about-books__card:focus-visible .about-books__cover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	transform: translateY(-4px);
}

.about-books__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-books__blank {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: linear-gradient(160deg, var(--bg-elev), var(--bg-deep));
	color: var(--text-2);
	font: 700 16px / 1.25 var(--font-head);
	text-align: center;
	text-wrap: balance;
}

.about-books__name {
	display: block;
	margin-top: 10px;
	color: var(--text-2);
	font: 600 13.5px / 1.35 var(--font-ui);
}

.about-books__card:hover .about-books__name {
	color: var(--text);
}

/* Contact band. */
.about-cta {
	padding: 64px 0 72px;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.about-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 40px;
	max-width: 1080px;
}

.about-cta__id {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-right: auto;
}

.about-cta__name strong {
	display: block;
	color: var(--text);
	font: 700 24px / 1.2 var(--font-head);
}

.about-cta__name span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font: 600 12px / 18px var(--font-meta);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.about-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.about-cta__social {
	flex-basis: 100%;
	margin: 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--border);
	list-style: none;
}

@media (max-width: 1099px) {
	.about-body--rail {
		display: block;
		max-width: 820px;
	}

	.about-rail {
		display: none;
	}
}

@media (max-width: 960px) {
	.about-page .about-hero {
		padding: 56px 0 44px;
	}

	.about-books {
		padding: 56px 0;
	}

	.about-cta {
		padding: 48px 0 56px;
	}
}

@media (max-width: 767px) {
	.about-facts .container,
	.about-books .container,
	.about-cta .container {
		padding-right: 20px;
		padding-left: 20px;
	}

	.about-page .about-body {
		padding-bottom: 56px;
	}
}

@media (max-width: 720px) {
	.about-facts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.about-facts__item,
	.about-facts__item:first-child {
		padding: 22px 16px 22px 0;
		border-left: 0;
		border-bottom: 1px solid var(--border);
	}

	.about-facts__item:nth-last-child(-n + 2):nth-child(odd),
	.about-facts__item:last-child {
		border-bottom: 0;
	}

	.about-story .about-timeline tr {
		grid-template-columns: 1fr;
		gap: 2px;
		padding-left: 22px;
	}

	/* !important: the row's layout basics are also set inline (see the template), and these win on phones. */
	.about-books__row {
		display: flex !important;
		margin: 0 -20px !important;
		padding: 4px 20px 12px !important;
		overflow-x: auto;
		gap: 16px !important;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 20px;
		-webkit-overflow-scrolling: touch;
	}

	.about-books__row li {
		flex: 0 0 120px;
		scroll-snap-align: start;
	}

	.about-cta__id {
		width: 100%;
	}

	.about-cta__actions {
		width: 100%;
	}

	.about-cta__actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-books__cover {
		transition: none;
	}

	.about-books__card:hover .about-books__cover,
	.about-books__card:focus-visible .about-books__cover {
		transform: none;
	}
}

/* Hero lines up with the story column below it. */
.about-page .about-hero__grid {
	max-width: 1080px;
}

.about-page .about-hero__grid--text {
	max-width: 1080px;
}

.about-page:not(.about-page--rail) .about-hero__grid--text {
	max-width: 820px;
}

.about-story .about-timeline td:last-child,
.about-story .about-timeline th:last-child {
	color: var(--text);
	font: 400 18px / 1.5 var(--font-body);
}

/* ==========================================================================
   About page: polish (1.5.0)
   The portrait moves into the hero, the title is set as a stack, sections are numbered, the pull quote
   and timeline get more presence, phones get a row of section chips, and (where the browser supports
   it) headings and timeline rows rise into view and a thin bar shows reading progress. Nothing here
   depends on JavaScript, and everything is visible if an effect is not supported.
   ========================================================================== */
.about-page .about-hero {
	background:
		radial-gradient(880px 420px at 92% -8%, rgba(217, 119, 6, 0.17), transparent 62%),
		linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.about-hero__seg {
	display: block;
}

.about-page .about-hero__title {
	font-size: clamp(42px, 6.2vw, 78px);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.about-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.about-hero__note {
	margin: 34px 18px 0 0;
	padding-left: 14px;
	border-left: 2px solid var(--accent);
	color: var(--muted);
	font: italic 400 16px / 1.4 var(--font-body);
}

.about-hero .lp-about__img {
	object-position: 50% 28%;
}

/* Numbered chapters. */
.about-story {
	counter-reset: about-sec;
}

.about-page .about-story > h2 {
	counter-increment: about-sec;
	margin: 72px 0 20px;
	padding-top: 26px;
	border-top: 1px solid var(--border);
}

.about-page .about-story > h2::before {
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 14px;
	background: none;
	color: var(--accent-soft);
	content: counter(about-sec, decimal-leading-zero);
	font: 700 13px / 1 var(--font-meta);
	letter-spacing: 0.26em;
	opacity: 1;
}

.about-page .about-story > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.about-page .about-story > h2:first-child + p {
	color: var(--text);
	font-size: clamp(21px, 2.3vw, 24px);
	line-height: 1.55;
}

/* Pull quote. */
.about-page .about-story blockquote,
.about-page .about-story .wp-block-quote {
	position: relative;
	margin: 52px 0;
	padding: 44px 36px 34px;
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0) 58%),
		var(--bg-elev);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.about-page .about-story blockquote::before,
.about-page .about-story .wp-block-quote::before {
	position: absolute;
	top: 10px;
	left: 26px;
	color: var(--accent);
	content: "\201C";
	font: 700 88px / 1 var(--font-head);
	opacity: 0.6;
}

.about-page .about-story blockquote p:last-child {
	margin-bottom: 0;
}

/* Timeline: glowing dots, and a hollow dot for what is still to come. */
.about-story .about-timeline tr.is-upcoming {
	border-left-style: dashed;
}

.about-story .about-timeline tr.is-upcoming::before {
	border: 2px solid var(--accent);
	background: var(--bg);
	box-shadow: 0 0 0 4px var(--bg);
}

.about-story .about-timeline tr.is-upcoming td:first-child {
	color: var(--muted);
	font: italic 600 16px / 1.45 var(--font-body);
}

/* Sign-off line. */
.about-page .about-story > p.about-signoff {
	margin: 72px 0 0;
	padding-top: 8px;
	color: var(--text);
	font: italic 400 clamp(26px, 3.4vw, 36px) / 1.25 var(--font-body);
	text-align: center;
	text-wrap: balance;
}

.about-page .about-story > p.about-signoff::before {
	display: block;
	margin-bottom: 18px;
	color: var(--accent);
	content: "\2726";
	font-size: 18px;
	font-style: normal;
}

/* Phones and tablets: the section list becomes a row of chips that stays under the top bar. */
@media (max-width: 1099px) {
	.about-rail {
		position: sticky;
		top: var(--topbar-h);
		z-index: 20;
		display: block;
		margin: 0 0 28px;
		padding: 8px;
		border: 1px solid var(--border);
		border-radius: 14px;
		background: rgba(41, 37, 36, 0.98);
		background: color-mix(in srgb, var(--bg) 97%, transparent);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.admin-bar .about-rail {
		top: calc(var(--topbar-h) + 32px);
	}

	.about-rail {
		transition: top 0.28s ease;
	}

	.about-rail__label {
		display: none;
	}

	.about-rail__list {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		border-left: 0;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.about-rail__list::-webkit-scrollbar {
		display: none;
	}

	.about-rail__list li {
		flex: 0 0 auto;
	}

	.about-rail__list a {
		margin: 0;
		padding: 8px 14px;
		border: 1px solid var(--border);
		border-radius: 999px;
		font-size: 14px;
		white-space: nowrap;
	}

	.about-rail__list a.is-active {
		border-color: var(--accent);
		background: rgba(217, 119, 6, 0.16);
	}

	html:has(.about-rail) {
		scroll-padding-top: calc(var(--topbar-h) + 84px);
	}
}

/* On phones the top bar slides away while reading down; the chips take its place. */
@media (max-width: 782px) {
	.admin-bar .about-rail {
		top: 106px;
	}

	.admin-bar:has(#topbar.is-hidden) .about-rail {
		top: 54px;
	}
}

@media (max-width: 600px) {
	.admin-bar .about-rail {
		top: 60px;
	}

	.admin-bar:has(#topbar.is-hidden) .about-rail {
		top: 8px;
	}
}

@media (max-width: 767px) {
	.about-rail {
		top: 60px;
	}

	body:has(#topbar.is-hidden) .about-rail {
		top: 8px;
	}

	.about-page .about-hero__title {
		font-size: clamp(40px, 12.5vw, 56px);
	}

	.about-hero__actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.about-hero__note {
		margin-top: 30px;
	}

	.about-page .about-story > h2 {
		margin-top: 56px;
	}

	.about-page .about-story blockquote,
	.about-page .about-story .wp-block-quote {
		margin: 40px 0;
		padding: 40px 22px 26px;
	}

	.about-page .about-story blockquote::before,
	.about-page .about-story .wp-block-quote::before {
		left: 18px;
	}

	.about-page .about-story > p.about-signoff {
		margin-top: 56px;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes about-rise {
			from {
				opacity: 0;
				transform: translateY(18px);
			}

			to {
				opacity: 1;
				transform: none;
			}
		}

		@keyframes about-progress {
			from {
				transform: scaleX(0);
			}

			to {
				transform: scaleX(1);
			}
		}

		.about-story > h2,
		.about-story > blockquote,
		.about-story > p.about-signoff,
		.about-story .about-timeline tr,
		.about-facts__item {
			animation: about-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 45%;
		}

		.about-page::before {
			position: fixed;
			inset: 0 0 auto;
			z-index: 300;
			height: 3px;
			background: linear-gradient(90deg, var(--accent), var(--accent-soft));
			content: "";
			pointer-events: none;
			transform: scaleX(0);
			transform-origin: 0 50%;
			animation: about-progress linear both;
			animation-timeline: scroll(root);
		}
	}
}

/* ==========================================================================
   25. Refresh (1.6.0): "Headlight"
   Same dark, warm, amber look, drawn sharper. Light is the only decoration: a glass top bar with a
   reading-progress line, a hero that sharpens into focus and follows your pointer like a headlight,
   cards that catch the light, crisper buttons and type, a touch of film grain so it never feels
   plastic, and a footer with a horizon line. Everything here is additive. Effects that move are
   skipped for people who ask for less motion, and nothing depends on JavaScript.
   ========================================================================== */
:root {
	color-scheme: dark;
	--ink: #1c1410;
	--text: #faf5ec;
	--text-soft: #efe8dc;
	--text-2: #d9d2c6;
	--accent-hi: #f59e0b;
	--accent-hi: color-mix(in srgb, var(--accent) 78%, #ffc43a);
	--glow: rgba(245, 158, 11, 0.16);
	--glow-strong: rgba(245, 158, 11, 0.34);
	--hair: rgba(255, 244, 228, 0.09);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--radius: 10px;
}

html {
	scrollbar-color: #5b5350 var(--bg-deep);
	scrollbar-width: thin;
	accent-color: var(--accent);
}

body {
	font-kerning: normal;
	font-optical-sizing: auto;
	font-variant-ligatures: common-ligatures;
}

::selection {
	background: rgba(245, 158, 11, 0.5);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--accent-hi);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

/* Film grain: a quiet analog texture over the whole page. */
body::before {
	position: fixed;
	inset: 0;
	z-index: 90;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .8  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	background-size: 220px 220px;
	content: "";
	opacity: 0.05;
	pointer-events: none;
}

/* ---- Buttons: crisp, lit from the top, dark ink on amber (easier to read than white) ---- */
.btn {
	border-radius: var(--radius);
	letter-spacing: 0.005em;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.18s ease;
}

.btn--accent {
	background: linear-gradient(180deg, #f7a823 0%, #d97706 100%);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #ffd36e) 0%, var(--accent) 100%);
	color: var(--ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -10px rgba(217, 119, 6, 0.75);
}

.btn--accent:hover {
	background: linear-gradient(180deg, #fbb53c 0%, #e5800b 100%);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent-hover) 60%, #ffdc8c) 0%, color-mix(in srgb, var(--accent) 92%, #ffb43a) 100%);
	color: var(--ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -10px rgba(245, 158, 11, 0.85);
	transform: translateY(-1px);
}

.btn--accent:active {
	transform: translateY(0);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px -6px rgba(217, 119, 6, 0.6);
}

.btn--outline {
	border-color: rgba(255, 244, 228, 0.28);
}

.btn--outline:hover {
	border-color: var(--accent-hi);
	background: rgba(245, 158, 11, 0.08);
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.btn--ghost:hover,
.icon-btn:hover {
	background: rgba(255, 244, 228, 0.08);
}

.pub-icon--monogram {
	background: linear-gradient(180deg, #f7a823, #d97706);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #ffd36e), var(--accent));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
	color: var(--ink);
}

/* ---- Top bar: dark glass ---- */
.topbar {
	background: rgba(27, 23, 22, 0.78);
	background: color-mix(in srgb, var(--bg-deep) 74%, transparent);
	-webkit-backdrop-filter: saturate(1.7) blur(20px);
	backdrop-filter: saturate(1.7) blur(20px);
}

.topbar.is-scrolled {
	border-bottom-color: var(--hair);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.brand__name {
	letter-spacing: -0.01em;
}

.brand:hover .brand__name {
	text-decoration: none;
	color: var(--accent-hi);
}

/* ---- Banner and navigation ---- */
.banner::after {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 18%;
	background: linear-gradient(0deg, rgba(27, 23, 22, 0.55), transparent);
	content: "";
	pointer-events: none;
}

.nav-card {
	border-top: 1px solid var(--hair);
	box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.7);
}

.nav-menu a {
	font-weight: 600;
	letter-spacing: 0.005em;
	transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-menu a:hover {
	color: var(--accent-hi);
	opacity: 1;
}

.nav-menu a::after {
	position: absolute;
	right: 12px;
	bottom: 0;
	left: 12px;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: linear-gradient(90deg, var(--accent), var(--accent-hi));
	content: "";
	transform: scaleX(0);
	transform-origin: 50% 100%;
	transition: transform 0.3s var(--ease);
}

.nav-menu a:hover::after {
	transform: scaleX(1);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
	font-weight: 700;
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-ancestor > a::after {
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-hi));
	box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
	transform: scaleX(1);
}

/* ---- Hero: the headlight ---- */
.lp-intro::before {
	background: radial-gradient(closest-side, rgba(245, 158, 11, 0.2), transparent);
}

.lp-intro::after {
	position: absolute;
	inset: 0;
	background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 34%), rgba(245, 158, 11, 0.13), transparent 70%);
	content: "";
	opacity: var(--lit, 0.85);
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.lp-intro__title {
	font-size: clamp(42px, 7vw, 84px);
	line-height: 1;
	letter-spacing: -0.03em;
}

.lp-intro__title em,
.chapter-head__title em {
	background: linear-gradient(100deg, #f0a94a 10%, #ffc54d 55%, #f59e0b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--accent-soft);
	padding-right: 0.06em;
}

.lp-intro__eyebrow {
	letter-spacing: 0.22em;
}

.lp-intro__text {
	color: var(--text-2);
}

.lp-stats {
	border-image: linear-gradient(90deg, transparent, rgba(255, 244, 228, 0.18) 20%, rgba(255, 244, 228, 0.18) 80%, transparent) 1;
}

.lp-stats__value {
	font-size: clamp(28px, 3.6vw, 38px);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

/* ---- Chapter headings ---- */
.chapter-head__title {
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.chapter-head__rule {
	width: 48px;
	background: linear-gradient(90deg, var(--accent), transparent);
	opacity: 1;
}

.chapter-head__num {
	font-variant-numeric: tabular-nums;
}

/* ---- Cards: they catch the light ---- */
.card {
	isolation: isolate;
	box-shadow: inset 0 0 0 1px transparent;
	transition: background-color 0.25s ease, box-shadow 0.3s var(--ease), transform 0.35s var(--ease);
}

.card::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(245, 158, 11, 0.15), transparent 72%);
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.card:hover {
	background: rgba(255, 244, 228, 0.03);
	box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
	transform: translateY(-2px);
}

.card:hover::before,
.card:focus-within::before {
	opacity: 1;
}

.card__media {
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.07);
}

.card__img {
	transition: transform 0.7s var(--ease);
}

.card:hover .card__img {
	transform: scale(1.045);
}

.card__title {
	letter-spacing: -0.012em;
}

.card__title a:hover {
	color: var(--accent-hi);
	text-decoration: none;
}

.post-meta {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
}

/* ---- About Gene frame and photo wall ---- */
.lp-about__img {
	box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.08), 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 90px -30px rgba(245, 158, 11, 0.35);
}

.lp-about__frame::before {
	border-image: none;
	border-color: rgba(245, 158, 11, 0.7);
	opacity: 0.8;
	transition: transform 0.6s var(--ease), opacity 0.4s ease;
}

.lp-about__frame:hover::before {
	opacity: 1;
	transform: translate(-6px, -6px);
}

.social-links__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.social-links__link:hover,
.social-links__link:focus-visible {
	box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.6);
	transform: translateY(-3px);
}

/* ---- Subscribe forms ---- */
.subscribe-form {
	border-radius: var(--radius);
	transition: box-shadow 0.3s var(--ease);
}

.subscribe-form:focus-within {
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 12px 36px -14px rgba(245, 158, 11, 0.55);
}

.subscribe-form__input {
	border-radius: var(--radius) 0 0 var(--radius);
}

.subscribe-form__input:focus {
	box-shadow: inset 0 0 0 1px var(--accent-hi);
}

.subscribe-form__button {
	border-color: var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: linear-gradient(180deg, #f7a823, #d97706);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #ffd36e), var(--accent));
	color: var(--ink);
	font-weight: 700;
}

.subscribe-form__button:hover {
	border-color: var(--accent-hi);
	background: linear-gradient(180deg, #fbb53c, #e5800b);
}

/* ---- Reading pages ---- */
.post-title {
	font-size: clamp(32px, 5.4vw, 52px);
	line-height: 1.06;
	letter-spacing: -0.028em;
}

.post-subtitle {
	letter-spacing: -0.005em;
}

.entry-content {
	font-feature-settings: "kern", "liga", "onum";
	text-wrap: pretty;
}

.entry-content h2,
.entry-content h3 {
	letter-spacing: -0.02em;
}

.entry-content a {
	text-decoration-color: rgba(245, 158, 11, 0.6);
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.entry-content a:hover {
	color: var(--accent-hi);
	text-decoration-color: var(--accent-hi);
	text-decoration-thickness: 2px;
}

.entry-content.has-dropcap > p:first-child::first-letter,
.entry-content .has-drop-cap:not(:focus)::first-letter {
	background: linear-gradient(180deg, #ffc54d, #d97706);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 78px;
	font-weight: 700;
	line-height: 56px;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	padding: 6px 0 6px 24px;
	border-left: 0;
	background: linear-gradient(180deg, var(--accent-hi), var(--accent)) left / 3px 100% no-repeat;
	font-style: italic;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	font-style: normal;
}

.entry-content img,
.entry-content figure img {
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.07);
}

.post-hero img {
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.08), 0 30px 70px -26px rgba(0, 0, 0, 0.8);
}

.post-navigation a {
	transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s var(--ease);
}

.post-navigation a:hover {
	transform: translateY(-2px);
}

.post-tags a {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---- Footer: a horizon, and a copyright that keeps itself current ---- */
.site-footer {
	position: relative;
	border-top: 0;
}

.site-footer::before {
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.75) 50%, transparent);
	box-shadow: 0 0 24px 2px rgba(245, 158, 11, 0.28);
	content: "";
}

.footer-subscribe__title {
	letter-spacing: -0.028em;
}

.footer-links a,
.footer-col a {
	transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-links a:hover {
	color: var(--accent-hi);
}

.footer-bar {
	border-top-color: var(--hair);
}

.footer-bar__copy {
	color: var(--text-2);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.copy-years {
	font-weight: 600;
	white-space: nowrap;
}

.copy-years__dash {
	margin: 0 0.04em;
	color: var(--accent-hi);
}

.footer-bar__top {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.footer-bar__top:hover {
	background: var(--accent);
	box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.7);
	color: var(--ink);
	transform: translateY(-2px);
}

/* ---- Horizon under the navigation, glass search, soft dimming behind panels ---- */
.site-content::before {
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5) 50%, transparent);
	content: "";
}

.search-panel {
	background: rgba(27, 23, 22, 0.86);
	background: color-mix(in srgb, var(--bg-deep) 84%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(22px);
	backdrop-filter: saturate(1.6) blur(22px);
	border-top-color: var(--hair);
	border-bottom-color: rgba(245, 158, 11, 0.35);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(245, 158, 11, 0.2);
}

.search-form__input:focus {
	box-shadow: inset 0 0 0 1px var(--accent-hi), 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-panel::backdrop,
.drawer::backdrop {
	background: rgba(12, 9, 8, 0.55);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

/* ---- Page-to-page fade where the browser supports it; the top bar stays put ---- */
@view-transition {
	navigation: auto;
}

.topbar {
	view-transition-name: jm-topbar;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.28s;
	animation-timing-function: ease;
}

/* ---- Motion: only for people who have not asked for less ---- */
@media (prefers-reduced-motion: no-preference) {
	@keyframes jm-sharpen {
		from {
			filter: blur(14px);
			opacity: 0.001;
			translate: 0 10px;
			scale: 0.985;
		}

		to {
			filter: blur(0);
			opacity: 1;
			translate: none;
			scale: none;
		}
	}

	@keyframes jm-fade-up {
		from {
			opacity: 0;
			translate: 0 14px;
		}

		to {
			opacity: 1;
			translate: none;
		}
	}

	.lp-intro__eyebrow {
		animation: jm-fade-up 0.7s var(--ease) both;
	}

	.lp-intro__title {
		animation: jm-sharpen 0.95s var(--ease) 0.08s both;
	}

	.lp-intro__text {
		animation: jm-fade-up 0.8s var(--ease) 0.34s both;
	}

	.lp-intro__ctas {
		animation: jm-fade-up 0.8s var(--ease) 0.46s both;
	}

	.lp-stats {
		animation: jm-fade-up 0.8s var(--ease) 0.58s both;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes jm-rise {
			from {
				opacity: 0;
				translate: 0 22px;
			}

			to {
				opacity: 1;
				translate: none;
			}
		}

		@keyframes jm-read {
			from {
				transform: scaleX(0);
			}

			to {
				transform: scaleX(1);
			}
		}

		.hero .card,
		.post-grid .card,
		.chapter-head,
		.lp-about__media,
		.lp-about__copy,
		.photo-grid__item,
		.post-widgets .widget,
		.footer-col {
			animation: jm-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}

		/* Reading progress: a fine amber line along the very top of the window. */
		body::after {
			position: fixed;
			inset: 0 0 auto;
			z-index: 300;
			height: 2px;
			background: linear-gradient(90deg, var(--accent), var(--accent-hi) 60%, #ffd36e);
			box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
			content: "";
			pointer-events: none;
			transform: scaleX(0);
			transform-origin: 0 50%;
			animation: jm-read linear both;
			animation-timeline: scroll(root);
		}

		.about-page::before {
			display: none;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.card:hover,
	.btn--accent:hover,
	.social-links__link:hover,
	.footer-bar__top:hover,
	.post-navigation a:hover {
		transform: none;
	}

	.card:hover .card__img {
		transform: none;
	}

	@view-transition {
		navigation: none;
	}
}

/* Phones: no hover lifts, a lighter grain, calmer hero. */
@media (hover: none) {
	.card:hover {
		transform: none;
		box-shadow: inset 0 0 0 1px transparent;
		background: transparent;
	}

	.card:hover .card__img {
		transform: none;
	}

	.card:hover::before {
		opacity: 0;
	}
}

@media (max-width: 767px) {
	body::before {
		opacity: 0.04;
	}

	.lp-intro__title {
		font-size: clamp(40px, 12.5vw, 56px);
	}

	.post-title {
		font-size: clamp(30px, 8.6vw, 40px);
	}
}
