/* 3 Billion Babies — shared styles. Tokens only; every colour lives on :root. */
:root {
	--c-bg: #0b0b0c;
	--c-bg-raised: #151517;
	--c-text: #ecebe8;
	--c-text-muted: #a9a7a2;
	--c-line: #2c2c30;
	--c-accent: #c8463c;
	--c-accent-text: #e0675d;
	--c-silhouette: #d9d6cf;
	--c-landmark: #6f6d68;
	--c-marker: #e9e6df;

	--f-serif: Georgia, "Times New Roman", serif;
	--f-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4rem; --s-6: 7rem;
	--t-small: .875rem;
	--t-body: 1.125rem;
	--t-lead: clamp(1.25rem, 2.4vw, 1.6rem);
	--t-h2: clamp(1.9rem, 5vw, 3.4rem);
	--t-huge: clamp(2.6rem, 11vw, 8.5rem);
	--w-text: 40rem;
	--gutter: max(16px, 4vw);
	color-scheme: dark; /* single, deliberately dark design */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: var(--t-body);
	line-height: 1.6;
	overflow-x: hidden;
}
a { color: var(--c-accent-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-accent-text); outline-offset: 3px; }

.tb-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; gap: var(--s-2); flex-wrap: nowrap; align-items: center; overflow-x: auto; white-space: nowrap;
	padding: calc(var(--s-1) + env(safe-area-inset-top, 0px)) var(--gutter) var(--s-1);
	background: color-mix(in srgb, var(--c-bg) 88%, transparent);
	backdrop-filter: blur(6px);
	font-size: var(--t-small);
	border-bottom: 1px solid var(--c-line);
}
.tb-nav a { color: var(--c-text-muted); text-decoration: none; }
.tb-nav a:hover, .tb-nav a[aria-current="page"] { color: var(--c-text); }
.tb-nav__home { color: var(--c-text) !important; font-weight: 700; margin-right: auto; }
@media (max-width: 480px) { .tb-nav { gap: .8rem; font-size: .8rem; } }

.tb-eyebrow { font-size: var(--t-small); letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 0 var(--s-2); }
.tb-h2 { font-family: var(--f-serif); font-size: var(--t-h2); line-height: 1.1; font-weight: 400; margin: 0 0 var(--s-3); }
.tb-lead { font-size: var(--t-lead); line-height: 1.45; color: var(--c-text); max-width: var(--w-text); margin: 0 0 var(--s-3); }
.tb-note { font-size: var(--t-small); color: var(--c-text-muted); max-width: var(--w-text); }
.tb-accent { color: var(--c-accent-text); }
.tb-num { font-variant-numeric: tabular-nums; }

.tb-button {
	display: inline-block; padding: .7em 1.2em;
	border: 1px solid var(--c-text-muted); border-radius: 2px;
	color: var(--c-text); background: transparent; text-decoration: none;
	font: inherit; font-size: var(--t-small); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.tb-button:hover { border-color: var(--c-text); background: var(--c-bg-raised); }

/* Reveal-on-scroll */
.tb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.tb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tb-reveal { opacity: 1; transform: none; transition: none; }
}

/* Fixed HUD used by the interactive pages */
.tb-hud {
	position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); z-index: 40;
	display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; justify-content: space-between;
	padding: var(--s-2) var(--s-3);
	background: color-mix(in srgb, var(--c-bg) 90%, transparent);
	border: 1px solid var(--c-line);
	backdrop-filter: blur(6px);
}
.tb-hud__big { font-family: var(--f-serif); font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.1; }
.tb-hud__small { font-size: var(--t-small); color: var(--c-text-muted); }
