*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #201614;
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01", "cv11";
}
img,
svg {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	color: inherit;
}

:root {
	--red-nav: #b8352a;
	--red-accent: #c0392b;
	--red-dot: #b8352a;
	--red: #c0392b;
	--red-dark: #a42f22;
	--forest-deep: #3d5a3f;
	--forest-mid: #5a7a5f;
	--cream: #faf7f2;
	--cream-warm: #f4ede2;
	--sand: #eee4d3;
	--wood: #8b6f47;
	--charcoal: #201614;
	--charcoal-soft: #3a2d26;
	--ink-grey: #7a6b60;
	--ink: #201614;
	--ink-2: #2d201b;
	--grey: #7a6b60;
	--grey-soft: #f4ede2;
	--line: #e6ddc9;
	--tip-bg: #f3ecdc;
	--warn-bg: #fbeee7;
	--danger-bg: #2a1a18;
	--container: 1280px;
	--gutter: 20px;
}
@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}
}
@media (min-width: 1200px) {
	:root {
		--gutter: 48px;
	}
}
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

h1,
h2,
h3,
h4 {
	margin: 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	font-family: "JetBrains Mono", monospace;
}
.eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
}
.eyebrow .dot {
	width: 3px;
	height: 3px;
	background: currentColor;
	opacity: 0.55;
	border-radius: 50%;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 24px;
	min-height: 48px;
	font-size: 14px;
	font-weight: 600;
	transition:
		background 0.18s,
		color 0.18s,
		border-color 0.18s;
	white-space: nowrap;
}
.btn--red {
	background: var(--red);
	color: #fdfbf7;
}
.btn--red:hover {
	background: var(--red-dark);
}
.btn--ghost-light {
	background: transparent;
	color: #fdfbf7;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.1);
}
.btn--outline-red {
	background: transparent;
	color: var(--red);
	box-shadow: inset 0 0 0 1.5px var(--red);
}
.btn--outline-red:hover {
	background: var(--red);
	color: #fdfbf7;
}
.btn--full {
	width: 100%;
}

