/* ============================================================
   News French Fries — main.css
   Brasserie DS · v6 · Editorial home + Gamification HUD
   Tokens live in tokens.css — never re-declare them here.
   ============================================================ */

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

html, body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	/* Inter ss01 = single-storey "a/g/l" stylistic set — the editorial cut. */
	font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
	font-variant-numeric: oldstyle-nums proportional-nums;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background var(--duration-base) var(--ease-out-expo), color var(--duration-base) var(--ease-out-expo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-mustard); color: var(--n-1000); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-tight);
	margin: 0 0 var(--space-3);
	color: var(--fg);
	text-wrap: balance;
	font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1, 'ss01' 1;
}
/* Smaller display titles get a softer weight — keeps hierarchy aristocratic. */
h3, h4, h5, h6 { font-weight: 700; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
mark {
	background: var(--brand-mustard);
	color: var(--n-1000);
	padding: 0 6px;
	border-radius: 1px;
}

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; top: -100px; left: 16px;
	background: var(--brand-mustard); color: var(--n-1000);
	padding: 10px 16px; font-family: var(--font-ui); font-weight: 700;
	font-size: var(--text-sm); border-radius: var(--radius-sm);
	z-index: 10000; transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 16px; clip: auto; clip-path: none; height: auto; width: auto; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--brand-mustard);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ============ READING PROGRESS (gradient) ============ */
.read-progress {
	position: fixed; top: 0; left: 0; right: 0;
	height: 3px; z-index: 200;
	background: transparent;
	pointer-events: none;
}
.read-progress > div {
	height: 100%; width: 0%;
	background: linear-gradient(90deg, var(--brand-blue), var(--brand-mustard), var(--brand-cyan));
	transition: width 80ms linear;
}

/* ============ UTILITY BAR ============ */
.util {
	background: var(--n-1000);
	color: #fff;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.05em;
}
.util-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 8px var(--gutter);
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.util-left { display: flex; gap: 14px; color: #FFFFFFAA; flex-wrap: wrap; align-items: center; }
.util-left > .util-sep { color: #FFFFFF40; }
.util-live { color: var(--brand-mustard); font-weight: 600; }
.util-live::before { content: "●"; margin-right: 4px; animation: nff-pulse 1.2s infinite; }
@keyframes nff-pulse { 50% { opacity: 0.3; } }

/* Locale-resolved fragments — empty/hidden states drop their adjacent separator. */
.util-tz:empty { display: none; }
.util-tz:not(:empty) { margin-left: 4px; color: var(--brand-mustard); }
.util-loc[hidden] { display: none; }
.util-temp:empty { display: none; }
.util-temp:not(:empty)::before { content: " · "; color: #FFFFFF40; margin: 0 2px; }
/* Hide the orphan "·" separator that sits before a hidden util-loc */
.util-sep:has(+ .util-loc[hidden]) { display: none; }
.util-edition { color: #FFFFFF66; letter-spacing: 0.06em; }

.util-right { display: flex; gap: 14px; align-items: center; }
.util-link { color: #FFFFFFAA; transition: color var(--duration-fast) var(--ease-out-expo); }
.util-link:hover { color: var(--brand-mustard); }

/* Theme toggle — icon-only, ghost circular hover */
.util-theme {
	background: transparent; border: 1px solid #FFFFFF22; color: #FFFFFFCC;
	width: 26px; height: 26px; padding: 0; border-radius: 50%;
	cursor: pointer; display: inline-grid; place-items: center;
	transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.util-theme:hover { border-color: var(--brand-mustard); color: var(--brand-mustard); background: #FDB81310; }
.util-theme-svg { display: block; }

@media (max-width: 700px) {
	.util-hide-sm { display: none; }
	/* Tighten the bar but keep symmetric horizontal padding (was uneven
	   because of inherited gutter values on flex-wrapped children). */
	.util-inner {
		font-size: 10px;
		padding: 6px var(--gutter);
		gap: 8px;
	}
	.util-left {
		gap: 8px;
		flex-wrap: nowrap;
		min-width: 0;
		overflow: hidden;
	}
	.util-right { gap: 10px; }
}
@media (max-width: 480px) {
	.util-inner { padding: 5px 14px; }
	.util-left { gap: 6px; font-size: 10px; }
	.util-right .util-link { font-size: 10px; }
}

/* ============ HEADER ============ */
.site-header {
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid transparent;
	position: sticky; top: 0; z-index: 100;
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	transition: border-color var(--duration-base), box-shadow var(--duration-base) var(--ease-out-expo), background var(--duration-base);
}
.site-header.is-scrolled {
	border-bottom-color: var(--rule);
	box-shadow: 0 1px 0 rgba(11, 15, 25, 0.02), 0 8px 24px rgba(11, 15, 25, 0.04);
}
[data-theme="dark"] .site-header { background: color-mix(in srgb, var(--bg) 80%, transparent); }
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0, 0, 0, 0.5); }

.site-header-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--gutter);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-8);
	transition: padding var(--duration-base) var(--ease-out-expo);
}
.site-header.is-scrolled .site-header-inner { padding-top: 10px; padding-bottom: 10px; }

.lockup {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-display); font-weight: 800;
	font-size: var(--text-base);            /* 17px — refined wordmark */
	letter-spacing: var(--tracking-tight);
	color: var(--fg);
	transition: opacity var(--duration-fast);
}
.lockup:hover { opacity: 0.85; }
.lockup-mark {
	width: 28px; height: 28px;              /* down from 32 */
	background: var(--brand-blue);
	color: var(--brand-mustard);
	display: grid; place-items: center;
	font-family: var(--font-display); font-size: 13px; font-weight: 800;
	border-radius: 3px;
	letter-spacing: 0;
	transition: transform var(--duration-base) var(--ease-spring), width var(--duration-base) var(--ease-out-expo), height var(--duration-base) var(--ease-out-expo);
}
.lockup:hover .lockup-mark { transform: rotate(-4deg); }
.site-header.is-scrolled .lockup-mark { width: 24px; height: 24px; font-size: 11px; }
.lockup-mark--mustard { background: var(--brand-mustard); color: var(--n-1000); }
.lockup-text span { color: var(--brand-blue); }
[data-theme="dark"] .lockup-text span { color: var(--brand-cyan); }
/* Header lockup image — same logo-3d.png as splash and footer. Height grows
   with the artwork's natural aspect (~1.42:1) so width stays in proportion. */
.lockup img, .custom-logo { max-height: 50px; width: auto; object-fit: contain; transition: max-height var(--duration-base); }
.site-header.is-scrolled .lockup img,
.site-header.is-scrolled .custom-logo { max-height: 38px; }

/* Header lockup → 3D tilt on hover. perspective lives on the link so the
   transformation is parallaxed against the viewer, not the document. */
.lockup--header {
	perspective: 700px;
	transform-style: preserve-3d;
}
.lockup--header .lockup-img {
	display: block;
	transform-origin: center center;
	transition:
		transform 420ms var(--ease-spring),
		filter 420ms var(--ease-out-expo),
		max-height var(--duration-base);
	will-change: transform;
}
.lockup--header:hover .lockup-img {
	transform: rotateY(-14deg) rotateX(7deg) translateZ(10px) scale(1.04);
	filter: drop-shadow(0 12px 22px rgba(11,15,25,0.18))
	        drop-shadow(0 0 14px rgba(253,184,19,0.25));
}
[data-theme="dark"] .lockup--header:hover .lockup-img {
	filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55))
	        drop-shadow(0 0 18px rgba(0,162,255,0.35));
}
.lockup--header:active .lockup-img {
	transform: rotateY(-6deg) rotateX(3deg) scale(1.01);
	transition-duration: 120ms;
}

@media (max-width: 600px) {
	.lockup img, .custom-logo { max-height: 42px; }
	.site-header.is-scrolled .lockup img,
	.site-header.is-scrolled .custom-logo { max-height: 34px; }
}
.custom-logo-link { display: inline-flex; align-items: center; }
.lockup--custom { display: inline-flex; align-items: center; }

.primary-nav { justify-self: center; }
.primary-nav .nav-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: clamp(20px, 2.4vw, 32px);
	font-family: var(--font-ui);
	font-size: 12px;                              /* tighter, editorial caps */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.primary-nav .nav-menu a {
	color: var(--fg-muted);
	position: relative;
	padding: 6px 0;
	transition: color var(--duration-base) var(--ease-out-expo);
}
.primary-nav .nav-menu a:hover { color: var(--fg); }
.primary-nav .nav-menu a::after {
	content: "";
	position: absolute;
	left: 50%; right: 50%; bottom: 0;
	height: 1px; background: var(--brand-mustard);
	transition: left var(--duration-base) var(--ease-out-expo), right var(--duration-base) var(--ease-out-expo);
}
.primary-nav .nav-menu a:hover::after,
.primary-nav .nav-menu .current-menu-item > a::after,
.primary-nav .nav-menu .current_page_item > a::after,
.primary-nav .nav-menu .current-menu-parent > a::after {
	left: 0; right: 0;
}
.primary-nav .nav-menu .current-menu-item > a,
.primary-nav .nav-menu .current_page_item > a { color: var(--fg); }

/* Header actions — slim divider precedes the icon cluster on desktop. */
.header-actions {
	display: flex; align-items: center; gap: 2px;
	position: relative;
	padding-left: var(--space-4);
}
.header-actions::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 1px; height: 18px;
	background: var(--rule);
	transform: translateY(-50%);
}
@media (max-width: 900px) { .header-actions::before { display: none; } .header-actions { padding-left: 0; } }

.icon-btn {
	background: transparent; border: 1px solid var(--border);
	width: 36px; height: 36px; border-radius: var(--radius-sm);
	display: grid; place-items: center; cursor: pointer;
	color: var(--fg); padding: 0;
	transition: background var(--duration-fast), border-color var(--duration-fast);
}
.icon-btn:hover { background: var(--bg-sunken); border-color: var(--border-strong); }

/* Ghost variant — borderless, circular hover. The header standard. */
.icon-btn--ghost {
	border: none;
	width: 38px; height: 38px;
	border-radius: 50%;
	color: var(--fg-muted);
	transition: background var(--duration-fast) var(--ease-out-expo), color var(--duration-fast);
}
.icon-btn--ghost:hover {
	background: var(--bg-sunken);
	color: var(--fg);
	border: none;
}
.icon-btn--ghost svg { transition: transform var(--duration-base) var(--ease-spring); }
.icon-btn--ghost:hover svg { transform: scale(1.05); }

.btn-mustard {
	background: var(--brand-mustard); color: var(--n-1000);
	font-family: var(--font-ui); font-weight: 700; font-size: var(--text-sm);
	padding: 9px 16px; border: none; border-radius: var(--radius-sm);
	cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
	transition: background var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast);
	letter-spacing: 0.01em;
}
.btn-mustard:hover { background: var(--brand-mustard-700); color: var(--n-1000); transform: translateY(-1px); }
.btn-mustard:active { transform: translateY(0); }

