:root {
	color-scheme: light;
	--paper: #ecebe6;
	--paper-2: #e2e0d9;
	--surface: #f6f5f1;
	--ink: #121211;
	--ink-2: #3b3a37;
	--muted: #75736d;
	--line: rgba(18, 18, 17, 0.14);
	--yolk: #ffb81c;
	--yolk-deep: #e09a00;
	--on-yolk: #121211;

	/* Dark bands (proof) stay dark in both themes. */
	--band: #121211;
	--band-text: #ecebe6;
	--band-soft: #bdbab2;
	--band-dim: #8d8b84;
	--band-line: rgba(236, 235, 230, 0.2);

	--code-panel: #1e1e1e;
	--code-chrome: #181818;
	--code-line: rgba(236, 235, 230, 0.08);
	--code-text: #d4d4d4;
	--code-dim: #9d9d9d;
	--code-gutter: #6e7681;
	--code-active: rgba(255, 184, 28, 0.1);

	/* Syntax colors follow VS Code Dark Modern, like the explorer. */
	--tok-keyword: #c586c0;
	--tok-control: #569cd6;
	--tok-string: #ce9178;
	--tok-number: #b5cea8;
	--tok-comment: #6a9955;
	--tok-type: #4ec9b0;
	--tok-function: #dcdcaa;
	--tok-property: #9cdcfe;
	--tok-builtin: #4fc1ff;

	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1280px;

	/* Focus ring: ink on paper, yolk inside dark surfaces (set per component below). */
	--focus: var(--ink);
	--prop-head: color-mix(in srgb, var(--ink) 5%, transparent);

	/* Header height; main.js measures the real one. Fallbacks: one row (60px + border) or two rows (52 + 40 + border;
	   52 + 45 + border on touch screens, see the top bar touch rules). */
	--topbar-h: 61px;
}

