/* helloloam.dev — the one stylesheet
 *
 * Type: Geist, Copyright (c) 2023 Vercel, in collaboration with
 * basement.studio — licensed under the SIL Open Font License 1.1
 * (https://openfontlicense.org): free to use, bundle and redistribute with
 * that licence.
 */

@font-face {
	font-family: "Geist";
	src: url("/theme/static/fonts/Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Three colours, each on the same four steps: full · soft (towards paper) ·
	   deep (towards black) · wash (a breath of it on paper). Paper's own ladder
	   runs the other way: deep (a step of ink) · light (white). On the dark the
	   ink ladder flips: quiet text is wash, a line is soft. */
	--orange: #FA500F;
	--ink:    #252525;
	--paper:  #FBFBF8;
	--orange-soft: color-mix(in oklab, var(--orange) 60%, var(--paper));
	--orange-deep: color-mix(in oklab, var(--orange) 80%, #000);
	--orange-wash: color-mix(in oklab, var(--orange) 10%, var(--paper));
	--ink-soft:    color-mix(in oklab, var(--ink) 70%, var(--paper));
	--ink-deep:    color-mix(in oklab, var(--ink) 60%, #000);
	--ink-wash:    color-mix(in oklab, var(--ink) 13%, var(--paper));
	--paper-deep:  color-mix(in oklab, var(--paper) 94%, var(--ink));
	--paper-light: #fff;

	/* Measured from the design at a 1640 px frame, fluid below it. */
	/* The gutter is where text starts; the first line stands --lead before it,
	   so the line keeps its distance from the edge on a phone too. */
	--gutter-base: calc(clamp(1.75rem, 2.5vw, 2.5625rem) + clamp(.75rem, 1vw, .875rem));
	/* Wider than the 1640 frame the gutters grow alike: the grid, its lines and
	   the text stay 1640 wide in the middle; the orange, the bands' surfaces and
	   the horizontals still run from edge to edge. */
	--gutter: max(var(--gutter-base), calc((100vw - 1640px) / 2 + var(--gutter-base)));
	/* Room around a section: above and below always 1.5× the side — calmer to
	   read. Spacing inside a section (heading to content, card to card) is its own. */
	--pad-y: calc(1.5 * var(--gutter-base));
	/* The heading ladder: h1 the page's title on the orange (and the footer's
	   heading), h2 every heading in a page's content, h3 a note beside the text
	   (a principle's TL;DR). A principle's chapters are headed at text size. */
	--step-h1:   clamp(2.25rem, 1.2rem + 3vw, 3.75rem);   /* 58–60 px at 1640 */
	--step-body: clamp(1.125rem, .9rem + .6vw, 1.5rem);    /* 24 px from 1600 — the orange and the footer */
	--step-text: clamp(1.0625rem, .875rem + .45vw, 1.3125rem);   /* 21 px — reading text in the content, a touch smaller */
	--step-h2:   clamp(2rem, 1.2rem + 2vw, 3rem);       /* 48 px wide */
	--step-h3:   clamp(1.375rem, 1rem + .9vw, 1.875rem); /* 30 px wide */

	/* The grid of the orange: the dots' spacing and the tiles' size are one
	   measure, so the circles grow out of the dots. Whole pixels, or the joins
	   between tiles show a hairline seam. */
	--grid: round(clamp(3rem, 4.4vw, 4.5rem), 2px);

	/* The lines of the paper: four equal columns over the width between the
	   gutters — the middle line on the middle of the page; every line stands
	   --lead before the text that starts on it, and text ends --lead before
	   the next line: room on both sides. */
	--lead: clamp(1.5rem, 2vw, 1.75rem);
	--c1: .25; --c2: .5; --c3: .75;

	color-scheme: light;
}

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

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

body {
	--surface: var(--paper);
	margin: 0;
	background-color: var(--paper);
	/* the lines are drawn per section (main, the footer): each knows its own columns */
	color: var(--ink);
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-size: var(--step-body);
	line-height: 1.4;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* ── the orange ─────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* The dot grid: paper at 30%, one dot per grid point. tiles.js moves it onto
	   the tiles' corners on home (--dots-x/--dots-y); elsewhere it hangs from
	   the centre of the page. */
	background-color: var(--orange);
	background-image: radial-gradient(circle at center, var(--orange-soft) 0 2px, transparent 2.5px);
	background-size: var(--grid) var(--grid);
	background-position: var(--dots-x, calc(50% + var(--grid) / 2)) var(--dots-y, calc(var(--grid) / -2));
	color: var(--paper);
	padding: 0 var(--gutter) var(--pad-y);
	min-height: min(30.5rem, 92svh);
	display: flex;
	flex-direction: column;
}
.hero.is-page { min-height: 0; }

.bar {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1.6vw, 1.5rem);
	padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.0625rem);
	font-size: clamp(1rem, .9rem + .35vw, 1.1875rem);   /* 19 px wide, 16 on a phone: the menu stays one line beside the mark */
	font-weight: 600;
}
.bar-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; color: inherit; }   /* loam's mark as the engine's own pages carry it: the leaf (28) in its 48 box, the box on the gutter */
.bar-mark svg { width: 28px; height: 28px; display: block; }
/* The leaf grows: on page load, and again under the hand (leaf.js). Four parts in the 48 box: the circles keep their
   r 12 and move 4 (up, right), the squares grow 12 → 16 from a corner that stays put — a leaf of 24 becomes the
   leaf of 28. The load eases out softly, the hand with a small overshoot. */
