/* ===== Sketchbreak brand tokens (ported from The Hoop Chronicle's live
   settings). Rebrand the site by changing these. ===== */
:root {
	--accent-color: #cc0e49;
	/* White header (matches the Substack look): dark ink text/logo on white,
	   with a soft light divider. Flip these three back to dark values
	   (#1c1815 / #fbfbfb / #3a332d) to restore the dark header. */
	--header-bg-color: #ffffff;
	--header-text-color: #1a1613;
}

/* ---------- Fonts (self-hosted, same set as the WordPress sibling theme) ---------- */

@font-face {
	font-family: "Roboto Slab";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/roboto-slab-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Roboto Slab";
	font-weight: 900;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/roboto-slab-900-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/source-serif-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/source-serif-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/source-serif-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/inter-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/inter-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/inter-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/inter-700-normal.woff2") format("woff2");
}

/* Alfa Slab One only ships one real weight. It's registered at both 400 and
   900 so headings requesting font-weight:900 use the real glyphs instead of
   a synthetic/faux-bold version of the 400 weight. */
@font-face {
	font-family: "Alfa Slab One";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/alfa-slab-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Alfa Slab One";
	font-weight: 900;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/alfa-slab-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Merriweather";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/merriweather-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Merriweather";
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	src: url("../fonts/merriweather-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Merriweather";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/merriweather-700-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */

:root {
	--color-background: #ffffff;
	--color-off-white: #f7f4ef;
	--color-ink: #1a1613;
	--color-charcoal: #1c1815;
	--color-charcoal-border: #e6e1d8; /* header divider — light, since the header is white */
	--color-stone: #6b6259;
	--color-stone-light: #d9d2c7;
	--color-rust: #bf4522;
	--color-cream: #efe9de;

	--font-slab: "Roboto Slab", "Rockwell", ui-serif, Georgia, serif;
	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--font-size-small: 0.8125rem;
	--font-size-meta: 0.875rem;
	--font-size-medium: 1.0625rem;
	--font-size-large: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
	--font-size-x-large: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
	--font-size-xx-large: clamp(1.65rem, 1.45rem + 0.9vw, 2.125rem);
	--font-size-huge: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
	--content-font-size: 1.25rem;
	--dek-font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
	--tagline-font-size: var(--font-size-meta);

	--space-10: 0.5rem;
	--space-20: 1rem;
	--space-30: 1.5rem;
	--space-40: 2.5rem;
	--space-50: 4rem;
	--space-60: 6rem;

	--content-size: 660px;
	--wide-size: 1320px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-ink);
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	line-height: 1.6;
}

/* Merriweather renders visually larger than Source Serif 4 at the same
   font-size, so body copy needs a compensating size reduction when it's
   selected via the "Body font" theme setting. */
body[data-body-font="Merriweather"] {
	--content-font-size: 1rem;
	--dek-font-size: clamp(1.05rem, 0.97rem + 0.35vw, 1.2rem);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: var(--color-ink);
	text-decoration: underline;
}

a:visited {
	color: inherit;
}

a:hover {
	color: var(--accent-color, var(--color-rust));
}

h1, h2, h3, h4 {
	font-family: var(--font-slab);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

h1 { font-size: var(--font-size-xx-large); }
h2 { font-size: var(--font-size-x-large); }
h3 { font-size: var(--font-size-large); }

.site-main a {
	text-decoration: none;
}

/* ---------- Content width -----------
   Same approach as the WordPress sibling theme: rather than relying on a
   framework alignment utility, every top-level content wrapper gets an
   explicit max-width + centering + responsive side padding so nothing
   touches the browser edge. */

.homepage-grid,
.listing-page,
.single-page,
.error-404-content {
	max-width: var(--wide-size);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Breathing room below article/page content before the footer's CTA band
   (the footer part sits flush by design, so the space lives on the content). */
.single-page {
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.listing-page-title {
	padding-top: var(--space-40);
	margin-bottom: 0;
}

/* ---------- Header ---------- */

/* ----- Compact header: logo left, inline nav, no tagline. Always
   rendered — it's the whole header when "shrink on scroll" is off, and
   the post-scroll state when it's on. Background/border live on the
   compact and expanded blocks themselves (not the outer .site-header)
   because the compact block can be pulled out of normal flow via
   position: fixed, and a detached box doesn't inherit its old parent's
   painted background. ----- */

.site-header-compact {
	background: var(--header-bg-color, var(--color-charcoal));
	border-bottom: 1px solid var(--color-charcoal-border);
}

/* WordPress inserts a block-gap `margin-block-start` between the header's stacked
   children (expanded + compact). That margin pushes the fixed compact bar ~19px
   below the viewport top when pinned, leaving a sliver of page content above it.
   Zero it out so the compact bar sits flush at top:0. */
.site-header.wp-block-group > *,
.site-header-expanded > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Sticky is applied to the outer .site-header (whose containing block is
   body — tall enough to give the sticky element real "runway"), not to
   .site-header-compact itself. .site-header-compact is the only child
   here, so its box is exactly as tall as .site-header — pinning the
   child directly leaves zero scroll distance for it to actually stay
   stuck before its own container has already scrolled away. */
.site-header--sticky:not(.site-header--shrink) {
	position: sticky;
	top: 0;
	z-index: 50;
}

/* WordPress wraps every template part in `.wp-block-template-part`. On MOBILE the
   header is just the compact bar and we want it to stick, but `.site-header`'s own
   sticky would pin inside that short wrapper (no runway). So pin the header-area
   wrapper itself — it's a direct child of the tall `.wp-site-blocks`. Desktop uses
   the shrink model instead (compact bar is position:fixed), so this is mobile-only.
   Scoped to the <header> element so the footer template part is unaffected. */
@media (max-width: 767px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 50;
	}
}

.site-header--shadow.is-scrolled .site-header-compact {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header-compact {
	transition: box-shadow 0.2s ease;
}

.site-header-bar {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp(1.5rem, 4vw, 3rem);
	max-width: var(--wide-size);
	margin-left: auto;
	margin-right: auto;
	padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
}

/* When the shrink header scrolls into its compact state, shrink the logo too
   so the bar gets shorter — the expanded header at the top keeps the full
   (configurable) logo size. Desktop only, matching the shrink behavior. */
@media (min-width: 768px) {
	.site-header--shrink.is-scrolled .site-header-compact .site-logo {
		height: var(--compact-logo-height, 2.25rem);
	}
}

.site-header-icons {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1.25rem;
}

.site-header-icon {
	display: inline-flex;
	color: var(--header-text-color, var(--color-cream));
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.site-header-icon-button {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.site-header-icon:hover {
	opacity: 1;
}

.site-header-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: var(--header-text-color, var(--color-cream));
	cursor: pointer;
	flex: 0 0 auto;
}

.site-header-hamburger .icon-close {
	display: none;
}

.site-header-hamburger.is-active .icon-menu {
	display: none;
}

.site-header-hamburger.is-active .icon-close {
	display: inline-flex;
}

.site-header-brand {
	display: flex;
	align-items: center;
	gap: var(--space-10);
	flex: 0 0 auto;
}

.site-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
}

.site-logo {
	height: min(var(--logo-height, 2.25rem), 12vw);
	width: auto;
}

/* The logo is now the full "Sketchbreak" wordmark, so hide the text site-title and
   size the logo with an EXPLICIT width per header state. (Relying on the site-logo
   block's `width` attribute + a large max-width let the logo balloon in the Site
   Editor, where that attribute isn't applied — so set the width in CSS directly.) */
.site-header .site-title { display: none; }
.site-header .custom-logo { height: auto; }
.site-header-expanded .custom-logo { width: min(380px, 80vw); }
.site-header-compact .custom-logo { width: min(230px, 55vw); }

/* Tagline under the logo (expanded header only). Driven by the WP Tagline setting
   (Settings → General): fill it to show, clear it to hide — that's the on/off. Collapse
   the block entirely when empty so it leaves no gap. */
.site-header-tagline {
	text-align: center;
	font-family: var(--font-serif); /* same body serif as the rest of the site */
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--color-stone);
	margin: 0.35rem 0 0;
}
.site-header-tagline:empty { display: none; margin: 0; }

/* "Site title size" setting (Small/Medium/Large) → a uniform scale applied to
   BOTH the full and compressed header titles, so one control resizes them
   proportionally. Medium = 1 = the original sizes. */
:root { --title-scale: 1; }
body[data-title-size="Small"] { --title-scale: 0.85; }
body[data-title-size="Large"] { --title-scale: 1.15; }

.site-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: calc(clamp(1.25rem, 1rem + 1vw, 1.75rem) * var(--title-scale, 1));
	color: var(--header-text-color, #ffffff);
	margin: 0;
	line-height: 1.08;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-header-nav {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 1.75rem;
	overflow-x: auto;
}

.site-header-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}

.site-header-nav a {
	color: var(--header-text-color, var(--color-cream));
	text-decoration: none;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	padding: 0.4rem 0;
	border-bottom: 2px solid transparent;
	display: inline-block;
	opacity: 0.85;
	white-space: nowrap;
}

.site-header-nav a:hover,
.site-header-nav .nav-current a {
	border-bottom-color: var(--accent-color, var(--color-rust));
	opacity: 1;
}

/* ----- WordPress core Navigation block overrides -----
   WP outputs `.wp-block-navigation-item__content` (0,2,0), which beats
   `.site-header-nav a`, so nav links inherit the dark body ink. Re-assert the
   light header text color and strip the default search-button chrome. */
.site-header .wp-block-navigation,
.site-header .wp-block-navigation .wp-block-navigation-item__content,
.site-header .wp-block-navigation a {
	color: var(--header-text-color, var(--color-cream));
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.95rem;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	opacity: 0.85;
	text-decoration: none;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	opacity: 1;
	color: var(--header-text-color, var(--color-cream));
}
/* search block inside the nav: icon-only, transparent, light */
.site-header-search .wp-block-search__button,
.site-header .wp-block-search__button {
	background: transparent;
	border: none;
	padding: 0.35rem;
	color: var(--header-text-color, var(--color-cream));
	min-width: 0;
	/* Center the magnifying-glass icon vertically in its button so it sits level with the
	   nav text (the default button box left the icon sitting a few px high). */
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-header-search .wp-block-search__button svg,
.site-header .wp-block-search__button svg {
	fill: var(--header-text-color, var(--color-cream));
	width: 1.15rem;
	height: 1.15rem;
}
.site-header-search .wp-block-search__button:hover svg {
	fill: var(--accent-color, var(--color-rust));
}
/* mobile hamburger toggle color */
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: var(--header-text-color, var(--color-cream));
}

/* ----- Right-aligned actions cluster (search + Sign in + Subscribe) -----
   margin-left:auto pushes it to the far right so the nav links stay left,
   next to the brand (matching the Source layout). */
.nav-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.nav-signin {
	color: var(--header-text-color, var(--color-cream));
	text-decoration: none;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	opacity: 0.85;
	white-space: nowrap;
}
.nav-signin:hover { opacity: 1; }

.site-header .subscribe-button {
	display: inline-block;
	background: var(--accent-color, var(--color-rust));
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	text-decoration: none;
	border-radius: 999px;
	padding: 0.45rem 1.15rem;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}
.site-header .subscribe-button:hover { opacity: 0.88; color: #fff; }

/* Members links inside the mobile dropdown */
.mobile-nav-members {
	display: flex;
	align-items: center;
	gap: var(--space-20);
	padding: var(--space-10) 0 0;
	margin-top: var(--space-10);
	border-top: 1px solid var(--color-charcoal-border);
}

/* Mobile dropdown nav — hidden until the hamburger toggles it open */

.site-header-mobile-nav {
	display: none;
	border-top: 1px solid var(--color-charcoal-border);
	padding: var(--space-10) clamp(1rem, 4vw, 2.5rem) var(--space-20);
}

.site-header-mobile-nav.is-open {
	display: block;
}

.site-header-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
}

.site-header-mobile-nav a {
	color: var(--header-text-color, var(--color-cream));
	text-decoration: none;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-medium);
	display: block;
	padding: 0.35rem 0;
	opacity: 0.85;
}

/* Reading progress bar — only rendered on single-post pages (see
   partials/site-header.hbs). Sits at the bottom edge of the compact
   header so it reads as "part of" the sticky bar, matching the pattern
   on sites like WSJ. Width is driven by assets/js/header.js via
   transform: scaleX() for cheap, GPU-friendly updates on scroll. */
/* Lives inside the compact (sticky) header and hugs its bottom edge, so it reads as a
   progress line right under the nav (like The Hoop Chronicle). Hidden until a post page
   activates it via .is-active (JS). */
.reading-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}
.reading-progress.is-active { opacity: 1; }

.reading-progress-bar {
	height: 100%;
	width: 100%;
	background: var(--accent-color, var(--color-rust));
	transform: scaleX(0);
	transform-origin: left;
}

.site-header-mobile-nav a:hover,
.site-header-mobile-nav .nav-current a {
	opacity: 1;
	color: var(--accent-color, var(--color-rust));
}

/* ----- Expanded header: centered logo/title, tagline, nav row below.
   Only rendered in the template when "shrink on scroll" is on — this is
   the pre-scroll state at the top of the page. ----- */

.site-header-expanded {
	background: var(--header-bg-color, var(--color-charcoal));
	border-bottom: 1px solid var(--color-charcoal-border);
}

.site-header-expanded-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	max-width: var(--wide-size);
	margin-left: auto;
	margin-right: auto;
	padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
}