.mobile-toggle { display: none; }
@media (max-width: 900px) {
	.primary-nav { display: none; }
	/* Drop the empty 1fr middle track — lockup hugs the left, actions hug
	   the right, with predictable spacing between. Was causing a giant
	   gap because the desktop nav slot stayed reserved when hidden. */
	.site-header-inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: var(--space-3);
		padding: 14px var(--gutter);
	}
	.mobile-toggle { display: grid; }
	.header-actions { gap: 6px; }
}
@media (max-width: 480px) {
	.site-header-inner { padding: 10px 14px; gap: 8px; }
}

/* ============ SEARCH OVERLAY ============ */
/* CSS pattern for animated panels: default state is "off-screen but in DOM"
   so the transition fires the moment the element becomes display:block. */
.search-overlay {
	position: fixed; top: 0; left: 0; right: 0;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--rule);
	z-index: 99; padding: 24px var(--gutter);
	transform: translateY(-100%);
	transition: transform var(--duration-base) var(--ease-out-expo);
	box-shadow: var(--shadow-3);
}
.search-overlay[hidden] { display: none; }
.search-overlay.is-open { transform: translateY(0); }
.search-form {
	max-width: var(--container); margin: 0 auto;
	display: grid; grid-template-columns: 1fr auto auto;
	gap: 8px; align-items: center;
}
.search-form input[type="search"] {
	width: 100%; padding: 14px 16px;
	background: var(--bg-sunken);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--fg);
	font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500;
	letter-spacing: -0.01em;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--brand-mustard); background: var(--bg-elevated); }
#search-close { width: 44px; height: 44px; font-size: 24px; line-height: 1; }

/* ============ MOBILE DRAWER ============ */
.mobile-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: min(320px, 86vw);
	background: var(--bg-elevated);
	border-left: 1px solid var(--rule);
	z-index: 98; padding: 80px 28px 28px;
	transform: translateX(100%);
	transition: transform var(--duration-base) var(--ease-out-expo);
	box-shadow: var(--shadow-4);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer .mobile-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer .mobile-menu a {
	display: block; padding: 14px 0;
	font-family: var(--font-display); font-weight: 700;
	font-size: var(--text-xl); color: var(--fg);
	letter-spacing: var(--tracking-tight);
	border-bottom: 1px dashed var(--rule);
	transition: color var(--duration-fast), padding-left var(--duration-fast);
}
.mobile-drawer .mobile-menu a:hover { color: var(--brand-blue); padding-left: 4px; }

/* Backdrop for both overlays */
.nff-backdrop {
	position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
	z-index: 97; opacity: 0;
	transition: opacity var(--duration-base);
	pointer-events: none;
}
.nff-backdrop.is-on { opacity: 1; pointer-events: auto; }

/* ============ SECTION HEAD (shared) ============ */
.section-head {
	display: flex; justify-content: space-between; align-items: end;
	margin-bottom: var(--space-8); gap: var(--space-4);
}
.section-head h2 {
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: var(--tracking-tighter);
	margin: 0;
}
.section-head .more {
	font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600;
	color: var(--fg); border-bottom: 2px solid var(--brand-mustard);
	padding-bottom: 2px; white-space: nowrap;
	transition: color var(--duration-fast);
}
.section-head .more:hover { color: var(--brand-blue); }
[data-theme="dark"] .section-head .more:hover { color: var(--brand-cyan); }

/* ============ HERO ============ */
.hero {
	padding: var(--space-10) 0 var(--space-12);
	border-bottom: 1px solid var(--rule);
	position: relative; overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: var(--space-10);
	align-items: start;   /* both columns flow from the top — no orphan space */
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.hero-main h1 {
	font-size: clamp(36px, 4.6vw, 64px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: var(--tracking-tighter);
	margin: var(--space-4) 0 var(--space-5);
	max-width: 16ch;
	text-wrap: balance;
}
.hero-main h1 a { color: var(--fg); transition: color var(--duration-fast); }
.hero-main h1 a:hover { color: var(--brand-blue); }
[data-theme="dark"] .hero-main h1 a:hover { color: var(--brand-cyan); }

.hero-kicker {
	font-family: var(--font-ui); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	font-weight: 700; color: var(--brand-blue);
	display: inline-block;
}
[data-theme="dark"] .hero-kicker { color: var(--brand-cyan); }

.hero-lede {
	font-family: var(--font-display); font-weight: 500;
	font-size: var(--text-md);   /* 18px — Atlantic-style lede proportion to h1 */
	line-height: 1.45;
	color: var(--fg-muted);
	max-width: 56ch; text-wrap: pretty;
	margin: 0 0 var(--space-5);
}
@media (min-width: 1024px) {
	.hero-lede { font-size: var(--text-lg); }   /* 20px on desktop */
}

.hero-meta {
	display: flex; flex-wrap: wrap; gap: var(--space-4);
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--fg-muted); align-items: center;
	margin-top: var(--space-5);
}
.hero-meta b { color: var(--fg); font-weight: 500; }
.hero-meta-xp {
	margin-left: auto; padding: 4px 10px;
	background: var(--brand-mustard); color: var(--n-1000);
	border-radius: 99px; font-family: var(--font-ui);
	font-weight: 700; font-size: 11px; letter-spacing: 0.05em;
}
.hero-meta-xp b { color: var(--n-1000); }
@media (max-width: 600px) { .hero-meta-xp { margin-left: 0; } }

/* ============ HERO AUTHOR CARD (fills hero-main column footer) ============ */
.hero-author {
	display: flex; align-items: center;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	margin-top: var(--space-6);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-left: 3px solid var(--brand-blue);
	border-radius: var(--radius-md);
	transition: border-color var(--duration-base) var(--ease-out-expo), transform var(--duration-base) var(--ease-out-expo);
}
.hero-author:hover {
	border-color: var(--border-strong);
	border-left-color: var(--brand-mustard);
	transform: translateY(-1px);
}
[data-theme="dark"] .hero-author { border-left-color: var(--brand-cyan); }
[data-theme="dark"] .hero-author:hover { border-left-color: var(--brand-mustard); }

.hero-author-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--font-ui); font-weight: 700;
	font-size: 14px; color: #fff;
	flex: 0 0 auto;
	letter-spacing: 0.02em;
	transition: transform var(--duration-base) var(--ease-spring);
}
.hero-author:hover .hero-author-avatar { transform: scale(1.05) rotate(-3deg); }

.hero-author-content { flex: 1 1 auto; min-width: 0; }
.hero-author-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 2px;
}
.hero-author-name {
	font-family: var(--font-display); font-weight: 700;
	font-size: var(--text-base);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 2px;
	color: var(--fg);
	line-height: 1.2;
}
.hero-author-role {
	font-family: var(--font-mono); font-size: 11px;
	font-weight: 500; color: var(--fg-muted);
	letter-spacing: 0.04em;
}
.hero-author-bio {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	color: var(--fg-muted);
	margin: 0; line-height: 1.4;
}
.hero-author-recent {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 4px;
	font-family: var(--font-display); font-weight: 500;
	font-size: var(--text-sm); line-height: 1.3;
}
.hero-author-recent li {
	border-left: 2px solid var(--rule);
	padding-left: 10px;
	transition: border-color var(--duration-fast);
}
.hero-author-recent li:hover { border-left-color: var(--brand-mustard); }
.hero-author-recent a {
	color: var(--fg);
	text-wrap: balance;
	transition: color var(--duration-fast);
}
.hero-author-recent a:hover { color: var(--brand-blue); }
[data-theme="dark"] .hero-author-recent a:hover { color: var(--brand-cyan); }
.hero-author-more {
	font-family: var(--font-ui); font-weight: 600;
	font-size: var(--text-sm);
	color: var(--brand-blue);
	white-space: nowrap;
	display: inline-flex; align-items: center; gap: 4px;
	transition: color var(--duration-fast);
}
.hero-author-more:hover { color: var(--brand-blue-700); }
[data-theme="dark"] .hero-author-more { color: var(--brand-cyan); }
[data-theme="dark"] .hero-author-more:hover { color: var(--brand-cyan-300); }
.hero-author-arrow {
	display: inline-block;
	transition: transform var(--duration-base) var(--ease-out-expo);
}
.hero-author-more:hover .hero-author-arrow { transform: translateX(4px); }

@media (max-width: 600px) {
	.hero-author { flex-wrap: wrap; padding: var(--space-3) var(--space-4); }
	.hero-author-more { width: 100%; text-align: right; padding-top: var(--space-2); border-top: 1px dashed var(--rule); }
}

/* (Live Pulse strip removed — pulse indicator is now inline inside .trending header) */
/* Shared keyframe used by .trending-pulse-dot below. */
@keyframes live-pulse-ring {
	0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55); }
	70%  { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.hero-main .photo {
	display: block;
	aspect-ratio: 21/9;
	background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
	border-radius: var(--radius-md); position: relative; overflow: hidden;
	margin-bottom: var(--space-5);
	border-top: 4px solid var(--brand-mustard);
}
.hero-main .photo img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--duration-deliberate) var(--ease-out-expo);
}
.hero-main:hover .photo img { transform: scale(1.02); }

.hero-side {
	display: flex; flex-direction: column;
	gap: var(--space-6);
	border-left: 1px solid var(--rule);
	padding-left: var(--space-6);
}
@media (max-width: 900px) {
	.hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--space-6); }
}

/* =====  HERO-SIDE: Editor's Picks (boxed widget)  ===== */
.hero-popular {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-5);
	position: relative;
	overflow: hidden;
}
.hero-popular::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0;
	height: 2px;
	background: var(--brand-mustard);
}
.hero-popular-label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	color: var(--brand-blue);
	margin: 0 0 var(--space-4);
	display: flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .hero-popular-label { color: var(--brand-cyan); }