.bar-mark .leaf > g { transform-box: view-box; }
.bar-mark .leaf > .leaf-bl { transform-origin: 10px 38px; }
.bar-mark .leaf > .leaf-tr { transform-origin: 22px 26px; }
.bar-mark.is-growing .leaf > g { animation: .64s cubic-bezier(.2, .7, .2, 1) .12s both; }
.bar-mark.is-hover .leaf > g { animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); animation-delay: 0s; }
.bar-mark.is-growing .leaf > .leaf-tl { animation-name: leaf-up; }
.bar-mark.is-growing .leaf > .leaf-br { animation-name: leaf-right; }
.bar-mark.is-growing .leaf > .leaf-bl,
.bar-mark.is-growing .leaf > .leaf-tr { animation-name: leaf-grow; }
@keyframes leaf-up    { from { transform: translate(0, 4px); } }
@keyframes leaf-right { from { transform: translate(-4px, 0); } }
@keyframes leaf-grow  { from { transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .bar-mark .leaf > g { animation: none !important; } }

.bar-nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(1rem, .6rem + 1.2vw, 1.5rem); }
.bar-nav a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.bar-nav a:hover,
.bar-nav a[aria-current="page"] { text-decoration-thickness: 3px; }

.hero-copy {
	margin-top: auto;
	padding-top: clamp(3rem, 7vw, 6.5rem);
	max-width: 42rem;
}
.hero-copy h1 {
	color: var(--paper-light);   /* the headline is white; the rest of the orange speaks in paper */
	font-size: var(--step-h1);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.hero-copy h1 .line { display: block; }
/* A page's selling points under the words (presentation.usps): short lines, each on a rule in orange-soft, the
 * words at 600 — read at a glance, like the cards on paper. */
.usps { list-style: none; padding: 0; margin-top: 2rem; max-width: 32rem; display: grid; }
.usps li { border-top: 1px solid var(--orange-soft); padding: .6rem 0; font-weight: 600; }
.usps li:last-child { border-bottom: 1px solid var(--orange-soft); }   /* a headline of short sentences: one a line */
.lede {
	margin-top: 1.75rem;
	max-width: 32rem;
	text-wrap: pretty;
}

/* The hero on home: the copy and a photo seen through the leaf, side by side, the copy in the middle beside it;
 * on a phone under each other. The leaf rests as the leaf of 24 and grows open to the leaf of 28 when it comes into
 * view (hero-leaf.js) — the bar's growth, at the size of a figure. A clipPath holds shapes only, never a g. */
.hero-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	/* The grid's own width (a lead past the gutter on both sides), so the halves
	   meet on the middle line and the second one centres on the 75% line. */
	margin: auto calc(var(--lead) * -1) 0;
	padding-top: clamp(2rem, 5vw, 4.5rem);
}
.hero-body .hero-copy { margin-top: 0; padding: 0 var(--lead); min-width: 0; }
@media (max-width: 760px) { .hero-body { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2rem, 6vw, 3rem); } }
.hero-leaf { margin: 0; width: 100%; aspect-ratio: 1; }
/* The art: a presentation piece — the whole of its two columns (on a phone the whole grid) is its area. The photo's
 * leaf and the quote's leaf are one group, centred in it: of the room the photo leaves (--room), a quarter stays on
 * either side of the group and half is where the quote stands out, bottom left, from under the photo. Both reach down
 * over the tiles (two rows). */
.hero-art { --room: 18%; position: relative; z-index: 2; justify-self: stretch; padding: 0 calc(var(--room) / 4) 0 calc(var(--room) * 3 / 4); margin-bottom: calc(var(--grid) * -2); }
/* The quote's leaf: the mark mirrored (round top right and bottom left, the leaf's large radius in em), black, still;
 * at least square, a longer quote makes it taller. The first thing you could just say (itemlist/imagine), the list's
 * name under it. */