.site-header-expanded .site-header-spacer,
.site-header-expanded .site-header-icons {
	min-width: 96px;
	flex: 0 0 auto;
}

.site-header-titles {
	flex: 1;
	text-align: center;
}

.site-header-expanded .site-title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-20);
}

.site-header-expanded .site-logo {
	height: min(calc(var(--logo-height, 2.25rem) * 1.4), 16vw);
}

.site-header-expanded .site-title {
	font-size: calc(clamp(1.75rem, 1.4rem + 2vw, 3rem) * var(--title-scale, 1));
	white-space: normal;
}

.site-tagline {
	margin: 0.35rem 0 0;
	font-family: var(--font-sans);
	font-size: var(--tagline-font-size);
	color: var(--header-text-color, var(--color-stone-light));
	opacity: 0.75;
}

.site-header-nav-row {
	border-top: 1px solid var(--color-charcoal-border);
}
/* Keep the nav items within the same content bounds as the page columns,
   while the divider/background above still spans full width. */
.site-header-nav-row-inner {
	max-width: var(--wide-size);
	margin: 0 auto;
	/* The row has a fixed height and its items STRETCH to fill it; each link centers
	   its text but carries the border on its bottom edge, so the underline lands flush
	   on the header's bottom divider while the text stays vertically centered. */
	padding: 0 clamp(1rem, 4vw, 2.5rem);
	min-height: 2.7rem;
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 2rem;
}

/* Search is the rightmost nav item — inline, spaced like the other links
   (each nav row's gap sits it the same distance past the last link).
   The expanded row's links use bottom-only padding, so match it there so the
   icon lines up; the compact bar's links are symmetric, so no nudge needed. */
.site-header-nav-row ul,
.site-header-nav-row .wp-block-navigation {
	list-style: none;
	display: flex;
	align-items: stretch;
	gap: 2rem;
	margin: 0;
	padding: 0;
}
/* Each nav item (and the search) stretches full height so its link can bottom-anchor
   the underline while centering the label. */
.site-header-nav-row .wp-block-navigation-item {
	display: flex;
	align-items: stretch;
}
.site-header-nav-row .nav-search {
	display: flex;
	align-items: center;
}

.site-header-nav-row a {
	color: var(--header-text-color, var(--color-cream));
	text-decoration: none;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	/* full-height link, text centered; transparent top border balances the bottom
	   one so the label stays centered while the underline sits at the very bottom */
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	opacity: 0.85;
}
/* WP's `.wp-block-navigation-item__content` forces display:block (higher specificity),
   which left the label top-aligned in the full-height link. Re-assert flex centering
   with a selector that outranks it. */
.site-header-nav-row .wp-block-navigation a {
	display: flex;
	align-items: center;
}

.site-header-nav-row a:hover,
.site-header-nav-row .nav-current a,
.site-header-nav-row .current-menu-item a,
.site-header-nav-row a[aria-current] {
	border-bottom-color: var(--accent-color, var(--color-rust));
	opacity: 1;
}

/* ----- Shrink-on-scroll swap (desktop only — mobile always uses the
   compact header, see below) ----- */

@media (min-width: 768px) {
	.site-header--shrink .site-header-compact {
		position: fixed;
		top: -100px;
		left: 0;
		right: 0;
		transition: top 0.25s ease;
		z-index: 50;
	}

	.site-header--shrink.is-scrolled .site-header-compact {
		top: 0;
	}

	/* Shrink on, sticky off: reveal the compact header in normal flow
	   instead of pinning it, so it scrolls away like any other element. */
	.site-header--shrink:not(.site-header--sticky) .site-header-compact {
		position: static;
		top: auto;
		display: none;
	}

	.site-header--shrink:not(.site-header--sticky).is-scrolled .site-header-compact {
		display: block;
	}
}

/* Keep the fixed compact header below the WordPress admin bar for logged-in users.
   The admin bar is fixed at 32px tall only on screens wider than 782px; at 782px and
   below it becomes position:absolute and scrolls away with the page, so no offset is
   needed there (and the compact header reveals only after the bar has scrolled off). */
@media (min-width: 783px) {
	.admin-bar .site-header--shrink.is-scrolled .site-header-compact {
		top: 32px;
	}
}

/* ----- Mobile: always the compact header, with a hamburger dropdown ----- */

@media (max-width: 767px) {
	.site-header-expanded {
		display: none;
	}

	.site-header-compact {
		position: static;
		transform: none;
		display: block;
	}

	.site-header--sticky .site-header-compact {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.site-header-hamburger {
		display: inline-flex;
	}

	.site-header-nav {
		display: none;
	}

	.site-header-icons {
		margin-left: auto;
	}
}

/* ---------- Homepage masonry grid ---------- */

.homepage-grid {
	display: grid;
	grid-template-columns: minmax(0, 290fr) minmax(0, 582fr) minmax(0, 320fr);
	gap: var(--space-30);
	align-items: start;
	padding-top: var(--space-40);
	padding-bottom: var(--space-60);
}

.grid-col-left {
	display: flex;
	flex-direction: column;
}

.grid-col-left-item {
	padding-top: var(--space-30);
	border-top: 1px solid var(--color-stone-light);
}

.grid-col-left-item:first-child {
	padding-top: 0;
	border-top: none;
}

.grid-col-left-item img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 10px;
}

.grid-col-left-item h3 {
	font-size: 1rem;
	margin-top: var(--space-20);
	margin-bottom: 0.4rem;
}

.grid-col-left-item h3 a {
	text-decoration: none;
}

.grid-col-left-item p {
	font-family: var(--font-serif);
	font-size: 0.8rem;
	color: var(--color-stone);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.grid-col-feature .feature-post-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 14px;
}

.grid-col-feature h2 {
	font-size: var(--font-size-huge);
	text-align: center;
	margin-top: var(--space-40);
	margin-bottom: var(--space-20);
}

.grid-col-feature h2 a {
	text-decoration: none;
}