.hero-popular-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--brand-mustard);
	flex: 0 0 auto;
}
.hero-popular-list {
	list-style: none;
	padding: 0; margin: 0;
	counter-reset: pick;
}
.hero-popular-list li {
	counter-increment: pick;
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: var(--space-3);
	align-items: start;
	padding: var(--space-3) 0;
	border-top: 1px dashed var(--rule);
	transition: padding-left var(--duration-fast) var(--ease-out-expo);
}
.hero-popular-list li:first-child { border-top: none; padding-top: 0; }
.hero-popular-list li:last-child  { padding-bottom: 0; }
.hero-popular-list li::before {
	content: counter(pick);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	color: var(--brand-blue);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	transition: color var(--duration-fast);
}
[data-theme="dark"] .hero-popular-list li::before { color: var(--brand-mustard); }
.hero-popular-list li:hover { padding-left: 4px; }
.hero-popular-list li:hover::before { color: var(--brand-mustard); }
[data-theme="dark"] .hero-popular-list li:hover::before { color: var(--brand-cyan); }
.hero-popular-list a { display: block; }
.hero-popular-list h5 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-base);
	line-height: 1.25;
	letter-spacing: -0.012em;
	color: var(--fg);
	margin: 0 0 4px;
	text-wrap: balance;
	transition: color var(--duration-fast);
}
.hero-popular-list a:hover h5 { color: var(--brand-blue); }
[data-theme="dark"] .hero-popular-list a:hover h5 { color: var(--brand-cyan); }
.hero-popular-list .meta {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* =====  HERO-SIDE: secondary headlines stack  ===== */
.hero-side-stack {
	display: flex; flex-direction: column;
	gap: var(--space-5);
}
.hero-side-item {
	display: flex; flex-direction: column; gap: 6px;
	padding-bottom: var(--space-5);
	border-bottom: 1px dashed var(--rule);
}
.hero-side-stack .hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item .kicker {
	font-family: var(--font-ui); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	color: var(--brand-blue); font-weight: 700;
}
[data-theme="dark"] .hero-side-item .kicker { color: var(--brand-cyan); }
.hero-side-item h3 {
	font-family: var(--font-display); font-weight: 700;
	font-size: var(--text-xl); line-height: 1.18; letter-spacing: -0.015em;
	margin: 0; color: var(--fg); text-wrap: balance;
}
.hero-side-item h3 a { color: var(--fg); transition: color var(--duration-fast); }
.hero-side-item h3 a:hover { color: var(--brand-blue); }
[data-theme="dark"] .hero-side-item h3 a:hover { color: var(--brand-cyan); }
.hero-side-item .when {
	font-family: var(--font-mono); font-size: 11px;
	color: var(--fg-muted); letter-spacing: 0.05em;
}

/* ============ TRENDING NOW (image-led, light, inline pulse) ============ */
.trending {
	padding: var(--space-12) 0 var(--space-16);
	background: var(--bg-sunken);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	position: relative;
}

/* Header — h2 with inline live pulse on the line above */
.trending-head { align-items: end; gap: var(--space-6); flex-wrap: wrap; }
.trending-head-left { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }

/* Latest filed pulse — clickable banner with real WP data */
/* Trending pulse — single-line "ticker" with ellipsis. flex-wrap: nowrap
   prevents the orphan-category problem (cat falling onto its own line).
   Headline takes remaining space and truncates; everything else stays on
   the rail. Progressive degradation in mobile: drop cat first, then headline. */
.trending-pulse {
	display: inline-flex; align-items: center; gap: 10px;
	flex-wrap: nowrap;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--fg-muted);
	padding: 6px 12px 6px 10px;
	border-radius: 99px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo);
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}
.trending-pulse:hover {
	border-color: #ff3b3b66;
	background: var(--bg-elevated);
	transform: translateY(-1px);
}
.trending-pulse-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #ff3b3b;
	box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
	animation: live-pulse-ring 1.6s var(--ease-out-expo) infinite;
	flex: 0 0 auto;
}
.trending-pulse-text {
	display: inline-flex; align-items: center; gap: 6px;
	flex-wrap: nowrap;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.trending-pulse-label,
.trending-pulse-time,
.trending-pulse-cat,
.trending-pulse-sep {
	flex: 0 0 auto;
	white-space: nowrap;
}
.trending-pulse-label {
	color: #ff3b3b;
	font-weight: 700;
	letter-spacing: 0.16em;
}
.trending-pulse-sep { color: var(--fg-subtle); }
.trending-pulse-time {
	color: var(--fg);
	font-weight: 600;
	letter-spacing: 0.05em;
}
.trending-pulse-headline {
	color: var(--fg);
	font-family: var(--font-display);
	font-weight: 500;
	font-style: italic;
	font-size: 12px;
	letter-spacing: -0.005em;
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.trending-pulse-cat {
	color: var(--brand-blue);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 10px;
}
[data-theme="dark"] .trending-pulse-cat { color: var(--brand-cyan); }

/* Tablet — drop the category badge so the headline owns the rail. */
@media (max-width: 900px) {
	.trending-pulse-cat { display: none; }
}
/* Phone — drop the headline + the em-dash separator before it. Show only
   "● LATEST FILED · 3d ago" — clean, never wraps, never feels broken. */
@media (max-width: 600px) {
	.trending-pulse {
		font-size: 10px;
		padding: 5px 11px 5px 9px;
		gap: 8px;
	}
	.trending-pulse-headline,
	.trending-pulse-text > .trending-pulse-sep:nth-of-type(2) { display: none; }
}

/* Grid — 4 equal cards desktop, 2 tablet, 1 mobile */
.trending-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-5);
}
@media (max-width: 1100px) { .trending-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
@media (max-width: 600px)  { .trending-grid { grid-template-columns: 1fr; } }

/* Card — image-led with subtle elevation */
.trending-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	position: relative;
	transition: transform var(--duration-base) var(--ease-out-expo),
	            border-color var(--duration-base),
	            box-shadow var(--duration-base);
}
.trending-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-3);
}

.trending-card-link {
	display: block; color: inherit;
	height: 100%;
}

.trending-card-media {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--bg-sunken);
}
.trending-card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease-out-expo);
	will-change: transform;
}
.trending-card:hover .trending-card-media img { transform: scale(1.06); }

.trending-card-media-fallback {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%);
}
.trending-card-media-fallback::after {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
}

/* Subtle gradient at the image bottom — improves badge contrast on busy photos */
.trending-card-media::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
	background: linear-gradient(180deg, rgba(11,15,25,0.18) 0%, rgba(11,15,25,0) 100%);
	pointer-events: none;
}

.trending-card-cat {
	position: absolute;
	top: 10px; left: 10px; z-index: 2;
	background: var(--brand-mustard);
	color: var(--n-1000);
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.trending-card-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.trending-card-time {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--brand-blue);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
}
[data-theme="dark"] .trending-card-time { color: var(--brand-cyan); }
.trending-card-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-md);
	line-height: 1.22;
	letter-spacing: -0.012em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--duration-fast);
}
.trending-card-link:hover .trending-card-title { color: var(--brand-blue); }
[data-theme="dark"] .trending-card-link:hover .trending-card-title { color: var(--brand-cyan); }
.trending-card-meta {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-top: auto;
}
.trending-card-author { color: var(--fg); font-weight: 500; }

/* Stagger entry — first paint stagger; modern browsers upgrade to scroll-driven */
@keyframes trending-card-enter {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.trending-card { animation: trending-card-enter 600ms var(--ease-out-expo) both; }
.trending-card:nth-child(1) { animation-delay: 0ms; }
.trending-card:nth-child(2) { animation-delay: 80ms; }
.trending-card:nth-child(3) { animation-delay: 160ms; }
.trending-card:nth-child(4) { animation-delay: 240ms; }

@supports (animation-timeline: view()) {
	.trending-card {
		animation: trending-card-enter linear both;
		animation-timeline: view();
		animation-range: entry 5% cover 25%;
		animation-delay: 0ms !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trending-card { animation: none; }
	.trending-card:hover { transform: none; }
	.trending-card:hover .trending-card-media img { transform: none; }
	.trending-pulse-dot { animation: none; }
	.trending-pulse-text strong { transition: none; }
}

/* ============ LONGREADS ============ */
.longreads {
	padding: var(--space-16) 0;
	border-bottom: 1px solid var(--rule);
}
.longreads-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-10) var(--space-8);
}
@media (max-width: 800px) { .longreads-grid { grid-template-columns: 1fr; } }

.longread { display: flex; flex-direction: column; gap: var(--space-4); }
.longread .photo {
	display: block; aspect-ratio: 4/3;
	background: var(--bg-sunken);
	border-radius: var(--radius-md);
	overflow: hidden; position: relative;
}
.longread .photo img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--duration-slow) var(--ease-out-expo);
}
.longread:hover .photo img { transform: scale(1.03); }
.longread .photo-placeholder {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
}
.longread .photo-placeholder::after {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(135deg, transparent 0 10px, #FFFFFF08 10px 11px);
}
.longread .kicker {
	font-family: var(--font-ui); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	font-weight: 700; color: var(--brand-blue);
}
[data-theme="dark"] .longread .kicker { color: var(--brand-cyan); }
.longread h3 {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.1;
	letter-spacing: var(--tracking-tighter);
	margin: 0; text-wrap: balance;
}
.longread h3 a { color: var(--fg); transition: color var(--duration-fast); }
.longread h3 a:hover { color: var(--brand-blue); }
[data-theme="dark"] .longread h3 a:hover { color: var(--brand-cyan); }
.longread p {
	font-family: var(--font-display); font-weight: 500;
	font-size: var(--text-base);
	line-height: 1.5;
	color: var(--fg-muted); margin: 0; max-width: 52ch;
	text-wrap: pretty;
}
.longread .byline {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--fg-muted); margin-top: auto;
}
.longread .byline b { color: var(--fg); font-weight: 600; }
.longread .ava {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--brand-blue); color: #fff;
	display: grid; place-items: center;
	font-family: var(--font-ui); font-weight: 700; font-size: 11px;
	flex: 0 0 auto;
}

/* ============ VERTICALS ============ */
.verticals {
	padding: var(--space-16) 0;
	background: var(--bg-sunken);
	border-bottom: 1px solid var(--rule);
}
.verticals-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}
@media (max-width: 1000px) { .verticals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .verticals-grid { grid-template-columns: 1fr; } }

.vertical {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-5);
	display: flex; flex-direction: column; gap: var(--space-4);
	transition: transform var(--duration-base) var(--ease-out-expo), border-color var(--duration-base);
}
.vertical:hover { transform: translateY(-3px); border-color: var(--brand-mustard); }
.vertical .v-head {
	display: flex; justify-content: space-between; align-items: center;
	padding-bottom: var(--space-3);
	border-bottom: 2px solid var(--fg);
}
.vertical .v-head h4 {
	font-family: var(--font-display); font-weight: 700;
	font-size: var(--text-xl);
	margin: 0;
	letter-spacing: var(--tracking-tight);
}
.vertical .v-head .dot {
	display: inline-block; width: 8px; height: 8px;
	border-radius: 50%; background: var(--brand-mustard);
	margin-right: 6px; vertical-align: middle;
}
.vertical .v-head .count {
	font-family: var(--font-mono); font-size: 11px;
	color: var(--fg-muted); letter-spacing: 0.05em;
}
.vertical ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.vertical li {
	font-family: var(--font-ui); font-size: var(--text-sm);
	font-weight: 500; line-height: 1.42; color: var(--fg);
	padding-bottom: var(--space-3);
	border-bottom: 1px dashed var(--rule);
}
.vertical li:last-child { border-bottom: none; padding-bottom: 0; }
.vertical li a { color: var(--fg); transition: color var(--duration-fast); }
.vertical li a:hover { color: var(--brand-blue); }
[data-theme="dark"] .vertical li a:hover { color: var(--brand-cyan); }
.vertical li .when2 {
	display: block;
	font-family: var(--font-mono); font-size: 10px;
	color: var(--fg-muted); letter-spacing: 0.05em;
	text-transform: uppercase; margin-top: 4px;
}