/* NAV */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--red-nav);
	color: #fdfbf7;
	border-bottom: 2px solid var(--forest-mid);
}
.nav__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 72px;
}
.nav__logo {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: baseline;
}
.nav__logo-dot {
	color: #faf7f2;
}
.nav__menu {
	display: none;
	gap: 28px;
	margin-left: 32px;
	flex: 1;
}
.nav__menu a {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	color: #fdfbf7;
	padding: 24px 0;
	transition: color 0.15s;
}
.nav__menu a:hover,
.nav__menu a.current {
	color: #fdfbf7;
}
.nav__menu a.current::after,
.nav__menu a:hover::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: #fdfbf7;
}
.nav__cta {
	margin-left: auto;
	display: none;
}
.nav__cta .btn {
	min-height: 44px;
	padding: 0 20px;
	font-size: 14px;
	background: #faf7f2;
	color: var(--red-nav);
	border: none;
}
.nav__cta .btn:hover {
	background: #fff;
	color: var(--red-nav);
}
.nav__burger {
	margin-left: auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fdfbf7;
}
.nav__burger svg {
	width: 22px;
	height: 22px;
}
@media (min-width: 1024px) {
	.nav__menu {
		display: flex;
	}
	.nav__cta {
		display: inline-flex;
	}
	.nav__burger {
		display: none;
	}
}
.drawer {
	position: fixed;
	inset: 0;
	background: var(--ink);
	color: #fdfbf7;
	z-index: 60;
	transform: translateX(100%);
	transition: transform 0.28s;
	display: flex;
	flex-direction: column;
}
.drawer.open {
	transform: translateX(0);
}
.drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	padding: 0 var(--gutter);
	border-bottom: 1px solid rgba(230, 221, 201, 0.12);
	box-shadow: inset 0 3px 0 var(--red);
}
.drawer__close {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.drawer__links {
	display: flex;
	flex-direction: column;
	padding: 24px var(--gutter);
	gap: 2px;
}
.drawer__links a {
	padding: 16px 0;
	font-size: 20px;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer__cta {
	padding: 24px var(--gutter);
	margin-top: auto;
}

/* READING PROGRESS */
.progress-bar {
	position: fixed;
	top: 72px;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	z-index: 45;
}
.progress-bar__fill {
	height: 100%;
	width: 0%;
	background: var(--red);
	transition: width 0.05s linear;
}

/* ============== HERO (image with title overlay) ============== */
.article-hero {
	position: relative;
	background: var(--charcoal);
	color: #fdfbf7;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
@media (min-width: 768px) {
	.article-hero {
		min-height: 560px;
	}
}
@media (min-width: 1200px) {
	.article-hero {
		min-height: 640px;
	}
}
/* v17m — shorter hero on mobile so landscape source images crop less aggressively
   at narrow viewports. At 380x390 the ratio is near-square, preserving ~70% of
   source horizontal extent vs ~47% at the previous 460x390. */
@media (max-width: 600px) {
	.article-hero {
		min-height: 380px;
	}
}
.article-hero__img {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			900px 480px at 28% 76%,
			rgba(192, 57, 43, 0.18),
			transparent 70%
		),
		linear-gradient(150deg, #3a2d26 0%, #201614 60%, #050505 100%);
}
.article-hero__img::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		95deg,
		rgba(0, 0, 0, 0.4) 0px,
		rgba(0, 0, 0, 0.4) 2px,
		transparent 2px,
		transparent 30px,
		rgba(255, 255, 255, 0.04) 30px,
		rgba(255, 255, 255, 0.04) 32px
	);
	opacity: 0.9;
}
/* v17e (Bug 1): hide stripe overlay when a real hero image is set via inline style */
.article-hero__img[style*="background-image"]::before {
	display: none;
}
.article-hero__img::after {
	content: "";
	position: absolute;
	inset: 0;
	/* v17m — darken BOTH ends of hero so breadcrumb (top) AND title (bottom)
	   stay legible on any image. Middle ~25-55% stays clear so the image reads. */
	background: linear-gradient(
		to bottom,
		rgba(10, 6, 5, 0.55) 0%,
		rgba(10, 6, 5, 0.15) 12%,
		rgba(10, 6, 5, 0) 30%,
		rgba(10, 6, 5, 0) 55%,
		rgba(10, 6, 5, 0.45) 75%,
		rgba(10, 6, 5, 0.85) 100%
	);
}
.article-hero__tag {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	font:
		600 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	border: 1px dashed rgba(255, 255, 255, 0.3);
	z-index: 2;
}
.article-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 32px 0 36px;
}
@media (min-width: 768px) {
	.article-hero__inner {
		padding: 48px 0 56px;
	}
}
.article-hero__crumbs {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
	font:
		500 12px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 22px;
}
.article-hero__crumbs a {
	color: rgba(255, 255, 255, 0.7);
}
.article-hero__crumbs a:hover {
	color: #fdfbf7;
}
.article-hero__crumbs .sep {
	color: rgba(255, 255, 255, 0.3);
}
.article-hero__crumbs .here {
	color: #fdfbf7;
}

.article-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font:
		600 11px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.article-hero__eyebrow .cat-tag {
	padding: 4px 9px;
	background: var(--red);
	color: #fdfbf7;
}
.article-hero__eyebrow .meta {
	color: rgba(255, 255, 255, 0.7);
}

.article-hero__title {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: clamp(34px, 4vw + 12px, 68px);
	letter-spacing: -0.025em;
	line-height: 1.02;
	max-width: 22ch;
	margin: 0 0 20px;
	color: #fdfbf7;
	text-wrap: balance;
}
.article-hero__lede {
	font-size: clamp(16px, 0.4vw + 14px, 19px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	max-width: 56ch;
	text-wrap: pretty;
}

/* meta strip — directly below hero, on cream. v17i: redesigned as a centered
   icon+text row. Faas 2.4 #21 emptied the author block; v17h bumped padding
   but stats still floated right and blended into the cream background. Now:
   hide the empty author block entirely, center the stats, add inline SVG
   icons (calendar / clock / globe) before each stat, bump font 12->14px Inter,
   bump padding 48->64px desktop / 36->44px mobile. Cream bg stays — the
   centered icon row is visually grounded without needing a colored pill. */
.article-strip {
	background: var(--cream);
	border-bottom: 1px solid var(--line);
}
.article-strip__author {
	display: none;
}
.article-strip__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 64px 0;
	flex-wrap: wrap;
}
@media (max-width: 600px) {
	.article-strip__inner {
		padding: 44px 0;
	}
}
.article-strip__stats {
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
	font:
		500 14px / 1 "Inter",
		system-ui,
		sans-serif;
	color: var(--ink);
	letter-spacing: 0;
}
.article-strip__stats span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.article-strip__stats span svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	stroke: var(--grey);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.article-strip__stats span + span::before {
	display: none;
}

