/* ==========================================================================
   popovicslaszlo.com
   Editorial. Self-hosted fonts. No third-party requests.
   ========================================================================== */

/* Fonts are loaded by a separate <link> to assets/fonts/fonts.css.
   No @import: it serialises the font request behind this file. */

/* --- Tokens ------------------------------------------------------------- */
:root {
	/* Paper and ink */
	--paper: #fbf9f6;
	--paper-raised: #ffffff;
	--paper-sunk: #f3efe9;
	--ink: #1a1815;
	--ink-soft: #3d3833;
	--ink-muted: #5d5750;
	--ink-faint: #6e6a62;
	--rule: #ddd6cb;
	--rule-strong: #c4bbad;

	/* Accent: burnt sienna, used sparingly */
	--accent: #a6522c;
	--accent-hover: #8a4223;
	--accent-wash: #f6ece5;

	/* Type */
	--serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Fluid scale — 1.25 ratio, clamped */
	--t-xs: 0.75rem;
	--t-sm: 0.875rem;
	--t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--t-md: clamp(1.125rem, 1.06rem + 0.32vw, 1.25rem);
	--t-lg: clamp(1.375rem, 1.24rem + 0.68vw, 1.75rem);
	--t-xl: clamp(1.75rem, 1.46rem + 1.45vw, 2.75rem);
	--t-2xl: clamp(2.25rem, 1.6rem + 3.2vw, 4.25rem);
	--t-3xl: clamp(2.75rem, 1.5rem + 6vw, 6.5rem);

	/* Space */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4rem;
	--s-9: 6rem;
	--s-10: 8rem;

	/* Layout */
	--measure: 68ch;
	--measure-wide: 82ch;
	--gutter: clamp(1.25rem, 5vw, 4rem);
	--max: 1180px;

	--radius: 2px;
	--transition: 160ms ease;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--t-base);
	line-height: 1.65;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

/* --- Typography --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0;
	text-wrap: balance;
}

h1 {
	font-size: var(--t-2xl);
}
h2 {
	font-size: var(--t-xl);
}
h3 {
	font-size: var(--t-lg);
}
h4 {
	font-size: var(--t-md);
	letter-spacing: 0;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: var(--rule-strong);
	transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

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

strong {
	font-weight: 600;
}

/* --- Utility ------------------------------------------------------------ */
.eyebrow {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
	margin: 0;
}

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

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: var(--paper);
	padding: var(--s-3) var(--s-4);
	font-family: var(--sans);
	font-size: var(--t-sm);
}

.skip-link:focus {
	left: var(--s-4);
	top: var(--s-4);
}

.skip-link:hover,
.skip-link:focus {
	color: var(--paper);
	text-decoration: none;
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.prose {
	max-width: var(--measure);
}

/* --- Header ------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	min-height: 4.25rem;
}

.wordmark {
	font-family: var(--serif);
	font-size: var(--t-md);
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.wordmark:hover {
	color: var(--accent);
}

.site-nav {
	display: flex;
	gap: clamp(0.875rem, 2vw, 2rem);
	align-items: center;
}

.site-nav a {
	font-family: var(--sans);
	font-size: var(--t-sm);
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
	letter-spacing: -0.005em;
	white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
	color: var(--ink);
	font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 2px;
	background: var(--accent);
}

@media (max-width: 720px) {
	.site-header {
		position: static;
	}
	.site-header .wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--s-3);
		padding-block: var(--s-4);
	}
	.site-nav {
		gap: var(--s-2) var(--s-4);
		width: 100%;
		flex-wrap: wrap;
	}
	.site-nav a {
		font-size: 0.8125rem;
	}
}

@media (max-width: 420px) {
	.site-nav {
		gap: var(--s-2) var(--s-3);
	}
	.site-nav a {
		font-size: 0.78rem;
	}
	.site-nav a[aria-current="page"]::after {
		margin-top: 1px;
	}
	.wordmark {
		font-size: 1.05rem;
	}
}

/* --- Home: hero --------------------------------------------------------- */
.hero {
	padding-block: clamp(3rem, 9vw, 7.5rem) clamp(2rem, 5vw, 4rem);
}

.hero .eyebrow {
	margin-bottom: var(--s-5);
}

.hero h1 {
	font-size: var(--t-3xl);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.02;
	max-width: 18ch;
}

.hero h1 em {
	font-style: italic;
	color: var(--accent);
}

.hero-sub {
	margin-top: var(--s-6);
	max-width: 54ch;
	font-size: var(--t-md);
	color: var(--ink-soft);
	line-height: 1.55;
}

.hero-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
	gap: var(--s-5) var(--s-4);
	margin-top: var(--s-7);
	padding-top: var(--s-5);
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-muted);
	max-width: 40rem;
}