.grid-col-feature .excerpt {
	text-align: center;
	max-width: 46rem;
	margin: 0 auto;
	color: var(--color-stone);
}

.grid-col-feature .post-byline-row {
	justify-content: center;
	margin-top: var(--space-30);
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}

/* ---------- Feature column secondary stories (WSJ-style) ----------
   Two smaller stories nested under the main hero story, inside the
   center column at that column's own width — not a separate full-width
   section. Populated from whatever comes right after the hero grid's
   own reserved posts (see index.hbs) so nothing repeats. */

.grid-col-feature-secondary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-30);
	margin-top: var(--space-40);
	padding-top: var(--space-30);
	border-top: 1px solid var(--color-stone-light);
}

.grid-col-feature-secondary-item img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: var(--space-20);
}

.grid-col-feature-secondary-item h3 {
	font-size: 1.1rem;
	margin: 0 0 0.4rem;
}

.grid-col-feature-secondary-item h3 a {
	text-decoration: none;
}

.grid-col-feature-secondary-item p {
	font-family: var(--font-serif);
	font-size: 0.9rem;
	color: var(--color-stone);
	margin: 0;
}

@media (max-width: 700px) {
	.grid-col-feature-secondary {
		grid-template-columns: 1fr;
	}
}

.subscribe-card {
	border: 1px solid var(--color-stone-light);
	border-radius: 12px;
	padding: var(--space-30);
	text-align: center;
	margin-bottom: var(--space-40);
}

.subscribe-card h3 {
	margin-top: 0;
}

.subscribe-card p {
	font-family: var(--font-sans);
	font-size: var(--font-size-meta);
	color: var(--color-stone);
}

.subscribe-card .subscribe-button {
	display: inline-block;
	width: 100%;
	background: var(--color-ink);
	color: #ffffff;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	text-decoration: none;
	border-radius: 999px;
	padding: 0.7rem 1.4rem;
	text-align: center;
}

.subscribe-card .subscribe-button:hover {
	background: var(--accent-color, var(--color-rust));
	color: #ffffff;
}

.grid-col-right {
	display: flex;
	flex-direction: column;
}

.grid-col-right-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-20);
	padding-top: var(--space-20);
	padding-bottom: var(--space-20);
	border-top: 1px solid var(--color-stone-light);
}

.grid-col-right-item:first-child {
	padding-top: 0;
	border-top: none;
}

.grid-col-right-item:last-child {
	padding-bottom: 0;
}

.grid-col-right-item-image {
	flex-shrink: 0;
	width: 84px;
}

.grid-col-right-item-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
}

.grid-col-right-item-text {
	min-width: 0;
}

.grid-col-right-item h3 {
	font-size: 0.95rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.grid-col-right-item h3 a {
	text-decoration: none;
}

.grid-col-right-item-byline {
	gap: 0.5rem;
}

.grid-col-right-item-byline .avatar {
	width: 22px;
	height: 22px;
}

.grid-col-right-item-byline .author-name,
.grid-col-right-item-byline time,
.grid-col-right-item-byline .post-reading-time {
	font-size: 0.7rem;
}

@media (max-width: 960px) {
	.homepage-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Post byline row (shared) ---------- */

.post-byline-row {
	display: flex;
	align-items: center;
	gap: var(--space-20);
	margin: var(--space-20) 0;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	object-fit: cover;
	background: var(--color-stone-light);
}

/* Article byline photo (single posts) — size is configurable in
   Design → Customize → Theme via the "byline_photo_size" setting. */
.post-byline-row--single .avatar {
	width: var(--byline-avatar-size, 3rem);
	height: var(--byline-avatar-size, 3rem);
}

/* Byline author links (photo + name link to the author's page). */
.author-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.author-link:hover {
	color: var(--accent-color, var(--color-rust));
}

.author-avatar-link {
	display: inline-flex;
	border-radius: 999px;
}

.author-avatar-link:hover {
	opacity: 0.85;
}

.post-byline-names {
	line-height: 1.35;
}

.post-byline-names .author-name {
	margin: 0;
	text-transform: uppercase;
	font-weight: 700;
	font-size: var(--font-size-small);
	font-family: var(--font-sans);
}

.post-byline-names time {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}

.post-reading-time {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	margin-left: 0.35em;
}

/* ---------- Single post ---------- */

.single-post-header {
	max-width: var(--content-size);
	margin: 0 auto;
	padding-top: var(--space-40);
}

/* When a post/page has NO featured image, the empty featured-image block renders
   nothing, so the content butts right up under the title. Add breathing room in
   just that case (e.g. the About page). Posts WITH a featured image already get
   their spacing from .single-post-featured-image's margins. */
.single-post-header + .single-post-content {
	padding-top: var(--space-40);
}

.post-dek {
	font-family: var(--font-serif);
	font-size: var(--dek-font-size);
	color: var(--color-stone);
	font-weight: 400;
	margin-top: var(--space-20);
}

.post-byline-row--single {
	justify-content: space-between;
	border-top: 1px solid var(--color-stone-light);
	border-bottom: 1px solid var(--color-stone-light);
	padding: var(--space-20) 0;
}

.post-byline-row--single .post-byline-left {
	display: flex;
	align-items: center;
	gap: var(--space-20);
}
/* Linked byline: avatar + author name both link to the author page. */
.post-byline-avatar { margin: 0; line-height: 0; }
.post-byline-avatar a { display: inline-flex; border-radius: 999px; }
.post-byline-avatar a:hover { opacity: 0.85; }
.post-byline-authorname { margin: 0; }
.post-byline-authorname,
.post-byline-authorname a {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-small);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-ink);
	text-decoration: none;
}
.post-byline-authorname a:hover { color: var(--accent-color, var(--color-rust)); }

/* Right side of the single-post byline: reading time · date */
.post-byline-meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	white-space: nowrap;
}
.post-byline-meta p { margin: 0; }
.post-byline-meta > *:not(:last-child)::after {
	content: "·";
	margin-left: 0.55rem;
	color: var(--color-stone-light);
}
.post-byline-meta .post-byline-date { color: inherit; }

.post-action-icons {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	color: var(--color-stone);
}

.post-action-icon {
	display: inline-flex;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
}

.post-action-icon:hover {
	color: var(--accent-color, var(--color-rust));
}

.single-post-featured-image {
	max-width: var(--content-size);
	margin: var(--space-30) auto var(--space-40);
}

.single-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 14px;
}

.single-post-content {
	max-width: var(--content-size);
	margin: 0 auto;
	font-family: var(--font-serif);
	font-size: var(--content-font-size);
	line-height: 1.75;
}

.single-post-content p {
	margin-bottom: 1.5em;
}

/* ----- Float-wrapped images -----
   Use via an HTML card in a post:
   <figure class="float-right"><img src="…" alt="…"><figcaption>…</figcaption></figure>
   Text wraps beside the image on desktop; it goes full-width on small screens
   so it's never squished. Use "float-left" or "float-right". */
.single-post-content .float-left,
.single-post-content .float-right {
	max-width: 44%;
	margin-top: 0.35rem;
	margin-bottom: var(--space-20);
}
.single-post-content .float-left { float: left; margin-right: var(--space-30); }
.single-post-content .float-right { float: right; margin-left: var(--space-30); }
.single-post-content .float-left img,
.single-post-content .float-right img {
	width: 100%;
	border-radius: 10px;
}
.single-post-content .float-left figcaption,
.single-post-content .float-right figcaption {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	text-align: center;
	margin-top: 0.4rem;
}
/* Keep section headings from wrapping alongside a tall floated image. */
.single-post-content h2,
.single-post-content h3 { clear: both; }

@media (max-width: 600px) {
	.single-post-content .float-left,
	.single-post-content .float-right {
		float: none;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.single-post-content a {
	color: var(--accent-color, var(--color-rust));
}

.single-post-content a:hover {
	opacity: 0.8;
}

.single-post-content blockquote {
	position: relative;
	margin: var(--space-40) 0;
	padding: 0.2em 0 0.2em clamp(2.25rem, 3vw + 1rem, 3.5rem);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.35rem);
	line-height: 1.5;
	color: var(--color-ink);
}

.single-post-content blockquote em {
	font-style: inherit;
}

.single-post-content blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: -0.15em;
	font-family: Georgia, "Times New Roman", serif;
	font-style: normal;
	font-weight: 700;
	font-size: clamp(3rem, 2vw + 2.5rem, 4.5rem);
	line-height: 1;
	color: var(--pullquote-mark-color, var(--accent-color, var(--color-rust)));
	opacity: 0.3;
}

/* Pull quote — not a native Ghost card. Add via an HTML card in the
   editor: <div class="pull-quote"><p>Your excerpted sentence.</p></div>
   Distinct from the sourced-quote blockquote above: centered, wider,
   with the quote mark centered above the text rather than beside it. */
.single-post-content .pull-quote {
	position: relative;
	max-width: var(--content-size);
	margin: var(--space-50) auto;
	padding-top: clamp(2.5rem, 2vw + 2rem, 3.5rem);
	text-align: center;
}

.single-post-content .pull-quote::before {
	content: "\201C";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(2.5rem, 2vw + 2rem, 3.5rem);
	line-height: 1;
	color: var(--pullquote-mark-color, var(--accent-color, var(--color-rust)));
	opacity: 0.3;
}

.single-post-content .pull-quote p {
	margin: 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.65rem);
	line-height: 1.45;
	color: var(--color-ink);
}

/* Drop cap — automatic on every post's opening paragraph (only when the post starts
   with text). `initial-letter` (Safari, Chrome 110+) uses the font's real metrics to
   span exactly 3 lines and sit flush with the cap-height of the first line. The
   float-based declarations are the fallback for browsers without it (notably Firefox);
   supporting browsers apply both, which is the property's intended pairing. */