/* ============ ENGAGE: ranking + newsletter ============ */
.engage {
	padding: var(--space-16) 0;
	border-bottom: 1px solid var(--rule);
}
.engage-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--space-8);
}
@media (max-width: 900px) { .engage-grid { grid-template-columns: 1fr; } }

/* Most-read this week — real engagement signal, no fake gamification */
.most-read {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-8);
	position: relative;
	overflow: hidden;
	display: flex; flex-direction: column;
}
.most-read::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--brand-blue), var(--brand-mustard));
}
.most-read-head {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: var(--space-4);
	gap: var(--space-3);
}
.most-read-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	color: var(--fg-muted); font-weight: 600;
}
.most-read-kicker-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--brand-mustard);
	box-shadow: 0 0 0 0 rgba(253, 184, 19, 0.55);
	animation: live-pulse-ring 1.8s var(--ease-out-expo) infinite;
}
.most-read-more {
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	color: var(--brand-blue); font-weight: 600;
	transition: color var(--duration-fast);
}
.most-read-more:hover { color: var(--brand-mustard); }
[data-theme="dark"] .most-read-more { color: var(--brand-cyan); }
[data-theme="dark"] .most-read-more:hover { color: var(--brand-mustard); }

.most-read-title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.08;
	letter-spacing: var(--tracking-tighter);
	margin: 0 0 var(--space-5);
	text-wrap: balance;
	max-width: 22ch;
}
.most-read-title mark { background: var(--brand-mustard); color: var(--n-1000); padding: 0 6px; }

.most-read-list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column;
	gap: var(--space-3);
	counter-reset: mr;
}
.most-read-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-3);
	align-items: baseline;
	padding-bottom: var(--space-3);
	border-bottom: 1px dashed var(--rule);
}
.most-read-item:last-child { border-bottom: 0; padding-bottom: 0; }

.most-read-rank {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--fg-muted);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	min-width: 22px;
	transition: color var(--duration-fast);
}
.most-read-item:hover .most-read-rank { color: var(--brand-mustard); }

.most-read-link {
	display: flex; flex-direction: column;
	gap: 4px;
	color: inherit;
}
.most-read-headline {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-base);
	line-height: 1.25;
	letter-spacing: var(--tracking-tight);
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
	transition: color var(--duration-fast);
}
.most-read-link:hover .most-read-headline { color: var(--brand-blue); }
[data-theme="dark"] .most-read-link:hover .most-read-headline { color: var(--brand-cyan); }
.most-read-meta {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	.most-read-kicker-dot { animation: none; }
}

/* Editorial trust + disclaimer block — replaces the previous newsletter
   callout. Two-section structure: aspirational mission (top) and legal
   disclaimer (bottom), separated by a horizontal rule. Mirrors the .nl-block
   visual weight (deep blue + mustard accent + radial glow) so the .engage
   section keeps a balanced 2-column rhythm next to .most-read. */
.compliance-block {
	background: var(--brand-blue); color: #fff;
	border-radius: var(--radius-md);
	padding: var(--space-8); position: relative; overflow: hidden;
	border-top: 4px solid var(--brand-mustard);
	display: flex; flex-direction: column; gap: var(--space-6);
	min-height: 380px;
	scroll-margin-top: 100px;
}
.compliance-block::after {
	content: ""; position: absolute;
	right: -60px; bottom: -60px;
	width: 240px; height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, #FDB81328 0%, transparent 70%);
	pointer-events: none;
}

/* Sub-sections: intro (mission) + legal (disclaimer). The legal half gets
   a top divider so the two voices read as deliberately separated. */
.compliance-block-intro,
.compliance-block-legal {
	position: relative;
	z-index: 1;
}
.compliance-block-legal {
	padding-top: var(--space-5);
	border-top: 1px solid #FFFFFF1F;
}

/* Eyebrows — both kicker (top) and DISCLAIMER label (legal section) */
.compliance-block .kicker,
.compliance-legal-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--brand-mustard);
	font-weight: 600;
	display: inline-block;
}
.compliance-legal-label {
	margin-bottom: var(--space-3);
	color: #FFFFFFAA;
}

/* Mission title — aspirational, balanced */
.compliance-block h3 {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.06;
	letter-spacing: var(--tracking-tighter);
	color: #fff;
	margin: var(--space-3) 0;
	max-width: 22ch;
	text-wrap: balance;
}
.compliance-block h3 mark {
	background: var(--brand-mustard);
	color: var(--n-1000);
	padding: 0 6px;
}

/* Mission paragraph — primary voice, slightly larger */
.compliance-mission {
	font-family: var(--font-display); font-weight: 500;
	font-size: var(--text-base); line-height: 1.55;
	color: #FFFFFFD9;
	max-width: 52ch;
	margin: 0;
	text-wrap: pretty;
}

/* Disclaimer paragraph — secondary voice, smaller, more compact */
.compliance-disclaimer {
	font-family: var(--font-display); font-weight: 400;
	font-size: 14px; line-height: 1.55;
	color: #FFFFFFAA;
	max-width: 60ch;
	margin: 0 0 var(--space-5);
	text-wrap: pretty;
}
.compliance-disclaimer strong {
	color: #fff;
	font-weight: 600;
}
.compliance-disclaimer a {
	color: var(--brand-mustard);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	font-weight: 600;
	transition: text-decoration-thickness var(--duration-fast);
}
.compliance-disclaimer a:hover {
	text-decoration-thickness: 2px;
}

/* Action links — small editorial CTAs in 2-col grid. Mustard reveal on hover. */
.compliance-links {
	list-style: none; padding: 0;
	margin: 0;
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 6px var(--space-4);
	position: relative; z-index: 1;
}
.compliance-links li { margin: 0; }
.compliance-links a {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid #FFFFFF22;
	transition: color var(--duration-fast),
	            border-color var(--duration-fast),
	            transform var(--duration-fast) var(--ease-out-expo);
}
.compliance-links a:hover {
	color: var(--brand-mustard);
	border-bottom-color: var(--brand-mustard);
	transform: translateX(2px);
}
@media (max-width: 480px) {
	.compliance-links { grid-template-columns: 1fr; }
}

/* AdSense slot styles intentionally removed — placeholder was hidden from
   markup to avoid Google review flagging it as deceptive content. Reintroduce
   .ads-leaderboard styling once approval lands and a real <ins> is rendered. */

/* ============ MOSAIC (magazine layout: 1 feature + 4 cards) ============ */
.mosaic {
	padding: var(--space-16) 0;
	border-bottom: 1px solid var(--rule);
}
.mosaic-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-5);
}
@media (max-width: 900px) { .mosaic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mosaic-grid { grid-template-columns: 1fr; } }

/* All tiles — clean editorial card */
.mosaic-tile {
	display: flex;
	flex-direction: column;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	color: var(--fg);
	position: relative;
	transition: transform var(--duration-base) var(--ease-out-expo),
	            border-color var(--duration-base),
	            box-shadow var(--duration-base);
}
.mosaic-tile:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-3);
}

.mosaic-tile-media {
	position: relative;
	overflow: hidden;
	background: var(--bg-sunken);
	flex: 0 0 auto;
}
.mosaic-tile-media img {
	display: block;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease-out-expo);
}
.mosaic-tile:hover .mosaic-tile-media img { transform: scale(1.05); }

.mosaic-tile-fallback {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%);
}
.mosaic-tile-fallback::after {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
}

.mosaic-tile-cat {
	position: absolute;
	top: 12px; left: 12px; z-index: 2;
	background: var(--brand-mustard);
	color: var(--n-1000);
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.mosaic-tile-body {
	padding: 16px 18px 20px;
	display: flex; flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}
.mosaic-tile-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-md);
	line-height: 1.22;
	letter-spacing: -0.012em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
	transition: color var(--duration-fast);
}
.mosaic-tile:hover .mosaic-tile-title { color: var(--brand-blue); }
[data-theme="dark"] .mosaic-tile:hover .mosaic-tile-title { color: var(--brand-cyan); }
.mosaic-tile-excerpt {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--text-sm);
	color: var(--fg-muted);
	line-height: 1.45;
	margin: 0;
	max-width: 48ch;
	text-wrap: pretty;
}
.mosaic-tile-meta {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: auto;
}

/* FEATURE tile — spans 2 cols × 2 rows, full-bleed image with bottom overlay */
.mosaic-tile--feature {
	grid-column: span 2;
	grid-row: span 2;
	position: relative;
	min-height: 480px;
	border: none;
	background: var(--n-1000);
	color: #fff;
}
.mosaic-tile--feature .mosaic-tile-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	aspect-ratio: auto;
}
.mosaic-tile--feature .mosaic-tile-media img {
	width: 100%; height: 100%; object-fit: cover;
}
.mosaic-tile--feature .mosaic-tile-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(
		180deg,
		rgba(11,15,25,0) 0%,
		rgba(11,15,25,0) 30%,
		rgba(11,15,25,0.55) 70%,
		rgba(11,15,25,0.92) 100%
	);
}
.mosaic-tile--feature .mosaic-tile-cat {
	top: 16px; left: 16px;
	z-index: 3;
}
.mosaic-tile--feature .mosaic-tile-body {
	/* Anchor the body to the bottom edge so the gradient overlay actually
	   serves a readability purpose. Pre-fix the body sat at the top of the
	   tile because media became absolute and removed itself from flex flow. */
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 24px 28px 28px;
	color: #fff;
}
.mosaic-tile--feature .mosaic-tile-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.08;
	letter-spacing: var(--tracking-tighter);
	color: #fff;
	max-width: 24ch;
}
.mosaic-tile--feature:hover .mosaic-tile-title { color: var(--brand-mustard); }
.mosaic-tile--feature .mosaic-tile-excerpt {
	color: rgba(255,255,255,0.85);
	font-size: var(--text-base);
	max-width: 52ch;
}
.mosaic-tile--feature .mosaic-tile-meta {
	color: rgba(255,255,255,0.7);
}
@media (max-width: 900px) {
	.mosaic-tile--feature { grid-column: span 2; grid-row: auto; min-height: 360px; }
}
@media (max-width: 600px) {
	.mosaic-tile--feature { grid-column: 1; min-height: 320px; }
}

/* Standard cards — image top + text below */
.mosaic-tile--card .mosaic-tile-media {
	aspect-ratio: 4/3;
}