@media (max-width: 1023px) {
	:root {
		--topbar-h: 93px;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--paper: #111110;
	--paper-2: #1a1a18;
	--surface: #1a1a18;
	--ink: #ecebe6;
	--ink-2: #c4c1b9;
	--muted: #8d8b84;
	--line: rgba(236, 235, 230, 0.14);
	--band: #1a1a18;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--topbar-h) + 8px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

::selection {
	background: var(--yolk);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.proof,
.output,
.vscode,
.viewer,
.peek {
	--focus: var(--yolk);
}

/* Programmatic focus targets (deep links) don't draw a ring around a whole section. */
.section[tabindex="-1"]:focus {
	outline: none;
}

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

/* Skip link: off-screen until it gets keyboard focus. */
.skip {
	position: absolute;
	top: 8px;
	left: 16px;
	z-index: 30;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font: 600 14px var(--display);
	text-decoration: none;
	transform: translateY(-200%);
}

.skip:focus {
	transform: none;
}

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

.mono {
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* ---------- Top bar ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

/* One nav for both layouts: a single row from 1024px, two rows below (see Responsive). */
.topbar .wrap {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "brand nav tools";
	align-items: center;
	height: 60px;
	gap: 28px;
}

.brand {
	grid-area: brand;
	display: flex;
	align-items: baseline;
	gap: 10px;
	text-decoration: none;
	font-weight: 800;
	font-stretch: 120%;
	letter-spacing: -0.01em;
}

.brand small {
	font-family: var(--mono);
	font-weight: 400;
	font-size: 12px;
	color: var(--muted);
	font-stretch: 100%;
}

.nav {
	grid-area: nav;
	justify-self: end;
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav a {
	flex: 0 0 auto;
	font-family: var(--mono);
	font-size: 13px;
	text-decoration: none;
	color: var(--ink-2);
	white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="true"] {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.nav a[aria-current="true"] {
	text-decoration-color: var(--yolk);
	text-decoration-thickness: 2px;
}

.nav .nav-contact {
	padding: 4px 12px;
	border: 1.5px solid var(--yolk);
	border-radius: 999px;
	color: var(--ink);
}

.nav .nav-contact:hover,
.nav .nav-contact[aria-current="true"] {
	text-decoration: none;
	background: color-mix(in srgb, var(--yolk) 22%, transparent);
}

/* Rounded end buttons instead of overflow:hidden on the group, so touch hit areas can reach past the pill. */
.lang {
	display: flex;
	border: 1px solid var(--ink);
	border-radius: 999px;
}

.lang button {
	font: 500 12px var(--mono);
	padding: 5px 11px;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.lang button:first-child {
	border-radius: 999px 0 0 999px;
}

.lang button:last-child {
	border-radius: 0 999px 999px 0;
}

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

.nav-tools {
	grid-area: tools;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cv-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}

.cv-btn svg {
	width: 14px;
	height: 14px;
}

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

.theme-toggle {
	display: grid;
	place-items: center;
	width: 34px;
	height: 28px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.theme-toggle svg {
	width: 16px;
	height: 16px;
}

:root[data-theme="dark"] .icon-moon,
:root:not([data-theme="dark"]) .icon-sun {
	display: none;
}

/* Touch: 44px hit areas around the small top bar controls. The ::after grows the target, not the look. */
@media (pointer: coarse) {
	.nav a,
	.cv-btn,
	.theme-toggle,
	.lang button {
		position: relative;
	}

	.nav a::after,
	.cv-btn::after,
	.theme-toggle::after,
	.lang button::after {
		content: "";
		position: absolute;
		inset: -9px -5px;
	}

	.nav a::after {
		inset: -12px -10px;
	}

	/* EN and PT touch each other, so they only grow vertically; their width comes from min-width below. */
	.lang button::after {
		inset: -9px 0;
	}
}

/* Below 401px the 52px row has no room for two 44px language buttons (they stay about 37px wide). */
@media (pointer: coarse) and (min-width: 401px) {
	.lang button {
		min-width: 44px;
	}
}

/* ---------- Hero ---------- */

.hero {
	--wordmark: min(calc((100vw - 2 * var(--gutter)) / 6.75), 176px);
	position: relative;
	padding-top: clamp(28px, 5vw, 56px);
	overflow: hidden;
}

.hero-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	color: var(--muted);
	flex-wrap: wrap;
}

.hero-avail i {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--yolk);
	vertical-align: 1px;
}

.wordmark {
	margin: clamp(14px, 2.4vw, 28px) 0 0;
	font-weight: 900;
	font-stretch: 125%;
	font-size: var(--wordmark);
	line-height: 0.8;
	letter-spacing: -0.045em;
	text-transform: uppercase;
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

/* Reading order is facts first (copy, Properties, figure); the figure keeps the right column on wide screens. */
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
	grid-template-areas: "copy figure";
	column-gap: clamp(20px, 4vw, 56px);
	align-items: start;
	padding-bottom: clamp(28px, 4vw, 40px);
}

.hero-copy {
	grid-area: copy;
	min-width: 0;
}

.hero-figure {
	grid-area: figure;
	position: relative;
	z-index: 2;
	align-self: start;
	margin-top: calc(var(--wordmark) * -0.62);
	display: flex;
	justify-content: center;
	pointer-events: none;
}

/* Avatar stage: a soft light behind, a baseplate grid under the feet, a contact shadow. --px/--py (-1..1) come
   from the pointer (main.js) and give each layer its own depth. */
.hero-figure {
	--px: 0;
	--py: 0;
	--glow-strong: rgba(255, 184, 28, 0.75);
	--glow-soft: rgba(255, 184, 28, 0.22);
	--floor: rgba(18, 18, 17, 0.2);
	--rim: transparent;
}

:root[data-theme="dark"] .hero-figure {
	--glow-strong: rgba(255, 184, 28, 0.62);
	--glow-soft: rgba(255, 184, 28, 0.2);
	--floor: rgba(255, 184, 28, 0.42);
	--rim: rgba(255, 238, 200, 0.55);
}

.hero-stage {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-glow {
	position: absolute;
	left: 50%;
	top: 46%;
	width: 135%;
	aspect-ratio: 1;
	border-radius: 50%;
	translate: -50% -50%;
	background: radial-gradient(closest-side, var(--glow-strong) 12%, var(--glow-soft) 55%, transparent);
	animation: glow-breathe 7s ease-in-out infinite alternate;
}

.hero-floor {
	position: absolute;
	left: -30%;
	right: -30%;
	bottom: -6%;
	height: 42%;
	background-image:
		linear-gradient(var(--floor) 1px, transparent 1px),
		linear-gradient(90deg, var(--floor) 1px, transparent 1px);
	background-size: 30px 30px;
	background-position: center bottom;
	transform: perspective(360px) rotateX(64deg);
	transform-origin: 50% 100%;
	-webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 100%, #000 30%, transparent 72%);
	mask-image: radial-gradient(ellipse 55% 75% at 50% 100%, #000 30%, transparent 72%);
}

.hero-shadow {
	position: absolute;
	left: 50%;
	bottom: 2%;
	width: 44%;
	height: 6%;
	border-radius: 50%;
	translate: -50% 0;
	background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent);
	animation: shadow-breathe 5s ease-in-out infinite;
}

.hero-depth {
	position: relative;
	width: 74%;
	translate: calc(var(--px) * 10px) calc(var(--py) * 6px);
	transition: translate 0.35s ease-out;
}

/* The avatar and its SelectionBox bob together. */
.hero-body {
	position: relative;
	animation: avatar-bob 5s ease-in-out infinite;
}

.hero-avatar {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 0 1.5px var(--rim)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.18));
}

/* Studio SelectionBox: a yolk outline that draws in once, with the instance name tag outside it. */
.hero-select {
	position: absolute;
	inset: 0;
}

.hero-select-box {
	position: absolute;
	inset: 0;
	border: 2px solid var(--yolk);
	clip-path: inset(0);
	animation: select-draw 0.6s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-select-tag {
	position: absolute;
	left: -2px;
	bottom: 100%;
	padding: 2px 6px;
	background: var(--yolk);
	color: var(--on-yolk);
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

@keyframes select-draw {
	from {
		clip-path: inset(0 100% 100% 0);
	}
}

.hero-chip {
	--depth: 16px;
	position: absolute;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 12px;
	white-space: nowrap;
	box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.45);
	translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
	transition: translate 0.35s ease-out;
	animation: chip-float 6s ease-in-out infinite, fade-in 0.6s 0.9s both;
}

.hero-chip b {
	font-weight: 500;
	color: var(--yolk-deep);
}

:root[data-theme="dark"] .hero-chip b {
	color: var(--yolk);
}

.chip-a {
	--depth: 24px;
	left: -10%;
	top: 26%;
}

.chip-b {
	--depth: -20px;
	right: -12%;
	top: 50%;
	animation-delay: -2s, 1.05s;
}

.chip-c {
	--depth: 14px;
	left: -4%;
	bottom: 18%;
	animation-delay: -4s, 1.2s;
}

@keyframes avatar-bob {
	0%,
	100% {
		transform: translateY(0) rotate(-0.6deg);
	}
	50% {
		transform: translateY(-12px) rotate(0.6deg);
	}
}

@keyframes shadow-breathe {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(0.8);
		opacity: 0.65;
	}
}

@keyframes glow-breathe {
	from {
		transform: scale(0.94);
		opacity: 0.85;
	}
	to {
		transform: scale(1.04);
		opacity: 1;
	}
}

@keyframes chip-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

/* Entrance: the wordmark rises letter by letter, then the copy and the stage follow. */
.wordmark span {
	display: inline-block;
	animation: letter-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wordmark span:nth-child(2) { animation-delay: 0.05s; }
.wordmark span:nth-child(3) { animation-delay: 0.1s; }
.wordmark span:nth-child(4) { animation-delay: 0.15s; }
.wordmark span:nth-child(5) { animation-delay: 0.2s; }
.wordmark span:nth-child(6) { animation-delay: 0.25s; }
.wordmark span:nth-child(7) { animation-delay: 0.3s; }

.hero-meta,
.hero-name,
.ctas {
	animation: copy-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-name { animation-delay: 0.3s; }
.ctas { animation-delay: 0.4s; }

.hero-figure {
	animation: stage-in 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes letter-rise {
	from {
		transform: translateY(45%);
		opacity: 0;
	}
}

@keyframes copy-rise {
	from {
		transform: translateY(14px);
		opacity: 0;
	}
}

@keyframes stage-in {
	from {
		transform: translateY(24px) scale(0.96);
		opacity: 0;
	}
}

.hero-name {
	margin: clamp(24px, 3.4vw, 40px) 0 0;
	font-size: clamp(24px, 2.8vw, 38px);
	font-weight: 700;
	font-stretch: 110%;
	letter-spacing: -0.015em;
	line-height: 1.12;
	max-width: 20em;
}

.hero-name em {
	font-style: normal;
	background: linear-gradient(transparent 62%, var(--yolk) 62%);
}

.ctas {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp(20px, 2.4vw, 28px);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 18px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	font: 600 15px var(--display);
	text-decoration: none;
	color: var(--ink);
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
	transform: translateY(-1px);
}

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

.btn-solid:hover {
	background: var(--ink-2);
}

.btn .arrow {
	font-family: var(--mono);
}

.btn-text {
	border-color: transparent;
	padding-inline: 10px;
	text-decoration: underline;
	text-decoration-color: var(--yolk);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* ---------- Properties (Studio panel, theme-aware) ---------- */

/* Below the stats: three groups side by side on wide screens, rows stagger in when the panel reveals. */
.props {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.props-bar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 12px;
	min-height: 32px;
	padding: 6px 12px;
	font-size: 12px;
	border-bottom: 1px solid var(--line);
}

.props-path {
	color: var(--muted);
	overflow-wrap: anywhere;
}

.props-group + .props-group {
	border-top: 1px solid var(--line);
}

.props-group summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	padding: 0 12px;
	background: var(--prop-head);
	font: 500 12px var(--mono);
	letter-spacing: 0.02em;
	list-style: none;
	cursor: pointer;
}

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

.props-group summary::before {
	content: "▾";
	color: var(--muted);
}

.props-group:not([open]) summary::before {
	transform: rotate(-90deg);
}

@media (pointer: coarse) {
	.props-group summary {
		min-height: 44px;
	}
}

.props dl {
	margin: 0;
}

.props dl > div {
	display: grid;
	grid-template-columns: 34% minmax(0, 1fr);
	min-height: 36px;
	border-top: 1px solid var(--line);
}

.props dl > div:hover {
	background: color-mix(in srgb, var(--yolk) 8%, transparent);
}

.props dt {
	padding: 9px 12px 8px;
	border-right: 1px solid var(--line);
	color: var(--muted);
	font: 400 12.5px/1.5 var(--mono);
}

.props dd {
	margin: 0;
	padding: 8px 14px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.props dd.str::before,
.props dd.str::after {
	content: '"';
	color: var(--muted);
}

.props a {
	text-decoration-color: var(--yolk);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

@media (min-width: 1080px) {
	.props {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.props-group + .props-group {
		border-top: 0;
		border-left: 1px solid var(--line);
	}
}

/* The panel itself stays put; its rows fade in one after another (--i is set by main.js). */
.js .props.reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.js .props dl > div {
		transition: opacity 0.45s ease, translate 0.45s ease;
		transition-delay: calc(var(--i, 0) * 45ms);
	}

	.js .props.reveal:not(.in) dl > div {
		opacity: 0;
		translate: 0 10px;
	}
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1.5px solid var(--ink);
	border-bottom: 1px solid var(--line);
}

.stat {
	padding: 22px 20px 24px 0;
}

.stat + .stat {
	padding-left: 20px;
	border-left: 1px solid var(--line);
}

.stat b {
	display: block;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 800;
	font-stretch: 115%;
	line-height: 1;
	letter-spacing: -0.03em;
	/* Equal-width digits: the count-up doesn't jitter and static numbers line up. */
	font-variant-numeric: tabular-nums;
}

.stat span {
	display: block;
	margin-top: 8px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.35;
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: clamp(36px, 5vw, 64px);
}

/* Instance paths (EN in both languages); <wbr> after each dot lets long paths wrap inside the column. */
.section-index {
	min-width: 0;
	color: var(--muted);
	padding-top: 12px;
	overflow-wrap: anywhere;
}

.section-title {
	margin: 0;
	font-size: clamp(38px, 6vw, 84px);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 0.95;
	letter-spacing: -0.035em;
}

.section-title .soft {
	color: var(--muted);
}

/* ---------- How I work ---------- */

.about-cols {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.about-text p {
	margin: 0 0 1.1em;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
}

.about-text p:first-child {
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Labels between the blocks: In my words, Workflow, Scope. */
.about-cols .panel-label {
	margin: 36px 0 14px;
}

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

.traits li {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.traits b {
	display: block;
	font-size: 18px;
}

.traits span {
	color: var(--ink-2);
}

.traits .mono {
	color: var(--muted);
	padding-top: 4px;
}

.work-flow,
.work-scope {
	margin: 0;
	color: var(--ink-2);
	max-width: 40em;
}

.work-templates {
	margin-top: 14px;
}

.panel-label {
	margin: 0 0 18px;
	color: var(--muted);
	text-transform: uppercase;
}

/* Output: the career log as Studio's Output panel, dark in both themes. */
.output {
	border: 1px solid #2b2b2b;
	border-radius: 12px;
	overflow: hidden;
	background: var(--code-panel);
	color: var(--code-text);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.output-bar {
	display: flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	background: var(--code-chrome);
	border-bottom: 1px solid #2b2b2b;
	color: var(--code-dim);
	font-size: 12px;
}

.output-log {
	list-style: none;
	margin: 0;
	padding: 10px 0 14px;
	font-size: 12.5px;
	line-height: 1.6;
}

.output-log li {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 0 8px;
	padding: 6px 14px;
}

.output-log li + li {
	border-top: 1px solid var(--code-line);
}

.output-log time,
.out-level {
	color: var(--code-dim);
}

.output-log li.now time {
	color: var(--yolk);
}

.output-log li.info .out-level {
	color: var(--tok-builtin);
}

.output-log p {
	margin: 0;
	color: var(--code-text);
}

.output-log b {
	color: var(--band-text);
	font-weight: 600;
}

/* Opens the Hatching proof in the Peek; plain text in print. */
.output-log button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--tok-function);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.output-log button:hover {
	color: var(--yolk);
}

@media (pointer: coarse) {
	.output-log button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* The log itself does not fade: it only triggers the row stagger (--i is set by main.js). */
.js .output-log.reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.js .output-log li {
		transition: opacity 0.4s ease;
		transition-delay: calc(var(--i, 0) * 60ms);
	}

	.js .output-log.reveal:not(.in) li {
		opacity: 0;
	}
}

/* ---------- Proof band (dark in both themes) ---------- */

.proof {
	background: var(--band);
	color: var(--band-text);
}

.proof .section-index,
.proof .section-title .soft {
	color: var(--band-dim);
}

.motto {
	margin: 0 0 clamp(48px, 7vw, 88px);
	font-size: clamp(44px, 8.6vw, 132px);
	font-weight: 900;
	font-stretch: 125%;
	line-height: 0.9;
	letter-spacing: -0.045em;
	text-transform: uppercase;
}

.motto span {
	color: var(--yolk);
}

.motto small {
	display: block;
	margin-top: 22px;
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 500;
	font-stretch: 100%;
	letter-spacing: -0.005em;
	text-transform: none;
	color: var(--band-soft);
	max-width: 30em;
	line-height: 1.35;
}

.proof-hint,
.proof-nojs {
	margin: 0 0 18px;
	color: var(--band-dim);
}

/* Six qualities: what it does, why it pays off, and the files that prove it. */
.proof-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--band-line);
}

.proof-row {
	display: grid;
	grid-template-columns: 40px minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
	grid-template-areas: "index what pays files";
	gap: 24px;
	padding: 26px 0;
	border-bottom: 1px solid var(--band-line);
}

/* A row whose refs all failed validation is hidden (main.js sets hidden). */
.proof-row[hidden] {
	display: none;
}

.proof-index {
	grid-area: index;
	color: var(--band-dim);
	padding-top: 6px;
}

.proof-what {
	grid-area: what;
}

.proof-row h3 {
	margin: 0 0 6px;
	font-size: clamp(21px, 2.1vw, 28px);
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -0.015em;
	line-height: 1.15;
}

.proof-row .how {
	margin: 0;
	color: var(--band-soft);
	font-size: 16px;
}

.proof-row .how code {
	font: 14px var(--mono);
	color: var(--band-text);
}

.proof-row .pays {
	grid-area: pays;
	align-self: start;
	margin: 0;
	font-size: 15.5px;
	color: var(--band-text);
	padding-left: 18px;
	border-left: 2px solid var(--yolk);
}

.proof-row:hover h3 {
	color: var(--yolk);
}

.proof-files {
	grid-area: files;
	min-width: 0;
}

.seen {
	margin: 12px 0 0;
	color: var(--band-dim);
	font-size: 12px;
}

/* File chips: open the Peek. Paper colors by default, band colors inside the proof band. */
.chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	--chip-line: var(--line);
	--chip-text: var(--ink);
	--chip-dim: var(--muted);
	--chip-accent: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--chip-line);
	border-radius: 6px;
	background: transparent;
	color: var(--chip-text);
	font-size: 12px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.proof .chip {
	--chip-line: var(--band-line);
	--chip-text: var(--band-text);
	--chip-dim: var(--band-dim);
	--chip-accent: var(--yolk);
}

.chip .vs-icon {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-right: 0;
}

.chip-range {
	color: var(--chip-dim);
}

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

.chip:hover .chip-name,
.chip:focus-visible .chip-name {
	color: var(--chip-accent);
}

@media (pointer: coarse) {
	.chip {
		min-height: 44px;
	}
}

/* ---------- Source: tabs and project trees ---------- */

/* Segmented control: Project trees (default) | Code samples. */
.source-tabs {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px;
	margin: 0 0 32px;
	padding: 4px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
}

/* Without JS (or if main.js never boots) both panes show and the tabs would do nothing. */
html:not(.js) .source-tabs {
	display: none;
}

.source-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 600 15px var(--display);
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.source-tab:hover {
	background: var(--prop-head);
}

.source-tab[aria-selected="true"] {
	background: var(--ink);
	color: var(--paper);
}

.source-tab .count {
	font-size: 12px;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

@media (pointer: coarse) {
	.source-tab {
		min-height: 44px;
	}
}

.section-intro {
	margin: 0 0 12px;
	color: var(--ink-2);
	max-width: 44em;
}

/* Legend for the explorer's dot, drawn as it looks inside the dark explorer. */
.source-dot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	color: var(--muted);
}

.source-dot .vs-badge {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border-radius: 4px;
	background: #1f1f1f;
}

/* VS Code (Dark Modern) window */
.vscode {
	--vs-bg: #1f1f1f;
	--vs-side: #181818;
	--vs-border: #2b2b2b;
	--vs-text: #cccccc;
	--vs-dim: #9d9d9d;
	--vs-hover: #2a2d2e;
	--vs-select: #04395e;
	--vs-focus: #0078d4;
	border-radius: 12px;
	overflow: hidden;
	background: var(--vs-bg);
	color: var(--vs-text);
	font: 13px/1.4 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
	border: 1px solid #111;
}

.vs-titlebar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 34px;
	padding: 0 0 0 12px;
	background: var(--vs-side);
	border-bottom: 1px solid var(--vs-border);
	font-size: 12.5px;
	color: var(--vs-dim);
}

.vs-menu {
	display: flex;
	gap: 14px;
}

.vs-title {
	padding: 4px 80px;
	border: 1px solid var(--vs-border);
	border-radius: 6px;
	background: #222;
	color: var(--vs-text);
	font-size: 12px;
}

.vs-controls {
	justify-self: end;
	display: flex;
}

.vs-controls span {
	width: 44px;
	text-align: center;
	line-height: 34px;
}

.vs-body {
	display: grid;
	grid-template-columns: 48px 300px 1fr;
	height: 560px;
}

.vs-activity {
	background: var(--vs-side);
	border-right: 1px solid var(--vs-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 6px;
}

.vs-activity span {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	color: #868686;
	border-left: 2px solid transparent;
}

.vs-activity span.active {
	color: #d7d7d7;
	border-left-color: var(--vs-focus);
}

.vs-activity svg {
	width: 24px;
	height: 24px;
}

.vs-sidebar {
	background: var(--vs-side);
	border-right: 1px solid var(--vs-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.vs-sidebar-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 35px;
	padding: 0 12px 0 20px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--vs-dim);
}

.vs-section-head {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 22px;
	padding-left: 2px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--vs-text);
	border-top: 1px solid var(--vs-border);
}

.vs-section-head svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.vs-tree {
	position: relative;
	flex: 1;
	overflow: auto;
	padding-bottom: 12px;
	outline: none;
	scrollbar-width: thin;
	scrollbar-color: #424242 transparent;
}

.vs-group[hidden] {
	display: none;
}

.vs-row {
	position: relative;
	display: flex;
	align-items: center;
	height: 22px;
	padding-right: 8px;
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
	border: 1px solid transparent;
}

.vs-row:hover {
	background: var(--vs-hover);
}

.vs-row[aria-selected="true"] {
	background: var(--vs-select);
}

.vs-tree:focus-within .vs-row[aria-selected="true"] {
	border-color: var(--vs-focus);
}

.vs-guide {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #3a3a3a;
}

.vs-tree:hover .vs-guide {
	background: #585858;
}

.vs-twistie {
	flex: 0 0 16px;
	height: 16px;
	fill: var(--vs-text);
}

.vs-icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-right: 6px;
}

.vs-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.vs-root > .vs-label {
	font-weight: 700;
}

.vs-badge {
	margin-left: auto;
	padding-left: 8px;
	font-size: 11px;
	color: #e2c08d;
}

.vs-editor {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--vs-bg);
}

.vs-tabs {
	height: 35px;
	background: var(--vs-side);
	border-bottom: 1px solid var(--vs-border);
	display: flex;
}

.vs-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px 0 10px;
	background: var(--vs-bg);
	border-top: 1px solid var(--vs-focus);
	border-right: 1px solid var(--vs-border);
	color: #ffffff;
	font-size: 13px;
	margin-bottom: -1px;
}

.vs-tab .vs-icon {
	margin-right: 0;
}

.vs-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	padding: 4px 14px;
	color: var(--vs-dim);
	font-size: 12.5px;
	min-height: 26px;
}

.vs-breadcrumbs .sep {
	opacity: 0.6;
	padding: 0 2px;
}

.vs-details {
	flex: 1;
	overflow: auto;
	padding: 18px 26px 26px;
}

.vs-details h4 {
	margin: 0 0 4px;
	font: 600 22px/1.2 "Segoe UI", system-ui, sans-serif;
	color: #ffffff;
}

.vs-details .role {
	margin: 0 0 22px;
	color: var(--vs-dim);
	max-width: 46em;
}

.vs-props {
	margin: 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0;
	border-top: 1px solid var(--vs-border);
	max-width: 640px;
}

.vs-props dt,
.vs-props dd {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--vs-border);
}

.vs-props dt {
	padding-right: 28px;
	color: var(--vs-dim);
	font-size: 12px;
}

.vs-props dd {
	font: 12.5px/1.5 Consolas, "IBM Plex Mono", monospace;
	color: #9cdcfe;
	word-break: break-word;
}

.vs-props dd.plain {
	font-family: inherit;
	font-size: 13px;
	color: var(--vs-text);
}

.vs-open {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 0;
	border-radius: 4px;
	background: var(--vs-focus);
	color: #fff;
	font: 13px "Segoe UI", system-ui, sans-serif;
	cursor: pointer;
}

.vs-open:hover {
	background: #026ec1;
}

@media (pointer: coarse) {
	.vs-open {
		min-height: 44px;
	}
}

.vs-hint {
	margin-top: 18px;
	color: var(--vs-dim);
	font-size: 12.5px;
}

.vs-status {
	display: flex;
	justify-content: space-between;
	height: 24px;
	padding: 0 10px;
	align-items: center;
	background: var(--vs-side);
	border-top: 1px solid var(--vs-border);
	font-size: 12px;
	color: var(--vs-dim);
}

.vs-status-right {
	display: flex;
	gap: 18px;
}

.structure-foot {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: end;
	margin-top: 40px;
}

.lifecycle {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: stretch;
	gap: 8px;
}

.phase {
	border: 1.5px solid var(--ink);
	border-radius: 12px;
	padding: 14px 14px 16px;
	background: var(--paper);
}

.phase:last-child {
	background: var(--yolk);
	border-color: var(--yolk);
	color: var(--on-yolk);
}

.phase:last-child p {
	color: var(--on-yolk);
}

.phase code {
	font: 600 15px var(--mono);
}

.phase p {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-2);
}

.phase-arrow {
	align-self: center;
	font-family: var(--mono);
	color: var(--muted);
}

.source-note {
	margin: 0;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.55;
}

.source-note code {
	font: 13px var(--mono);
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* ---------- Source: code samples ---------- */

.code-intro {
	margin: 0 0 36px;
	color: var(--ink-2);
	max-width: 44em;
}

.viewer {
	display: grid;
	grid-template-columns: 250px 1fr;
	border: 1px solid #2b2b2b;
	border-radius: 14px;
	overflow: hidden;
	background: var(--code-chrome);
}

.viewer.is-expanded {
	position: fixed;
	inset: 12px;
	z-index: 100;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7);
}

.viewer.is-expanded,
.viewer.is-expanded .pane,
.viewer.is-expanded .pane-body,
.viewer.is-expanded .editor {
	grid-template-rows: minmax(0, 1fr);
	min-height: 0;
}

body.viewer-open {
	overflow: hidden;
}

.tabs {
	display: flex;
	flex-direction: column;
	border-right: 1px solid #2b2b2b;
	padding: 8px;
	gap: 1px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #424242 transparent;
}

.tab-group {
	margin: 14px 0 4px;
	padding: 0 12px;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--code-dim);
}

.tab-group:first-child {
	margin-top: 6px;
}

.tab {
	text-align: left;
	border: 0;
	background: transparent;
	color: #b4b1a9;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
	font: 600 14.5px var(--display);
	line-height: 1.25;
	transition: background 0.15s, color 0.15s;
}

.tab small {
	display: block;
	margin-top: 3px;
	font: 400 11px var(--mono);
	color: var(--code-dim);
}

.tab:hover {
	background: rgba(236, 235, 230, 0.05);
	color: var(--band-text);
}

.tab[aria-selected="true"] {
	background: var(--yolk);
	color: var(--on-yolk);
}

.tab[aria-selected="true"] small {
	color: rgba(18, 18, 17, 0.65);
}

.pane {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--code-panel);
}

.snippet {
	flex: 1;
	min-height: 0;
	display: flex;
}

.snippet[hidden] {
	display: none;
}

.pane-body {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
}

/* Editor: file tabs, breadcrumbs and actions, code, status bar. */
.editor {
	min-width: 0;
	display: flex;
	flex-direction: column;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.ed-tabs {
	display: flex;
	background: var(--code-chrome);
	border-bottom: 1px solid #2b2b2b;
	overflow-x: auto;
	scrollbar-width: none;
}

.ed-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 35px;
	padding: 0 16px 0 10px;
	border: 0;
	border-right: 1px solid #2b2b2b;
	background: transparent;
	color: #9d9d9d;
	font: 13px "Segoe UI", system-ui, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}

.ed-tab:hover {
	color: #e0e0e0;
}

.ed-tab[aria-selected="true"] {
	background: var(--code-panel);
	color: #ffffff;
	box-shadow: inset 0 1px 0 var(--yolk);
}

.ed-tab .vs-icon {
	margin-right: 0;
}

.ed-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 30px;
	padding: 2px 8px 2px 16px;
	font-size: 12.5px;
	color: #9d9d9d;
}