.single-post .single-post-content .entry-content > p:first-child::first-letter {
	float: left;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 4.6em;
	line-height: 0.78;
	padding-right: 0.12em;
	margin-top: 0.1em;
	color: var(--accent-color, var(--color-rust));
	initial-letter: 3 3;
	-webkit-initial-letter: 3 3;
}

.single-post-content img {
	border-radius: 10px;
}

.single-post-content figure {
	margin: 2em 0;
}

.single-post-content figure figcaption {
	margin-top: 0.75em;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	text-align: center;
}

/* Gallery captions: replace core's tall dark gradient with a slim, evenly
   semi-transparent strip so it doesn't muddy the bottom of the artwork. */
.single-post-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: rgba(26, 22, 19, 0.6);
	padding: 0.55em 0.75em;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
}

/* Koenig editor "wide" and "full" width image/card options — these need to
   visibly break out of the constrained reading column or Ghost's theme
   validator (gscan) flags them as unstyled. */
.single-post-content .kg-width-wide {
	width: 100%;
	max-width: 1000px;
	margin-left: 50%;
	transform: translateX(-50%);
}

.single-post-content .kg-width-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.single-post-content .kg-width-full img {
	width: 100%;
	border-radius: 0;
}

/* Embed cards (YouTube, etc.) come out of Koenig with an inline
   width/height in px sized to the original oEmbed response, which
   overflows the reading column on anything narrower than that. max-width
   clamps regardless of the inline width; height needs !important since
   Koenig also sets an inline height, and forcing it to auto lets the
   inline aspect-ratio (also set by Koenig) recompute it proportionally. */
.single-post-content .kg-embed-card,
.single-post-content iframe {
	max-width: 100%;
}

.single-post-content iframe {
	height: auto !important;
}

/* Video embeds fill the column at 16:9 — Koenig gives the iframe small
   width/height attributes, so without this they render tiny. Scoped to
   video hosts so non-video embeds (tweets, Spotify, etc.) keep their size. */
.single-post-content iframe[src*="youtube.com"],
.single-post-content iframe[src*="youtube-nocookie.com"],
.single-post-content iframe[src*="youtu.be"],
.single-post-content iframe[src*="vimeo.com"] {
	width: 100%;
	aspect-ratio: 16 / 9;
}

/* Gallery card */

.single-post-content .kg-gallery-container {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.single-post-content .kg-gallery-row {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0.5em;
}

.single-post-content .kg-gallery-image {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.single-post-content .kg-gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

/* Bookmark card */

.single-post-content .kg-bookmark-card {
	margin: 2em 0;
}

.single-post-content .kg-bookmark-container {
	display: flex;
	min-height: 8em;
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--color-stone-light);
	border-radius: 10px;
	overflow: hidden;
}

.single-post-content .kg-bookmark-container:hover {
	border-color: var(--accent-color, var(--color-rust));
}

.single-post-content .kg-bookmark-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 auto;
	padding: 1em 1.25em;
	min-width: 0;
}

.single-post-content .kg-bookmark-title {
	font-family: var(--font-slab);
	font-weight: 700;
	font-size: var(--font-size-medium);
}

.single-post-content .kg-bookmark-description {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	margin-top: 0.35em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.single-post-content .kg-bookmark-metadata {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 1em;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}

.single-post-content .kg-bookmark-icon {
	width: 18px;
	height: 18px;
	border-radius: 3px;
}

.single-post-content .kg-bookmark-author,
.single-post-content .kg-bookmark-publisher {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.single-post-content .kg-bookmark-publisher::before {
	content: "•";
	margin-right: 0.5em;
}

.single-post-content .kg-bookmark-thumbnail {
	flex: 0 0 33%;
	min-width: 0;
}

.single-post-content .kg-bookmark-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

@media (max-width: 600px) {
	.single-post-content .kg-bookmark-thumbnail {
		display: none;
	}
}

.single-post-comments {
	max-width: var(--content-size);
	margin: var(--space-40) auto 0;
	border-top: 1px solid var(--color-stone-light);
	padding-top: var(--space-40);
}

.related-posts {
	max-width: var(--content-size);
	margin: var(--space-50) auto 0;
	padding-top: var(--space-40);
	border-top: 1px solid var(--color-stone-light);
}

.related-posts-title {
	margin: 0 0 var(--space-10);
}

.related-posts-list {
	display: flex;
	flex-direction: column;
}

.related-post-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-30);
	padding: var(--space-30) 0;
	border-bottom: 1px solid var(--color-stone-light);
}

.related-posts-list .related-post-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.related-post-row-text {
	flex: 1 1 auto;
	min-width: 0;
}

.related-post-row-text h3 {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.related-post-row-text h3 a {
	color: inherit;
	text-decoration: none;
}

.related-post-row-text p {
	margin: 0 0 0.5rem;
	font-family: var(--font-serif);
	color: var(--color-stone);
	line-height: 1.5;
}

.related-post-row-byline {
	gap: var(--space-10);
}

.related-post-row-byline .avatar {
	width: 28px;
	height: 28px;
}

.related-post-row-image {
	flex-shrink: 0;
	width: 160px;
}

.related-post-row-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.related-post-row-image {
		width: 100px;
	}
}

/* ---------- Post grid (archive / tag pages) ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-40) var(--space-30);
	padding-top: var(--space-40);
	padding-bottom: var(--space-60);
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-30);
	margin-bottom: var(--space-60);
	padding-top: var(--space-30);
	border-top: 1px solid var(--color-stone-light);
}

.pagination .page-number {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-stone);
}

.pagination .older-posts,
.pagination .newer-posts {
	font-family: var(--font-sans);
	font-size: var(--font-size-meta);
	font-weight: 600;
	color: var(--color-ink);
	text-decoration: none;
}

.pagination .older-posts:hover,
.pagination .newer-posts:hover {
	color: var(--accent-color, var(--color-rust));
}

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

@media (max-width: 600px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}

.post-grid-item-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: var(--space-20);
}

.post-grid-item h3 {
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
}

.post-grid-item h3 a {
	text-decoration: none;
}

.post-grid-item p {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: var(--color-stone);
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.post-grid-item time {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}

/* ---------- Footer ---------- */

/* Zero WP's block-gap margins around/inside the footer part so the CTA band meets
   the section above it and the cream bar meets the CTA — no white slivers. */
.wp-site-blocks > footer.wp-block-template-part,
footer.wp-block-template-part > * {
	margin-block-start: 0;
	margin-top: 0;
}

.site-footer {
	background: var(--color-cream);
	color: var(--color-stone);
	padding: var(--space-40) clamp(1rem, 4vw, 2.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-20);
	text-align: center;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
}

.site-footer p {
	margin: 0;
}

/* Social icons on the cream footer: dark, not white. */
.site-footer .wp-social-link,
.site-footer .wp-block-social-links.is-style-logos-only .wp-social-link {
	color: var(--color-stone);
	background: transparent;
}
.site-footer .wp-block-social-links.is-style-logos-only .wp-social-link svg { fill: currentColor; }
.site-footer .wp-social-link:hover { color: var(--accent-color); }

.site-footer nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.site-footer a {
	color: var(--color-stone);
	text-decoration: none;
}

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

.social-links {
	display: flex;
	align-items: center;
	gap: var(--space-20);
}
.social-link {
	display: inline-flex;
	color: var(--color-stone-light);
	opacity: 0.85;
	transition: opacity 0.15s ease, color 0.15s ease;
}
.social-link:hover {
	opacity: 1;
	color: var(--accent-color, var(--color-rust));
}

.site-footer-disclaimer {
	max-width: 62ch;
	margin: 0;
	font-size: var(--font-size-small);
	line-height: 1.5;
	color: var(--color-stone-light);
	opacity: 0.55;
}

/* ---------- Authors index page ---------- */

.author-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-30);
	padding-top: var(--space-40);
	padding-bottom: var(--space-60);
}

@media (max-width: 700px) {
	.author-grid {
		grid-template-columns: 1fr;
	}
}

.author-card {
	border: 1px solid var(--color-stone-light);
	border-radius: 14px;
	padding: var(--space-30);
	transition: border-color 0.15s ease;
}

.author-card:hover {
	border-color: var(--accent-color, var(--color-rust));
}

.author-card-top {
	display: block;
	text-decoration: none;
	color: inherit;
}

.author-card-avatar {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 999px;
	background: var(--color-stone-light);
	margin-bottom: var(--space-20);
}

.author-card-name {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.author-card-bio {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: var(--color-stone);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.author-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-20);
	margin-top: var(--space-20);
	padding-top: var(--space-20);
	border-top: 1px solid var(--color-stone-light);
}

.author-card-meta-icon {
	display: inline-flex;
	color: var(--color-stone);
}

.author-card-meta-icon:hover {
	color: var(--accent-color, var(--color-rust));
}

.author-card-meta-text {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	text-decoration: none;
}

.author-card-meta-count:hover {
	color: var(--accent-color, var(--color-rust));
}

/* ---------- Single author page ---------- */

.author-profile {
	display: flex;
	align-items: flex-start;
	gap: var(--space-30);
	padding-top: var(--space-40);
	padding-bottom: var(--space-40);
	border-bottom: 1px solid var(--color-stone-light);
	margin-bottom: var(--space-40);
}

/* Author long-form write-up (rich content pulled from a companion Page),
   shown between the profile header and the author's post grid. Matches the
   single-post reading column via the nested .single-post-content. */
/* Two-column author page: profile + write-up in a ~660px left column, the
   author's posts in a 2-up grid of smaller cards on the right, split by a
   vertical divider. */
.author-page .author-layout {
	display: grid;
	grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
	column-gap: 0;
	align-items: start;
	padding-top: var(--space-50);
}