/* No-image variant — text-only card with subtle paper bg */
.mosaic-tile.no-image:not(.mosaic-tile--feature) .mosaic-tile-media {
	display: none;
}
.mosaic-tile.no-image:not(.mosaic-tile--feature) {
	background: linear-gradient(160deg, var(--brand-blue), var(--brand-blue-700));
	color: #fff;
	border-color: transparent;
}
.mosaic-tile.no-image:not(.mosaic-tile--feature) .mosaic-tile-title { color: #fff; }
.mosaic-tile.no-image:not(.mosaic-tile--feature):hover .mosaic-tile-title { color: var(--brand-mustard); }
.mosaic-tile.no-image:not(.mosaic-tile--feature) .mosaic-tile-meta { color: rgba(255,255,255,0.65); }
.mosaic-tile.no-image:not(.mosaic-tile--feature) .mosaic-tile-cat {
	position: static;
	box-shadow: none;
	margin-bottom: 12px;
	align-self: flex-start;
}
.mosaic-tile.no-image:not(.mosaic-tile--feature) .mosaic-tile-body {
	padding: 22px;
}

/* ============ FOOTER ============ */
.site-footer {
	background: var(--n-1000); color: #fff;
	padding: var(--space-16) 0 var(--space-8);
	margin-top: 0;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: var(--space-8);
	padding-bottom: var(--space-12);
	border-bottom: 1px solid #FFFFFF15;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .lockup { color: #fff; font-size: var(--text-xl); gap: 0; }
.footer-brand .lockup-text span { color: var(--brand-mustard); }
/* Footer logo — same treatment as the header lockup (perspective + 3D tilt
   on hover) for visual consistency. Only the rendered size differs; markup,
   classes, image source, hover transform, and shadow stack are identical. */
.site-footer .footer-brand .lockup,
.site-footer .lockup--footer {
	display: block;
	background: transparent;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	color: transparent;
	gap: 0;
	width: max-content;
	margin-bottom: var(--space-3);
	perspective: 700px;
	transform-style: preserve-3d;
}
.site-footer .footer-brand .lockup-img,
.site-footer .lockup--footer .lockup-img {
	width: auto;
	height: 120px;
	max-height: none;
	max-width: 100%;
	object-fit: contain;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	display: block;
	transform-origin: center center;
	transition:
		transform 420ms var(--ease-spring),
		filter 420ms var(--ease-out-expo);
	will-change: transform;
}
.site-footer .footer-brand .lockup:hover .lockup-img,
.site-footer .lockup--footer:hover .lockup-img {
	transform: rotateY(-14deg) rotateX(7deg) translateZ(10px) scale(1.04);
	filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35))
	        drop-shadow(0 0 14px rgba(253,184,19,0.25));
}
.site-footer .lockup--footer:active .lockup-img {
	transform: rotateY(-6deg) rotateX(3deg) scale(1.01);
	transition-duration: 120ms;
}
@media (max-width: 800px) {
	.site-footer .footer-brand .lockup-img,
	.site-footer .lockup--footer .lockup-img { height: 100px; }
}
@media (max-width: 480px) {
	.site-footer .footer-brand .lockup-img,
	.site-footer .lockup--footer .lockup-img { height: 84px; }
}
.footer-brand p {
	color: #FFFFFFAA;
	font-family: var(--font-display); font-weight: 500;
	font-size: var(--text-sm); line-height: 1.5;
	max-width: 38ch; margin: var(--space-3) 0 0;
}
.footer-col h5 {
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: var(--tracking-wider); text-transform: uppercase;
	color: var(--brand-mustard); margin: 0 0 var(--space-3); font-weight: 600;
}
.footer-col a {
	display: block; padding: 5px 0;
	font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500;
	color: #FFFFFFCC;
	transition: color var(--duration-fast), padding-left var(--duration-fast);
}
.footer-col a:hover { color: var(--brand-mustard); padding-left: 4px; }

/* Dedicated compliance band — full-width, centered, separated from
   .footer-bottom by its own divider so it's visually unmissable and
   never collides with the floating HUD in the bottom-right. */
.footer-legal {
	margin-top: var(--space-6);
	padding: var(--space-5) 0;
	border-top: 1px solid #FFFFFF15;
	border-bottom: 1px solid #FFFFFF15;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	font-weight: 600;
	text-align: center;
}
.footer-legal a {
	color: #FFFFFFD8;
	letter-spacing: 0.01em;
	transition: color var(--duration-fast);
	white-space: nowrap;
}
.footer-legal a:hover { color: var(--brand-mustard); }
.footer-legal-sep {
	color: var(--brand-mustard);
	opacity: 0.5;
	font-weight: 700;
}
@media (max-width: 600px) {
	.footer-legal { font-size: 12px; gap: 4px 8px; }
	.footer-legal-sep { display: none; }
	.footer-legal a {
		flex: 0 0 auto;
		padding: 4px 8px;
		border: 1px solid #FFFFFF18;
		border-radius: 99px;
	}
}

/* Final bottom row — copyright + tagline only. Compliance is its own band above. */
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: var(--space-6);
	font-family: var(--font-mono); font-size: 11px;
	color: #FFFFFF66; flex-wrap: wrap; gap: 8px;
	letter-spacing: 0.05em;
}
.footer-bottom a { color: inherit; transition: color var(--duration-fast); }
.footer-bottom a:hover { color: var(--brand-mustard); }
.footer-copy { font-weight: 600; }
.footer-meta {
	color: #FFFFFF50;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
@media (max-width: 600px) {
	.footer-bottom { justify-content: center; text-align: center; }
}

/* Mobile footer — center everything vertically. The desktop grid (1.4fr +
   4 columns) gives way to a stacked, centered layout where the brand,
   each column header, links, and bottom row all sit on the page's axis. */
@media (max-width: 800px) {
	.footer-top {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
		gap: var(--space-7);
	}
	.footer-brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--space-3);
		max-width: 44ch;
	}
	.site-footer .footer-brand .lockup,
	.site-footer .lockup--footer {
		margin: 0 auto;
	}
	.footer-brand p {
		max-width: 42ch;
		margin: 0 auto;
		text-align: center;
	}
	.footer-col {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-col h5 { margin-bottom: var(--space-2); }
	.footer-col a { padding: 4px 10px; }
	.footer-col a:hover { padding-left: 10px; }   /* kill the slide-in indent */
	.footer-bottom {
		flex-direction: column;
		gap: 6px;
		text-align: center;
	}
}
@media (max-width: 480px) {
	.footer-top { gap: var(--space-6); }
	.footer-brand p { font-size: 13px; }
}

/* ============ HUD (scroll-driven gamification, SVG ring + badges) ============ */
.hud {
	position: fixed; right: 20px; bottom: 20px;
	z-index: 90;
	opacity: 0;
	transform: translateY(20px) scale(0.96);
	pointer-events: none;
	transition: opacity var(--duration-base) var(--ease-out-expo),
	            transform var(--duration-base) var(--ease-out-expo);
}
.hud[hidden] { display: none; }
.hud.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
/* Slide HUD off-screen when footer enters view so it stops covering the
   compliance row (Privacy · Terms · Cookies · Accessibility). */
.hud.is-visible.is-near-footer {
	opacity: 0;
	transform: translateY(140%) scale(0.96);
	pointer-events: none;
}

.hud-inner {
	background: var(--n-1000); color: #fff;
	padding: 8px 14px 8px 8px;
	border-radius: 99px;
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: 0.04em;
	display: flex; align-items: center;
	gap: 10px;
	box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,0.04);
	border: 0; cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast);
}
.hud-inner:hover { transform: translateY(-2px); box-shadow: var(--shadow-4); }
.hud-inner.is-celebrating { animation: hud-celebrate 1.2s var(--ease-out-expo); }
@keyframes hud-celebrate {
	0%   { transform: scale(1); box-shadow: var(--shadow-3); }
	30%  { transform: scale(1.08) translateY(-3px); box-shadow: var(--shadow-mustard); }
	60%  { transform: scale(1.02) translateY(-2px); }
	100% { transform: scale(1); box-shadow: var(--shadow-3); }
}

/* SVG progress ring around the level number */
.hud-ring-wrap {
	position: relative;
	width: 38px; height: 38px;
	flex: 0 0 auto;
}
.hud-ring {
	width: 100%; height: 100%;
	transform: rotate(-90deg);
}
.hud-ring-track {
	fill: none;
	stroke: rgba(255,255,255,0.12);
	stroke-width: 3;
}
.hud-ring-fill {
	fill: none;
	stroke: var(--brand-mustard);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 97.39;
	stroke-dashoffset: 97.39;  /* starts empty, JS animates */
	transition: stroke-dashoffset 600ms var(--ease-out-expo), stroke 300ms;
}
.hud-inner.is-celebrating .hud-ring-fill { stroke: var(--brand-cyan); }
.hud-ring-lvl {
	position: absolute;
	inset: 0;
	display: grid; place-items: center;
	font-family: var(--font-display); font-weight: 800;
	font-size: 13px;
	color: var(--brand-mustard);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.hud-xp-wrap {
	display: flex; flex-direction: column;
	gap: 1px;
	line-height: 1.1;
}
.hud-xp {
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.hud-xp #hud-xp { color: var(--brand-mustard); font-weight: 800; }
.hud-next {
	color: rgba(255,255,255,0.5);
	font-size: 9px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Badges row — appears as user unlocks milestones */
.hud-badges {
	display: flex; align-items: center;
	gap: 4px;
	margin-left: 4px;
	min-height: 20px;
}
.hud-badge {
	display: inline-grid; place-items: center;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	font-size: 12px;
	line-height: 1;
	opacity: 0;
	transform: scale(0.4) rotate(-30deg);
	transition: opacity 500ms var(--ease-spring), transform 500ms var(--ease-spring);
}
.hud-badge.is-revealed { opacity: 1; transform: scale(1) rotate(0); }
.hud-badge:hover { background: var(--brand-mustard); transform: scale(1.15) rotate(0); }

/* Popover with full milestone list */
.hud-popover {
	position: absolute; right: 0; bottom: calc(100% + 10px);
	background: var(--bg-elevated); color: var(--fg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-5);
	width: 280px;
	box-shadow: var(--shadow-4);
	font-family: var(--font-body); font-size: var(--text-sm);
	line-height: 1.45;
}
.hud-popover[hidden] { display: none; }
.hud-popover strong {
	font-family: var(--font-display); font-weight: 800;
	font-size: var(--text-md);
	display: block;
	margin-bottom: 6px;
}
.hud-popover p {
	margin: 0 0 var(--space-4);
	color: var(--fg-muted);
	font-size: var(--text-sm);
}

.hud-milestones {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-3);
	display: flex; flex-direction: column;
	gap: 2px;
}
.hud-milestones li {
	display: grid;
	grid-template-columns: 20px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	color: var(--fg-muted);
	border-bottom: 1px dashed var(--rule);
	transition: color var(--duration-fast);
}
.hud-milestones li:last-child { border-bottom: none; }
.hud-milestones li.is-unlocked { color: var(--fg); }
.hud-milestone-icon {
	font-size: 14px;
	line-height: 1;
	filter: grayscale(0.7);
	transition: filter var(--duration-base);
}
.hud-milestones li.is-unlocked .hud-milestone-icon { filter: grayscale(0); }
.hud-milestones li em {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-subtle);
	letter-spacing: 0.05em;
	font-style: normal;
	font-variant-numeric: tabular-nums;
}
.hud-milestones li.is-unlocked em {
	color: var(--brand-blue);
	font-weight: 600;
}
[data-theme="dark"] .hud-milestones li.is-unlocked em { color: var(--brand-cyan); }

.hud-popover small {
	display: block;
	font-family: var(--font-mono); font-size: 10px;
	color: var(--fg-subtle); letter-spacing: 0.05em;
	text-transform: uppercase;
	padding-top: var(--space-3);
	border-top: 1px solid var(--rule);
}

@media (max-width: 600px) {
	.hud { right: 12px; bottom: 12px; }
	.hud-inner { padding: 6px 12px 6px 6px; gap: 8px; }
	.hud-ring-wrap { width: 32px; height: 32px; }
	.hud-ring-lvl { font-size: 11px; }
	.hud-xp { font-size: 11px; }
	.hud-next { display: none; }
	.hud-popover { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
	.hud-inner.is-celebrating { animation: none; }
	.hud-badge { transition: none; opacity: 1; transform: none; }
	.hud-ring-fill { transition: none; }
}

/* ============ TOAST ============ */
.toast {
	position: fixed; left: 50%; bottom: 80px;
	transform: translateX(-50%) translateY(20px);
	background: var(--n-1000); color: #fff;
	padding: 12px 18px; border-radius: var(--radius-sm);
	font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600;
	box-shadow: var(--shadow-4);
	border-left: 3px solid var(--brand-mustard);
	z-index: 110;
	opacity: 0; pointer-events: none;
	transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: block !important; }

/* ============ ARCHIVE — refined editorial layout ============
   Used by category, tag, date, author archives. Serif title + sans body,
   feature card spans the first row, IO-driven fade-in. Animations use only
   transform/opacity. prefers-reduced-motion respected at the bottom. */

.archive {
	/* Scoped tokens — local knobs that don't pollute global namespace. */
	--arch-gap:           clamp(20px, 3vw, 32px);
	--arch-radius:        14px;
	--arch-card-rise:     -4px;
	--arch-img-zoom:      1.04;
	--arch-anim-duration: 500ms;
	--arch-anim-ease:     cubic-bezier(0.22, 1, 0.36, 1);
	--arch-pad-x:         clamp(20px, 5vw, 48px);
	--arch-max:           1280px;

	display: block;
	background: var(--bg);
}
.archive-wrap {
	max-width: var(--arch-max);
	margin: 0 auto;
	padding: clamp(24px, 5vw, 48px) var(--arch-pad-x) clamp(48px, 8vw, 96px);
}

/* ── Page header ── */
.archive-head {
	text-align: center;
	padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--rule);
	margin-bottom: clamp(32px, 5vw, 56px);
	display: flex; flex-direction: column;
	align-items: center; gap: clamp(12px, 2vw, 18px);
}
.archive-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-mustard);
	display: inline-flex; align-items: center; gap: 8px;
}
.archive-eyebrow::before {
	content: ""; display: inline-block;
	width: 24px; height: 1px;
	background: var(--brand-mustard);
	opacity: 0.6;
}
.archive-eyebrow::after {
	content: ""; display: inline-block;
	width: 24px; height: 1px;
	background: var(--brand-mustard);
	opacity: 0.6;
}
.archive-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(40px, 7vw, 84px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
	font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1;
}
.archive-lead {
	font-family: var(--font-display);
	font-weight: 500;
	font-style: italic;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.45;
	color: var(--fg-muted);
	max-width: 56ch;
	margin: 0;
	text-wrap: pretty;
}
.archive-count {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

/* ── Grid ── */
.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--arch-gap);
}
@media (max-width: 900px) {
	.archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.archive-grid { grid-template-columns: 1fr; }
}