.quote-leaf { position: absolute; left: calc(var(--room) / 4); bottom: -10%; margin: 0; width: min(12.5em, 46%); aspect-ratio: 1; display: flex; flex-direction: column; background: var(--ink); color: var(--paper); border-radius: 0 2.6em 0 2.6em; padding: 1.25em 1.6em 1.4em 1.5em; font-size: clamp(1rem, .55rem + 1.1vw, 1.75rem); }
.quote-leaf blockquote { margin: 0; flex: 1; display: flex; flex-direction: column; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
.quote-leaf .q-label { display: block; margin-top: auto; padding-top: .8em; font-size: .62em; font-weight: 500; letter-spacing: .02em; color: var(--ink-wash); }
@media (max-width: 760px) {
	.hero-art { --room: 16%; margin-bottom: calc(var(--grid) * -1.5); }
	.quote-leaf { bottom: -12%; width: min(10.5em, 56%); font-size: clamp(.95rem, .7rem + 1.2vw, 1.25rem); }
}
.hero-leaf svg { width: 100%; height: 100%; display: block; }
.hero-leaf .clip > * { transform-box: view-box; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
.hero-leaf .leaf-bl { transform-origin: 10px 38px; transform: scale(.75); }
.hero-leaf .leaf-tr { transform-origin: 22px 26px; transform: scale(.75); }
.hero-leaf .leaf-tl { transform: translate(0, 4px); }
.hero-leaf .leaf-br { transform: translate(-4px, 0); }
.hero-leaf.is-growing .clip > * { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-leaf .clip > * { transform: none; transition: none; } }

/* The photo-and-quote group on a page's orange (hero(): presentation.image + .quote) — home's group; no tiles to
 * reach into, so it stands on the foot of the orange. */
.hero.is-page .hero-art { margin-bottom: 0; }
.hero.is-page:has(.hero-art) { padding-bottom: calc(var(--pad-y) + 4%); }

/* A presentation figure on a page's orange (hero(): presentation.figure): a Hairline drawing straight on the orange,
 * in paper with the ink as its one accent. The drawing itself — not its 5:4 frame — spans two columns, the grid's right
 * half: figure.js measures it at rest (--fig-k the frame in drawing widths, --fig-cx/-cy its centre in the frame), and
 * its centre sits on the 75% line and on the middle of the orange, which cuts off what stands out — a tall figure is
 * shown in part, on purpose. --fig-max caps a drawing's height (one knob per width: here the size of a tall figure,
 * on a phone how much of it shows). The words keep the
 * left half, in front. On a phone it stands under the words as wide as the grid, its foot cut off by the orange. */
.hero-figure {
	--hairline-plate: var(--orange); --hairline-hi: var(--ink); --hairline-edge: var(--paper-light);
	--hairline-mid: var(--orange-soft); --hairline-lo: var(--orange-soft); --hairline-stroke: 1.25;
	--grid-w: calc(100% - 2 * var(--gutter) + 2 * var(--lead));
	/* two columns wide — unless the drawing would stand taller than --fig-max, then that height sets its size */
	--fig-max: 50cqw;
	--frame: min(calc(var(--grid-w) / 2 * var(--fig-k, 1)), calc(var(--fig-max) / (.8 * var(--fig-dh, 1))));
	position: absolute; z-index: 0; margin: 0;
	width: var(--frame);
	left: calc(var(--gutter) - var(--lead) + var(--grid-w) * var(--c3));
	top: 50%;
	translate: calc(-100% * var(--fig-cx, .5)) calc(-100% * var(--fig-cy, .5));
}
.hero-figure:not(.is-fit) { visibility: hidden; }   /* until it is measured: no jump */
.hero-figure > div { width: 100%; }
.hero:has(.hero-figure) { container-type: inline-size; }
.hero:has(.hero-figure) .bar { position: relative; z-index: 1; }
.hero:has(.hero-figure) .hero-copy { position: relative; z-index: 1; max-width: min(42rem, calc(50% - var(--lead))); }
@media (max-width: 760px) {
	.hero:has(.hero-figure) .hero-copy { max-width: 42rem; }
	.hero-figure {
		--grid-w: calc(100cqw + 2 * var(--lead));   /* in the flow: the hero's content, a lead past it on both sides —
		                                               in container units, so a height can use it too */
		--frame: calc(var(--grid-w) * var(--fig-k, 1));
		position: relative; top: auto; left: auto; translate: none;
		/* the drawing from the first line to the edge, its top 2rem under the words; of its height we show nine
		   tenths, at most --fig-max, and the foot of the orange cuts off the rest */
		--fig-max: 80vw;
		height: calc(var(--frame) * .8 * var(--fig-top, 0) + min(var(--frame) * .8 * var(--fig-dh, 1) * .9, var(--fig-max)));
		overflow: hidden;
		margin: calc(2rem - var(--frame) * .8 * var(--fig-top, 0)) 0 calc(var(--pad-y) * -1)
			calc(var(--lead) * -1 + var(--grid-w) / 2 - var(--frame) * var(--fig-cx, .5));
	}
}

/* The tiles: Truchet quarter-arcs on the orange (assets/js/tiles.js turns
 * them). The message comes first; the tiles are a band under it, full bleed,
 * whole rows, standing on the bottom edge of the orange. A tile carries two
 * rings centred on opposite corners, cut to quarter-arcs that meet the edge
 * midpoints, so neighbours join. */
.hero:has(.tiles) { padding-bottom: 0; }

.tiles {
	--tile: var(--grid);
	--stroke: round(calc(var(--tile) * .2), 1px);
	--whole: y;   /* tiles.js: whole rows; across, the edges of the orange cut the field */
	height: calc(var(--tile) * 4);
	margin: clamp(3rem, 6vw, 5.5rem) calc(var(--gutter) * -1) 0;
	display: grid;
	grid-template-columns: repeat(var(--cols, 12), var(--tile));
	grid-auto-rows: var(--tile);
	justify-content: center;
	align-content: start;
	overflow: hidden;
	pointer-events: none;
	position: relative;
}
.tile {
	position: relative;
	z-index: 1;
	clip-path: inset(-.5px);   /* half a pixel over the neighbour: no anti-aliased seam at the joins */
	transform: rotate(calc(var(--r, 0) * 90deg));
	transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}
.tile::before,
.tile::after {
	content: "";
	position: absolute;
	width: calc(var(--tile) + var(--stroke));
	aspect-ratio: 1;
	border: var(--stroke) solid var(--paper);
	border-radius: 50%;
}
.tile::before { top: calc((var(--tile) + var(--stroke)) / -2); left: calc((var(--tile) + var(--stroke)) / -2); }
.tile::after  { bottom: calc((var(--tile) + var(--stroke)) / -2); right: calc((var(--tile) + var(--stroke)) / -2); }

/* A fixed orange disc on every first circle's centre: it covers the dot the
 * circle grew from and stays put when the quarters turn, so the turning lines
 * never take a fill along over other dots. Placed by tiles.js (absolute, out of
 * the grid flow, under the tiles). */
.tile-dot {
	position: absolute;
	z-index: 0;
	width: var(--stroke);
	aspect-ratio: 1;
	margin: calc(var(--stroke) / -2) 0 0 calc(var(--stroke) / -2);
	border-radius: 50%;
	background: var(--orange);
}
.tiles.is-growing .tile-dot { animation: grow .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }

/* The first fill: every ring grows out of its dot (the arc's centre is a grid
 * point), each at its own moment (--d1/--d2 from tiles.js); the turning starts
 * when the last one stands. */
.tiles.is-growing .tile::before { animation: grow .7s cubic-bezier(.2, .8, .2, 1) var(--d1, 0ms) both; }
.tiles.is-growing .tile::after  { animation: grow .7s cubic-bezier(.2, .8, .2, 1) var(--d2, 0ms) both; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }

/* Headlines: the words fade in and up, one after the other (words() in
 * theme/functions.php wraps them; no script, so nothing flashes first). */
.words .w {
	display: inline-block;
	animation: rise .8s cubic-bezier(.2, .8, .2, 1) calc(120ms + var(--i, 0) * 70ms) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.tile { transition: none; }
	.tiles.is-growing .tile::before,
	.tiles.is-growing .tile::after,
	.tiles.is-growing .tile-dot,
	.words .w { animation: none; }
}

/* ── The clouds: home's imagine section ─────────────────────────────────────
 * Four fifths of a screen in black, scrolled past like any other band; the
 * things you could just say (itemlist/imagine) as quote leaves in white outline
 * rise in three depths while it passes (clouds.js), the list's name and the way
 * to the principles still in front. A cloud is filled with the night, so a
 * nearer one covers a farther one and no outline crosses the words. */
.band.clouds { --night: var(--ink-deep); position: relative; height: 80vh; height: 80dvh; overflow: hidden; background: var(--night); color: var(--paper); }
.clouds-layer { position: absolute; inset: 0; will-change: transform; }
.cloud {
	position: absolute; width: 10.5em; aspect-ratio: 1; margin: 0;
	border: 1.5px solid currentColor; border-radius: 0 2.6em 0 2.6em; background: var(--night);
	padding: 1.1em 1.4em 1.2em 1.3em;
	font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance;
}
.clouds-far  .cloud { font-size: clamp(.7rem, .55rem + .45vw, .95rem); color: var(--ink-soft); }
.clouds-mid  .cloud { font-size: clamp(.85rem, .65rem + .6vw, 1.15rem); color: var(--ink-wash); }
.clouds-near .cloud { font-size: clamp(1rem, .75rem + .8vw, 1.45rem); color: var(--paper); }
.clouds-front { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 0 var(--gutter); pointer-events: none; }
.clouds-msg { display: grid; justify-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); background: var(--night); box-shadow: 0 0 48px 40px var(--night); border-radius: 2em; }
.clouds-msg h2 { font-size: var(--step-h1); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; text-align: center; text-wrap: balance; max-width: 11em; }
.clouds-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(1.25rem, 2.5vw, 2rem); }
.clouds-msg a { pointer-events: auto; font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.clouds-msg a:hover { text-decoration-thickness: 3px; }
@media (prefers-reduced-motion: reduce) { .clouds-layer { transform: none !important; } }

/* ── the paper ─────────────────────────────────────────────────────────── */

main:not(.hero-copy) {
	padding: var(--pad-y) var(--gutter);
	font-size: var(--step-text);   /* reading contrast: the content reads a step under the orange and the footer */
	line-height: 1.55;             /* and with more air: it is the text that is read at length */
}

/* The lines, per section. A line is a 1px gradient placed at a column's
 * start, one --lead before its text: --x(n) = gutter + width · cn − lead.
 * Plain content draws 0, 50% and 75% — its text runs over the 25% line, so it
 * never draws that one; a split draws only what its text does not cover (an
 * aside's own edge is its line); the footer draws its own columns. No line on
 * the right: the grid is read from the left. */
main:not(.hero-copy),
.principles {
	/* the grid's width: the lines stand --lead before their text, so the grid
	   reaches 2·lead past the right gutter — then the middle line is the middle */
	--w: calc(100% - 2 * var(--gutter) + 2 * var(--lead));
	--x0: calc(var(--gutter) - var(--lead));
	--x1: calc(var(--gutter) + var(--w) * var(--c1) - var(--lead));
	--x2: calc(var(--gutter) + var(--w) * var(--c2) - var(--lead));
	--x3: calc(var(--gutter) + var(--w) * var(--c3) - var(--lead));
	--hair: linear-gradient(var(--ink-wash), var(--ink-wash));
	background-repeat: no-repeat;
	background-size: 1px 100%;
}
main:not(.hero-copy) {
	background-image: var(--hair), var(--hair), var(--hair);
	background-position: var(--x0) 0, var(--x2) 0, var(--x3) 0;
}
main:has(> .band.split) { background-image: var(--hair); background-position: var(--x0) 0; }   /* text · the aside's edge (the middle line) */
main:has(> .band.split.is-index) { background-image: var(--hair), var(--hair); background-position: var(--x0) 0, var(--x1) 0; }   /* index · text (over the middle line) · the aside's edge */
@media (max-width: 64rem) {
	main:not(.hero-copy),
	main:has(> .band.split.is-index) { background-image: var(--hair); background-position: var(--x0) 0; }
}

/* The footer of every page: the principles. */
.principles {
	padding: var(--pad-y) 0 var(--pad-y) var(--gutter);
	overflow-x: clip;
}
/* The grid is exactly --w wide (gutter − 2·lead from the right edge, which may
   be a hair below zero: clipped, the last column keeps its own padding). */
.principles-grid, .ways, .closer { margin-right: calc(var(--gutter) - 2 * var(--lead)); }
.principles h2 { padding-right: var(--gutter); text-wrap: balance; }   /* text keeps the gutter on the right */

.principles h2,
.block h2,
.split-aside h2,
.prose h2 {
	font-size: var(--step-h1);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.015em;
}
/* A page's content speaks one heading size — the paper's blocks, the prose,
   the white aside and its parts alike (the footer keeps the large one). */
.block h2,
.split-aside h2,
.prose h2 { font-size: var(--step-h2); }

.principles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);   /* = --c1 · --c2 · --c3 */
	gap: 2rem 0;
	margin-top: clamp(1.5rem, 2.2vw, 2.25rem);
}
.principle-set { padding-right: 1.5rem; }
.principle-set h3 { font-size: 1em; font-weight: 600; }
.principle-set ul { list-style: none; padding: 0; }