.author-page .author-col-left {
	padding-right: var(--space-50);
}

.author-page .author-col-right {
	padding-left: var(--space-50);
	border-left: 1px solid var(--color-stone-light);
}

/* Start the profile flush with the top so it lines up with the posts heading,
   and both sit below the layout's top padding (clear of the nav). */
.author-page .author-profile {
	padding-top: 0;
}

.author-longform {
	margin: 0;
}

.author-longform .single-post-content {
	max-width: none;
	margin: 0;
}

/* Right column: 2-up grid of posts with smaller images and roomy spacing. */
.author-page .post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-50) var(--space-40);
	padding-top: 0;
}

.author-page .post-grid-item-image img {
	aspect-ratio: 16 / 9;
}

.author-posts-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.5rem;
	margin-top: 0;
	margin-bottom: var(--space-30);
}

/* Stack the columns and swap the vertical divider for a horizontal one on
   smaller screens. */
@media (max-width: 1000px) {
	.author-page .author-layout {
		grid-template-columns: 1fr;
		padding-top: var(--space-40);
	}
	.author-page .author-col-left {
		padding-right: 0;
	}
	.author-page .author-col-right {
		padding-left: 0;
		border-left: none;
		margin-top: var(--space-40);
		padding-top: var(--space-40);
		border-top: 1px solid var(--color-stone-light);
	}
}

.author-profile-avatar {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 999px;
	background: var(--color-stone-light);
	flex: 0 0 auto;
}

.author-profile-name {
	margin: 0 0 0.5rem;
}

.author-profile-bio {
	max-width: 46rem;
}

.author-profile-bio p {
	font-size: var(--font-size-medium);
	line-height: 1.6;
	margin: 0 0 1em;
}

.author-profile-bio p:last-child {
	margin-bottom: 0;
}

.author-profile-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-20);
	margin-top: var(--space-20);
}

.author-profile-meta-icon {
	display: inline-flex;
	color: var(--color-stone);
}

.author-profile-meta-icon:hover {
	color: var(--accent-color, var(--color-rust));
}

.author-profile-meta-text {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}

@media (max-width: 600px) {
	.author-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.author-profile-meta {
		justify-content: center;
	}
}

/* ---------- Tags index page ---------- */

.tag-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-30);
	padding-top: var(--space-40);
	padding-bottom: var(--space-60);
}

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

@media (max-width: 600px) {
	.tag-grid {
		grid-template-columns: 1fr;
	}
}

.tag-card {
	display: block;
	padding: var(--space-30);
	border: 1px solid var(--color-stone-light);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.tag-card:hover {
	border-color: var(--accent-color, var(--color-rust));
}

.tag-card-name {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.tag-card-description {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: var(--color-stone);
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.tag-card-count {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ---------- Share-link toast ---------- */

.share-toast {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -46%);
	background: var(--color-charcoal);
	color: var(--color-cream);
	font-family: var(--font-sans);
	font-size: var(--font-size-meta);
	font-weight: 600;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100;
}

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

/* ==================== Homepage: WSJ-style 3-column (prototype) ====================
   NOTE: the wrapper class is `.sb-home`, NOT `.home` — WordPress adds `home` as a
   <body> class on the front page, so a bare `.home` rule would leak onto <body> and
   turn the whole document into a centered, padded box (breaking the full-bleed
   header). Namespacing to `.sb-home` avoids that collision. */
.sb-home {
	max-width: var(--wide-size);
	margin: 0 auto;
	padding: var(--space-20) clamp(1rem, 4vw, 2.5rem) var(--space-60);
}

.home-wsj {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	grid-template-areas: "left center right";
	gap: var(--space-40);
	align-items: start;
	margin-bottom: var(--space-60);
}
/* This grid uses `gap`, but WordPress's flow-layout block-gap still adds a
   `margin-block-start` to the 2nd/3rd columns (center + right), pushing their
   headings ~19px below the left column's — the "stairstep". Zero it so all three
   column headers start on the same line. */
.home-wsj > * {
	margin-top: 0;
	margin-block-start: 0;
}
.home-col-left { grid-area: left; }
.home-col-right { grid-area: right; }
.home-col-center {
	grid-area: center;
	border-left: 1px solid var(--color-stone-light);
	border-right: 1px solid var(--color-stone-light);
	padding: 0 var(--space-40);
}

/* ----- Hero (center, stacked) ----- */
.home-hero { margin-bottom: var(--space-40); }
.home-hero-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: var(--space-20);
}
.home-hero-kicker {
	display: inline-block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent-color, var(--color-rust));
	text-decoration: none;
	margin-bottom: 0.4rem;
}
.home-hero-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0 0 0.6rem;
}
.home-hero-title a { color: var(--color-ink); text-decoration: none; }
.home-hero-excerpt {
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	line-height: 1.55;
	color: var(--color-stone);
	margin: 0 0 var(--space-20);
}

/* two secondary featured cards below the hero (tight: image + headline) */
.home-featured-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-30);
	border-top: 1px solid var(--color-stone-light);
	padding-top: var(--space-30);
}
.home-featured-row .post-grid-item-image img { aspect-ratio: 16 / 9; }
.home-featured-row .post-grid-item h3 { font-size: 1.05rem; }

/* ----- Section headers (all 3 columns) -----
   The center title ("The Latest") is larger than the side titles, and a title can
   wrap to two lines in a narrow column — either would leave each column's rule and
   the list below it at a different height. A shared min-height + bottom alignment
   keeps the underlines (and the content beneath them) on the same baseline across
   all three columns. */
.home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 2.3rem;
	border-bottom: 2px solid var(--color-ink);
	padding-bottom: var(--space-10);
	margin-bottom: var(--space-20);
}
.home-section-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.1rem;
	letter-spacing: -0.01em;
	margin: 0;
}
.home-section-more {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-small);
	color: var(--accent-color, var(--color-rust));
	text-decoration: none;
	white-space: nowrap;
}
.home-section-more:hover { text-decoration: underline; }

/* ----- Compact list rows (side columns) ----- */
.home-list-item {
	display: flex;
	gap: var(--space-20);
	align-items: flex-start;
	padding: var(--space-20) 0;
	border-bottom: 1px solid var(--color-stone-light);
}
.home-list-item:first-of-type { padding-top: 0; }
.home-list-item:last-child { border-bottom: none; }
.home-list-item-image { flex: 0 0 auto; display: block; }
.home-list-item-image img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
}

/* Card layout (per-column setting = "Cards"): large image on top, with the
   heading + text below, instead of the small square thumbnail beside it. */
.home-list-item--card {
	display: block;
}
.home-list-item--card .home-list-item-image {
	display: block;
	margin-bottom: var(--space-10);
}
.home-list-item--card .home-list-item-image img {
	display: block;
	width: 100%;
	/* Uniform card ratio (matches Substack) — crops each image to the same
	   shape so the stacked cards don't look off-kilter. Swap object-fit to
	   `contain` (and add a bg) to show whole images with letterboxing instead. */
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
	border-radius: 10px;
}
.home-list-item--card .home-list-item-title {
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
}
/* a touch more breathing room between stacked cards */
.home-list-item--card { padding: var(--space-30) 0; }
.home-list-item-tag,
.home-featured-tag,
.home-list-item-tag:visited,
.home-featured-tag:visited,
.home-list-item-tag:hover,
.home-featured-tag:hover {
	display: inline-block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent-color, var(--color-rust));
	text-decoration: none;
}
.home-list-item-tag { margin-top: 0.45rem; }
.home-featured-tag { margin-bottom: 0.5rem; }

.home-list-item-title {
	font-family: var(--font-slab);
	font-size: 0.98rem;
	line-height: 1.2;
	margin: 0 0 0.3rem;
}
.home-list-item-title a { color: var(--color-ink); text-decoration: none; }
.home-list-item-excerpt {
	font-family: var(--font-serif);
	font-size: var(--font-size-small);
	line-height: 1.45;
	color: var(--color-stone);
	margin: 0 0 0.35rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.home-list-item-meta,
.home-hero-meta {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	margin: 0;
}
.home-hero-meta { margin-top: var(--space-10); font-size: var(--font-size-meta); }

/* ==========================================================================
   Archive pages (category / tag / date / author) — templates/archive.html
   A single-column card list (thumbnail + title + excerpt + meta), overriding
   TT5's parent archive.html which stacks full post content.
   ========================================================================== */
.sb-archive {
	max-width: 780px;
	margin: 0 auto;
	padding: var(--space-40) clamp(1rem, 4vw, 2rem) var(--space-60);
}
.sb-archive-head {
	border-bottom: 2px solid var(--color-ink);
	padding-bottom: var(--space-20);
	margin-bottom: var(--space-30);
}
.sb-archive-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
}
.sb-archive-desc {
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	color: var(--color-stone);
	margin: var(--space-10) 0 0;
}

.sb-archive-item {
	display: flex;
	gap: var(--space-30);
	align-items: flex-start;
	padding: var(--space-30) 0;
	border-bottom: 1px solid var(--color-stone-light);
}
.sb-archive-item:first-of-type { padding-top: 0; }
.sb-archive-item:last-of-type { border-bottom: none; }

.sb-archive-item-image { flex: 0 0 auto; display: block; margin: 0; }
.sb-archive-item-image img {
	width: 170px;
	height: 170px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}
.sb-archive-item-body { flex: 1 1 auto; min-width: 0; }

