/* Fonts are self-hosted so page views make no third-party requests.
   Roboto and IBM Plex Mono, SIL Open Font License 1.1: see /assets/fonts/OFL.txt. */
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/assets/fonts/roboto-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
	--bg: #0C0C0F;
	--surf: #141419;
	--accent: #1CB495;
	--on-accent: #0C0C0F;
	--text: #ECEBE6;
	--muted: #8B8B94;
	--body: #C8C7C2;
	--border: #24242D;
	--field: #62626C;
	--bad: #FF6B5B;
	--sans: 'Roboto', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Consolas, 'SFMono-Regular', monospace;
	/* 80px on laptops, eases down on phones, and centres content at 1440px on very wide displays. */
	--gutter: max(clamp(1.5rem, 6.25vw, 5rem), calc((100vw - 1440px) / 2));
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

html { scroll-padding-top: 5rem; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, .form-status:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

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

.skip {
	position: absolute;
	left: var(--gutter);
	top: -3rem;
	z-index: 200;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	padding: 0.5rem 1rem;
}
.skip:focus { top: 0.75rem; }

/* Type roles */
.label {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.heading {
	font-family: var(--sans);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--text);
}

.text-link {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Nav */
.nav {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 1rem var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.logo { display: block; flex-shrink: 0; padding-block: 0.25rem; }
.logo img { display: block; height: 24px; width: auto; }

@media (max-width: 420px) {
	.nav .logo img { height: 21px; }
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-links a:not(.nav-cta) {
	font-size: 0.9375rem;
	color: var(--muted);
	padding-block: 0.5rem;
	transition: color .15s;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
	font-size: 0.9375rem;
	color: var(--text);
	border: 1px solid var(--border);
	padding: 0.5rem 1.125rem;
	white-space: nowrap;
	transition: border-color .15s, color .15s;
}
.nav-cta:hover, .nav-cta[aria-current="page"] { border-color: var(--accent); }

@media (max-width: 700px) {
	.nav-links { gap: 0; }
	.nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 340px) {
	.nav { gap: 0.75rem; }
	.nav .logo img { height: 18px; }
	.nav-cta { font-size: 0.875rem; padding: 0.4375rem 0.75rem; }
}

/* Hero */
.hero {
	padding: 5.5rem var(--gutter) 5rem;
	border-bottom: 1px solid var(--border);
}

.eyebrow {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.75rem;
}
.eyebrow::before {
	content: '';
	width: 20px;
	height: 1px;
	background: var(--accent);
	flex-shrink: 0;
}

.hero h1, .page-head h1 {
	font-weight: 700;
	font-size: clamp(2.375rem, 6vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 16ch;
	margin-bottom: 1.5rem;
}

.lead {
	font-size: 1.125rem;
	color: var(--muted);
	max-width: 52ch;
	line-height: 1.7;
	margin-bottom: 2.5rem;
}

/* Lead form */
.form-row {
	display: flex;
	align-items: stretch;
	max-width: 480px;
}

.email-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 0.8125rem 1rem;
	background: var(--surf);
	border: 1px solid var(--field);
	border-right: none;
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	transition: border-color .15s;
}
.email-input::placeholder { color: var(--muted); opacity: 1; }
.email-input:focus { outline: 2px solid transparent; border-color: var(--accent); }

.btn {
	padding: 0.8125rem 1.5rem;
	background: var(--accent);
	color: var(--on-accent);
	border: 1px solid var(--accent);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color .15s;
}
.btn:hover { background: #22C9A7; }
.btn:disabled { opacity: 0.7; cursor: progress; }
a.btn { display: inline-block; }

.form-note {
	margin-top: 0.875rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--muted);
}
.form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
	font-family: var(--mono);
	font-size: 0.875rem;
	color: var(--accent);
}
.form-status:not(:empty) { padding-block: 0.8125rem; }
.form-status.is-error { color: var(--text); }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 420px) {
	.form-row { flex-direction: column; }
	.email-input { flex: none; border-right: 1px solid var(--field); border-bottom: none; }
	.email-input:focus { border-color: var(--accent); }
}

/* Sections */
.section {
	padding: 4.5rem var(--gutter);
	border-bottom: 1px solid var(--border);
}
.section-head {
	display: grid;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

/* Services */
.services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
}
.svc {
	padding: 2rem 1.75rem;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	transition: background-color .15s;
}
.svc:hover { background: var(--surf); }
.svc h3 a:hover { color: var(--accent); }
.section-foot { margin-top: 2rem; }

.svc .tag, .svc-detail .tag {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.125rem;
}
.tag::before {
	content: '';
	width: 7px;
	height: 7px;
	background: var(--accent);
	flex-shrink: 0;
}

.svc h3, .step h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 0.5rem;
}
.svc p, .step p {
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.65;
}

/* Data commitments */
.band { background: var(--surf); }

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2.5rem 3rem;
	margin-bottom: 2.5rem;
}
.fact-val {
	font-weight: 700;
	font-size: 2.75rem;
	letter-spacing: -0.02em;
	line-height: 1;
	margin-bottom: 0.75rem;
	font-variant-numeric: tabular-nums;
}
.fact-val em { font-style: normal; color: var(--accent); }
.fact-lbl {
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.55;
	max-width: 28ch;
}