/* ============== PROGRESS BREADCRUMB (1-2-3) ============== */
/* Not used currently — replaced by clearer crumb in hero. Kept for back-compat. */

/* ============== ARTICLE BODY ============== */
.article-body {
	padding: 48px 0 80px;
}
@media (min-width: 900px) {
	.article-body {
		padding: 64px 0 96px;
	}
}

.article-body__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}
@media (min-width: 900px) {
	.article-body__layout {
		grid-template-columns: 220px minmax(0, 1fr) 240px;
		gap: 56px;
	}
}
@media (min-width: 1200px) {
	.article-body__layout {
		grid-template-columns: 240px minmax(0, 680px) 240px;
		gap: 72px;
		justify-content: center;
	}
}

/* TOC */
.toc {
	display: none;
}
@media (min-width: 900px) {
	.toc {
		display: block;
		position: sticky;
		top: 100px;
		align-self: start;
	}
}
.toc__label {
	font:
		700 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--grey);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}
.toc__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	counter-reset: toc;
}
.toc__list a {
	display: flex;
	gap: 10px;
	padding: 8px 0 8px 14px;
	border-left: 2px solid var(--line);
	font-size: 13.5px;
	color: var(--grey);
	line-height: 1.4;
	transition:
		color 0.15s,
		border-color 0.15s;
	counter-increment: toc;
}
.toc__list a::before {
	content: counter(toc, decimal-leading-zero);
	font:
		600 10px / 1.4 "JetBrains Mono",
		monospace;
	color: var(--line);
	flex-shrink: 0;
	padding-top: 2px;
	transition: color 0.15s;
}
.toc__list a:hover {
	color: var(--ink);
	border-left-color: #b0b0b0;
}
.toc__list a:hover::before {
	color: var(--ink);
}
.toc__list a.on {
	color: var(--red);
	border-left-color: var(--red);
	font-weight: 600;
}
.toc__list a.on::before {
	color: var(--red);
}

/* PROSE */
.prose {
	max-width: 680px;
}
.prose > * {
	margin: 0 0 22px;
}
.prose p {
	font-size: 18px;
	line-height: 1.7;
	color: #2d201b;
}
.prose > p:first-of-type::first-letter {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: 76px;
	float: left;
	line-height: 0.86;
	padding: 6px 14px 0 0;
	color: var(--red);
}
.prose > .drop-cap::first-letter {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: 76px;
	float: left;
	line-height: 0.86;
	padding: 6px 14px 0 0;
	color: var(--red);
}
@media (max-width: 600px) {
	.prose > p:first-of-type::first-letter,
	.prose > .drop-cap::first-letter {
		font-size: 56px;
		padding: 4px 10px 0 0;
	}
}
.prose h2 {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: clamp(26px, 1.4vw + 14px, 34px);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 60px 0 20px;
	scroll-margin-top: 120px;
	position: relative;
	padding-top: 18px;
}
.prose h2::before {
	content: "";
	position: absolute;
	/* v17e (Bug 4): anchor to the left margin so the red accent rule sits BESIDE
	   the heading text, not on top of the first letter. Aligns with the body
	   paragraph leading edge. */
	top: 24px;
	left: -18px;
	width: 4px;
	height: 28px;
	background: var(--red);
}
@media (max-width: 900px) {
	.prose h2::before {
		left: -10px;
		height: 24px;
		top: 22px;
	}
}
.prose h2:first-child {
	margin-top: 0;
}
.prose h3 {
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 20px;
	letter-spacing: -0.01em;
	margin: 36px 0 10px;
}
.prose ul,
.prose ol {
	padding-left: 22px;
}
.prose ul li,
.prose ol li {
	font-size: 17px;
	line-height: 1.65;
	color: #2d201b;
	margin-bottom: 8px;
}
.prose ul li::marker {
	color: var(--red);
}
.prose ol li::marker {
	color: var(--red);
	font-weight: 700;
	font-family: "JetBrains Mono", monospace;
}