.sb-archive-item-cat,
.sb-archive-item-cat a {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent-color, var(--color-rust));
	text-decoration: none;
	margin: 0 0 0.4rem;
}
.sb-archive-item-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.3rem;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
}
.sb-archive-item-title a { color: var(--color-ink); text-decoration: none; }
.sb-archive-item-title a:hover { color: var(--accent-color, var(--color-rust)); }
.sb-archive-item-excerpt {
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	line-height: 1.5;
	color: var(--color-stone);
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.sb-archive-item-meta {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	margin: 0;
}
.sb-archive-empty {
	font-family: var(--font-serif);
	color: var(--color-stone);
	padding: var(--space-40) 0;
}
.sb-archive-pagination {
	margin-top: var(--space-40);
	padding-top: var(--space-20);
	border-top: 1px solid var(--color-stone-light);
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
}
.sb-archive-pagination a { color: var(--accent-color, var(--color-rust)); text-decoration: none; }
.sb-archive-pagination a:hover { text-decoration: underline; }
.sb-archive-pagination .current { font-weight: 700; color: var(--color-ink); }

/* Stack the thumbnail above the text on narrow screens. */
@media (max-width: 600px) {
	.sb-archive-item { flex-direction: column; gap: var(--space-20); }
	.sb-archive-item-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

/* ----- Subscribe band (inline in the center column, between the hero and
   the two featured cards) ----- */
.home-subscribe {
	text-align: center;
	background: var(--color-charcoal);
	border-radius: 14px;
	padding: var(--space-30) var(--space-30);
	margin: var(--space-30) 0;
}
/* Tighten the gap between the hero byline and the subscribe box (only where
   the CTA directly follows the hero, i.e. the WSJ center column). */
.home-hero:has(+ .home-subscribe) { margin-bottom: var(--space-20); }
.home-subscribe-title { font-family: var(--font-slab); font-weight: 900; font-size: 1.4rem; margin: 0 0 0.3rem; color: #fff; }
.home-subscribe-text { font-family: var(--font-sans); font-size: var(--font-size-meta); color: rgba(255, 255, 255, 0.72); margin: 0 0 var(--space-20); }
.home-subscribe .subscribe-button {
	display: inline-block;
	background: var(--accent-color, var(--color-rust));
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	text-decoration: none;
	border: none;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.6rem 1.6rem;
	white-space: nowrap;
}
.home-subscribe .subscribe-button:hover { background: #fff; color: var(--color-ink); }

/* Inline email signup */
.home-subscribe-form { margin: 0; }
.home-subscribe-fields {
	display: flex;
	gap: 0.4rem;
	max-width: 420px;
	margin: 0 auto;
	background: #fff;
	border-radius: 999px;
	padding: 0.3rem 0.3rem 0.3rem 0.4rem;
}
.home-subscribe-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: none;
	padding: 0.5rem 0.8rem;
	font-family: var(--font-sans);
	font-size: var(--font-size-meta);
	color: var(--color-ink);
}
.home-subscribe-input:focus { outline: none; }
.home-subscribe-input::placeholder { color: var(--color-stone); }

.home-subscribe-error,
.home-subscribe-success {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	margin: var(--space-10) 0 0;
	min-height: 1em;
}
.home-subscribe-error { color: #ff8a8a; }
.home-subscribe-success { display: none; color: #8ee6a8; }

/* Ghost adds .success / .error to the form on submit */
.home-subscribe-form.success .home-subscribe-fields { display: none; }
.home-subscribe-form.success .home-subscribe-success { display: block; }

@media (max-width: 420px) {
	.home-subscribe-fields { flex-direction: column; background: none; padding: 0; }
	.home-subscribe-input { background: #fff; border-radius: 999px; }
	.home-subscribe .subscribe-button { width: 100%; }
}

/* ----- Responsive: stack (hero first) ----- */
@media (max-width: 1000px) {
	.home-wsj {
		grid-template-columns: 1fr;
		grid-template-areas: "center" "left" "right";
		gap: var(--space-50);
	}
	.home-col-center { border: none; padding: 0; }
}

/* ----- Homepage byline (hero + featured cards): clickable, meta to the right ----- */
.home-byline {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: var(--space-20);
}
.home-byline-avatar { display: inline-flex; flex: 0 0 auto; border-radius: 999px; }
.home-byline .avatar { width: 28px; height: 28px; }
.home-byline-avatar:hover { opacity: 0.85; }
.home-byline-name {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-small);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-ink);
	text-decoration: none;
}
.home-byline-name:hover { color: var(--accent-color, var(--color-rust)); }
.home-byline-meta {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
}
.home-byline-meta::before {
	content: "\00B7";
	margin-right: 0.45rem;
	color: var(--color-stone-light);
}

/* ----- Featured secondary cards (center column) ----- */
.home-featured-card-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: var(--space-10);
}
.home-featured-card-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.05rem;
	line-height: 1.15;
	margin: 0 0 0.35rem;
}
.home-featured-card-title a { color: var(--color-ink); text-decoration: none; }
.home-featured-card-excerpt {
	font-family: var(--font-serif);
	font-size: var(--font-size-small);
	line-height: 1.45;
	color: var(--color-stone);
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.home-featured-card .home-byline { margin-top: 0; }
.home-featured-card .home-byline .avatar { width: 22px; height: 22px; }

/* ----- Center column "The Latest" feed: stacked, first card is a hero ----- */
.wp-block-post-template.home-center-feed {
	display: flex;
	flex-direction: column;
	gap: var(--space-30);
	margin-bottom: var(--space-40);
	list-style: none;
	padding: 0;
	margin-left: 0;
}
.home-center-feed > li + li {
	border-top: 1px solid var(--color-stone-light);
	padding-top: var(--space-30);
}
/* first (hero) card gets a larger title */
.home-center-feed > li:first-child .home-featured-card-title {
	font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.home-center-feed > li:first-child .home-featured-card-excerpt {
	font-size: var(--font-size-medium);
	-webkit-line-clamp: 3;
}
/* the category tag above each title */
.home-center-feed .home-featured-tag { margin-bottom: 0.35rem; }

/* ----- "The Latest" gets a bigger headline than the side columns ----- */
.home-col-center .home-section-title { font-size: 1.45rem; }

/* ----- Deeper tag bands under the 3-column area ----- */
.home-tag-band { margin-top: var(--space-60); }
.home-tag-band-desc {
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	line-height: 1.5;
	color: var(--color-stone);
	margin: 0 0 var(--space-20);
	max-width: 65ch;
}
.home-tag-band-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-40) var(--space-30);
}

/* ----- Tag page header (image + name + description) ----- */
.tag-header { margin-bottom: var(--space-40); }
.tag-header-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	line-height: 1.05;
	margin: 0 0 0.4rem;
}
.tag-header-desc {
	font-family: var(--font-serif);
	font-size: var(--font-size-large);
	line-height: 1.5;
	color: var(--color-stone);
	margin: 0;
	max-width: 72ch;
}

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

/* ===================== Share button + modal ===================== */
.post-share-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: 1px solid var(--color-stone-light);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	color: var(--color-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.post-share-button:hover {
	border-color: var(--accent-color, var(--color-rust));
	color: var(--accent-color, var(--color-rust));
}

.share-modal[hidden] { display: none; }
.share-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-20);
}
body.share-open { overflow: hidden; }

.share-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 22, 19, 0.55);
}

.share-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	background: var(--color-background);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: var(--space-20);
	max-height: 90vh;
	overflow-y: auto;
}

.share-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-20);
}
.share-modal-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.35rem;
	margin: 0;
}
.share-modal-close {
	display: inline-flex;
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	color: var(--color-stone);
	border-radius: 8px;
}
.share-modal-close:hover { color: var(--accent-color, var(--color-rust)); }

.share-card {
	border: 1px solid var(--color-stone-light);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: var(--space-20);
}
.share-card-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.share-card-body { padding: var(--space-20); }
.share-card-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.15rem;
	line-height: 1.15;
	margin: 0 0 0.5rem;
}
.share-card-excerpt {
	font-family: var(--font-serif);
	font-size: var(--font-size-meta);
	color: var(--color-stone);
	margin: 0 0 var(--space-20);
	line-height: 1.5;
}
.share-card-site {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-small);
	color: var(--color-ink);
}
.share-card-site-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.share-modal-actions {
	display: flex;
	align-items: center;
	gap: var(--space-10);
}
.share-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex: 1;
	background: var(--accent-color, var(--color-rust));
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--font-size-meta);
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.share-copy:hover { opacity: 0.9; }
.share-copy.is-copied { background: var(--color-ink); }

.share-net-row { display: flex; align-items: center; gap: var(--space-10); }
.share-net {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-stone-light);
	border-radius: 12px;
	color: var(--color-ink);
	text-decoration: none;
	cursor: pointer;
	background: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.share-net:hover {
	border-color: var(--accent-color, var(--color-rust));
	color: var(--accent-color, var(--color-rust));
}
.share-net[hidden] { display: none; }

@media (max-width: 480px) {
	.share-modal-actions { flex-direction: column; align-items: stretch; }
	.share-net-row { justify-content: space-between; }
}

/* ===================== Magazine homepage layout ===================== */
/* Split hero: image left, text right */
.home-hero--split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: var(--space-40);
	align-items: center;
	margin-bottom: var(--space-50);
	padding-bottom: var(--space-50);
	border-bottom: 1px solid var(--color-stone-light);
}
.home-hero--split .home-hero-image img { margin-bottom: 0; }
.home-hero--split .home-hero-title {
	font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
}
.home-hero--split .home-hero-excerpt { font-size: var(--font-size-medium); }

/* Featured row: three cards across, with subtle vertical dividers between
   the columns and padding so the image/summary/byline don't touch them. */
.mag-featured-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: var(--space-40);
	margin-bottom: var(--space-50);
}
.mag-featured-row > * { padding: 0 var(--space-30); }
.mag-featured-row > *:first-child { padding-left: 0; }
.mag-featured-row > *:last-child { padding-right: 0; }
.mag-featured-row > * + * { border-left: 1px solid var(--color-stone-light); }