.hero-meta strong {
	display: block;
	font-family: var(--serif);
	font-size: var(--t-lg);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* --- Home: systems ------------------------------------------------------ */
.systems {
	border-top: 1px solid var(--rule);
	padding-block: var(--s-2) 0;
}

.system {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr) minmax(0, 22rem);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	padding-inline: var(--gutter);
	max-width: var(--max);
	margin-inline: auto;
	border-bottom: 1px solid var(--rule);
	align-items: start;
}

.system-num {
	font-family: var(--serif);
	font-size: clamp(2.5rem, 1rem + 5vw, 4.5rem);
	font-weight: 400;
	line-height: 0.92;
	color: var(--ink-faint);
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	transition: color var(--transition);
}

.system:hover .system-num {
	color: var(--accent);
}

.system-body h2 {
	margin-bottom: var(--s-3);
}

.system-body h2 a {
	text-decoration: none;
	color: inherit;
}

.system-body h2 a:hover {
	color: var(--accent);
}

.system-years {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: var(--s-4);
	font-variant-numeric: tabular-nums;
}

.system-body p {
	color: var(--ink-soft);
	max-width: 52ch;
}

.system-links {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	margin-top: var(--s-4);
	padding: 0;
	list-style: none;
}

.system-links a {
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-muted);
	text-decoration: none;
	display: flex;
	gap: var(--s-2);
	align-items: baseline;
}

.system-links a::before {
	content: "→";
	color: var(--accent);
	flex-shrink: 0;
	font-size: 0.9em;
}

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

/* Third system: the live one. A card, not a full-bleed band — a full-bleed
   background needs either 100vw (horizontal overflow) or a clipping
   ancestor, and both cost more than they are worth here. */
.system--live {
	background: var(--paper-sunk);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding-inline: clamp(1.25rem, 3vw, 2.5rem);
	margin-block: var(--s-6);
	max-width: calc(var(--max) - var(--gutter) * 2);
}

.system--live .system-num {
	color: var(--accent);
}

.live-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-wash);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	margin-bottom: var(--s-4);
}

.live-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

@media (max-width: 960px) {
	.system {
		grid-template-columns: minmax(0, 4rem) minmax(0, 1fr);
	}
	.system-aside {
		grid-column: 2;
	}
}

@media (max-width: 600px) {
	.system {
		grid-template-columns: 1fr;
		gap: var(--s-4);
	}
	.system-num {
		font-size: 2.25rem;
	}
	.system-aside {
		grid-column: 1;
	}
}

/* --- Home: method ------------------------------------------------------- */
.method {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	border-bottom: 1px solid var(--rule);
}

.method-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: start;
}

.method h2 {
	font-size: var(--t-lg);
	font-weight: 400;
	font-style: italic;
	color: var(--ink-muted);
	max-width: 14ch;
}

.method-statement {
	font-size: var(--t-lg);
	line-height: 1.4;
	letter-spacing: -0.01em;
	max-width: 40ch;
	margin: 0;
}

.method-statement strong {
	font-weight: 600;
	color: var(--accent);
}