.ed-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	min-width: 0;
}

.ed-crumbs .sep {
	opacity: 0.6;
	padding: 0 3px;
}

.ed-actions {
	display: flex;
	gap: 2px;
	flex-shrink: 0;
}

.ed-action {
	display: grid;
	place-items: center;
	width: 28px;
	height: 26px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #c5c5c5;
	cursor: pointer;
}

.ed-action:hover {
	background: rgba(255, 255, 255, 0.08);
}

.ed-action[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

/* Touch: file tabs and wrap/copy/expand reach 44px; the explorer rows keep VS Code's density. */
@media (pointer: coarse) {
	.ed-tab {
		height: 44px;
	}

	.ed-action {
		width: 44px;
		height: 44px;
	}
}

.ed-action svg {
	width: 16px;
	height: 16px;
}

.code {
	position: relative;
	flex: none;
	margin: 0;
	padding: 4px 0 20px;
	height: 620px;
	overflow: auto;
	font: 13px/1.65 var(--mono);
	tab-size: 4;
	-moz-tab-size: 4;
	color: var(--code-text);
	background: var(--code-panel);
	scrollbar-width: thin;
	scrollbar-color: #424242 transparent;
}

.viewer.is-expanded .code {
	flex: 1;
	height: auto;
	min-height: 0;
}

.code .line {
	display: block;
	width: max-content;
	min-width: 100%;
	padding-right: 24px;
	white-space: pre;
}

/* The gutter sticks while the code scrolls sideways. */
.code .line::before {
	content: attr(data-n);
	position: sticky;
	left: 0;
	display: inline-block;
	width: 4.2em;
	padding-right: 1.4em;
	text-align: right;
	color: var(--code-gutter);
	background: var(--code-panel);
	user-select: none;
}

.code.wrap .line {
	width: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	padding-left: 5.6em;
	text-indent: -5.6em;
}

.code.wrap .line::before {
	position: static;
	text-indent: 0;
}

.code .line.hl {
	background: var(--code-active);
}

.code .line.hl::before {
	color: var(--yolk);
	background: #2c271b;
	box-shadow: inset 2px 0 0 var(--yolk);
}

.code .gap {
	color: var(--code-dim);
	font-style: italic;
}

.ed-status {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 24px;
	align-items: center;
	padding: 0 12px;
	background: var(--code-chrome);
	border-top: 1px solid #2b2b2b;
	font-size: 12px;
	color: #9d9d9d;
	flex-wrap: wrap;
}

.ed-left span {
	margin-left: 14px;
}

.ed-status .strict {
	color: var(--yolk);
}

.t-k {
	color: var(--tok-keyword);
}

.t-d {
	color: var(--tok-control);
}

.t-s {
	color: var(--tok-string);
}

.t-n {
	color: var(--tok-number);
}

.t-c {
	color: var(--tok-comment);
}

.t-t {
	color: var(--tok-type);
}

.t-f {
	color: var(--tok-function);
}

.t-p {
	color: var(--tok-property);
}

.t-b {
	color: var(--tok-builtin);
}

.notes {
	border-left: 1px solid #2b2b2b;
	padding: 20px 20px 24px;
	font-size: 15px;
	overflow-y: auto;
	max-height: 710px;
	background: var(--code-chrome);
	scrollbar-width: thin;
	scrollbar-color: #424242 transparent;
}

.viewer.is-expanded .notes {
	max-height: none;
}

.notes h3 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--band-text);
}