/* Latest section: two-column grid of compact rows */
.mag-section { margin-top: var(--space-50); }
.mag-latest-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-40);
}

@media (max-width: 1000px) {
	.home-hero--split { grid-template-columns: 1fr; }
	/* Row wraps — drop the column dividers/padding and use a gap instead. */
	.mag-featured-row { grid-template-columns: 1fr 1fr; column-gap: var(--space-40); }
	.mag-featured-row > * { padding: 0; border-left: none; }
}
@media (max-width: 640px) {
	.mag-featured-row { grid-template-columns: 1fr; }
	.mag-latest-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Landing homepage (front-page.html) — hero, intro, teasers,
   latest, CTA. Full-bleed sections with constrained inners.
   ============================================================ */
/* Zero WP's block-gap top margin so the hero sits flush against the nav divider. */
/* The front-page <main> wrapper is a top-level block, so WP's root block-gap gives it a
   ~19px margin-top — a gap between the header and the hero. Zero it so the hero meets the
   nav flush. */
.sb-home-main { margin-top: 0; margin-block-start: 0; }
.sb-landing { width: 100%; margin-top: 0; }
.sb-landing .sb-section,
.sb-landing .sb-section-inner,
.sb-landing .sb-hero-inner,
.sb-landing .sb-cta-inner {
	max-width: var(--wide-size);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.sb-landing > section { margin: 0; }

/* ---------- Hero ---------- */
.sb-hero {
	background: var(--color-cream);
	border-bottom: 1px solid var(--color-stone-light);
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.sb-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.sb-eyebrow {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent-color);
	margin: 0 0 1rem;
}
.sb-hero-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--color-ink);
	margin: 0 0 1.1rem;
}
.sb-hero-lead {
	font-family: var(--font-serif);
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	line-height: 1.55;
	color: var(--color-stone);
	margin: 0 0 1.75rem;
}
.sb-hero-actions { gap: 0.75rem; }
.sb-btn-primary .wp-block-button__link {
	background: var(--accent-color);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
}
.sb-btn-primary .wp-block-button__link:hover { filter: brightness(0.92); }
.sb-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	border: 2px solid var(--color-ink);
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
}
.sb-btn-ghost .wp-block-button__link:hover { background: var(--color-ink); color: var(--color-cream); }

/* Hero carousel */
.sb-hero-art { margin: 0; }
.sb-hero-art::before {
	content: "From the Sketchbook";
	display: block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-stone);
	margin: 0 0 0.85rem;
}
.sb-hero-carousel {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 40px -18px rgba(0,0,0,0.35);
	transform: rotate(-1.2deg);
}
.sb-hero-carousel .wp-block-post-template {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
	gap: 0;
}
.sb-hero-carousel .wp-block-post {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	/* Slides are stacked; only the visible one should capture clicks, otherwise the
	   topmost (last) slide swallows every click and links to the wrong post. */
	pointer-events: none;
}
.sb-hero-carousel .wp-block-post:first-child { opacity: 1; }
.sb-hero-carousel:not(.is-ready) .wp-block-post:first-child { pointer-events: auto; }
/* Cross-fade without the wash: the incoming slide fades in ON TOP while the outgoing one
   stays fully opaque underneath (then snaps hidden after the fade). Previously both slides
   were half-transparent at once, so two faded sketches (and the page behind them) showed
   through together — the "bright/glowy" double-exposure. */
.sb-hero-carousel.is-ready .wp-block-post {
	opacity: 0;
	z-index: 0;
	transition: opacity 0s linear 0.6s; /* leaving: hold opaque, then snap hidden after the fade */
}
.sb-hero-carousel.is-ready .wp-block-post.is-active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
	transition: opacity 0.6s ease; /* incoming: fade in over the opaque outgoing slide */
}
.sb-slide, .sb-slide figure, .sb-slide img, .sb-slide .wp-block-post-featured-image {
	width: 100%;
	height: 100%;
	margin: 0;
}
.sb-slide img { object-fit: cover; display: block; border-radius: 0; }

/* Title/category overlaid on each carousel slide, over a bottom gradient scrim.
   pointer-events:none so clicks fall through to the featured-image link beneath. */
.sb-slide { position: relative; }
.sb-slide-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: clamp(1rem, 3vw, 1.75rem);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35) 45%, transparent);
	pointer-events: none;
	color: #fff;
}
.sb-slide-tag,
.sb-slide-tag a,
.sb-slide-tag a:visited {
	display: inline-block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	text-decoration: none;
	margin: 0 0 0.4rem;
	opacity: 0.92;
}
.sb-slide-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.2rem, 0.95rem + 1vw, 1.7rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0 0 0.4rem;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.sb-slide-date {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}
.sb-hero-art-caption {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: var(--color-stone);
	text-align: center;
	margin: 1.4rem 0 0;
}

/* Unobtrusive manual navigation dots under the hero carousel. */
.sb-hero-dots {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 1.1rem;
}
.sb-hero-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--color-stone-light);
	opacity: 0.8;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.sb-hero-dot:hover { opacity: 1; }
.sb-hero-dot.is-active {
	background: var(--accent-color);
	opacity: 1;
	transform: scale(1.2);
}
.sb-hero-dot:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

/* ---------- Shared section chrome ---------- */
.sb-section { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); }
.sb-section-full { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); background: var(--color-off-white); border-block: 1px solid var(--color-stone-light); }
.sb-section-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--color-ink);
	margin: 0 0 0.75rem;
}
.sb-section-lead {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--color-stone);
	margin: 0 auto;
	max-width: 60ch;
}
.sb-intro .sb-section-head { text-align: center; margin-bottom: clamp(2rem, 3vw, 3rem); }

/* Value cards */
.sb-values { gap: clamp(1rem, 2.5vw, 2rem); }
.sb-value-card {
	height: 100%;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--color-stone-light);
	border-radius: 14px;
}
.sb-value-num {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.1rem;
	color: var(--accent-color);
	margin: 0 0 0.5rem;
	letter-spacing: 0.02em;
}
.sb-value-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.3rem;
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: var(--color-ink);
}
.sb-value-card p:last-child {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--color-stone);
	margin: 0;
}

/* Teasers */
.sb-teasers .sb-section-title { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sb-teaser-cols { gap: clamp(1rem, 2.5vw, 2rem); }
.sb-teaser-card {
	height: 100%;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	background: var(--color-charcoal);
	color: var(--color-cream);
	border-radius: 16px;
}
.sb-teaser-icon {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-cream);
}
.sb-teaser-icon svg { width: 24px; height: 24px; display: block; }

/* Icon sits to the left of the teaser title. */
.sb-teaser-titlerow {
	gap: 0.7rem;
	margin-bottom: 0.7rem;
}
.sb-teaser-titlerow .sb-teaser-title { margin: 0; }

.sb-badge {
	display: inline-block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	background: var(--accent-color);
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	margin: 0 0 1rem;
}
.sb-teaser-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.5rem;
	margin: 0 0 0.6rem;
	color: #fff;
}
.sb-teaser-card p:not(.sb-badge):not(.sb-teaser-link) {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(255,255,255,0.78);
	margin: 0 0 1.1rem;
}
.sb-teaser-link { margin: 0; }
.sb-teaser-link a {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	text-decoration: none;
	border-bottom: 2px solid var(--accent-color);
	padding-bottom: 2px;
}
.sb-teaser-link a:hover { color: var(--accent-color); }

/* Latest post grid */
.sb-latest-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); gap: 1rem; }
.sb-latest-more { margin: 0; }
.sb-latest-more a {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--accent-color);
	text-decoration: none;
}
.sb-latest-more a:hover { text-decoration: underline; }
.sb-post-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
/* WP block-gap adds a margin-block-start to the 2nd/3rd items (the post-template is a
   Query Loop, not a plain group), pushing those columns ~19px lower than the first — the
   "stairstep". The grid already spaces columns with `gap`, so zero it. */
.sb-post-grid .wp-block-post-template > * {
	margin-block-start: 0;
	margin-top: 0;
}
.sb-post-card { height: 100%; }
.sb-post-card-img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 0.9rem;
	display: block;
}
.sb-post-card .home-featured-tag { margin-bottom: 0.4rem; }
.sb-post-card-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.25rem;
	line-height: 1.15;
	margin: 0.1rem 0 0.4rem;
}
.sb-post-card-title a { color: var(--color-ink); text-decoration: none; }
.sb-post-card-title a:hover { color: var(--accent-color); }
.sb-post-card-excerpt {
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-stone);
	margin: 0 0 0.5rem;
}

/* CTA / waitlist band */
.sb-cta { background: var(--color-charcoal); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.sb-cta-inner {
	text-align: center;
	max-width: 44rem;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.sb-cta-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
	line-height: 1.08;
	color: #fff;
	margin: 0 0 0.9rem;
}
.sb-cta-text {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.8);
	margin: 0 auto 1.75rem;
	max-width: 52ch;
}
.sb-cta-form { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.9rem; }
/* display:flex overrides the [hidden] attribute's display:none, so restore it for the
   post-submit swap to work. */
.sb-cta-form[hidden] { display: none; }
.sb-cta-input {
	font-family: var(--font-sans);
	font-size: 1rem;
	color: #fff;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 999px;
	padding: 0.7rem 1.35rem;
	margin: 0;
	min-width: 16rem;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}