.prose a:not(.btn) {
	color: var(--ink);
	border-bottom: 1.5px solid var(--red);
	font-weight: 500;
}
.prose a:not(.btn):hover {
	color: var(--red);
}

.prose strong {
	font-weight: 700;
	color: var(--ink);
}
.prose em {
	font-style: italic;
}

/* ============== PULL QUOTE w/ wave decoration ============== */
.pullquote {
	margin: 56px -8px;
	padding: 8px 0;
	position: relative;
	text-align: left;
}
@media (min-width: 900px) {
	.pullquote {
		margin: 64px -64px;
		padding: 0 0 0 8px;
	}
}
.pullquote__mark {
	font-family: "Fraunces", serif;
	font-style: italic;
	font-weight: 400;
	font-size: 88px;
	line-height: 0.6;
	color: var(--red);
	margin-bottom: 6px;
	display: block;
	user-select: none;
}
.pullquote__text {
	font-family: "Fraunces", serif;
	font-style: italic;
	font-weight: 400;
	font-size: clamp(22px, 1.4vw + 12px, 30px);
	letter-spacing: -0.012em;
	line-height: 1.32;
	color: var(--ink);
	margin: 0 0 18px;
	text-wrap: balance;
}
.pullquote__wave {
	display: block;
	width: 96px;
	height: 12px;
	margin: 4px 0 10px;
	color: var(--red);
	opacity: 0.85;
}
.pullquote__cite {
	font-family: "JetBrains Mono", monospace;
	font-style: normal;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grey);
}

/* ============== CALLOUTS (variants) ============== */
.callout {
	margin: 40px 0;
	padding: 22px 24px 22px 26px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	position: relative;
	border-left: 4px solid var(--ink);
}
.callout__title {
	font:
		700 11px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.callout__title::before {
	content: "";
	width: 8px;
	height: 8px;
	background: currentColor;
	display: inline-block;
}
.callout__body {
	font-size: 16px;
	line-height: 1.55;
	color: #2d201b;
}
.callout__body p {
	margin: 0 0 10px;
	font-size: 16px;
}
.callout__body p:last-child {
	margin-bottom: 0;
}
.callout__body strong {
	color: inherit;
}

.callout--tip {
	background: var(--tip-bg);
	border-left-color: var(--wood);
}
.callout--tip .callout__title {
	color: var(--wood);
}

.callout--warn {
	background: var(--warn-bg);
	border-left-color: var(--red);
}
.callout--warn .callout__title {
	color: var(--red);
}

.callout--danger {
	background: var(--danger-bg);
	border-left-color: var(--red);
	color: #fdfbf7;
}
.callout--danger .callout__title {
	color: #fdfbf7;
}
.callout--danger .callout__title::before {
	background: var(--red);
}
.callout--danger .callout__body {
	color: rgba(253, 251, 247, 0.92);
}
.callout--danger .callout__body p,
.callout--danger .callout__body li,
.callout--danger .callout__body a {
	color: rgba(253, 251, 247, 0.92);
}
.callout--danger .callout__body strong {
	color: #fdfbf7;
}

/* v17e (Bugs 5 + 6): defensive drop-cap suppression inside dark callouts + CTAs.
   The drop-cap rule `.prose > p:first-of-type::first-letter` should ONLY match the
   first paragraph of the article body, never inside nested callout/CTA blocks.
   These overrides neutralize any leak (esp. if browser misinterprets first-of-type
   when callouts contain only one <p>). */
.callout ::first-letter,
.article-cta ::first-letter,
.cta-card ::first-letter,
.pullquote ::first-letter {
	color: inherit;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	float: none;
	line-height: inherit;
	padding: 0;
}

/* v17o — User reported the "T" of "TASUTA UTILISEERIMINE" eyebrow label in the
   red CTA callout was unreadable (rendering as red-on-red so users saw only
   "ASUTA UTILISEERIMINE"). The v17e suppressor uses `inherit` which SHOULD work,
   but some browsers (esp. Safari/iOS) still apply a residual ::first-letter
   styling from the drop-cap rule. Defensive belt-and-suspenders: explicitly
   force first-letter color + size + transform inside .article-cta to match the
   parent label styling. */
.article-cta__label,
.article-cta__label::first-letter,
.article-cta__title,
.article-cta__title::first-letter,
.article-cta__body,
.article-cta__body::first-letter {
	color: inherit !important;
}
.article-cta__label::first-letter {
	color: rgba(255, 255, 255, 0.95) !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-family: inherit !important;
	float: none !important;
	padding: 0 !important;
	line-height: inherit !important;
}

/* Comparison table */
.compare {
	margin: 40px 0;
	border: 1px solid var(--line);
	overflow-x: auto;
}
.compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}
.compare th,
.compare td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
.compare thead th {
	background: var(--grey-soft);
	font:
		700 11px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grey);
}
.compare thead th:nth-child(2) {
	color: var(--red);
}
.compare thead th:nth-child(3) {
	color: var(--ink);
}
.compare tbody td:first-child {
	font-weight: 600;
	color: var(--ink);
	font-size: 13.5px;
	width: 36%;
}
.compare tbody tr:last-child td {
	border-bottom: 0;
}
.compare tbody tr:hover {
	background: var(--cream);
}
.compare tbody td:nth-child(n + 2) {
	font-family: "JetBrains Mono", monospace;
	font-size: 13.5px;
}