/* Process */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--border);
}
.step {
	padding: 1.75rem;
	border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }
.step .step-n, .work-step .step-n {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--accent);
	letter-spacing: 0.08em;
	margin-bottom: 0.875rem;
}

@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr 1fr; }
	.step:nth-child(2) { border-right: none; }
	.step:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
	.steps { grid-template-columns: 1fr; }
	.step, .step:nth-child(2) { border-right: none; }
	.step + .step { border-top: 1px solid var(--border); }
}

/* Closing CTA */
.cta {
	padding: 6rem var(--gutter);
	text-align: center;
}
.cta .heading { margin-bottom: 1rem; }
.cta .lead { margin-inline: auto; font-size: 1.0625rem; }
.cta .form-row { margin-inline: auto; }
.cta .form-note { text-align: center; }

/* Inner pages */
.page-head {
	padding: 4.5rem var(--gutter) 3.5rem;
	border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.page-head .lead { margin-bottom: 0; }
.updated {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--muted);
	letter-spacing: 0.04em;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 2rem;
}
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; }

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	border-bottom: 1px solid var(--border);
}
.contact-grid > * { padding-block: 4rem; }
.contact-grid > :first-child { padding-inline: var(--gutter) 3rem; }
.contact-grid > :last-child { padding-inline: 3rem var(--gutter); }
.contact-grid > * + * { border-left: 1px solid var(--border); }
.contact-grid h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.contact-grid .form-row { max-width: none; }

.email-direct {
	display: inline-block;
	font-size: clamp(1.125rem, 2.4vw, 1.5rem);
	font-weight: 700;
	color: var(--text);
	border-bottom: 1px solid var(--accent);
	padding-bottom: 0.125rem;
	margin-bottom: 3rem;
	overflow-wrap: anywhere;
}
.email-direct:hover { color: var(--accent); }

.next-steps { display: grid; gap: 1.25rem; counter-reset: next; }
.next-steps li {
	display: grid;
	grid-template-columns: 2rem 1fr;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	counter-increment: next;
}
.next-steps li::before {
	content: '0' counter(next);
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--accent);
	padding-top: 0.2rem;
}
.next-steps strong { color: var(--text); font-weight: 700; }

@media (max-width: 760px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-grid > * + * { border-left: none; border-top: 1px solid var(--border); }
	.contact-grid > * { padding-block: 3rem; }
	.contact-grid > :first-child,
	.contact-grid > :last-child { padding-inline: var(--gutter); }
}

/* Legal */
.legal {
	padding: 3.5rem var(--gutter) 5rem;
	max-width: calc(68ch + 2 * var(--gutter));
	display: grid;
	gap: 2.5rem;
}
.legal .lead { margin-bottom: 0; }
.legal h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.625rem; }
.legal p { color: var(--muted); line-height: 1.75; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

/* Blog teaser (home) */
.post-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
}
.post-card {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	padding: 1.75rem;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	transition: background-color .15s;
}
.post-card:hover { background: var(--surf); }
.post-card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p:last-child { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }

/* Services page */
.svc-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 1.5rem 4rem;
	padding: 3.5rem var(--gutter);
	border-bottom: 1px solid var(--border);
}
.svc-detail .tag { margin-bottom: 1rem; }
.svc-detail h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 1rem; }
.svc-detail > div > p { color: var(--muted); line-height: 1.7; max-width: 52ch; }
.svc-detail h3 {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.75rem;
}
.svc-detail h3:not(:first-child) { margin-top: 1.75rem; }
.checks { display: grid; gap: 0.5rem; }
.checks li { position: relative; padding-left: 1.25rem; color: var(--body); line-height: 1.6; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--accent); }
.stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack li {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--text);
	border: 1px solid var(--border);
	padding: 0.25rem 0.625rem;
}
.svc-detail .proof { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.svc-detail .proof a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.svc-detail .proof a:hover { color: var(--accent); }

@media (max-width: 860px) {
	.svc-detail { grid-template-columns: 1fr; }
}

/* How we work page */
.work-steps { display: grid; }
.work-step {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 1rem 4rem;
	padding: 3rem var(--gutter);
	border-bottom: 1px solid var(--border);
}
.work-step h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.work-step p { color: var(--body); line-height: 1.7; max-width: 60ch; }
.work-step p + p { margin-top: 1rem; }
.work-step .gets { color: var(--muted); }
.work-step .gets strong { color: var(--text); }
.principles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
}
.principle { padding: 1.75rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principle h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.principle p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }
.principle a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.faq { display: grid; gap: 2rem; max-width: 72ch; }
.faq h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.faq p { color: var(--muted); line-height: 1.7; }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.faq a:hover, .principle a:hover { color: var(--accent); }

@media (max-width: 860px) {
	.work-step { grid-template-columns: 1fr; }
}

/* Column counts for the fixed grids; after their definitions so these win. */
@media (max-width: 980px) {
	.services, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.services, .principles { grid-template-columns: minmax(0, 1fr); }
}

/* Blog */
.post-head h1 { max-width: 30ch; font-size: clamp(2rem, 4.4vw, 3.125rem); }
.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.post-topic { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }

.post-list {
	padding: 1rem var(--gutter) 5rem;
	max-width: calc(76ch + 2 * var(--gutter));
}
.post-item { display: grid; gap: 0.625rem; padding-block: 2.25rem; border-bottom: 1px solid var(--border); }
.post-item h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
.post-item h2 a:hover { color: var(--accent); }
.post-item p { color: var(--muted); line-height: 1.7; }

.post {
	padding: 3rem var(--gutter) 4rem;
	max-width: calc(70ch + 2 * var(--gutter));
	color: var(--body);
	font-size: 1.0625rem;
	line-height: 1.75;
}
.post > * + * { margin-top: 1.25rem; }
.post h2 { color: var(--text); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-top: 3rem; text-wrap: balance; }
.post h3 { color: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.4; margin-top: 2rem; }
.post strong { color: var(--text); }
.post a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post a:hover { color: var(--accent); }
.post ul, .post ol { padding-left: 1.25rem; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post li + li { margin-top: 0.5rem; }
.post li::marker { color: var(--accent); }
.post code {
	font-family: var(--mono);
	font-size: 0.875em;
	color: var(--text);
	background: var(--surf);
	border: 1px solid var(--border);
	padding: 0.05em 0.35em;
	overflow-wrap: anywhere;
}
.post pre {
	background: var(--surf);
	border: 1px solid var(--border);
	padding: 1rem 1.25rem;
	overflow-x: auto;
	font-size: 0.8125rem;
	line-height: 1.65;
	tab-size: 4;
}
.post pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.post table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.post th, .post td { text-align: left; vertical-align: top; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border); }
.post tr:last-child td { border-bottom: 0; }
.post th { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surf); }
.post td strong { white-space: nowrap; }