.notes > p {
	margin: 0 0 18px;
	color: #a9a69e;
	font-size: 14.5px;
}

.notes ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.notes li {
	padding: 10px 10px 10px 12px;
	margin: 0 -10px 0 -12px;
	border-top: 1px solid var(--code-line);
	border-left: 2px solid transparent;
	color: #d4d1c9;
	line-height: 1.45;
	transition: background 0.15s, border-color 0.15s;
}

.notes li[data-mark] {
	cursor: pointer;
}

.note-jump {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.notes li[data-mark]:hover {
	background: rgba(255, 255, 255, 0.04);
}

.notes li.active {
	background: rgba(255, 184, 28, 0.08);
	border-left-color: var(--yolk);
}

.notes .lines {
	display: block;
	margin-top: 5px;
	font: 11.5px var(--mono);
	color: var(--code-dim);
}

.notes li.active .lines {
	color: var(--yolk);
}

.notes code {
	font: 12.5px var(--mono);
	color: var(--yolk);
}

/* ---------- Proof Peek (dialog, always dark) ---------- */

/* UA dialog styles reset; the dialog has no padding, so a click on it is a backdrop click. */
.peek {
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	max-width: none;
	max-height: none;
	width: min(760px, 62vw);
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: var(--code-chrome);
	color: var(--code-text);
	box-shadow: -24px 0 60px -24px rgba(0, 0, 0, 0.6);
}

.peek[open] {
	animation: peek-in-side 0.18s ease-out;
}

.peek::backdrop {
	background: rgba(18, 18, 17, 0.55);
}

@keyframes peek-in-side {
	from {
		transform: translateX(100%);
	}
}

@keyframes peek-in-up {
	from {
		transform: translateY(100%);
	}
}

body.peek-open {
	overflow: hidden;
}

.peek-inner {
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	height: 100%;
}

.peek-bar {
	display: flex;
	align-items: center;
	gap: 4px 12px;
	flex-wrap: wrap;
	min-height: 44px;
	padding: 4px 6px 4px 16px;
	border-bottom: 1px solid #2b2b2b;
	font-size: 12px;
	color: var(--code-dim);
}

#peek-path {
	min-width: 0;
	color: var(--code-text);
	overflow-wrap: anywhere;
}