/* Narrower: two sets a row, starting on the first and the third line. */
@media (max-width: 80rem) {
	.principle-set:nth-child(odd)  { grid-column: 1 / 3; }
	.principle-set:nth-child(even) { grid-column: 3 / 5; }
}
/* On a phone: one set under the other, on the first line — two a row was too tight. */
@media (max-width: 40rem) {
	.principles-grid, .ways, .closer { grid-template-columns: 1fr; }
	.principle-set:nth-child(odd),
	.principle-set:nth-child(even) { grid-column: 1; }
	.closer .next { grid-column: 1; }
}

/* ── prose (pages, principles, 404) ───────────────────────────────────── */

.kicker { margin-bottom: .75rem; font-weight: 600; }

.prose { max-width: calc((100% + 2 * var(--lead)) * var(--c2) - 2 * var(--lead)); }   /* two columns: the middle line is the edge */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: .6em; }
/* A principle reads as one text: its chapters are headed at text size. */
.is-index .prose h2 { margin-top: 2.25em; font-size: 1em; line-height: inherit; letter-spacing: 0; }
.is-index .prose h2:first-child { margin-top: 0; }   /* the first chapter starts on the band's top, with the index and the note */
.is-index .prose h2 + * { margin-top: .25em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: .5em; }
.prose strong { font-weight: 600; }
.prose em { font-style: normal; font-weight: 600; }   /* no italic file is loaded: emphasis is weight */
.prose code { font: inherit; font-weight: 600; }
.prose a, .next a { text-underline-offset: .2em; }