/* ============== INLINE IMG with mono caption ============== */
.inline-img {
	margin: 44px -8px;
}
@media (min-width: 900px) {
	.inline-img {
		margin: 48px -64px;
	}
}
.inline-img__figure {
	aspect-ratio: 16 / 9;
	background: linear-gradient(140deg, #5c3a24, #2a1a10);
	position: relative;
	overflow: hidden;
}
.inline-img__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.inline-img__figure::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		95deg,
		rgba(40, 22, 18, 0.32) 0px,
		rgba(40, 22, 18, 0.32) 2px,
		transparent 2px,
		transparent 24px
	);
	pointer-events: none;
}
.inline-img__figure:has(img)::before {
	display: none;
}
.inline-img__figure:not(:has(img))::after {
	content: "REAL_PHOTO_TBD";
	position: absolute;
	top: 12px;
	left: 12px;
	font:
		600 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.12em;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.85);
	border: 1px dashed rgba(255, 255, 255, 0.35);
}
.inline-img__cap {
	padding: 12px 8px 0;
	font:
		500 12px / 1.5 "JetBrains Mono",
		monospace;
	letter-spacing: 0.02em;
	color: var(--grey);
}
.inline-img__cap b {
	color: var(--ink);
	font-weight: 600;
}
@media (min-width: 900px) {
	.inline-img__cap {
		padding: 12px 64px 0;
	}
}

/* ============== IN-ARTICLE CTA CARD ============== */
.article-cta {
	margin: 48px -8px;
	padding: 28px 24px;
	background: var(--red);
	color: #fdfbf7;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: center;
	position: relative;
	overflow: hidden;
}
@media (min-width: 700px) {
	.article-cta {
		grid-template-columns: 1fr auto;
		padding: 30px 32px;
		gap: 24px;
	}
}
@media (min-width: 900px) {
	.article-cta {
		margin: 56px -32px;
	}
}
.article-cta::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 100%;
	background-image: repeating-linear-gradient(
		105deg,
		rgba(255, 255, 255, 0.08) 0px,
		rgba(255, 255, 255, 0.08) 2px,
		transparent 2px,
		transparent 22px
	);
	pointer-events: none;
	opacity: 0.7;
}
.article-cta__copy {
	position: relative;
	z-index: 1;
}
.article-cta__label {
	font:
		700 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 8px;
}
.article-cta__title {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: clamp(20px, 1vw + 14px, 26px);
	letter-spacing: -0.015em;
	line-height: 1.18;
	margin: 0 0 6px;
	color: #fdfbf7;
	text-wrap: balance;
}
.article-cta__body {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	max-width: 48ch;
}
/* v17e (Bug 6): defeat .prose p { color: #2d201b } specificity inside CTA */
.prose .article-cta,
.prose .article-cta p,
.prose .article-cta .article-cta__body,
.prose .article-cta .article-cta__title {
	color: #fdfbf7;
}
.prose .article-cta .article-cta__body {
	color: rgba(255, 255, 255, 0.85);
}
.prose .article-cta .article-cta__label {
	color: rgba(255, 255, 255, 0.75);
}
.article-cta__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px;
	min-height: 48px;
	background: #fdfbf7;
	color: var(--red);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	transition: background 0.18s;
}
.article-cta__btn:hover {
	background: #fff;
}
.article-cta__btn svg {
	width: 16px;
	height: 16px;
}