@media (max-width: 760px) {
	.method-inner {
		grid-template-columns: 1fr;
	}
	.method h2 {
		max-width: none;
	}
}

/* --- Home: current ------------------------------------------------------ */
.current {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--rule);
}

.current .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3) var(--s-6);
	align-items: baseline;
	justify-content: space-between;
}

.current p {
	margin: 0;
	color: var(--ink-soft);
	max-width: 56ch;
}

.current a {
	font-family: var(--sans);
	font-size: var(--t-sm);
	font-weight: 600;
	white-space: nowrap;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--sans);
	font-size: var(--t-sm);
	font-weight: 600;
	line-height: 1;
	padding: 0.8rem 1.25rem;
	border-radius: var(--radius);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background var(--transition), color var(--transition),
		border-color var(--transition), transform var(--transition);
	cursor: pointer;
}

.btn--primary {
	background: var(--ink);
	color: var(--paper);
}

.btn--primary:hover {
	background: var(--accent);
	color: var(--paper);
	transform: translateY(-1px);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--rule-strong);
}

.btn--ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: transparent;
}

/* --- Section pages ------------------------------------------------------ */
.page-head {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--rule);
}

.page-head .eyebrow {
	margin-bottom: var(--s-4);
}

.page-head h1 {
	font-size: var(--t-2xl);
	font-weight: 400;
	letter-spacing: -0.025em;
	max-width: 22ch;
	margin-bottom: var(--s-4);
}

.page-head .lede {
	font-size: var(--t-md);
	color: var(--ink-soft);
	max-width: 62ch;
	line-height: 1.55;
	margin: 0;
}

.page-body {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* --- Reading list (section pages) -------------------------------------- */
.reading-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--rule);
}

.reading-list li {
	border-bottom: 1px solid var(--rule);
}

.reading-list a {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr) auto;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: baseline;
	padding-block: var(--s-5);
	text-decoration: none;
	color: inherit;
	transition: background var(--transition);
}

.reading-list a:hover {
	background: var(--paper-sunk);
}

.reading-list .year {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 500;
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.reading-list .title {
	font-size: var(--t-md);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.reading-list a:hover .title {
	color: var(--accent);
}

.reading-list .len {
	font-family: var(--sans);
	font-size: var(--t-xs);
	color: var(--ink-faint);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.reading-list a {
		grid-template-columns: 3.5rem minmax(0, 1fr);
	}
	.reading-list .len {
		display: none;
	}
}

/* --- Archive grid ------------------------------------------------------- */
.archive-controls {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	align-items: center;
	padding-block: var(--s-5);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 4.25rem;
	background: var(--paper);
	z-index: 20;
}

@media (max-width: 720px) {
	.archive-controls {
		position: static;
	}
}

.chip {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	display: inline-block;
}

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

.chip[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.chip[aria-pressed="true"]:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.archive-count {
	font-family: var(--sans);
	font-size: var(--t-xs);
	color: var(--ink-faint);
	margin-left: auto;
	font-variant-numeric: tabular-nums;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: clamp(2rem, 4vw, 3rem);
	list-style: none;
	margin: 0;
	padding-inline: 0;
}

.card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.card-img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--paper-sunk);
	border-radius: var(--radius);
	margin-bottom: var(--s-3);
}

.card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms cubic-bezier(0.2, 0, 0.1, 1);
}

.card:hover .card-img img {
	transform: scale(1.03);
}

.card-meta {
	font-family: var(--sans);
	font-size: var(--t-xs);
	color: var(--ink-faint);
	display: flex;
	gap: var(--s-2);
	align-items: center;
	margin-bottom: var(--s-2);
	font-variant-numeric: tabular-nums;
}

.card-meta .lang {
	border: 1px solid var(--rule);
	padding: 0 0.32rem;
	border-radius: 2px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.6875rem; /* 11px floor */
	font-weight: 600;
}