.next { margin-top: 3em; font-weight: 600; }
.principles .next { margin-top: clamp(2rem, 3.5vw, 3rem); }
.next a::after { content: " \2192"; }

/* The ways on — the documentation and the small print — one link per column,
 * on the footer's grid; narrower two a row, on a phone one under the other. */
.ways {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem 0;
	margin-top: clamp(2rem, 3.5vw, 3rem);
}
.ways .next { margin-top: 0; padding-right: 1.5rem; }
@media (max-width: 80rem) {
	.ways { grid-template-columns: 1fr 1fr; }
}

/* The closer: one line and the ways on, on the footer's columns — the line
 * over the first two, a link on the third and on the fourth. A title may cross
 * a line; the links each start on their own. */
.closer {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: baseline;
	gap: 1rem 0;
	margin-top: clamp(3.5rem, 7vw, 6rem);
}
.closer-line {
	grid-column: 1 / 3;
	padding-right: var(--lead);
	font-size: var(--step-h2);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.principles .closer .next { margin-top: 0; }
/* Narrower, the footer draws 0 and 50%: the line across, the links on those two. */
@media (max-width: 80rem) {
	.closer { grid-template-columns: 1fr 1fr; }
	.closer-line { grid-column: 1 / -1; }
}

/* The note after the footer — a white strip closing every page, the same
 * room above and below — and the asterisk on a marketing line that points at it. */
.footnote { padding: var(--gutter-base) var(--gutter); background: var(--paper-light); border-top: 1px solid var(--ink-wash); font-size: .8em; color: var(--ink-soft); }
.note-mark { text-decoration: none; margin-left: .1em; }
.note-mark:hover { text-decoration: underline; text-underline-offset: .2em; }

/* The footer's principles that have a page. */
.principle-set a { text-decoration: none; }
.principle-set a:hover,
.principle-set a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }

/* ── The first layer on home: things you could just say, as a slider on a
 * white section under the orange. Every statement is one column of the grid,
 * so at rest the cards stand on the lines — drawn on the white itself (four in
 * view; two where the footer goes two a row; one and a bit on a phone).
 * Swipe, scroll, or the arrows (assets/js/slider.js). ─────────────────── */

.imagine {
	container-type: inline-size;
	--per: 4;
	--surface: var(--paper-light);
	background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--hair) no-repeat var(--x1) 0 / 1px 100%,
		var(--hair) no-repeat var(--x2) 0 / 1px 100%, var(--hair) no-repeat var(--x3) 0 / 1px 100%, var(--surface);
}
.imagine-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	padding: var(--pad-y) var(--gutter) 0;
}
.imagine-head h2 { font-size: var(--step-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.slider-nav { display: flex; gap: .5rem; flex: none; }
.slider-nav[hidden] { display: none; }
.slider-nav button {
	font: inherit;
	font-weight: 600;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--ink);
	background: none;
	border: 2px solid var(--ink);
	cursor: pointer;
}
.slider-nav button:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.slider-nav button:disabled { opacity: .25; cursor: default; }
.slider {
	--col: calc((100cqw - 2 * var(--gutter) + 2 * var(--lead)) / var(--per));
	list-style: none;
	margin: 0;
	padding: clamp(1.5rem, 2.2vw, 2.25rem) var(--gutter) var(--pad-y);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(var(--col) - 2 * var(--lead));   /* the column, less the room before the next line */
	column-gap: calc(2 * var(--lead));
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.slider li { scroll-snap-align: start; border-top: 2px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; }
.slider h3 { font-size: 1em; font-weight: 600; }
.slider p { margin-top: .25em; }
.slider .next { margin-top: auto; padding-top: 1.25em; font-size: .85em; }
@media (prefers-reduced-motion: no-preference) { .slider { scroll-behavior: smooth; } }
@media (max-width: 80rem) {
	.imagine { --per: 2; background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--hair) no-repeat var(--x2) 0 / 1px 100%, var(--surface); }
}
@media (max-width: 40rem) {
	.imagine { --per: 1.15; background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--surface); }
}