.sb-cta-input::placeholder { color: rgba(255,255,255,0.5); }
.sb-cta-input:focus { outline: none; border-color: rgba(255,255,255,0.55); }
/* Real <button> (Custom HTML form), styled to match .sb-btn-primary. */
.sb-cta-submit {
	background: var(--accent-color);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	cursor: pointer;
}
.sb-cta-submit:hover { filter: brightness(0.92); }
/* Hidden iframe target so the Kit POST doesn't navigate the page. */
.sb-kit-iframe { position: absolute; width: 0; height: 0; border: 0; left: -9999px; }
.sb-cta-success {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	color: #fff;
	margin: 0 0 0.9rem;
}
.sb-cta-note {
	font-family: var(--font-sans);
	font-size: var(--font-size-small);
	color: rgba(255,255,255,0.45);
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.sb-hero-inner { grid-template-columns: 1fr; }
	.sb-hero-art { max-width: 30rem; }
	.sb-hero-lead { max-width: none; }
}
@media (max-width: 782px) {
	.sb-post-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Author page — templates/author.html (author info left, posts grid right)
   ========================================================================== */
/* Author page: base width + posts grid. Layout/profile styling comes from the ported
   .author-layout / .author-col-left / .author-col-right / .author-profile* rules above. */
.author-page {
	max-width: var(--wide-size);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem) var(--space-60);
}
.author-profile-body { flex: 1 1 auto; min-width: 0; }
.author-profile-name {
	font-family: var(--font-slab); font-weight: 900;
	font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.05;
}
.author-post-grid .wp-block-post-template {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-50) var(--space-40); margin: 0; padding: 0; list-style: none;
}
.author-post-grid .wp-block-post-template > * { margin-block-start: 0; margin-top: 0; }
.author-pagination { margin-top: var(--space-40); font-family: var(--font-sans); font-size: var(--font-size-small); }
.author-pagination a { color: var(--accent-color, var(--color-rust)); text-decoration: none; }
.author-pagination a:hover { text-decoration: underline; }
.author-pagination .current { font-weight: 700; color: var(--color-ink); }
@media (max-width: 600px) {
	.author-post-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Search overlay (the header search icon opens this instead of an inline field)
   ========================================================================== */
.sb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(20, 18, 16, 0.97);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.sb-search-overlay[hidden] { display: none; }
.sb-search-form {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	width: min(660px, 92vw);
}
.sb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
	background: transparent;
	border: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	padding: 0.5rem 0.2rem;
	outline: none;
}
.sb-search-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sb-search-input:focus { border-bottom-color: var(--accent-color, var(--color-rust)); }
.sb-search-submit {
	flex: 0 0 auto;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: var(--accent-color, var(--color-rust));
	border: none;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	cursor: pointer;
}
.sb-search-submit:hover { filter: brightness(0.92); }
.sb-search-close {
	position: absolute;
	top: 1.25rem;
	right: 1.75rem;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.sb-search-close:hover { color: #fff; }
body.sb-search-open { overflow: hidden; }

/* ==========================================================================
   Mobile menu overlay (our own, replacing WP's cramped nav overlay)
   ========================================================================== */
.sb-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}
.sb-mobile-menu[hidden] { display: none; }
.sb-mobile-menu-close {
	position: absolute;
	top: 1.1rem;
	right: 1.35rem;
	background: none;
	border: none;
	color: var(--color-ink);
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.sb-mobile-menu-close:hover { color: var(--accent-color, var(--color-rust)); }
.sb-mobile-menu-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}
.sb-mobile-menu-nav a,
.sb-mobile-menu-search {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: 1.9rem;
	color: var(--color-ink);
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.3rem 1rem;
}
.sb-mobile-menu-nav a:hover,
.sb-mobile-menu-search:hover { color: var(--accent-color, var(--color-rust)); }
body.sb-menu-open { overflow: hidden; }
/* Never show WP's own responsive nav overlay — our JS overlay replaces it. */
.site-header .wp-block-navigation__responsive-container.is-menu-open { display: none !important; }

/* ==========================================================================
   Inline subscribe CTA (theme pattern "Subscribe CTA (inline)") — a light card
   to drop into post/page content. Reuses the footer's hidden iframe + JS + button.
   ========================================================================== */
.sb-inline-cta {
	background: var(--color-cream, #efe9de);
	border: 1px solid var(--color-stone-light);
	border-radius: 14px;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	margin-block: var(--space-40);
	text-align: center;
}
.sb-inline-cta-title {
	font-family: var(--font-slab);
	font-weight: 900;
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: var(--color-ink);
}
.sb-inline-cta-text {
	font-family: var(--font-serif);
	font-size: var(--font-size-medium);
	line-height: 1.5;
	color: var(--color-stone);
	margin: 0 auto 1.25rem;
	max-width: 42ch;
}
.sb-inline-cta .sb-cta-input {
	flex: 1 1 auto;
	color: var(--color-ink);
	background: #fff;
	border: 1px solid var(--color-stone-light);
}
.sb-inline-cta .sb-cta-input::placeholder { color: var(--color-stone-light); }
.sb-inline-cta .sb-cta-input:focus { border-color: var(--accent-color, var(--color-rust)); }
.sb-inline-cta .sb-cta-success {
	color: var(--color-ink);
	font-size: 1.05rem;
	margin: 0;
}
/* Compact variant: no description, so give the title a bit more room above the field. */
.sb-inline-cta--compact .sb-inline-cta-title { margin-bottom: 1.1rem; }

/* (dark header experiment reverted) */

/* ---------- Nav Subscribe button + popup ---------- */
.sb-nav-subscribe {
	display: inline-flex;
	align-items: center;
	background: var(--accent-color, var(--color-rust));
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.5rem 1.15rem;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--font-size-meta);
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}
.sb-nav-subscribe:hover { opacity: 0.9; }
/* Expanded header: nav stays centered, Subscribe sits immediately to the right of the
   search icon, vertically centered with the nav items. */
.site-header-nav-row-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}
/* WP's flow-layout adds a block margin to the 2nd child (the button); kill it so
   align-items:center can vertically center the Subscribe button with the nav. */
.site-header-nav-row-inner > * { margin-block: 0; }
/* Compact header: Subscribe sits inline with the nav on the right. */
.site-header-compact-right { display: flex; align-items: center; gap: 1rem; }
.sb-nav-subscribe--compact { position: static; transform: none; padding: 0.4rem 0.95rem; }

.sb-subscribe-modal[hidden] { display: none; }
.sb-subscribe-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-20, 1.25rem);
}
body.sb-subscribe-open { overflow: hidden; }
.sb-subscribe-backdrop { position: absolute; inset: 0; background: rgba(26, 22, 19, 0.55); }
.sb-subscribe-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	background: var(--color-background);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	text-align: center;
}
.sb-subscribe-close {
	position: absolute;
	top: 0.6rem;
	right: 0.85rem;
	background: none;
	border: none;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--color-stone);
	cursor: pointer;
}
.sb-subscribe-close:hover { color: var(--accent-color, var(--color-rust)); }
.sb-subscribe-title { font-family: var(--font-slab); font-weight: 900; font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--color-ink); }
.sb-subscribe-text { font-family: var(--font-serif); color: var(--color-stone); margin: 0 0 1.25rem; line-height: 1.5; }
.sb-subscribe-note { font-family: var(--font-sans); font-size: var(--font-size-small); color: var(--color-stone); margin: 0.85rem 0 0; }

/* Footer links (About · Privacy Policy) */
.site-footer-links { font-family: var(--font-sans); font-size: var(--font-size-small); margin: 0.25rem 0 0.35rem; }
.site-footer-links a { color: var(--color-stone); text-decoration: none; }
.site-footer-links a:hover { color: var(--accent-color, var(--color-rust)); text-decoration: underline; }

/* Subscribe modal form: stacked, with a visible white input (the base .sb-cta-input is
   styled for the dark footer CTA — 8%-white bg + light border — which renders white-on-
   white in this light modal). */
.sb-subscribe-form { flex-direction: column; gap: 0.7rem; margin-top: 0.25rem; }
.sb-subscribe-form .sb-cta-input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--color-stone-light);
	color: var(--color-ink);
	border-radius: 999px;
	padding: 0.8rem 1.2rem;
	font-family: var(--font-sans);
	font-size: 1rem;
}
.sb-subscribe-form .sb-cta-input::placeholder { color: var(--color-stone); }
.sb-subscribe-form .sb-cta-submit { width: 100%; }

/* Modal "Thanks!" confirmation — visible on the light modal (the base .sb-cta-success is
   white for the dark footer CTA, so it'd render white-on-white here). */
.sb-subscribe-dialog .sb-cta-success {
	color: var(--color-ink);
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.5;
	margin-top: 0.5rem;
}

/* The header logo is a redundant "home" link; suppress the accent focus box it picks up
   from core/parent-theme :focus-visible styles (it reads like an error on a mouse click).
   The nav links still show focus for keyboard users. */
.site-header .custom-logo-link:focus,
.site-header .custom-logo-link:focus-visible,
.site-header .site-logo-link:focus,
.site-header .site-logo-link:focus-visible,
.site-header .wp-block-site-logo a:focus,
.site-header .wp-block-site-logo a:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ===================== Focus indicators ===================== */
/* Never draw a focus box on a mouse click; keep it only for keyboard users (Tab), and make
   it one consistent subtle accent ring instead of the browser/parent-theme's assorted
   black/blue boxes. Preserves accessibility without the "boxes everywhere" look on click. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible),
.wp-block-navigation-item__content:focus:not(:focus-visible),
.wp-block-search__button:focus:not(:focus-visible),
.wp-block-search__input:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.wp-block-search__button:focus-visible {
	outline: 2px solid var(--accent-color, #cc0e49);
	outline-offset: 2px;
	border-radius: 3px;
}

/* The share modal lives inside the byline row (white-space:nowrap); reset so the card
   title/excerpt wrap normally instead of running off the dialog. */
.share-modal { white-space: normal; }
.share-card-title,
.share-card-excerpt { overflow-wrap: break-word; }