.peek-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-left: auto;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--code-text);
	font: 22px/1 var(--display);
	cursor: pointer;
}

.peek-close:hover {
	background: rgba(255, 255, 255, 0.08);
}

.peek-head {
	padding: 16px 20px 14px;
}

.peek-kicker {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--yolk);
}

.peek-head h2 {
	margin: 0 0 6px;
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--band-text);
}

/* Focus lands on the title after every render; the dialog itself shows where focus is. */
.peek-head h2:focus {
	outline: none;
}

.peek-note {
	margin: 0;
	max-width: 60em;
	color: #d4d1c9;
	font-size: 15px;
	line-height: 1.45;
}

.peek-note code {
	font: 13px var(--mono);
	color: var(--yolk);
}

/* Same fill as the expanded viewer: tabs, bar and status keep their size, the code takes the rest. */
.peek-editor {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-top: 1px solid #2b2b2b;
}

.peek-editor .code {
	flex: 1;
	height: auto;
	max-height: none;
	min-height: 0;
}

.peek-foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #2b2b2b;
}

.peek-foot .grow {
	flex: 1;
}

#peek-count {
	font-size: 12px;
	color: var(--code-dim);
}

.peek-foot button {
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--band-line);
	border-radius: 6px;
	background: transparent;
	color: var(--band-text);
	font: 500 12.5px var(--mono);
	cursor: pointer;
}

.peek-foot button:hover {
	border-color: var(--yolk);
}

/* Ends of the list: still focusable, but visibly inactive. */
.peek-foot button[aria-disabled="true"] {
	opacity: 0.4;
	cursor: default;
	border-color: var(--band-line);
}

@media (pointer: coarse) {
	.peek-close,
	.peek-foot button {
		min-height: 44px;
		min-width: 44px;
	}
}