/* ── Solution cards (solution_cards()): white cards with an ink outline that lead to a solution, two columns wide — a thumb in the leaf
 * (the photo, or until there is one the quote) beside the name and the description; the whole card is the link,
 * orange under the hand. On a band two a row, each on its half of the grid (the middle line in the gap); in an
 * aside, one a row; on a phone, one a row, the leaf without its quote. The thumb is a fifth of the card. ──────── */
.sol-cards { --per: 2; list-style: none; padding: 0; margin-top: clamp(1.5rem, 2.2vw, 2.25rem); display: grid; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: var(--lead) calc(2 * var(--lead)); }
.split-aside .sol-cards { --per: 1; gap: var(--lead); }
.sol-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); grid-template-rows: auto 1fr; gap: 0 1.25rem; align-items: start; height: 100%; padding: 1rem; background: var(--paper-light); color: var(--ink); border: 1.5px solid var(--ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.sol-card:hover, .sol-card:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--paper); }
.sol-thumb { grid-row: 1 / span 2; display: flex; align-items: flex-end; aspect-ratio: 1; overflow: hidden; border-radius: 43% 0 43% 0; background: var(--orange); color: var(--paper); transition: background-color .2s; }
.sol-card:hover .sol-thumb, .sol-card:focus-visible .sol-thumb { background: var(--orange-deep); }
.sol-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-quote { padding: .7em .75em .8em; font-size: .6em; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
.sol-card h3 { align-self: start; margin-top: .25rem; font-size: 1em; font-weight: 600; line-height: 1.25; }
.sol-card p { align-self: start; margin-top: .4em; font-size: .85em; line-height: 1.45; }
.solutions-band {
	padding: var(--pad-y) var(--gutter);
	--surface: var(--paper-light);
	background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--hair) no-repeat var(--x2) 0 / 1px 100%, var(--surface);
}
/* A band of text in columns (About's story under its cards): every chapter one column of the grid, four a row, two
 * where the footer goes two a row, one on a phone; the band draws the lines its columns start on. */