.card-title {
	font-size: var(--t-base);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	margin: 0;
	transition: color var(--transition);
}

.card:hover .card-title {
	color: var(--accent);
}

.card-desc {
	font-size: var(--t-sm);
	color: var(--ink-muted);
	margin: var(--s-2) 0 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Article ------------------------------------------------------------ */
.article-head {
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--s-5);
}

.article-head h1 {
	font-size: var(--t-xl);
	font-weight: 600;
	letter-spacing: -0.02em;
	max-width: 26ch;
	margin-bottom: var(--s-4);
}

/* Head, cover and body share one left edge. */
.article-head .prose,
.article-body,
.article-foot {
	max-width: var(--measure);
}

.article-head .wrap,
.page-body .wrap {
	padding-inline: var(--gutter);
}

.article-meta {
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-muted);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2) var(--s-4);
	align-items: center;
	font-variant-numeric: tabular-nums;
}

.article-meta .dot::before {
	content: "·";
	margin-right: var(--s-4);
	color: var(--rule-strong);
}

.article-cover {
	margin-block: var(--s-5) var(--s-6);
	border-radius: var(--radius);
	overflow: hidden;
	max-width: var(--measure);
}

.article-cover img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.article-body {
	max-width: var(--measure);
	padding-block: var(--s-5) clamp(2rem, 4vw, 3rem);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.article-body p {
	margin-bottom: 1.35em;
}

.article-body p:first-of-type {
	font-size: 1.125rem;
	color: var(--ink-soft);
}

.article-body a {
	color: var(--accent);
	text-decoration-color: currentColor;
	word-break: break-word;
}

.article-body blockquote {
	margin: 1.75em 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--accent);
	font-style: italic;
	color: var(--ink-soft);
}

.article-body em {
	font-style: italic;
}

.article-body h2,
.article-body h3 {
	margin-block: 2em 0.6em;
}

.article-foot {
	border-top: 1px solid var(--rule);
	padding-block: var(--s-6);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	justify-content: space-between;
	align-items: center;
	max-width: var(--measure-wide);
}

.article-foot .source {
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-muted);
	margin: 0;
}

/* --- About -------------------------------------------------------------- */
.about-body {
	max-width: var(--measure);
	padding-block: clamp(2rem, 4vw, 3rem);
}

.about-body h2 {
	font-size: var(--t-lg);
	margin-top: 2.5em;
	margin-bottom: 0.6em;
}

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

.about-body p {
	color: var(--ink-soft);
}

.about-body p:first-of-type {
	font-size: 1.125rem;
	color: var(--ink);
}

.link-list {
	list-style: none;
	padding: 0;
	margin: var(--s-5) 0 0;
	display: grid;
	gap: var(--s-3);
}

.link-list a {
	font-family: var(--sans);
	font-size: var(--t-sm);
	display: inline-flex;
	gap: var(--s-2);
	align-items: baseline;
}

.link-list a::before {
	content: "→";
	color: var(--accent);
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
	background: var(--paper-sunk);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	margin-top: var(--s-8);
}

.cta-band .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: var(--s-6);
	align-items: center;
}

.cta-band h2 {
	font-size: var(--t-lg);
	font-weight: 400;
	letter-spacing: -0.01em;
	margin-bottom: var(--s-2);
}

.cta-band p {
	margin: 0;
	color: var(--ink-soft);
	max-width: 52ch;
}

@media (max-width: 720px) {
	.cta-band .wrap {
		grid-template-columns: 1fr;
	}
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	gap: var(--s-6);
	align-items: start;
}

.footer-statement {
	font-size: var(--t-md);
	max-width: 34ch;
	line-height: 1.5;
	margin: 0;
	color: var(--ink-soft);
}

.footer-col h2 {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: var(--s-3);
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--s-2);
}

.footer-col a {
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-soft);
	text-decoration: none;
}

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