/* ============== TAPE-RULE DIVIDER ============== */
.tape-rule {
	display: block;
	margin: 48px auto;
	width: 100%;
	max-width: 600px;
	height: 18px;
	color: var(--ink);
	opacity: 0.35;
}
@media (min-width: 900px) {
	.tape-rule {
		margin: 56px auto;
	}
}

/* ASIDE (right rail) */
.article-aside {
	display: none;
	flex-direction: column;
	gap: 28px;
}
@media (min-width: 900px) {
	.article-aside {
		display: flex;
		position: sticky;
		top: 100px;
		align-self: start;
	}
}

.share-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid var(--line);
	background: #fdfbf7;
}
.share-card__label {
	font:
		700 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--grey);
	margin-bottom: 4px;
}
/* v17f (Bug B): icons-only horizontal row layout. Text labels visually hidden
   via font-size:0 but kept in DOM for screen readers. SVG keeps its own size. */
.share-card__btns {
	display: flex;
	flex-direction: row;
	gap: 8px;
	flex-wrap: wrap;
}
.share-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--red);
	color: var(--red);
	font-size: 0;
	font-weight: 600;
	border-radius: 8px;
	transition:
		color 0.15s,
		background 0.15s,
		transform 0.1s;
}
.share-card__btn:hover {
	color: #fdfbf7;
	background: var(--red);
	transform: translateY(-1px);
}
.share-card__btn svg {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px;
	min-height: 16px;
	max-width: 16px;
	max-height: 16px;
	flex-shrink: 0;
	display: block;
	fill: currentColor;
}
.share-card__copy svg {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px;
	max-width: 14px;
	flex-shrink: 0;
	display: block;
}
.share-card__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px dashed var(--line);
	color: var(--grey);
	font-size: 0;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	transition:
		color 0.15s,
		border-color 0.15s,
		transform 0.1s;
}
.share-card__copy:hover,
.share-card__copy.is-copied {
	color: var(--ink);
	border-color: var(--ink);
}
.share-card__copy.is-copied {
	color: var(--red);
	border-color: var(--red);
}
.share-card__copy svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.cta-card {
	padding: 24px;
	background: var(--ink);
	color: #fdfbf7;
	position: relative;
	overflow: hidden;
}
.cta-card::before {
	content: "";
	position: absolute;
	top: -24px;
	right: -24px;
	width: 96px;
	height: 96px;
	background-image: repeating-linear-gradient(
		105deg,
		rgba(255, 255, 255, 0.06) 0px,
		rgba(255, 255, 255, 0.06) 2px,
		transparent 2px,
		transparent 14px
	);
	pointer-events: none;
}
.cta-card__label {
	font:
		700 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red);
}
.cta-card__title {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: 20px;
	letter-spacing: -0.015em;
	line-height: 1.2;
	margin: 14px 0 10px;
}
.cta-card__body {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.5;
	margin: 0 0 20px;
}
.cta-card .btn--red {
	width: 100%;
}