/* ── Card (standard) ── */
.archive-card {
	display: flex; flex-direction: column;
	gap: 14px;
	position: relative;
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity var(--arch-anim-duration) var(--arch-anim-ease),
		transform var(--arch-anim-duration) var(--arch-anim-ease);
}
.archive-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Whole card lifts on hover via the inner anchor's hover state */
.archive-card:hover {
	transform: translateY(var(--arch-card-rise));
	transition-duration: 280ms;
}
.archive-card.is-visible:hover {
	transform: translateY(var(--arch-card-rise));
}

.archive-card-media {
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
	border-radius: var(--arch-radius);
	background: var(--bg-sunken);
	position: relative;
	cursor: pointer;
}
.archive-card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 320ms var(--arch-anim-ease);
	display: block;
}
.archive-card:hover .archive-card-media img {
	transform: scale(var(--arch-img-zoom));
}
.archive-card-fallback {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-700) 100%);
}

.archive-card-body {
	display: flex; flex-direction: column;
	gap: 8px;
	padding: 0;
}
.archive-card-kicker {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand-mustard);
	display: inline-flex; align-items: center; gap: 6px;
}
.archive-card-kicker-sep { opacity: 0.5; }

.archive-card-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.18;
	letter-spacing: -0.012em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
}
.archive-card-title a {
	color: inherit;
	transition: color 200ms ease-out;
}
.archive-card:hover .archive-card-title a,
.archive-card-title a:hover,
.archive-card-title a:focus-visible {
	color: var(--brand-mustard);
}

.archive-card-excerpt {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--fg-muted);
	margin: 4px 0 0;
	max-width: 60ch;
	text-wrap: pretty;
}

.archive-card-meta {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--fg-subtle);
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 4px;
}
.archive-card-meta-sep { opacity: 0.6; }
.archive-card-byline { color: var(--fg-muted); font-weight: 500; }

/* ── Feature card (first item, full row, larger) ── */
.archive-card--feature {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding-bottom: clamp(20px, 3vw, 32px);
	border-bottom: 1px solid var(--rule);
	margin-bottom: clamp(8px, 2vw, 16px);
}
@media (max-width: 900px) {
	.archive-card--feature {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
.archive-card--feature .archive-card-media {
	aspect-ratio: 21/9;
}
@media (max-width: 600px) {
	.archive-card--feature .archive-card-media { aspect-ratio: 16/10; }
}
.archive-card--feature .archive-card-body {
	gap: 14px;
}
.archive-card--feature .archive-card-title {
	font-size: clamp(28px, 3.6vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.02em;
}
.archive-card--feature .archive-card-excerpt {
	font-size: 17px;
	line-height: 1.55;
}

/* ── Pagination ── */
.archive-pagination {
	margin-top: clamp(48px, 7vw, 80px);
	padding-top: clamp(24px, 4vw, 40px);
	border-top: 1px solid var(--rule);
	display: flex; justify-content: center;
}
.archive-pagination .nav-links {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.archive-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto;                /* override the orphan global .page-numbers width:36px */
	min-width: 40px; height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 99px;
	color: var(--fg-muted);
	background: transparent;
	transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out;
	white-space: nowrap;
	gap: 6px;                   /* breathing room between text and arrow inside prev/next */
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers:focus-visible {
	color: var(--brand-mustard);
	border-color: var(--brand-mustard);
	background: rgba(253, 184, 19, 0.06);
}
.archive-pagination .page-numbers.current {
	color: var(--n-1000);
	background: var(--brand-mustard);
	border-color: var(--brand-mustard);
}
[data-theme="dark"] .archive-pagination .page-numbers.current {
	color: var(--n-1000);
}
.archive-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	color: var(--fg-subtle);
	min-width: 24px;
	padding: 0 4px;
}
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
	padding: 0 18px;
	font-weight: 700;
	color: var(--fg);
	border-color: var(--border);
}

/* ── Empty state ── */
.archive-empty {
	display: flex; flex-direction: column;
	align-items: center; text-align: center;
	gap: 18px;
	padding: clamp(48px, 8vw, 96px) 0;
	max-width: 52ch;
	margin: 0 auto;
}
.archive-empty-mascot {
	width: clamp(120px, 18vw, 160px);
	height: auto;
	opacity: 0.9;
}
.archive-empty-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
}
.archive-empty-lead {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--fg-muted);
	margin: 0;
}
.archive-empty-back {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-mustard);
	margin-top: 8px;
	transition: gap 180ms ease-out;
	display: inline-flex; align-items: center; gap: 6px;
}
.archive-empty-back:hover { gap: 10px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.archive-card {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.archive-card:hover {
		transform: none;
	}
	.archive-card:hover .archive-card-media img {
		transform: none;
	}
}

/* ============ ARCHIVE / SEARCH / 404 (neutral baseline until refactored) ============ */
.site-main { display: block; }
.page-header {
	max-width: var(--container); margin: 0 auto;
	text-align: center; padding: var(--space-12) var(--gutter);
	border-bottom: 1px solid var(--rule);
}
.archive-description { color: var(--fg-muted); }
.post-grid {
	max-width: var(--container); margin: 0 auto;
	padding: var(--space-12) var(--gutter);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; gap: var(--space-3); }
.post-media { display: block; aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-sunken); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow); }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-title { font-size: var(--text-lg); line-height: 1.22; margin: 0; font-weight: 700; letter-spacing: var(--tracking-tight); }
.post-title a { color: var(--fg); }
.post-title a:hover { color: var(--brand-blue); }
.post-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-muted); }

/* Single article — edge-to-edge LEFT-aligned layout. Header, featured image
   and prose all span the full 1200px container, left-flush like Substack /
   Medium / a magazine spread. Title isn't centered — it starts at the left
   gutter just like the homepage's section heads. Type scale + line-height
   bumped (Bringhurst optical adjustment) to keep the wider columns readable. */
.single-header { max-width: var(--container); margin: 0 auto var(--space-12); padding: 0 var(--gutter); }
.single-cat-wrap { margin-bottom: var(--space-4); }
.single-title {
	font-size: clamp(36px, 5.6vw, 64px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: var(--tracking-tighter);
	margin: var(--space-4) 0 var(--space-5);
	text-wrap: balance;
}
.single-meta { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-muted); letter-spacing: 0.04em; }
.single-featured { max-width: var(--container); margin: 0 auto var(--space-12); border-radius: var(--radius-md); overflow: hidden; padding: 0 var(--gutter); }
.single-content {
	max-width: var(--container); margin: 0 auto var(--space-16);
	padding: 0 var(--gutter);
	font-family: var(--font-display);
	font-size: clamp(18px, 1.4vw, 20px);   /* bump from 18 → up to 20 for wide-column comfort */
	line-height: 1.65;                       /* slightly tighter than narrow's 1.7 */
	color: var(--fg);
	text-wrap: pretty;
	hanging-punctuation: first last;
}
.single-content h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; margin: 1.8em 0 0.6em; letter-spacing: var(--tracking-tight); line-height: 1.18; }
.single-content h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 1.6em 0 0.5em; letter-spacing: var(--tracking-tight); line-height: 1.22; }
.single-content p + p { margin-top: 0; }   /* avoid double margin */
.single-content a { color: var(--brand-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-content a:hover { text-decoration-thickness: 2px; }
[data-theme="dark"] .single-content a { color: var(--brand-cyan); }

/* Author bio (E-E-A-T) — magazine-style card after the article body.
   Heuristic `eeat/MISSING_AUTHOR_BIO` checks for `.author-bio` exactly,
   so don't rename the outer class without also updating audit selectors. */
.author-bio {
  max-width: var(--container);
  margin: 0 auto var(--space-12);
  padding: var(--space-6) var(--gutter);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-5);
  align-items: start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.author-bio-avatar img { width: 96px; height: 96px; border-radius: 50%; display: block; }
.author-bio-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--space-2); letter-spacing: var(--tracking-tight); line-height: 1.2; }
.author-bio-name a { color: var(--fg); text-decoration: none; }
.author-bio-name a:hover { color: var(--brand-blue); }
.author-bio-text { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; color: var(--fg-muted); margin: 0; text-wrap: pretty; }
@media (max-width: 640px) {
  .author-bio { grid-template-columns: 64px 1fr; gap: var(--space-4); }
  .author-bio-avatar img { width: 64px; height: 64px; }
}