.band.is-text {
	padding: var(--pad-y) var(--gutter);
	background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--hair) no-repeat var(--x1) 0 / 1px 100%,
		var(--hair) no-repeat var(--x2) 0 / 1px 100%, var(--hair) no-repeat var(--x3) 0 / 1px 100%, var(--paper);
}
.chapters { --per: 4; display: grid; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: var(--pad-y) calc(2 * var(--lead)); }
.chapters .prose { max-width: none; font-size: .9em; }
.chapters .prose h2 { font-size: var(--step-h3); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .6em; }
@media (max-width: 80rem) {
	.chapters { --per: 2; }
	.band.is-text { background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--hair) no-repeat var(--x2) 0 / 1px 100%, var(--paper); }
}
@media (max-width: 40rem) {
	.chapters { --per: 1; }
	.chapters .prose { font-size: 1em; }
	.band.is-text { background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--paper); }
}
.solutions-band .block-lede { max-width: 40rem; }
.solutions-band h2 { font-size: var(--step-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
@media (max-width: 64rem) {
	.sol-cards { --per: 1; }
	.solutions-band { background: var(--hair) no-repeat var(--x0) 0 / 1px 100%, var(--surface); }
}
@media (max-width: 40rem) {
	.sol-card { gap: 0 1rem; padding: .85rem; }
	.sol-quote { display: none; }   /* too small to read: the leaf alone, until the photo comes */
}

/* ── Bands: a page is a stack of strips (main > .band). Three kinds:
 *   .band.split            half and half: the content on paper, an aside on
 *                          white from the middle line — a form, a table
 *   .band.split.is-code    the same, the aside dark, carrying an example
 *   .band.split.is-index   a quarter index · the text over the middle half ·
 *                          a quarter note on white (a principle's TL;DR)
 * The aside runs full height and keeps its inner block in view
 * (.split-sticky). Below 64rem everything reads straight down. ─────────── */

main:has(> .band) { padding: 0; }

.band.split {
	display: grid;
	/* the aside starts on the middle line; the content ends one --lead before it (its padding) */
	grid-template-columns: calc(var(--gutter) + (100% - 2 * var(--gutter) + 2 * var(--lead)) * var(--c2) - var(--lead)) minmax(0, 1fr);
}
.split-main {
	padding: var(--pad-y) var(--lead) var(--pad-y) var(--gutter);
	display: grid;
	gap: var(--pad-y);
	align-content: start;
}
.split-aside {
	--surface: var(--paper-light);
	background: var(--surface);
	border-left: 1px solid var(--ink-wash);   /* its line, kept as the white aside's edge */
	font-size: .9em;   /* the aside speaks a step quieter than the content */
	/* its text starts one --lead after the edge, like text after any line (the
	   1px border is the line) — so it lines up with the footer's column */
	padding: var(--pad-y) var(--gutter) var(--pad-y) calc(var(--lead) - 1px);
}
.split-main, .split-aside, .split-sticky,
.split-main > * { min-width: 0; }   /* wide content scrolls inside, never widens the page */
.split-sticky { position: sticky; top: var(--gutter-base); }
/* Sticky only where the block fits the screen; otherwise it simply scrolls. */
@media (max-height: 50rem) { .split-sticky { position: static; } }
/* Three columns: an index on the first quarter, the text over the middle half
   (from the 25% to the 75% line), the note aside on the last quarter. */
.band.split.is-index {
	grid-template-columns:
		calc(var(--gutter) + (100% - 2 * var(--gutter) + 2 * var(--lead)) * var(--c1) - var(--lead))
		calc((100% - 2 * var(--gutter) + 2 * var(--lead)) * (var(--c3) - var(--c1)))
		minmax(0, 1fr);
}
.is-index .split-main { padding-left: var(--lead); }
.split-index { padding: var(--pad-y) var(--lead) var(--pad-y) var(--gutter); min-width: 0; }
.split-index ol { list-style: none; padding: 0; position: sticky; top: var(--gutter-base); font-weight: 600; }
.split-index li + li { margin-top: .5em; }
.split-index a { text-decoration: none; }
.split-index a:hover { text-decoration: underline; text-underline-offset: .2em; }
.is-index .prose h2 { scroll-margin-top: var(--gutter-base); }
@media (prefers-reduced-motion: no-preference) { html:has(.split-index) { scroll-behavior: smooth; } }
@media (max-width: 64rem) {
	.band.split, .band.split.is-index { grid-template-columns: minmax(0, 1fr); }
	.split-aside { padding-left: var(--gutter); border-left: 0; }
	.split-main { padding-right: var(--gutter); }
	.split-sticky { position: static; }
	.split-index { display: none; }   /* a phone reads straight down */
	.is-index .split-main { padding-left: var(--gutter); }
}

.to-form { font-weight: 600; text-underline-offset: .2em; }
.to-form::after { content: " \2193"; }

/* A note aside (a quarter wide, from the 75% line): the short version beside
   the text — a principle's TL;DR — headed at h3. */
.split-aside.is-note h2 { font-size: var(--step-h3); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .5em; }
.split-aside.is-note .prose { max-width: none; }
.split-aside.is-note .next { margin-top: 2em; }
/* Under a solution's TL;DR: the principles it rests on — the way to the second layer. */
.split-aside.is-note .behind { margin-top: 2em; font-weight: 600; }
.behind-list { list-style: none; padding: 0; margin-top: .4em; }
.behind-list li + li { margin-top: .25em; }
.behind-list a { text-underline-offset: .2em; }
.cards h3 a { text-underline-offset: .2em; }
.cards h3 a::after { content: " \2192"; }
.block-lede { max-width: 40rem; margin-top: 1rem; }
.block > .prose.block-lede { max-width: none; }   /* a page's text as a list's introduction: the column's width */

/* Cards: a list's items, one under the other, each a block with a rule on top. */
.cards {
	list-style: none;
	padding: 0;
	margin-top: clamp(1.5rem, 2.2vw, 2.25rem);
	display: grid;
	gap: 2rem;
}
.cards li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.cards h3 { font-size: 1em; font-weight: 600; }
.cards p  { margin-top: .25em; }
.cards.is-coming li { border-top-style: dashed; }

.faq { margin-top: clamp(1.5rem, 2.2vw, 2.25rem); border-top: 2px solid var(--ink); }   /* fills its column */
.faq details { border-bottom: 1px solid var(--ink-wash); }
.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1rem 2rem 1rem 0;
	font-weight: 600;
	position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 1rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; padding-right: 2rem; }

.interest {
	margin-top: 1.5rem;
	display: grid;
	gap: 1rem;
}
.interest label { display: grid; gap: .4rem; font-weight: 600; }
.interest label i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.interest input,
.interest textarea {
	font: inherit;
	font-weight: 400;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 0;
	padding: .6rem .75rem;
	width: 100%;
}
.interest input:focus-visible,
.interest textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; }
.interest .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.interest .fine { font-size: .75em; color: var(--ink-soft); }
.interest button {
	font: inherit;
	font-weight: 600;
	color: var(--paper);
	background: var(--orange);
	border: 0;
	padding: .75rem 1.5rem;
	cursor: pointer;
}
.interest button:disabled { opacity: .6; cursor: progress; }
.interest .status { margin-left: 1rem; }
.interest .status[data-state="err"] { color: var(--orange-deep); }

/* A table in prose (BYOA: what works with which assistant). */
.prose table { width: 100%; border-collapse: collapse; margin-top: 1.5em; font-size: .85em; }
.prose th, .prose td { text-align: left; padding: .55rem .5rem .55rem 0; border-bottom: 1px solid var(--ink-wash); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); }
.prose tbody th { font-weight: 500; }
.prose { overflow-x: auto; }

/* ── The code band: a split whose aside is dark and carries an example. Bands
 * follow each other without a gap, so the dark column reads as one. ────── */
.band.split.is-code h2 { font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); }

.band.split.is-code .split-aside {
	background: var(--ink);
	border-left: 0;
	padding-left: clamp(1.5rem, 3vw, 2.5rem);   /* a dark block, not a line: the code keeps room around it */
	color: var(--paper);
	font-size: inherit;
	display: flex;
	align-items: center;
	min-width: 0;
}
.band.split.is-code .split-main { padding-bottom: var(--pad-y); }
.band.split.is-code + .band.split.is-code { border-top: 1px solid var(--ink-wash); }
.band.split.is-code + .band.split.is-code .split-aside { border-top: 1px solid var(--ink-soft); margin-top: -1px; }
.split-aside pre {
	margin: 0;
	width: 100%;
	overflow-x: auto;
	font: 500 .8em/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: min(.8em, 1.15vw);   /* a half-width code aside: 58 characters always fit */
	tab-size: 4;
	white-space: pre;
}