.footer-base {
	margin-top: var(--s-7);
	padding-top: var(--s-5);
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3) var(--s-5);
	justify-content: space-between;
	font-family: var(--sans);
	font-size: var(--t-xs);
	color: var(--ink-faint);
}

@media (max-width: 720px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: var(--s-5);
	}
}

/* --- Print -------------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.cta-band,
	.archive-controls,
	.skip-link {
		display: none;
	}
	body {
		background: #fff;
		font-size: 11pt;
	}
	.article-body {
		max-width: none;
	}
	a {
		color: #000;
	}
	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
	}
}

/* --- Section page: live block ------------------------------------------ */
.live-block {
	margin-top: var(--s-7);
	padding-top: var(--s-5);
	border-top: 1px solid var(--rule);
}

.live-block .eyebrow {
	margin-bottom: var(--s-3);
}

.live-block .btn {
	margin-top: var(--s-2);
}

/* --- Touch targets ------------------------------------------------------ */
/* WCAG 2.2 AA: interactive targets at least 24x24 CSS px. Links that sit
   inline in a sentence are exempt; these are standalone nav/list links. */
.site-nav a,
.system-links a,
.footer-col a,
.link-list a,
.reading-list a,
.chip,
.current a {
	min-height: 24px;
	display: inline-flex;
	align-items: center;
}

.system-links a,
.footer-col a,
.link-list a {
	padding-block: 3px;
}

.reading-list a {
	display: grid;
	align-items: baseline;
}

/* --- Resume ------------------------------------------------------------- */
.resume-head {
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--s-5);
	border-bottom: 1px solid var(--rule);
}

.resume-head h1 {
	font-size: var(--t-xl);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: var(--s-3);
}

.resume-head .lede {
	font-size: var(--t-md);
	color: var(--ink-soft);
	max-width: 60ch;
	margin: 0;
}

.resume-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-top: var(--s-5);
}

.resume-body {
	max-width: 60rem;
	padding-block: clamp(2rem, 4vw, 3rem);
}

.resume-section {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.resume-section > h2 {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
	padding-bottom: var(--s-2);
	border-bottom: 1px solid var(--rule);
	margin-bottom: var(--s-5);
}

/* Experience timeline */
.role {
	display: grid;
	grid-template-columns: 10.5rem minmax(0, 1fr);
	gap: var(--s-5);
	padding-block: var(--s-4);
	border-bottom: 1px solid var(--rule);
}

.role:last-child {
	border-bottom: 0;
}

.role-when {
	font-family: var(--sans);
	font-size: var(--t-xs);
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

.role-where {
	display: block;
	color: var(--ink-faint);
	margin-top: 2px;
}

.role h3 {
	font-size: var(--t-base);
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: var(--s-2);
}

.role-org {
	font-weight: 400;
	color: var(--ink-muted);
}

.role p {
	font-size: var(--t-sm);
	color: var(--ink-soft);
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 640px) {
	.role {
		grid-template-columns: 1fr;
		gap: var(--s-2);
	}
}

/* Compact definition lists for skills */
.skill-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: var(--s-4) var(--s-6);
}

.skill {
	border-bottom: 1px solid var(--rule);
	padding-bottom: var(--s-3);
}

.skill dt {
	font-weight: 600;
	font-size: var(--t-sm);
	margin-bottom: 2px;
}

.skill dd {
	margin: 0;
	font-size: var(--t-sm);
	color: var(--ink-muted);
	line-height: 1.55;
}

/* Certifications */
.cert-group {
	margin-bottom: var(--s-6);
}

.cert-group h3 {
	font-family: var(--sans);
	font-size: var(--t-sm);
	font-weight: 600;
	margin-bottom: var(--s-2);
}

.cert-group .note {
	font-size: var(--t-sm);
	color: var(--ink-muted);
	margin: 0 0 var(--s-3);
}

.cert-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--rule);
}

.cert-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 8rem 5rem;
	gap: var(--s-3);
	font-size: var(--t-sm);
	padding-block: var(--s-2);
	border-bottom: 1px solid var(--rule);
	align-items: baseline;
}