/* ---------- Projects ledger ---------- */

/* Scrolls sideways only if the table ever outgrows 901-1023px; the 4px pad keeps focus rings unclipped. */
.ledger-wrap {
	overflow-x: auto;
	margin: -4px;
	padding: 4px;
}

.ledger {
	width: 100%;
	border-collapse: collapse;
	border-top: 1.5px solid var(--ink);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.ledger th,
.ledger td {
	padding: 16px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.ledger th:first-child,
.ledger td:first-child {
	padding-left: 0;
}

.ledger th:last-child,
.ledger td:last-child {
	padding-right: 0;
}

.ledger thead th {
	padding-top: 12px;
	padding-bottom: 12px;
	color: var(--muted);
	font: 500 12px var(--mono);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ledger .num {
	text-align: right;
	white-space: nowrap;
}

.ledger td.num {
	font: 600 15px var(--mono);
	/* The font shorthand resets the inherited tabular-nums, so it is set again. */
	font-variant-numeric: tabular-nums;
}

/* Column labels repeat inside each number cell; only the mobile cards show them. */
.cell-k {
	display: none;
}

.ledger-row > th {
	width: 30%;
	font-weight: 400;
}

.ledger-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: -6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: 800 20px/1.15 var(--display);
	font-stretch: 110%;
	letter-spacing: -0.015em;
	text-align: left;
	cursor: pointer;
}

.ledger-toggle:hover span {
	text-decoration: underline;
	text-decoration-color: var(--yolk);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.lg-chevron {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.ledger-toggle[aria-expanded="true"] .lg-chevron {
	transform: rotate(90deg);
}

@media (pointer: coarse) {
	.ledger-toggle {
		min-height: 44px;
	}
}

.lg-what {
	margin: 2px 0 0;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.4;
}

.lg-status {
	color: var(--muted);
	white-space: nowrap;
}

.lg-status .live {
	color: var(--ink);
	white-space: normal;
}

.lg-systems {
	color: var(--ink-2);
	line-height: 1.45;
}

/* Detail row: cover, full description and Peek buttons. */
.ledger-more[hidden] {
	display: none;
}

.ledger-more > td {
	padding: 0 0 24px;
}

.more {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding: 20px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
}

.more-text p {
	margin: 0;
	color: var(--ink-2);
	font-size: 15.5px;
	max-width: 46em;
}

.ledger-total th,
.ledger-total td {
	border-bottom: 0;
	border-top: 1.5px solid var(--ink);
	font-weight: 700;
}

.lg-nostrict {
	color: var(--muted);
}

/* Covers: Roll an Egg uses its screenshot; unreleased projects show their real domain list. */
.project-cover {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: var(--band);
}

.project-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cover-code {
	padding: 16px 18px;
	font: 12px/1.7 var(--mono);
	color: var(--band-dim);
}

.cover-code .cover-path {
	display: block;
	margin-bottom: 8px;
	color: var(--band-text);
}

.cover-code .cover-path b {
	color: var(--yolk);
	font-weight: 500;
}

.cover-code .cover-domains span {
	white-space: nowrap;
}

.cover-code::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(transparent, var(--band));
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.project-links button {
	min-height: 36px;
	padding: 6px 11px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 500 12px var(--mono);
	cursor: pointer;
}

.project-links button:hover {
	background: var(--ink);
	color: var(--paper);
}

@media (pointer: coarse) {
	.project-links button {
		min-height: 44px;
	}
}

.projects-note {
	margin: 20px 0 0;
	color: var(--muted);
	font-size: 14px;
}

/* ---------- Contact ---------- */

.contact {
	border-top: 1.5px solid var(--ink);
}

.contact-big {
	margin: 0 0 clamp(36px, 5vw, 56px);
	font-size: min(calc((100vw - 2 * var(--gutter)) / 6.6), 168px);
	font-weight: 900;
	font-stretch: 125%;
	line-height: 0.86;
	letter-spacing: -0.05em;
	text-transform: uppercase;
}

.contact-big .dot {
	color: var(--yolk);
}

/* Discord, Email, Roblox, CV: 4 columns, 2 at 641-1080, 1 at 640 and below. */
.channels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--line);
}

.channel {
	padding: 24px 24px 28px 0;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.channel + .channel {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}

.channel .mono {
	color: var(--muted);
	text-transform: uppercase;
}

.channel strong {
	font-size: clamp(20px, 1.9vw, 27px);
	font-weight: 700;
	letter-spacing: -0.015em;
	word-break: break-word;
}

.channel:hover strong {
	text-decoration: underline;
	text-decoration-color: var(--yolk);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.channel .hint {
	font-size: 14px;
	color: var(--ink-2);
}

.copy {
	align-self: flex-start;
	margin-top: 6px;
	padding: 9px 14px;
	font-size: 14px;
}

@media (pointer: coarse) {
	.copy {
		min-height: 44px;
	}
}

/* The CV tile is a button that looks like the link tiles. */
.channel-cv {
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.availability {
	margin: 28px 0 0;
	color: var(--ink-2);
}

.summary-btn {
	margin: 14px 0 0 -10px;
}

.footer {
	border-top: 1px solid var(--line);
	padding: 28px 0 36px;
	color: var(--muted);
}

.footer .wrap {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---------- Reveal ---------- */

/* Hidden only when theme.js added the js class (dropped again if main.js never boots). */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	/* v2 entrance, bob, glow, chips and parallax, plus the SelectionBox draw-in: all live inside .hero. */
	.hero,
	.hero * {
		animation: none !important;
		transition: none !important;
	}

	/* !important: the bottom-sheet rule further down only swaps the animation name. */
	.peek[open] {
		animation: none !important;
	}

	/* The Output stagger only exists under no-preference, and JS scrolls use "auto". Buttons don't lift either. */
	.btn:hover {
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.pane-body {
		grid-template-columns: 1fr;
	}

	.notes {
		max-height: none;
		border-left: 0;
		border-top: 1px solid #2b2b2b;
	}

	/* 901-1080: what + pays share one column, files take the other. */
	.proof-row {
		grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"index files"
			"what files"
			"pays files";
		gap: 12px 32px;
	}

	.proof-index {
		padding-top: 0;
	}

	/* Wide enough for the longest unbreakable path segment ("globalzindev:Contact()", 22 mono chars). */
	.section-head {
		grid-template-columns: 184px 1fr;
	}

	.vs-body {
		grid-template-columns: 48px 250px 1fr;
	}

	.vs-title {
		padding: 4px 28px;
	}

	/* Contact: two tiles per row; the third starts a row, so it loses its left rule and both get a top rule. */
	.channels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.channel:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.channel:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}
}

/* Two-row top bar: brand + tools, then the same nav as a sideways-scrolling row (never the page). */
@media (max-width: 1023px) {
	.topbar .wrap {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: 52px 40px;
		grid-template-areas:
			"brand tools"
			"nav nav";
		height: auto;
		gap: 0 12px;
	}

	.nav {
		justify-self: stretch;
		height: 40px;
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter);
		gap: 4px;
		border-top: 1px solid var(--line);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
		/* Right-edge fade hints that the row scrolls; the extra end padding keeps the last link clear of it. */
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
		padding-inline-end: calc(var(--gutter) + 28px);
	}

	.nav::-webkit-scrollbar {
		display: none;
	}

	.nav a {
		display: inline-flex;
		align-items: center;
		align-self: stretch;
		padding: 0 10px;
		scroll-snap-align: start;
	}

	.nav .nav-contact {
		align-self: center;
		padding: 4px 12px;
	}
}

/* Touch, two-row bar: the link row grows to 44px (+1px rule); links fill it, the Contact pill's target does too. */
@media (max-width: 1023px) and (pointer: coarse) {
	:root {
		--topbar-h: 98px;
	}

	.topbar .wrap {
		grid-template-rows: 52px 45px;
	}

	.nav {
		height: 45px;
	}

	.nav a::after {
		inset: 0;
	}

	.nav .nav-contact::after {
		inset: -8px 0;
	}
}

@media (max-width: 900px) {
	/* Single column: copy, then the figure (no wordmark overlap), then stats 2x2, then Properties. */
	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"copy"
			"figure";
	}

	.hero-copy {
		padding-bottom: 20px;
	}

	.hero-figure {
		width: fit-content;
		max-width: 100%;
		margin: 16px auto 0;
	}

	.hero-depth {
		width: auto;
	}

	.hero-avatar {
		width: auto;
		max-height: 40vh;
		max-height: 40svh;
	}

	.hero-chip {
		padding: 5px 9px;
		font-size: 11px;
	}

	.chip-c {
		display: none;
	}

	.stats {
		grid-template-columns: 1fr 1fr;
	}

	.stat:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.stat:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.about-cols,
	.structure-foot {
		grid-template-columns: 1fr;
	}

	/* Stacked: index, title, how, pays, chips, shown-from. */
	.proof-row {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas:
			"index"
			"what"
			"pays"
			"files";
	}

	/* The Peek becomes a bottom sheet. */
	.peek {
		inset: auto 0 0 0;
		width: 100%;
		height: 88vh;
		height: 88svh;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, 0.6);
	}

	.peek[open] {
		animation-name: peek-in-up;
	}

	.viewer {
		grid-template-columns: 1fr;
	}

	.tabs {
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid var(--code-line);
		scrollbar-width: none;
	}

	.tab {
		flex: 0 0 auto;
	}

	.tab-group {
		display: none;
	}

	.vs-menu {
		display: none;
	}

	.vs-body {
		grid-template-columns: 1fr;
		grid-template-rows: 380px auto;
		height: auto;
	}

	.vs-activity {
		display: none;
	}

	.vs-sidebar {
		border-right: 0;
		border-bottom: 1px solid var(--vs-border);
	}

	.vs-details {
		padding: 16px 18px 22px;
	}

	/* Ledger as cards. The table roles in the HTML keep the semantics while rows are display:grid. */
	.ledger,
	.ledger tbody,
	.ledger tfoot,
	.ledger tr,
	.ledger th,
	.ledger td {
		display: block;
	}

	.ledger {
		border-top: 0;
	}

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

	.ledger-row,
	.ledger-total {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
		margin-top: 12px;
		padding: 16px;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: var(--surface);
	}

	.ledger th,
	.ledger td,
	.ledger-total th,
	.ledger-total td {
		padding: 0;
		border: 0;
	}

	.ledger-row > th,
	.lg-status,
	.lg-systems,
	.ledger-total > th {
		grid-column: 1 / -1;
		width: auto;
	}

	.ledger-toggle {
		margin: 0;
	}

	.lg-status {
		white-space: normal;
	}

	.ledger .num {
		text-align: left;
	}

	/* Number cells show their column label above the value. */
	.cell-k {
		display: block;
		margin-bottom: 2px;
		color: var(--muted);
		font: 500 11px var(--mono);
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}

	.ledger-row td.num {
		padding-top: 10px;
		border-top: 1px solid var(--line);
	}

	/* Total card: three numbers in a row; Strict is shown per place only. */
	.ledger-total {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border: 1.5px solid var(--ink);
	}

	.ledger-total .lg-nostrict {
		display: none;
	}

	.ledger-more > td {
		padding: 8px 0 0;
	}

	.more {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 16px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.section-head {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.section-index {
		padding-top: 0;
	}

	/* All four meta items wrap and stay visible (availability and UTC-3 are the 10-second facts). */
	.hero-meta {
		justify-content: flex-start;
		gap: 4px 14px;
	}

	.brand small {
		display: none;
	}

	.lifecycle {
		grid-template-columns: 1fr;
	}

	.phase-arrow {
		transform: rotate(90deg);
		justify-self: center;
	}

	.channels {
		grid-template-columns: minmax(0, 1fr);
	}

	.channel:nth-child(n) {
		padding-left: 0;
		border-left: 0;
	}

	.channel + .channel {
		border-top: 1px solid var(--line);
	}

	/* Source tabs: full width, two equal buttons. */
	.source-tabs {
		display: grid;
		width: 100%;
	}

	.source-tab {
		padding: 6px 10px;
		font-size: 14px;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
	}

	.ed-crumbs {
		display: none;
	}

	.code {
		font-size: 12px;
		height: 480px;
	}

	.vs-titlebar {
		grid-template-columns: 1fr auto;
	}

	.vs-title {
		justify-self: start;
		padding: 3px 12px;
	}

	.vs-controls span {
		width: 34px;
	}

	.vs-props {
		grid-template-columns: 1fr;
	}

	.vs-props dt {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

/* Narrow phones: keep brand + CV + theme + EN/PT on one 52px row down to 320px. */
@media (max-width: 400px) {
	.nav-tools {
		gap: 6px;
	}

	.cv-btn {
		padding: 0 8px;
	}
}

/* Below 360px, Properties rows stack: label above value. */
@media (max-width: 359px) {
	.props dl > div {
		grid-template-columns: minmax(0, 1fr);
	}

	.props dt {
		padding-bottom: 0;
		border-right: 0;
	}
}

/* ---------- Print: the same DOM as a 2-page CV (A4 and Letter) ---------- */

/* CV header and footer exist only on paper. */
.cv-only {
	display: none;
}

/* A page is about 700 CSS px wide, so the <=1080 and <=900 rules above also match; the rules below undo them. */
@media print {
	@page {
		margin: 12mm;
	}

	/* Light tokens whatever data-theme says, so the dark bands, Output and code tokens print as ink on white. */
	:root,
	:root[data-theme] {
		color-scheme: light;
		--paper: #fff;
		--paper-2: #fff;
		--surface: #fff;
		--ink: #121211;
		--ink-2: #2a2a28;
		--muted: #555;
		--line: rgba(18, 18, 17, 0.25);
		--band: #fff;
		--band-text: #121211;
		--band-soft: #333;
		--band-dim: #555;
		--band-line: rgba(18, 18, 17, 0.25);
		--code-panel: #fff;
		--code-text: #121211;
		--code-dim: #555;
		--tok-builtin: #121211;
	}

	/* No motion or shadows on paper, and no focus ring (closing the Peek moves focus back to a chip). */
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		box-shadow: none !important;
		text-shadow: none !important;
		outline: none !important;
	}

	/* The Peek and the expanded viewer lock body scrolling; paper needs every page. */
	body {
		overflow: visible !important;
		background: #fff;
		color: var(--ink);
		font: 9.5pt/1.35 var(--display);
	}

	.mono {
		font-size: 8.5pt;
		letter-spacing: 0;
	}

	.wrap {
		max-width: none;
		padding: 0;
	}

	.reveal,
	.js .reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	/* Screen-only parts. The name line and the motto already open the CV header. */
	.topbar,
	.skip,
	.hero-meta,
	.wordmark,
	.hero-copy,
	.hero-figure,
	.stats,
	#source,
	#contact,
	.footer,
	.peek,
	noscript,
	.motto,
	.proof-hint,
	.about-text,
	.chips-trees,
	.chip svg,
	.projects-note,
	.ledger-more,
	.lg-chevron {
		display: none !important;
	}

	/* Buttons print only as chips, project names and the Output file name (below). */
	button:not(.chip, .ledger-toggle) {
		display: none;
	}

	h2,
	h3,
	.section-head,
	.panel-label,
	.output-bar,
	.cv-head {
		break-after: avoid;
	}

	.proof-row,
	.traits li,
	.output-log li,
	.props dl > div,
	.ledger tr {
		break-inside: avoid;
	}

	/* CV header and footer. */
	.cv-only {
		display: block;
	}

	.cv-head {
		margin: 0 0 6pt;
		padding-bottom: 6pt;
		border-bottom: 1pt solid var(--ink);
	}

	.cv-name {
		margin: 0;
		font: 800 20pt/1.05 var(--display);
		font-stretch: 110%;
		letter-spacing: -0.01em;
	}

	.cv-role {
		margin: 2pt 0 0;
		font-size: 11pt;
		font-weight: 600;
	}

	.cv-contact {
		margin: 4pt 0 0;
		color: var(--ink-2);
		overflow-wrap: anywhere;
	}

	.cv-summary {
		margin: 5pt 0 0;
		font-size: 10pt;
	}

	.cv-summary em {
		font-style: normal;
	}

	.cv-url::before {
		content: " · ";
	}

	.cv-foot-url::before {
		content: " ";
	}

	/* No URL on file: (main.js leaves them empty), so the separators go too. */
	.cv-url:empty,
	.cv-foot-url:empty {
		display: none;
	}

	.cv-foot {
		margin: 10pt 0 0;
		padding-top: 4pt;
		border-top: 1px solid var(--line);
		color: var(--muted);
		font-size: 8pt;
	}

	/* Sections: small heads, yolk only as the 1.5pt rule under each one. */
	.hero {
		padding: 0;
		overflow: visible;
	}

	.hero-grid {
		display: block;
		padding: 0;
	}

	.section {
		margin-top: 10pt;
		padding: 0;
	}

	.section-head {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2pt 10pt;
		margin: 0 0 5pt;
		padding-bottom: 2pt;
		border-bottom: 1.5pt solid var(--yolk);
	}

	.section-title {
		order: -1;
		font-size: 13pt;
		line-height: 1.1;
		letter-spacing: -0.01em;
	}

	.section-index {
		margin-left: auto;
		padding: 0;
		font-size: 7.5pt;
	}

	.panel-label {
		font-size: 7.5pt;
		letter-spacing: 0.04em;
	}

	/* Properties: all groups (opened by main.js before printing), two columns, no bar or chevrons. */
	.props {
		display: block;
		max-width: none;
		margin: 0;
		border: 0;
		border-radius: 0;
		background: none;
		overflow: visible;
	}

	.props-bar,
	.props-group summary::before {
		display: none;
	}

	.props-group + .props-group {
		border-top: 0;
		border-left: 0;
	}

	.props-group summary {
		display: block;
		min-height: 0;
		margin: 5pt 0 1pt;
		padding: 0;
		background: none;
		color: var(--muted);
		font: 500 7.5pt var(--mono);
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.props dl {
		columns: 2;
		column-gap: 14pt;
	}

	.props dl > div {
		grid-template-columns: 30% minmax(0, 1fr);
		min-height: 0;
		border-top: 0;
		border-bottom: 1px solid var(--line);
	}

	.props dt {
		padding: 1.5pt 6pt 1.5pt 0;
		border-right: 0;
		font-size: 8pt;
		line-height: 1.35;
	}

	.props dd {
		padding: 1.5pt 0;
		font-size: 9pt;
		line-height: 1.3;
	}

	.props a {
		text-decoration: none;
	}

	/* Qualities: index, title + how + gain on the left, the files as running text on the right (saves a line per row). */
	.proof {
		background: none;
		color: var(--ink);
	}

	.proof-list {
		border-top: 0;
	}

	.proof-row {
		grid-template-columns: 14pt minmax(0, 11fr) minmax(0, 9fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"index what files"
			"index pays files";
		gap: 2pt 10pt;
		padding: 4pt 0 5pt;
		border-bottom: 1px solid var(--line);
	}

	.proof-index {
		padding-top: 1pt;
		color: var(--muted);
	}

	.proof-row h3 {
		margin: 0 0 1pt;
		font-size: 10.5pt;
		line-height: 1.2;
		color: var(--ink);
	}

	.proof-row .how,
	.proof-row .pays {
		font-size: 9pt;
		line-height: 1.35;
	}

	.proof-row .how code {
		font-size: 8pt;
	}

	.proof-row .pays {
		padding-left: 6pt;
		border-left: 1pt solid var(--line);
	}

	.chips {
		display: block;
	}

	.chips li {
		display: inline;
	}

	.chips li + li::before {
		content: " · ";
		color: var(--muted);
		font: 8pt var(--mono);
	}

	.chip {
		display: inline;
		min-height: 0;
		padding: 0;
		border: 0;
		background: none;
		color: var(--ink);
		font: 8pt var(--mono);
		letter-spacing: 0;
	}

	.chip-range {
		color: var(--muted);
	}

	.seen {
		margin: 1pt 0 0;
		color: var(--muted);
		font-size: 7.5pt;
	}

	/* How I work: traits one line each, workflow, scope; the Output log as a plain two-column list. */
	.about-cols {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 14pt;
	}

	.about-cols .panel-label {
		margin: 6pt 0 2pt;
	}

	.about-text + .panel-label {
		margin-top: 0;
	}

	.traits {
		border-top: 0;
	}

	.traits li {
		display: block;
		padding: 1pt 0;
		border-bottom: 0;
	}

	.traits li > .mono {
		display: none;
	}

	.traits b {
		display: inline;
		font-size: 9.5pt;
	}

	.traits b::after {
		content: ": ";
	}

	.work-flow,
	.work-scope {
		max-width: none;
		font-size: 9.5pt;
	}

	.work-templates {
		margin-top: 2pt;
	}

	.output {
		border: 0;
		border-radius: 0;
		background: none;
		color: var(--ink);
		overflow: visible;
	}

	.output-bar {
		height: auto;
		margin: 6pt 0 2pt;
		padding: 0;
		border: 0;
		background: none;
		color: var(--muted);
		font-size: 7.5pt;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.output-log {
		padding: 0;
		font-size: 8pt;
		line-height: 1.35;
	}

	/* Rows can still be mid-stagger (opacity 0) when printing starts. */
	.output-log li,
	.output-log li + li {
		grid-template-columns: 30pt minmax(0, 1fr);
		gap: 0 6pt;
		padding: 1.5pt 0;
		border-top: 0;
		opacity: 1 !important;
		transform: none !important;
	}

	.output-log time,
	.output-log .out-level,
	.output-log li.now time,
	.output-log li.info .out-level,
	.output-log p,
	.output-log b {
		color: var(--ink);
	}

	/* The Roll an Egg file name prints as plain text. */
	.output-log button {
		display: inline;
		min-height: 0;
		color: inherit;
		text-decoration: none;
	}

	/* Projects: back to a real table (the <=900px card rules match a page too); summary rows and totals only. */
	.ledger-wrap {
		overflow: visible;
		margin: 0;
		padding: 0;
	}

	.ledger {
		display: table;
		border-top: 1pt solid var(--ink);
		font-size: 8.5pt;
	}

	.ledger thead {
		display: table-header-group;
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	/* tfoot as a plain group: the total prints once instead of at the foot of every page. */
	.ledger tbody,
	.ledger tfoot {
		display: table-row-group;
	}

	.ledger tr,
	.ledger-row,
	.ledger-total {
		display: table-row;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.ledger th,
	.ledger td {
		display: table-cell;
		padding: 3pt 5pt;
		border: 0;
		border-bottom: 1px solid var(--line);
	}

	.ledger thead th {
		padding-top: 2pt;
		padding-bottom: 2pt;
		font-size: 7pt;
	}

	.ledger-row td.num {
		padding-top: 3pt;
		border-top: 0;
	}

	.ledger-total th,
	.ledger-total td {
		border-top: 1pt solid var(--ink);
		border-bottom: 0;
	}

	.ledger .num {
		text-align: right;
	}

	.ledger td.num {
		font-size: 8.5pt;
	}

	.ledger-row > th {
		width: 27%;
	}

	.ledger-toggle {
		min-height: 0;
		margin: 0;
		font-size: 9.5pt;
		line-height: 1.2;
	}

	.lg-what {
		margin: 1pt 0 0;
		font-size: 8pt;
		line-height: 1.3;
	}

	.lg-status {
		white-space: normal;
	}

	.cell-k {
		display: none;
	}

	.ledger-total .lg-nostrict {
		display: table-cell;
	}
}