/* ARTICLE FOOT */
.article-foot {
	border-top: 1px solid var(--line);
	padding: 36px 0 0;
	margin-top: 48px;
	max-width: 680px;
}
.article-foot__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.tag-pill {
	padding: 6px 12px;
	border: 1px solid var(--line);
	font:
		500 12px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.04em;
	color: var(--grey);
	transition:
		border-color 0.15s,
		color 0.15s;
}
.tag-pill:hover {
	border-color: var(--ink);
	color: var(--ink);
}
.author-bio {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 24px;
	background: var(--grey-soft);
}
.author-bio__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--red-dark), var(--charcoal));
	font:
		700 18px / 64px "Inter",
		sans-serif;
	text-align: center;
	color: #fdfbf7;
	letter-spacing: 0.05em;
}
.author-bio__name {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 4px;
}
.author-bio__role {
	font:
		500 11px / 1 "JetBrains Mono",
		monospace;
	color: var(--grey);
	margin: 0 0 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.author-bio__text {
	font-size: 14px;
	color: var(--charcoal-soft);
	line-height: 1.55;
	margin: 0;
}

/* RELATED */
.related {
	background: var(--grey-soft);
	padding: 80px 0 88px;
}
@media (min-width: 768px) {
	.related {
		padding: 104px 0 120px;
	}
}
.related__head {
	margin-bottom: 40px;
	max-width: 62ch;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.related__title {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: clamp(26px, 2vw + 14px, 36px);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}
.related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 700px) {
	.related__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.related-card {
	display: flex;
	flex-direction: column;
	background: #fdfbf7;
	border: 1px solid var(--line);
	transition:
		transform 0.22s,
		box-shadow 0.22s;
}
.related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px -16px rgba(45, 25, 20, 0.25);
}
.related-card__img {
	aspect-ratio: 16 / 10;
	position: relative;
	background: #2d201b;
	overflow: hidden;
}
.related-card__img::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		100deg,
		rgba(0, 0, 0, 0.3) 0px,
		rgba(0, 0, 0, 0.3) 2px,
		transparent 2px,
		transparent 22px
	);
}
.related-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.related-card__img:has(img)::before {
	display: none;
}
/* v17f (Bug C): the generator sets `style="background-image: url(...)"` inline
   instead of rendering a child <img>, so :has(img) above never matches. Match
   the inline-style pattern instead so the stripe overlay hides when a real
   background image is present. */
.related-card__img[style*="background-image"]::before {
	display: none;
}
.related-card__img--a {
	background: linear-gradient(140deg, var(--charcoal-soft), var(--charcoal));
}
.related-card__img--b {
	background: linear-gradient(140deg, #5c3a24, #2a1a10);
}
.related-card__img--c {
	background: linear-gradient(140deg, var(--forest-deep), #14231a);
}
.related-card__body {
	padding: 22px 22px 24px;
}
.related-card__cat {
	font:
		700 10px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 10px;
}
.related-card__title {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: 19px;
	letter-spacing: -0.01em;
	line-height: 1.22;
	color: var(--ink);
	margin: 0 0 10px;
}
.related-card__meta {
	font:
		500 11px / 1 "JetBrains Mono",
		monospace;
	letter-spacing: 0.06em;
	color: var(--grey);
}

/* FOOTER */
.footer {
	background: var(--forest-deep);
	color: rgba(255, 255, 255, 0.75);
	padding: 64px 0 24px;
	font-size: 14px;
	line-height: 1.65;
}
.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 640px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.footer__grid {
		grid-template-columns: 1.2fr repeat(3, 1fr);
		gap: 48px;
	}
}
.footer__brand .nav__logo {
	font-size: 22px;
	margin-bottom: 16px;
	color: #fdfbf7;
}
.footer__tag {
	margin: 0 0 22px;
	max-width: 36ch;
}
.footer__social {
	display: flex;
	gap: 10px;
}
.footer__social a {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition:
		border-color 0.15s,
		color 0.15s;
	color: rgba(255, 255, 255, 0.7);
}
.footer__social a:hover {
	border-color: var(--red);
	color: #fdfbf7;
}
.footer__social svg {
	width: 16px;
	height: 16px;
}
.footer__col h4 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fdfbf7;
	margin: 0 0 18px;
}
.footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer__col a:hover {
	color: #fdfbf7;
}
.footer__bottom {
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}