.cert-list .issuer {
	color: var(--ink-muted);
	font-family: var(--sans);
	font-size: var(--t-xs);
}

.cert-list .date {
	color: var(--ink-faint);
	font-family: var(--sans);
	font-size: var(--t-xs);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
	.cert-list li {
		grid-template-columns: 1fr auto;
	}
	.cert-list .issuer {
		grid-column: 1;
	}
}

/* Two-column facts (languages, licence) */
.fact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--s-4) var(--s-6);
}

.fact dt {
	font-weight: 600;
	font-size: var(--t-sm);
}

.fact dd {
	margin: 0;
	font-size: var(--t-sm);
	color: var(--ink-muted);
}

.fact {
	border-bottom: 1px solid var(--rule);
	padding-bottom: var(--s-3);
}

/* --- Resume print ------------------------------------------------------- */
@media print {
	@page {
		margin: 16mm 14mm;
	}
	.resume-actions,
	.resume-head .eyebrow {
		display: none;
	}
	.resume-section {
		margin-bottom: 14pt;
		break-inside: avoid;
	}
	.role,
	.cert-list li,
	.skill {
		break-inside: avoid;
	}
	.role h3 {
		font-size: 11pt;
	}
	.cert-list {
		font-size: 8.5pt;
	}
	.resume-section > h2 {
		font-size: 9pt;
	}
}

/* --- Consulting --------------------------------------------------------- */
.services {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	border-top: 1px solid var(--rule);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
}

.service {
	background: var(--paper);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	transition: background var(--transition);
}

.service:hover {
	background: var(--paper-sunk);
}

.service-num {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--ink-faint);
	margin-bottom: var(--s-3);
	font-variant-numeric: tabular-nums;
}

.service h2 {
	font-size: var(--t-md);
	font-weight: 600;
	margin-bottom: var(--s-2);
	letter-spacing: -0.01em;
}

.service p {
	margin: 0;
	font-size: var(--t-sm);
	color: var(--ink-muted);
	line-height: 1.55;
}

.principle-list {
	display: grid;
	gap: var(--s-5);
}

.principle {
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--rule);
}

.principle:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.principle h3 {
	font-size: var(--t-base);
	font-weight: 600;
	margin-bottom: var(--s-2);
}

.principle p {
	margin: 0;
	font-size: var(--t-sm);
	color: var(--ink-soft);
	line-height: 1.6;
}

.cred-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--s-3);
	font-size: var(--t-sm);
	color: var(--ink-soft);
}

.cred-list li {
	display: flex;
	gap: var(--s-3);
	align-items: baseline;
	line-height: 1.5;
}

.cred-list li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
	transform: translateY(-2px);
}

/* --- Fixes from critique 2026-10-19 ------------------------------------- */

/* Chip boundary was 1.81:1 against paper; 3:1 is the floor for UI
   components. Darken the border and add a subtle inset so the control
   reads as a control without gaining a fill. */
.chip {
	border-color: var(--ink-faint);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 60%, transparent);
}

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

.chip[aria-pressed="true"] {
	border-color: var(--ink);
	box-shadow: none;
}

/* Inline figures were inheriting the UA `figure { margin: 1em 40px }`,
   which broke the 68ch measure. */
.article-figure {
	margin: 1.75em 0;
}

.article-figure img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.article-embed {
	color: var(--ink-faint);
	font-style: italic;
}

/* --- Article navigation -------------------------------------------------- */
.article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--s-4);
	max-width: var(--measure);
	margin-top: var(--s-6);
	padding-top: var(--s-5);
	border-top: 1px solid var(--rule);
}

.article-nav-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--s-3);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color var(--transition), background var(--transition);
}

.article-nav-link:hover {
	border-color: var(--accent);
	background: var(--paper-sunk);
}