/* Pagination */
/* Legacy pagination block — scoped to .nff-pagination so its rules don't
   leak globally and clobber .archive-pagination .page-numbers (was the
   root cause of the "Older stories" overlap bug). Currently unused in
   templates but preserved in case widgets or future custom queries need
   the smaller square-button look. */
.nff-pagination {
	display: flex; gap: 8px; margin-top: var(--space-12);
	border-top: 1px solid var(--rule); padding-top: var(--space-8);
	max-width: var(--container); margin-inline: auto;
	padding-inline: var(--gutter);
}
.nff-pagination .page-numbers {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600;
	color: var(--fg);
	transition: all var(--duration-fast);
}
.nff-pagination .page-numbers:hover:not(.dots) { border-color: var(--brand-mustard); color: var(--brand-mustard); }
.nff-pagination .page-numbers.current { background: var(--brand-mustard); border-color: var(--brand-mustard); color: var(--n-1000); }
.nff-pagination .page-numbers.dots { border: none; width: auto; }

/* ============ BRAND SPLASH (preloader, 1× per session) ============
   Cinematic intro on cold session entry. Content behind it loads in parallel
   so the page is fully usable even if JS fails. Skippable on click/Esc.
   - Glow ring pulses behind the 3D-tilted logo
   - Logo enters with rotateY/X + scale, then settles into a soft float
   - Loader bar uses indeterminate gradient sweep (no fake progress %)
   - Tagline fades in after logo lands
   - Total runtime ~1.8s; auto-dismisses, never blocks the page          */

.nff-splash {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-items: center;
	background:
		radial-gradient(ellipse at 50% 30%, #142547 0%, transparent 55%),
		linear-gradient(180deg, var(--n-1000) 0%, #060c1c 50%, #0a1530 100%);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 600ms var(--ease-out-expo), visibility 600ms;
}
.nff-splash[hidden] { display: none; }
.nff-splash.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.nff-splash.is-leaving { opacity: 0; pointer-events: none; }

.nff-splash::before,
.nff-splash::after {
	content: ""; position: absolute; pointer-events: none;
}
.nff-splash::before {
	/* Subtle scanlines for cinematic texture */
	inset: 0;
	background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,0.014) 2px 3px);
	opacity: 0.6;
	mix-blend-mode: overlay;
}
.nff-splash::after {
	/* Vignette */
	inset: 0;
	background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.nff-splash-skip {
	position: absolute; top: 24px; right: 24px; z-index: 5;
	background: transparent;
	border: 1px solid #FFFFFF22;
	color: #FFFFFFCC;
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
	padding: 9px 16px; border-radius: 99px;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: all var(--duration-fast);
	opacity: 0;
	animation: splash-skip-fade 600ms ease-out 800ms forwards;
}
.nff-splash-skip:hover {
	border-color: var(--brand-mustard);
	color: var(--brand-mustard);
	transform: translateX(-2px);
}
@keyframes splash-skip-fade { to { opacity: 1; } }

.nff-splash-stage {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; align-items: center;
	gap: 32px;
	perspective: 1400px;
	perspective-origin: 50% 50%;
}

.nff-splash-glow {
	position: absolute;
	width: 640px; height: 640px;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	background:
		radial-gradient(circle, rgba(253,184,19,0.22) 0%, rgba(0,162,255,0.10) 35%, transparent 65%);
	filter: blur(50px);
	z-index: 0;
	animation: splash-pulse 2.4s ease-in-out infinite alternate;
}
@keyframes splash-pulse {
	0%   { opacity: 0.45; transform: translate(-50%, -50%) scale(0.82); }
	100% { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

/* Sparkles — 8 floating particles around the logo. Each has a unique
   start position + duration + color so the field looks organic, not synced. */
.nff-splash-sparks {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 600px; height: 600px;
	pointer-events: none;
	z-index: 1;
}
.nff-spark {
	position: absolute;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--brand-mustard);
	box-shadow: 0 0 8px 2px var(--brand-mustard);
	opacity: 0;
	animation: spark-float 3.2s ease-in-out infinite;
}
.nff-spark--1 { top: 12%; left: 18%; animation-delay: 0.1s; }
.nff-spark--2 { top:  6%; left: 62%; background: var(--brand-cyan); box-shadow: 0 0 8px 2px var(--brand-cyan); animation-delay: 0.4s; animation-duration: 3.6s; }
.nff-spark--3 { top: 30%; left: 88%; animation-delay: 0.8s; animation-duration: 3.0s; }
.nff-spark--4 { top: 68%; left: 92%; background: var(--brand-cyan); box-shadow: 0 0 8px 2px var(--brand-cyan); animation-delay: 1.1s; animation-duration: 3.4s; }
.nff-spark--5 { top: 86%; left: 70%; animation-delay: 0.3s; animation-duration: 2.8s; }
.nff-spark--6 { top: 80%; left: 22%; animation-delay: 0.6s; animation-duration: 3.6s; }
.nff-spark--7 { top: 54%; left:  4%; background: var(--brand-cyan); box-shadow: 0 0 8px 2px var(--brand-cyan); animation-delay: 0.9s; animation-duration: 3.2s; }
.nff-spark--8 { top: 22%; left:  6%; animation-delay: 1.3s; animation-duration: 3.0s; }
@keyframes spark-float {
	0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
	30%  { opacity: 1; transform: translate(8px, -12px) scale(1); }
	60%  { opacity: 1; transform: translate(-6px, -22px) scale(0.9); }
	100% { opacity: 0; transform: translate(4px, -34px) scale(0.5); }
}

.nff-splash-logo-wrap {
	position: relative; z-index: 1;
	transform-style: preserve-3d;
	animation:
		splash-logo-enter 1.4s var(--ease-out-expo) both,
		splash-logo-float 5s ease-in-out 1.4s infinite alternate;
}
.nff-splash-logo {
	width: 360px; max-width: 72vw;
	height: auto;
	filter:
		drop-shadow(0 25px 60px rgba(0,0,0,0.7))
		drop-shadow(0 0 40px rgba(253,184,19,0.28))
		drop-shadow(0 0 80px rgba(0,162,255,0.15));
}
@keyframes splash-logo-enter {
	0%   { opacity: 0; transform: scale(0.55) rotateY(45deg) rotateX(-12deg) translateZ(-200px); }
	55%  { opacity: 1; transform: scale(1.08) rotateY(-6deg) rotateX(3deg) translateZ(20px); }
	100% { opacity: 1; transform: scale(1) rotateY(0deg) rotateX(0deg) translateZ(0); }
}
@keyframes splash-logo-float {
	0%   { transform: translateY(0) rotateY(-3deg); }
	100% { transform: translateY(-10px) rotateY(3deg); }
}

.nff-splash-loader {
	width: 220px; height: 2px;
	background: #FFFFFF12;
	border-radius: 99px;
	overflow: hidden;
	position: relative; z-index: 1;
}
.nff-splash-bar {
	display: block;
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 40%;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--brand-cyan) 25%,
		var(--brand-mustard) 75%,
		transparent 100%);
	border-radius: 99px;
	animation: splash-loader 1.6s ease-in-out infinite;
}
@keyframes splash-loader {
	0%   { left: -40%; }
	100% { left: 100%; }
}

.nff-splash-tagline {
	font-family: var(--font-display);
	font-weight: 500;
	font-style: italic;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: #FFFFFFA0;
	margin: 0;
	text-align: center;
	max-width: 32ch;
	text-wrap: balance;
	opacity: 0;
	animation: splash-tagline 900ms var(--ease-out-expo) 800ms forwards;
}
@keyframes splash-tagline {
	0%   { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
	.nff-splash-stage { gap: 24px; padding: 0 20px; }
	.nff-splash-skip { top: 16px; right: 16px; padding: 7px 13px; }
	.nff-splash-tagline { font-size: 13px; padding: 0 24px; }

	/* Logo: smaller, simpler shadow stack (3 stacked drop-shadows looked like
	   a dark block in tight viewports). One soft shadow + a faint glow only. */
	.nff-splash-logo {
		width: 260px;
		filter:
			drop-shadow(0 14px 30px rgba(0,0,0,0.45))
			drop-shadow(0 0 24px rgba(253,184,19,0.18));
	}

	/* Kill the continuous Y-axis float — at this size the rotation reads as
	   "tilted/broken" rather than "alive". Keep the entry, drop the loop. */
	.nff-splash-logo-wrap {
		animation: splash-logo-enter-mobile 1.2s var(--ease-out-expo) both;
	}
	@keyframes splash-logo-enter-mobile {
		0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
		100% { opacity: 1; transform: scale(1)   translateY(0); }
	}

	/* Glow: viewport-relative + much stronger blur so the bounding box of the
	   gradient never shows as a "square shadow". 90vmin makes it scale with
	   the device, blur(80px) dissolves any hard edge. */
	.nff-splash-glow {
		width: 90vmin; height: 90vmin;
		filter: blur(80px);
		animation: splash-pulse-mobile 3s ease-in-out infinite alternate;
		background:
			radial-gradient(circle, rgba(253,184,19,0.18) 0%, rgba(0,162,255,0.06) 40%, transparent 70%);
	}
	@keyframes splash-pulse-mobile {
		0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
		100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
	}

	/* Sparks: scale down their orbit so they stay near the logo, not flying
	   off-screen creating clipping artefacts. */
	.nff-splash-sparks { width: 86vmin; height: 86vmin; }
	.nff-spark { width: 4px; height: 4px; box-shadow: 0 0 6px 1.5px currentColor; }

	/* Loader narrower */
	.nff-splash-loader { width: 160px; }
}

@media (max-width: 380px) {
	.nff-splash-logo { width: 220px; }
	.nff-splash-tagline { font-size: 12px; }
	.nff-splash-loader { width: 140px; }
}

/* ============ MOTION GUARD ============ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.read-progress > div { transition: none; }
	.util-live::before { animation: none; }
	/* Splash still shows briefly so brand impression survives, just static */
	.nff-splash-logo-wrap,
	.nff-splash-glow,
	.nff-splash-bar,
	.nff-splash-tagline,
	.nff-splash-skip {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.nff-splash-glow { transform: translate(-50%, -50%) !important; }
	.nff-splash-bar { width: 100%; background: var(--brand-mustard); }
	.nff-splash-sparks { display: none; }
	.lockup--header:hover .lockup-img { transform: none; filter: none; }
}

/* ============================================================
   PAGE SHELL — vertical rhythm for non-homepage templates.
   Mirrors the homepage's <section> padding (var(--space-16)) so
   every page on the site breathes the same way. Applied to <main>
   on page.php, single.php, search.php, 404.php.
   ============================================================ */
.page-shell {
	padding: var(--space-16) 0;
	min-height: 50vh;
}
@media (max-width: 800px) {
	.page-shell { padding: var(--space-12) 0; }
}
@media (max-width: 480px) {
	.page-shell { padding: var(--space-10) 0; }
}

/* ============================================================
   POST HERO + PROSE — used by page.php (institutional/legal pages).
   Hero matches the visual gravity of homepage section heads. Prose
   uses the same Fraunces stack as .single-content for continuity,
   with consistent vertical rhythm between every block-level child.
   ============================================================ */
.post-hero {
	max-width: var(--container-narrow);
	margin: 0 auto var(--space-12);
	text-align: center;
	padding-bottom: var(--space-8);
	border-bottom: 1px solid var(--rule);
}
.post-hero__title {
	font-family: var(--font-display);
	font-size: clamp(var(--text-3xl), 4.4vw, var(--text-5xl));
	font-weight: 800;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tighter);
	text-wrap: balance;
	margin: 0;
}