.tldr {
	background: var(--surf);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 1.25rem 1.5rem;
}
.post .tldr h2 {
	margin-top: 0;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
.tldr ul { margin-top: 0.75rem; }

.post-footer {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 1rem;
}
.post .post-footer p { color: var(--muted); font-size: 0.9375rem; }
.post .sources { font-size: 0.9375rem; }

/* Post furniture: standfirst, opening paragraph, numbers, callouts, verdicts, diagrams */
.post-head .lead { max-width: 58ch; margin-bottom: 1.75rem; text-wrap: balance; }
.post .lede { color: var(--text); font-size: clamp(1.1875rem, 2.1vw, 1.3125rem); line-height: 1.65; }

.post .stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	padding: 0;
	list-style: none;
	background: var(--border);
	border: 1px solid var(--border);
}
.post .stats li { flex: 1 1 10rem; margin: 0; padding: 1.25rem 1.25rem 1.375rem; background: var(--bg); }
.post .stat-num {
	display: block;
	color: var(--accent);
	font-size: clamp(2.125rem, 5vw, 2.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.post .stat-num.bad { color: var(--bad); }
.post .stat-num.plain { color: var(--text); }
.stat-lbl { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

.callout {
	background: var(--surf);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 1.125rem 1.5rem 1.25rem;
}
.callout.bad { border-left-color: var(--bad); }
.post .callout > * + * { margin-top: 0.375rem; }
.post .callout p { color: var(--text); font-size: 1.125rem; line-height: 1.6; }
.post .callout .callout-label {
	color: var(--accent);
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.post .callout.bad .callout-label { color: var(--bad); }

.verdict {
	display: inline-block;
	margin-right: 0.375rem;
	padding: 0 0.4rem;
	border: 1px solid currentColor;
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
}
.verdict.good { color: var(--accent); }
.verdict.bad { color: var(--bad); }

.post .diagram { margin: 2.25rem 0; }
.diagram svg { display: block; width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
.diagram figcaption { max-width: 34rem; margin: 0.875rem auto 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.diagram text { fill: var(--body); font-family: var(--sans); font-size: 14px; }
.diagram .d-note { fill: var(--muted); font-family: var(--mono); font-size: 12px; }
.diagram .d-title { fill: var(--accent); font-family: var(--mono); font-size: 12px; }
.diagram .d-strong { fill: var(--text); }
.diagram .d-bad { fill: var(--bad); }
.diagram .d-good { fill: var(--accent); }
.diagram .d-ink { fill: var(--on-accent); font-weight: 700; font-size: 13px; }
.diagram .d-axis { stroke: var(--field); fill: none; }
.diagram .d-guide { stroke: var(--field); stroke-dasharray: 2 3; fill: none; }
.diagram .d-run { fill: var(--accent); }
.diagram .d-dup { fill: var(--bad); }
.diagram .d-lock { fill: rgba(28, 180, 149, 0.16); stroke: var(--accent); }
.diagram .d-skip { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; }
.diagram .d-gap { fill: rgba(255, 107, 91, 0.12); stroke: var(--bad); stroke-dasharray: 3 3; }
.diagram .d-overlap { fill: rgba(255, 107, 91, 0.1); stroke: var(--bad); stroke-dasharray: 4 3; }
.diagram .d-inset { fill: var(--surf); stroke: var(--border); }
.diagram .d-due { stroke: var(--bad); stroke-width: 2; }
.diagram .d-zoom { fill: none; stroke: var(--text); }
.diagram .d-arrow { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* Reading progress on posts, where the browser supports scroll-driven animation. No JS. */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
	.read-progress {
		display: block;
		position: fixed;
		inset: 0 0 auto;
		z-index: 150;
		height: 2px;
		background: var(--accent);
		transform-origin: 0 50%;
		animation: read-progress linear both;
		animation-timeline: scroll(root);
	}
	@keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Layout principle: centred structure, left-aligned reading.
   Heroes, section and page headings, and calls to action are centred, and reading
   columns sit in the middle of the page. Paragraphs, lists, code, tables and cards
   stay left-aligned. Placed after the component rules so these win. */
.hero, .page-head, .section-head, .section-foot, .cta { text-align: center; }
.hero h1, .page-head h1, .hero .lead, .page-head .lead { margin-inline: auto; }
.eyebrow, .crumbs, .page-head .post-meta { justify-content: center; }
.hero .form-row { margin-inline: auto; }
.section-head { justify-items: center; }
.facts { text-align: center; }
.fact-lbl { margin-inline: auto; }
.band > .text-link { display: block; width: fit-content; margin-inline: auto; }
.post, .legal, .post-list, .faq { margin-inline: auto; }

/* Footer */
main > :last-child { border-bottom: 0; }

.footer {
	border-top: 1px solid var(--border);
	padding: 2rem var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}
.footer .logo img { height: 19px; }
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}
.footer-links a, .footer-copy {
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--muted);
}
.footer-links a {
	display: inline-block;
	padding-block: 0.375rem;
	transition: color .15s;
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	html { scroll-behavior: auto; }
}

@media print {
	:root {
		--bg: #fff;
		--surf: #fff;
		--accent: #0B6E5A;
		--text: #111;
		--muted: #333;
		--body: #222;
		--border: #ccc;
		--field: #999;
		--bad: #B3261E;
		color-scheme: light;
	}
	.nav { position: static; }
	.nav-links, .skip, form, .form-note, .form-status, .read-progress { display: none; }
	.logo img { filter: brightness(0); }
}