.article-nav-link:last-of-type {
	text-align: right;
	align-items: flex-end;
}

.article-nav-label {
	font-family: var(--sans);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.article-nav-title {
	font-size: var(--t-sm);
	font-weight: 600;
	line-height: 1.35;
}

.article-nav-all {
	max-width: var(--measure);
	margin-top: var(--s-4);
	font-family: var(--sans);
	font-size: var(--t-sm);
}

@media (max-width: 560px) {
	.article-nav {
		grid-template-columns: 1fr;
	}
	.article-nav-link:last-of-type {
		text-align: left;
		align-items: flex-start;
	}
}

/* --- Consulting: what happens next -------------------------------------- */
.next-steps {
	margin-top: var(--s-6);
	padding-top: var(--s-5);
	border-top: 1px solid var(--rule);
	max-width: 60ch;
}

.next-steps .eyebrow {
	margin-bottom: var(--s-3);
}

.next-steps ol {
	margin: 0;
	padding-left: 1.25rem;
	display: grid;
	gap: var(--s-2);
	font-size: var(--t-sm);
	color: var(--ink-soft);
	line-height: 1.55;
}

.next-steps li::marker {
	color: var(--accent);
	font-family: var(--sans);
	font-size: 0.9em;
	font-weight: 600;
}

/* --- Resume: in-page navigation ---------------------------------------- */
.resume-toc {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2) var(--s-4);
	padding-block: var(--s-4);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 4.25rem;
	background: var(--paper);
	z-index: 20;
	font-family: var(--sans);
	font-size: var(--t-sm);
}

.resume-toc a {
	color: var(--ink-muted);
	text-decoration: none;
	padding-block: 4px;
}

.resume-toc a:hover {
	color: var(--accent);
}

@media (max-width: 720px) {
	.resume-toc {
		position: static;
	}
}

/* Collapsible certificate groups keep the CV scannable. */
.cert-group summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--s-4);
	cursor: pointer;
	list-style: none;
	padding-block: var(--s-2);
	font-family: var(--sans);
	font-size: var(--t-sm);
	font-weight: 600;
	border-bottom: 1px solid var(--rule);
}

.cert-group summary::-webkit-details-marker {
	display: none;
}

.cert-group summary::after {
	content: "+";
	color: var(--accent);
	font-size: 1.1em;
	line-height: 1;
	order: 3;
}

.cert-group[open] summary::after {
	content: "−";
}

.cert-group summary .cert-count {
	margin-left: auto;
	font-weight: 500;
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
}

.cert-group summary:hover {
	color: var(--accent);
}

.cert-group[open] summary {
	margin-bottom: var(--s-3);
}

.cert-list li:last-child {
	border-bottom: 0;
}

/* --- Contact: no-JS notice --------------------------------------------- */
.cta-noscript {
	margin-top: var(--s-3);
	max-width: 52ch;
	font-family: var(--sans);
	font-size: var(--t-sm);
	color: var(--ink-muted);
	line-height: 1.5;
}

/* --- About: portrait ---------------------------------------------------- */
.about-intro {
	display: grid;
	grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
	padding-block: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--rule);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-portrait {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--paper-sunk);
}

.about-portrait img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.about-intro-text p {
	font-size: var(--t-md);
	color: var(--ink-soft);
	line-height: 1.6;
	max-width: 54ch;
}

.about-intro-text p:first-child {
	color: var(--ink);
}

@media (max-width: 720px) {
	.about-intro {
		grid-template-columns: 1fr;
	}
	.about-portrait {
		max-width: 20rem;
	}
}

/* --- Home: image band --------------------------------------------------- */
.hero-band {
	margin: 0;
	line-height: 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.hero-band img {
	width: 100%;
	height: clamp(240px, 34vw, 520px);
	object-fit: cover;
	object-position: center 55%;
}

@media (max-width: 640px) {
	.hero-band img {
		height: 62vw;
		object-position: center 60%;
	}
}