.post-prose {
	max-width: var(--container-narrow);
	margin: 0 auto;
	font-family: var(--font-display);
	font-size: var(--text-md);     /* 18px Fraunces — long-read sweet spot */
	line-height: 1.7;
	color: var(--fg);
	text-wrap: pretty;
	hanging-punctuation: first last;
}

/* Default rhythm between any two adjacent block-level children */
.post-prose > * + * { margin-top: var(--space-5); }

.post-prose h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	margin-top: var(--space-12);
	margin-bottom: var(--space-3);
}
.post-prose h2:first-child { margin-top: 0; }

.post-prose h3 {
	font-family: var(--font-display);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	margin-top: var(--space-8);
	margin-bottom: var(--space-2);
}

.post-prose h4 {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: 700;
	margin-top: var(--space-6);
	margin-bottom: var(--space-2);
}

.post-prose p + p { margin-top: var(--space-4); }

.post-prose a {
	color: var(--brand-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-thickness var(--duration-fast);
}
.post-prose a:hover { text-decoration-thickness: 2px; }
[data-theme="dark"] .post-prose a { color: var(--brand-cyan); }

.post-prose ul,
.post-prose ol {
	padding-left: var(--space-6);
}
.post-prose li + li { margin-top: var(--space-2); }
.post-prose li { line-height: 1.55; }

.post-prose strong {
	font-weight: 700;
	color: var(--fg);
}

.post-prose blockquote {
	border-left: 3px solid var(--brand-mustard);
	padding-left: var(--space-5);
	margin-left: 0;
	font-style: italic;
	color: var(--fg-muted);
}

.post-prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: var(--space-10) 0;
}

.post-prose img,
.post-prose figure {
	max-width: 100%;
	border-radius: var(--radius-md);
}

.post-prose code {
	font-family: var(--font-mono);
	font-size: 0.92em;
	background: var(--bg-sunken);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
}

/* ============================================================
   SEARCH RESULTS — head + grid + empty state
   ============================================================ */
.search-head {
	max-width: var(--container-narrow);
	margin: 0 auto var(--space-10);
	text-align: center;
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--rule);
}
.search-head h1 {
	font-family: var(--font-display);
	font-size: clamp(var(--text-2xl), 3.2vw, var(--text-4xl));
	font-weight: 800;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	margin: 0;
	text-wrap: balance;
}
.search-head h1 span {
	color: var(--brand-blue);
	font-style: italic;
}
[data-theme="dark"] .search-head h1 span { color: var(--brand-cyan); }
.search-empty {
	text-align: center;
	color: var(--fg-muted);
	font-family: var(--font-display);
	font-size: var(--text-md);
	padding: var(--space-12) 0;
}

/* ============================================================
   404 — token-driven, no inline styles
   ============================================================ */
.notfound {
	max-width: var(--container-narrow);
	margin: 0 auto;
	text-align: center;
	padding: var(--space-8) var(--gutter);
}
.notfound-code {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(72px, 12vw, 140px);
	line-height: 1;
	letter-spacing: var(--tracking-tighter);
	color: var(--brand-blue);
	margin: 0 0 var(--space-4);
}
[data-theme="dark"] .notfound-code { color: var(--brand-cyan); }
.notfound-title {
	font-family: var(--font-display);
	font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
	font-weight: 700;
	margin: 0 0 var(--space-4);
	letter-spacing: var(--tracking-tight);
}
.notfound-lead {
	color: var(--fg-muted);
	font-size: var(--text-md);
	line-height: 1.6;
	margin: 0 auto var(--space-8);
	max-width: 50ch;
	font-family: var(--font-display);
}
.notfound-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	background: var(--bg-inverse);
	color: var(--fg-on-blue);
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	font-family: var(--font-ui);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: transform var(--duration-base) var(--ease-out-expo),
	            box-shadow var(--duration-base);
}
.notfound-cta:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-blue);
}

/* ============================================================
   AUTHOR BOX — PublishPress Authors plugin override
   ============================================================
   The plugin injects this block at the end of single posts. We re-skin
   it to match the Brasserie editorial design system: circular avatar
   with mustard ring, Fraunces display name with underline sweep, muted
   bio prose, mustard-on-hover icon buttons for meta. Layout collapses
   to single-column on mobile.
   ============================================================ */
.pp-multiple-authors-boxes-wrapper {
	margin: var(--space-12) auto var(--space-8);
	padding: 0;
	border: 0;
	background: transparent;
}

/* "Author" header — small mono eyebrow with horizontal rule, mirrors
   .archive-eyebrow pattern from the category pages */
.pp-multiple-authors-boxes-wrapper .box-header-title,
.pp-multiple-authors-boxes-wrapper .widget-title {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-mustard);
	margin: 0 0 var(--space-5);
	padding: 0 0 var(--space-3);
	border-bottom: 1px solid var(--rule);
	display: flex;
	align-items: center;
	gap: var(--space-2);
}
.pp-multiple-authors-boxes-wrapper .box-header-title::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 1px;
	background: var(--brand-mustard);
	opacity: 0.6;
}

/* Reset plugin's default list styling */
.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

/* Author card — boxed layout with mustard accent rule on the left */
.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li {
	list-style: none;
	margin: 0;
	padding: var(--space-6) var(--space-8);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-left: 3px solid var(--brand-mustard);
	border-radius: var(--radius-md);
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: var(--space-6);
	align-items: start;
	transition: transform var(--duration-base) var(--ease-out-expo),
	            border-color var(--duration-base),
	            box-shadow var(--duration-base);
}
.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li:hover {
	border-color: var(--border-strong);
	border-left-color: var(--brand-mustard);
	box-shadow: var(--shadow-2);
	transform: translateY(-2px);
}

@media (max-width: 600px) {
	.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li {
		grid-template-columns: 1fr;
		padding: var(--space-5);
		gap: var(--space-4);
	}
}

/* Avatar — circular with double-ring effect (bg color spacer + mustard outer) */
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-avatar {
	width: 88px;
	height: 88px;
	margin: 0;
}
.pp-multiple-authors-boxes-wrapper .avatar-image {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bg-sunken);
	box-shadow: 0 0 0 3px var(--bg-elevated),
	            0 0 0 4px var(--brand-mustard),
	            var(--shadow-1);
	transition: transform var(--duration-base) var(--ease-out-expo);
}
.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li:hover .avatar-image {
	transform: scale(1.04) rotate(-2deg);
}
.pp-multiple-authors-boxes-wrapper .avatar-image img,
.pp-multiple-authors-boxes-wrapper .multiple_authors_guest_author_avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border: 0;
	border-radius: 0;
}

/* Author name — Fraunces display with underline sweep on hover */
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-name {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: var(--tracking-tight);
	margin: 0 0 var(--space-2);
}
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-name a {
	color: var(--fg);
	text-decoration: none;
	background-image: linear-gradient(transparent 62%, rgba(253, 184, 19, 0.6) 62%);
	background-repeat: no-repeat;
	background-size: 0% 100%;
	background-position: 0 0;
	transition: background-size 360ms var(--ease-out-expo);
	padding: 0 1px;
}
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-name a:hover {
	background-size: 100% 100%;
}

/* Bio description */
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-description {
	font-family: var(--font-display);
	font-size: var(--text-base);
	line-height: 1.55;
	color: var(--fg-muted);
	margin: 0 0 var(--space-4);
	text-wrap: pretty;
}
.pp-multiple-authors-boxes-wrapper .pp-author-boxes-description p {
	margin: 0;
}

/* Meta icon buttons — email, website, social */
.pp-multiple-authors-boxes-wrapper .ppma-author-field-meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	color: var(--fg-muted);
	background: transparent;
	margin: 0 6px 0 0;
	text-decoration: none;
	transition: color var(--duration-fast),
	            background var(--duration-fast),
	            border-color var(--duration-fast),
	            transform var(--duration-fast) var(--ease-out-expo);
}
.pp-multiple-authors-boxes-wrapper .ppma-author-field-meta:hover {
	color: var(--n-1000);
	background: var(--brand-mustard);
	border-color: var(--brand-mustard);
	transform: translateY(-1px);
}
.pp-multiple-authors-boxes-wrapper .ppma-author-field-meta .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

/* Dark mode adjustments */
[data-theme="dark"] .pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li {
	background: var(--bg-elevated);
	border-color: var(--border);
	border-left-color: var(--brand-mustard);
}
[data-theme="dark"] .pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li:hover {
	box-shadow: 0 8px 24px -8px rgba(0, 162, 255, 0.25);
}
[data-theme="dark"] .pp-multiple-authors-boxes-wrapper .pp-author-boxes-name a {
	background-image: linear-gradient(transparent 62%, rgba(0, 162, 255, 0.45) 62%);
}
[data-theme="dark"] .pp-multiple-authors-boxes-wrapper .ppma-author-field-meta:hover {
	color: var(--n-1000);
	background: var(--brand-cyan);
	border-color: var(--brand-cyan);
}

/* Reduced motion — no transforms, no transitions */
@media (prefers-reduced-motion: reduce) {
	.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li,
	.pp-multiple-authors-boxes-wrapper .avatar-image,
	.pp-multiple-authors-boxes-wrapper .ppma-author-field-meta,
	.pp-multiple-authors-boxes-wrapper .pp-author-boxes-name a {
		transition: none;
	}
	.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li:hover {
		transform: none;
	}
	.pp-multiple-authors-boxes-wrapper .pp-multiple-authors-boxes-li:hover .avatar-image {
		transform: none;
	}
}