/* Code as in an editor: a gutter of line numbers on the left, a hairline beside it, the code after it. The numbers
 * are a counter in ::before (code_lines() in theme/functions.php wraps each line) — not text, so a selection and a
 * copy take the code alone. They stay in view when a long line scrolls. */
.split-aside pre.code { counter-reset: ln; }
.code .ln { counter-increment: ln; }
.code .ln::before {
	content: counter(ln);
	position: sticky; left: 0;
	display: inline-block;
	width: 3.5ch; margin-right: 1.25ch; padding-right: 1ch;
	text-align: right;
	color: var(--ink-soft);
	background: var(--ink);
	box-shadow: 1px 0 0 var(--ink-soft);   /* the gutter's line */
	user-select: none; -webkit-user-select: none;
}

/* Code tabs: the example and what comes back (Response, Refused). The panels
 * share one cell, so the column keeps the height of the longest and nothing
 * jumps; a hidden panel is invisible, not gone. Without the script every panel
 * shows under its own name. */
.code-tabs { width: 100%; min-width: 0; }
.code-tablist {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--ink-soft);
	font-size: .7em;
	font-weight: 600;
}
.code-tablist[hidden] { display: none; }
.code-tablist button {
	font: inherit;
	color: var(--ink-wash);
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0 0 .6rem;
	cursor: pointer;
}
.code-tablist button:hover { color: var(--paper); }
.code-tablist button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--orange); }
.code-tablist button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.code-tabs.is-tabbed { display: grid; grid-template-columns: minmax(0, 1fr); }
.code-tabs.is-tabbed > .code-tablist { grid-row: 1; grid-column: 1; }
.code-tabs.is-tabbed > .code-panel { grid-row: 2; grid-column: 1; }
.code-tabs.is-tabbed > .code-panel[hidden] { display: block; visibility: hidden; }
.code-tabs:not(.is-tabbed) .code-panel + .code-panel { margin-top: 2rem; }
.code-tabs:not(.is-tabbed) .code-panel::before {
	content: attr(data-name);
	display: block;
	margin-bottom: .75rem;
	font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
	font-weight: 600;
	color: var(--ink-wash);
}

/* ── The horizontals: a hairline from edge to edge wherever the paper turns to
 * the next part — between bands, between blocks, above the footer. ──────── */

.principles {
	border-top: 1px solid var(--ink-wash);
	/* the footer's own lines: one per column — four on a wide screen, two
	   (0 and 50%) where the sets go two a row, one on a phone */
	background-image: var(--hair), var(--hair), var(--hair), var(--hair);
	background-position: var(--x0) 0, var(--x1) 0, var(--x2) 0, var(--x3) 0;
}
@media (max-width: 80rem) {
	.principles { background-image: var(--hair), var(--hair); background-position: var(--x0) 0, var(--x2) 0; }
}
@media (max-width: 40rem) {
	.principles { background-image: var(--hair); background-position: var(--x0) 0; }
}
.band + .band,
main:has(> .band) + .principles { border-top: 1px solid var(--ink-wash); }
.split-main > .block + .block { border-top: 1px solid var(--ink-wash); padding-top: var(--pad-y); margin-inline: calc(var(--gutter) * -1) calc(var(--lead) * -1); padding-inline: var(--gutter) var(--lead); }

@media (max-width: 64rem) {
	.prose { max-width: none; }
	.split-aside pre { font-size: .8em; }
	.split-main > .block + .block { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* In a split the content is two columns already: its prose fills them, and the
 * blocks under it follow close. A part on the aside (the floor, `hasPart`)
 * speaks a step quieter, its table at full width. */
.split-main > .prose { max-width: none; }
.split-main > .prose + .block { margin-top: clamp(1rem, 2vw, 2rem); }
.part .block-lede { margin-top: 1rem; }
.part-body { max-width: none; margin-top: 1.25rem; }
.part-body > p,
.part-body table ~ p { max-width: 40rem; }   /* notes keep the intro's measure, whatever the table does */
.part-body table { margin-top: 0; font-size: var(--step-text); }   /* reading size, wherever it stands */
.part-body th, .part-body td { padding-right: .4rem; }

/* A table in a part grows sideways: it scrolls in its own box, the first
 * column (the row labels) stays put, every other cell keeps a minimum width
 * — a new column never squeezes the others. */
.part-body table {
	display: block;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	border-collapse: separate;
	border-spacing: 0;
}
.part-body th, .part-body td { white-space: nowrap; min-width: 5em; }
.part-body tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	width: 9.5em; min-width: 9.5em; max-width: 9.5em;   /* the labels' column stays narrow: they wrap, the answers scroll */
	white-space: normal;
	background: var(--surface);   /* paper or white: the side the table stands on */
	box-shadow: 1px 0 0 var(--ink-wash);   /* the column's edge while the rest slides under it */
	padding-right: 1rem;
}
.part-body tbody tr > *,
.part-body thead tr > * { border-bottom: 1px solid var(--ink-wash); }
.part-body thead tr > * { border-bottom: 2px solid var(--ink); }
.part-body tr > :not(:first-child) { padding-left: .9rem; }
/* A table's caption carries its notes (the asterisks' answers): under the table, small, in second ink — it wraps
 * at the box's width while the rows scroll. */
.part-body { container-type: inline-size; }
.part-body table caption { caption-side: bottom; position: sticky; left: 0; width: 100cqw; box-sizing: border-box; text-align: left; white-space: normal; padding-top: .9rem; font-size: .7em; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 40rem) { .part-body tr > :first-child { width: 7.5em; min-width: 7.5em; max-width: 7.5em; } .part-body th, .part-body td { min-width: 4.5em; } }
