@charset "UTF-8";

/* â”€â”€ Demo base: global.css's demo wrapper, tab and clip rules â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* The home page does not load global.css, so the rules the demos are
   written against come first, as the prototype loaded _demo-base.css first:
   global.css's demo wrapper, demo tabs and recorded-clip fallback,
   verbatim. Restyle the wrapper further down, never in here. */

.demo-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1rem;
	margin-bottom: .6rem;
}

.demo-tabs-list {
	display: inline-flex;
	gap: .2rem;
	padding: .2rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.demo-tab {
	position: relative;
	padding: .25rem .8rem;
	font-size: .8rem;
	font-weight: 600;
	color: var(--text-muted);
	border-radius: 999px;
	cursor: pointer;
}

.demo-tab input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.demo-tab:has(input:checked) {
	color: var(--bg);
	background: var(--accent);
}

.demo-tab:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.demo-tabs-note {
	display: none;
	font-size: .8rem;
	color: var(--text-muted);
}

.demo-clip {
	display: none;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.demo-clip picture,
.demo-clip img {
	display: block;
	width: 100%;
	height: auto;
}

.demo-clip .demo-clip-light {
	display: none;
}

body:has(#theme-toggle:checked) .demo-clip .demo-clip-dark {
	display: none;
}

body:has(#theme-toggle:checked) .demo-clip .demo-clip-light {
	display: block;
}

.demo-tabs:has(.demo-tab-animated:checked) .demo-tabs-note {
	display: block;
}

.demo-tabs:has(.demo-tab-animated:checked) ~ .demo-wrapper {
	display: none;
}

.demo-tabs:has(.demo-tab-animated:checked) ~ .demo-clip {
	display: block;
}

.demo-wrapper {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 3rem 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	/* a hover menu or tooltip that is hidden but still reaches past the screen edge must not widen the
	   page on a phone (Chromium, Firefox and WebKit all scrolled sideways on three pages). clip, not
	   hidden, so vertical overflow still shows and the box does not become a scroll container. */
	overflow-x: clip;
}

/*
 * The home page only, "Ink and paper" (the round 7 prototype,
 * mockups/site-prototypes/03-ink-and-paper/, ported; its design record is in
 * _notes/ there). Every other page loads global.css instead, and this file
 * changes nothing there.
 *
 * Two neutral fields carry the page. The examples run strictly newest first
 * in one Bootstrap row of columns: two to a row from lg (992px), three from
 * 1600px, one below 992px. Each plays directly on its own full-bleed field,
 * ink or a warm paper, in a checker that follows position; on a phone the
 * fields run ink, paper, ink, paper. Filtering works like Isotope, on the
 * same page: the tiles that stay slide to their new places, the rest shrink
 * to nothing and fade. Every place is precomputed in the build
 * (/css/home-states.css, from home/layout.mjs). A field's words take the other neutral, and its
 * demo reads a token set built for that ground, so the demos' own colors are
 * the color on the page. Play a demo and its field flips to the other
 * neutral, the demo's tokens with it.
 *
 * Lime is an accent, never a ground. The demos keep the colors they have on
 * the live site: on ink they read the site's dark set exactly as deployed,
 * lime accent included; on paper they read the site's light set (with the
 * text hues a step deeper for AA), and the demos whose color is graphics
 * only keep the bright set there too.
 *
 * The second theme is a dark theme: the checker runs ink and a second dark,
 * the poster goes ink with paper type, and every demo reads the site's dark
 * set, lime accent included.
 *
 * How a field knows its color: two bits, combined with calc().
 *   --p0   its place in the checker (set below from nth-child, per filter)
 *   --play always 0 now: the field flip on a played demo was removed (2026-11-08)
 * --pos is p0 (the resting color), --l is pos xor play (the color now): 1 is
 * the light side (paper, or the second dark in the second theme), 0 is ink.
 * Each token mixes its light-side value and its ink value by --l, at 0% or
 * 100%; the light-side values are set per theme on body.
 *
 * Flat CSS only (the repo's iOS 15.2 rule). Breakpoints use Bootstrap's
 * names: sm 576, md 768, lg 992, xl 1200, xxl 1400.
 */

/* â”€â”€ Fonts: Jost from fonts/, the code and serif faces from the site â”€â”€â”€â”€â”€ */

/* Jost's @font-face is in chrome.css, which every page loads after this file */

@font-face {
	font-family: "DM Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}

/* a few demos set type in the serif (Text Ticker, Bento Grid, Blockquote Styles,
   Text Columns); the browser loads the file only where a page uses it */
@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

/* â”€â”€ Reset: the site's own, which the demos are written against â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

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

/* the color a field shows now, as a number, so a style query can read it */
@property --l {
	syntax: "<number>";
	inherits: true;
	initial-value: 0;
}

/* â”€â”€ Page tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

body {
	--th: 0;
	/* the poster at the top, and the signup band that closes the grid */
	--top: #f4f1eb;
	--top-ink: #0c0c0d;
	--top-muted: #4f4e48;
	--top-chip: rgba(12, 12, 13, .07);
	--top-line: rgba(12, 12, 13, .2);
	--poster: #0c0c0d;
	/* the filter rail takes the other neutral; the signup band and the
	   footer's tokens are in chrome.css */
	--rail: #0c0c0d;
	--rail-ink: #f4f1eb;
	--rail-line: rgba(244, 241, 235, .26);
	/* the level meter: the site's teal, yellow and coral on an ink chip */
	--lv-1: #57d9a3;
	--lv-2: #ffd444;
	--lv-3: #ff6b6b;
	--lv-off: rgba(240, 240, 240, .24);
	--meter-chip: #0c0c0d;

	/* the dark side of the checker. In the light theme it is dark mode's
	   lifted gray, not ink (owner, 2026-11-10), with the dark set's panels
	   lifted to match so nothing in a demo sits below its ground */
	--i-field: #1f1f22;
	--i-surface: #29292d;
	--i-surface-2: #333338;
	--i-border: #44444a;
	--i-text-muted: #a2a2aa;

	/* the light side of the checker: paper, its words and its demo tokens.
	   The site's light set as deployed, with the accent green a hair deeper
	   and six of the seven hues a step deeper, so each passes 4.5:1 as text
	   on paper, on the second surface and on its own dim tint */
	--s-field: #f4f1eb;
	--s-words: #0c0c0d;
	--s-surface: #ffffff;
	--s-surface-2: #ede9e0;
	--s-border: #d0ccc0;
	--s-text: #1a1a1a;
	--s-text-muted: #5c5c55;
	--s-accent: #6f2fd6;
	--s-accent-dim: rgba(111, 47, 214, .08);
	/* the bands under a tile's note and its title */
	--s-tint: rgba(12, 12, 13, .045);
	--s-band-muted: #4f4e48;
	--s-coral: #b62430;
	--s-coral-dim: rgba(182, 36, 48, .1);
	--s-orange: #9a4a00;
	--s-orange-dim: rgba(154, 74, 0, .1);
	--s-yellow: #765e00;
	--s-yellow-dim: rgba(118, 94, 0, .1);
	--s-teal: #006c4a;
	--s-teal-dim: rgba(0, 108, 74, .1);
	--s-sky: #00678e;
	--s-sky-dim: rgba(0, 103, 142, .1);
	--s-violet: #6f2fd6;
	--s-accent-in-palette: #c026d3;
	--s-accent-beside-violets: #2979ff;
	--s-violet-dim: rgba(111, 47, 214, .1);
	--s-rose: #a92c74;
	--s-rose-dim: rgba(169, 44, 116, .1);
	/* two demos set type on a coral fill or a coral at 60%; their light-side
	   coral, per theme */
	--s-alert-coral: #9a1515;
	--s-yes-coral: #b62430;
	/* the rail's height: the rail sits under the sticky header (its height,
	   --head-h, is in chrome.css), and the grid's target clears both */
	--rail-h: 64px;

	--font-sans: "Jost", system-ui, sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;
	--font-mono: "DM Mono", ui-monospace, Consolas, monospace;
	--radius: 10px;
	--radius-lg: 16px;

	--gutter: clamp(16px, 3.2vw, 48px);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	/* a demo grows by --zd at 1440; --zs scales the growth to the field */
	--zs: 1;
}

/* the second theme: a dark theme. The checker runs ink and a second dark;
   on the second dark the demos read the site's dark set, lime accent and
   bright hues included, on a lifted ground */
body:has(#theme-toggle:checked) {
	--th: 1;
	--top: #0c0c0d;
	--top-ink: #f4f1eb;
	--top-muted: #a9a69e;
	--top-chip: rgba(244, 241, 235, .1);
	--top-line: rgba(244, 241, 235, .22);
	--poster: #f4f1eb;
	--rail: #1f1f22;
	--rail-ink: #f4f1eb;
	--rail-line: rgba(244, 241, 235, .22);

	/* in the dark theme the dark side of the checker is ink */
	--i-field: #0c0c0d;
	--i-surface: #141415;
	--i-surface-2: #1c1c1e;
	--i-border: #2a2a2d;
	--i-text-muted: #88888f;

	--s-field: #1f1f22;
	--s-words: #f4f1eb;
	--s-surface: #29292d;
	--s-surface-2: #333338;
	--s-border: #44444a;
	--s-text: #f0f0f0;
	--s-text-muted: #a2a2aa;
	--s-accent: #b8ff57;
	--s-accent-dim: rgba(184, 255, 87, .1);
	--s-tint: rgba(244, 241, 235, .045);
	--s-band-muted: #a9a69e;
	--s-coral: #ff6b6b;
	--s-coral-dim: rgba(255, 107, 107, .12);
	--s-orange: #ff9040;
	--s-orange-dim: rgba(255, 144, 64, .12);
	--s-yellow: #ffd444;
	--s-yellow-dim: rgba(255, 212, 68, .12);
	--s-teal: #57d9a3;
	--s-teal-dim: rgba(87, 217, 163, .12);
	--s-sky: #38bdf8;
	--s-sky-dim: rgba(56, 189, 248, .12);
	--s-violet: #c084fc;
	--s-accent-in-palette: #b8ff57;
	--s-accent-beside-violets: #b8ff57;
	--s-violet-dim: rgba(192, 132, 252, .12);
	--s-rose: #f472b6;
	--s-rose-dim: rgba(244, 114, 182, .12);
	--s-alert-coral: #ffa0a0;
	--s-yes-coral: #cc3333;
}

/* â”€â”€ Fields: the resting color, the color now, and the demo tokens â”€â”€â”€â”€â”€â”€â”€ */

.field,
.grid,
.weekly-mail {
	--pos: var(--p0, 0);
}

.field {
	--play: 0;
	--l: calc(var(--pos) + var(--play) - 2 * var(--pos) * var(--play));
	color-scheme: dark;

	/* browsers without color-mix() get every field on ink, unflipped */
	--field: #0c0c0d;
	--field-flip: #0c0c0d;
	--words: #f4f1eb;
	--bg: #0c0c0d;
	--surface: #141415;
	--surface-2: #1c1c1e;
	--border: #2a2a2d;
	--text: #f0f0f0;
	--text-muted: #88888f;
	--accent: #b8ff57;
	--accent-dim: rgba(184, 255, 87, .1);
	--coral: #ff6b6b;
	--coral-dim: rgba(255, 107, 107, .12);
	--orange: #ff9040;
	--orange-dim: rgba(255, 144, 64, .12);
	--yellow: #ffd444;
	--yellow-dim: rgba(255, 212, 68, .12);
	--teal: #57d9a3;
	--teal-dim: rgba(87, 217, 163, .12);
	--sky: #38bdf8;
	--sky-dim: rgba(56, 189, 248, .12);
	--violet: #c084fc;
	--accent-in-palette: #b8ff57;
	--accent-beside-violets: #b8ff57;
	--violet-dim: rgba(192, 132, 252, .12);
	--rose: #f472b6;
	--rose-dim: rgba(244, 114, 182, .12);
	--tint: rgba(244, 241, 235, .045);
}

/* light-side value first, ink value second; on ink the demos keep the
   site's own dark set, value for value */
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.field {
		--field: color-mix(in srgb, var(--s-field) calc(var(--pos) * 100%), var(--i-field));
		--field-flip: color-mix(in srgb, var(--i-field) calc(var(--pos) * 100%), var(--s-field));
		--words: color-mix(in srgb, var(--s-words) calc(var(--l) * 100%), #f4f1eb);
		--bg: color-mix(in srgb, var(--s-field) calc(var(--l) * 100%), var(--i-field));
		--surface: color-mix(in srgb, var(--s-surface) calc(var(--l) * 100%), var(--i-surface));
		--surface-2: color-mix(in srgb, var(--s-surface-2) calc(var(--l) * 100%), var(--i-surface-2));
		--border: color-mix(in srgb, var(--s-border) calc(var(--l) * 100%), var(--i-border));
		--text: color-mix(in srgb, var(--s-text) calc(var(--l) * 100%), #f0f0f0);
		--text-muted: color-mix(in srgb, var(--s-text-muted) calc(var(--l) * 100%), var(--i-text-muted));
		--accent: color-mix(in srgb, var(--s-accent) calc(var(--l) * 100%), #b8ff57);
		--accent-dim: color-mix(in srgb, var(--s-accent-dim) calc(var(--l) * 100%), rgba(184, 255, 87, .1));
		--coral: color-mix(in srgb, var(--s-coral) calc(var(--l) * 100%), #ff6b6b);
		--coral-dim: color-mix(in srgb, var(--s-coral-dim) calc(var(--l) * 100%), rgba(255, 107, 107, .12));
		--orange: color-mix(in srgb, var(--s-orange) calc(var(--l) * 100%), #ff9040);
		--orange-dim: color-mix(in srgb, var(--s-orange-dim) calc(var(--l) * 100%), rgba(255, 144, 64, .12));
		--yellow: color-mix(in srgb, var(--s-yellow) calc(var(--l) * 100%), #ffd444);
		--yellow-dim: color-mix(in srgb, var(--s-yellow-dim) calc(var(--l) * 100%), rgba(255, 212, 68, .12));
		--teal: color-mix(in srgb, var(--s-teal) calc(var(--l) * 100%), #57d9a3);
		--teal-dim: color-mix(in srgb, var(--s-teal-dim) calc(var(--l) * 100%), rgba(87, 217, 163, .12));
		--sky: color-mix(in srgb, var(--s-sky) calc(var(--l) * 100%), #38bdf8);
		--sky-dim: color-mix(in srgb, var(--s-sky-dim) calc(var(--l) * 100%), rgba(56, 189, 248, .12));
		--violet: color-mix(in srgb, var(--s-violet) calc(var(--l) * 100%), #c084fc);
		--accent-in-palette: color-mix(in srgb, var(--s-accent-in-palette) calc(var(--l) * 100%), #b8ff57);
		--accent-beside-violets: color-mix(in srgb, var(--s-accent-beside-violets) calc(var(--l) * 100%), #b8ff57);
		--violet-dim: color-mix(in srgb, var(--s-violet-dim) calc(var(--l) * 100%), rgba(192, 132, 252, .12));
		--rose: color-mix(in srgb, var(--s-rose) calc(var(--l) * 100%), #f472b6);
		--rose-dim: color-mix(in srgb, var(--s-rose-dim) calc(var(--l) * 100%), rgba(244, 114, 182, .12));
		--tint: color-mix(in srgb, var(--s-tint) calc(var(--l) * 100%), rgba(244, 241, 235, .045));
	}

	/* under a filter the grid can end on half a row; the empty half shows the
	   color the checker would give it */
	.grid {
		background: color-mix(in srgb, var(--s-field) calc(var(--pos) * 100%), var(--i-field));
	}

	/* the demos whose color is graphics only (rays, fills, chart segments,
	   glows, swatches) keep the site's bright set and its lime on every
	   ground, as they look on the live site; any type they set on a fill is
	   ink */
	.tile[data-slug="bar-chart"],
	.tile[data-slug="pie-chart"],
	.tile[data-slug="progress-bar"],
	.tile[data-slug="lightbox"],
	.tile[data-slug="scroll-shelf"],
	.tile[data-slug="aspect-ratio-box"],
	.tile[data-slug="morphing-blob"],
	.tile[data-slug="elastic-bounce"],
	.tile[data-slug="loading-spinner"],
	.tile[data-slug="rotating-glow-border"],
	.tile[data-slug="geometric-art"],
	.tile[data-slug="3d-card-flip"],
	.tile[data-slug="scroll-carousel"],
	.tile[data-slug="before-after-slider"] {
		--accent: #b8ff57;
		--accent-dim: rgba(184, 255, 87, .1);
		--coral: #ff6b6b;
		--orange: #ff9040;
		--yellow: #ffd444;
		--teal: #57d9a3;
		--sky: #38bdf8;
		--violet: #c084fc;
		--accent-in-palette: #b8ff57;
		--accent-beside-violets: #b8ff57;
		--rose: #f472b6;
	}

	/* the spinners are thin lime strokes, which vanish on paper; there they
	   take the brand violet (owner, 2026-11-14: no dark greens) */
	.tile[data-slug="loading-spinner"] {
		--accent: color-mix(in srgb, #6f2fd6 calc(var(--l) * (1 - var(--th)) * 100%), #b8ff57);
	}

	/* the two demos whose color is their display type set it a step lighter
	   on paper than the body-text hues, since large type needs 3:1, not 4.5:1;
	   so the gradients and the shimmer keep their color */
	.tile[data-slug="text-shimmer"],
	.tile[data-slug="gradient-text"] {
		--s-accent: #8b4cf0;
		--s-coral: #db4a4e;
		--s-orange: #c76200;
		--s-yellow: #9a7b00;
		--s-teal: #008f63;
		--s-sky: #0086b7;
		--s-violet: #8b4cf0;
		--s-accent-in-palette: #d03fe0;
		--s-accent-beside-violets: #2979ff;
		--s-rose: #ce4f94;
	}

	body:has(#theme-toggle:checked) .tile[data-slug="text-shimmer"],
	body:has(#theme-toggle:checked) .tile[data-slug="gradient-text"] {
		--s-accent: #b8ff57;
		--s-coral: #ff6b6b;
		--s-orange: #ff9040;
		--s-yellow: #ffd444;
		--s-teal: #57d9a3;
		--s-sky: #38bdf8;
		--s-violet: #c084fc;
		--s-accent-in-palette: #b8ff57;
		--s-accent-beside-violets: #b8ff57;
		--s-rose: #f472b6;
	}

	/* two demos set dark type on a bright fill, or white type on coral: on
	   paper they keep the fill that type was written for */
	.tile[data-slug="magnetic-button"] {
		--sky: #38bdf8;
	}

	.tile[data-slug="confirm-button"] .btn-yes {
		--coral: color-mix(in srgb, var(--s-yes-coral) calc(var(--l) * 100%), #cc3333);
	}

	/* the alert's dismiss cross sits at 60% on the error's dim tint */
	.tile[data-slug="alert-banner"] {
		--coral: color-mix(in srgb, var(--s-alert-coral) calc(var(--l) * 100%), #ff6b6b);
	}

}

/* native controls draw for the ground they sit on */
@container style(--l: 1) and style(--th: 0) {
	.demo-section {
		color-scheme: light;
	}
}

/* â”€â”€ Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	scrollbar-color: #0c0c0d #f4f1eb;
	color-scheme: light;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html:has(#theme-toggle:checked) {
	scrollbar-color: #44444a #0c0c0d;
	color-scheme: dark;
}

body {
	min-height: 100dvh;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--top-ink);
	background: var(--close);
	caret-color: currentColor;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* lime marks: the text selection, focus rings, the picked filter, the "New" mark */
::selection {
	color: #0c0c0d;
	background: #b8ff57;
}

/* the page's own images and icons only: the demos keep the browser's
   defaults, as on the live site. Capped to its pane, Before and After's
   before photo shrank with the drag and stopped lining up with the after.
   :where() keeps it at no weight, so a class that hides an icon still wins */
:where(img:not(.demo-section *), svg:not(.demo-section *)) {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
}

/* inside a demo, type and links start where the live site starts them: 16px
   on a 1.6 line (the page's own body runs 17px on 1.55), and links in the
   accent with no underline until hovered. A demo's own rules still win */
.demo-section {
	font-size: 1rem;
	line-height: 1.6;
}

:where(.demo-section) a {
	color: var(--accent);
	text-decoration: none;
}

:where(.demo-section) a:hover {
	text-decoration: underline;
}

/* a lime ring with an ink edge, so it reads on paper and on ink */
:focus-visible:not(.demo-section *) {
	outline: 3px solid #b8ff57;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #0c0c0d;
}

/* a demo that leaves its placeholders to the browser gets its field's muted
   text, which passes on every ground; a demo's own placeholder rule still wins */
:where(.demo-section) ::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

/* inside a demo the ring takes the demo's accent, unless the demo draws its own */
:where(.demo-section :focus-visible) {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.visually-hidden,
.lv-heading {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* the theme checkbox (.mode-input) is styled in chrome.css */

.skip-link {
	position: absolute;
	top: .75rem;
	left: .75rem;
	z-index: 60;
	padding: .6rem 1rem;
	font-weight: 700;
	color: var(--top);
	background: var(--top-ink);
	border-radius: 999px;
	transform: translateY(-160%);
}

.skip-link:focus-visible {
	transform: none;
}

/* â”€â”€ The poster: one full-width field at the top â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* the header above it (the dark top bar, the same on every page) is in
   chrome.css */
.opening {
	color: var(--top-ink);
	background: var(--top);
}

/* the poster line takes the width; the h1 and the action sit in the corner
   it leaves, on its baseline. 5rem above and below at every width (owner,
   2026-11-08) */
.opening {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
	align-items: end;
	gap: 1.25rem clamp(1.5rem, 3vw, 3rem);
	padding: 5rem var(--gutter);
}

.poster {
	font-size: calc(clamp(3.4rem, 10.2vw, 11rem) * .9);
	font-weight: 800;
	line-height: .84;
	letter-spacing: -.02em;
	color: var(--poster);
	text-wrap: balance;
}

/* the poster's "more" and its cycle of effects live in more.css */

/* Snow over the header (owner, 2026-11-13: "add our snowing effect to the
   Home page header"). It is the Falling Snow example's build under its own
   names, so it never waits on that example's stylesheet: each flake is a
   column as tall as the header that falls by its own height, and its
   ::before is the dot, swaying on a clock of its own. The layer sits behind
   the type and clips the flakes at the header's edges. */
.opening {
	position: relative;
	isolation: isolate;
}

.opening-snow {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.os-flake {
	position: absolute;
	top: 0;
	bottom: 0;
	width: var(--size);
	animation: os-fall linear infinite;
	animation-duration: calc(var(--fall) * var(--speed));
	animation-delay: calc(var(--fall) * var(--speed) * var(--start) * -1);
}

/* white with a cool halo: a glow on ink, the edge that shows on paper */
.os-flake::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 0;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: #ffffff;
	opacity: var(--glow);
	box-shadow: 0 0 4px 1px rgba(96, 132, 184, .8), 0 1px 2px rgba(40, 70, 120, .35);
	animation: os-sway ease-in-out infinite alternate;
	animation-duration: var(--sway);
	animation-delay: calc(var(--sway) * var(--start) * -2);
}

/* three depth layers: far flakes small, dim and slow */
.os-flake:nth-child(3n+1) { --size: 3px; --glow: .6; --fall: 22s; --sway: 4.2s; }

.os-flake:nth-child(3n+2) { --size: 5px; --glow: .85; --fall: 15s; --sway: 3.4s; }

.os-flake:nth-child(3n) { --size: 8px; --glow: 1; --fall: 11s; --sway: 2.7s; }

/* twelve columns across */
.os-flake:nth-child(12n+1) { left: 2%; }

.os-flake:nth-child(12n+2) { left: 10%; }

.os-flake:nth-child(12n+3) { left: 19%; }

.os-flake:nth-child(12n+4) { left: 27%; }

.os-flake:nth-child(12n+5) { left: 36%; }

.os-flake:nth-child(12n+6) { left: 44%; }

.os-flake:nth-child(12n+7) { left: 52%; }

.os-flake:nth-child(12n+8) { left: 61%; }

.os-flake:nth-child(12n+9) { left: 69%; }

.os-flake:nth-child(12n+10) { left: 78%; }

.os-flake:nth-child(12n+11) { left: 86%; }

.os-flake:nth-child(12n) { left: 95%; }

/* a speed and a small sideways nudge, every fourth flake */
.os-flake:nth-child(4n+1) { --speed: 1; }

.os-flake:nth-child(4n+2) { --speed: 1.17; margin-left: 2%; }

.os-flake:nth-child(4n+3) { --speed: .88; margin-left: -1.5%; }

.os-flake:nth-child(4n) { --speed: 1.08; margin-left: 3%; }

/* where in its fall each flake starts, every seventh, so the header is
   already snowing on the first frame */
.os-flake:nth-child(7n+1) { --start: .05; }

.os-flake:nth-child(7n+2) { --start: .62; }

.os-flake:nth-child(7n+3) { --start: .31; }

.os-flake:nth-child(7n+4) { --start: .87; }

.os-flake:nth-child(7n+5) { --start: .44; }

.os-flake:nth-child(7n+6) { --start: .18; }

.os-flake:nth-child(7n) { --start: .73; }

@keyframes os-fall {
	from { transform: translateY(0); opacity: 0; }
	8%   { opacity: 1; }
	90%  { opacity: 1; }
	to   { transform: translateY(calc(100% + 12px)); opacity: 0; }
}

@keyframes os-sway {
	from { transform: translateX(-160%); }
	to   { transform: translateX(160%); }
}

/* stopped, not removed: paused where their delays put them, the flakes stay
   in the header as a still snowfall */
@media (prefers-reduced-motion: reduce) {
	.os-flake,
	.os-flake::before {
		animation-play-state: paused;
	}
}

.opening-row {
	display: grid;
	justify-items: start;
	gap: .7rem;
	padding-bottom: .35em;
}

.opening-row h1 {
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -.022em;
	text-wrap: balance;
}

.opening-sub {
	font-size: clamp(1rem, 1.3vw, 1.1875rem);
	font-weight: 500;
	color: var(--top-muted);
}

.opening-jump {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: .45rem;
	padding: .75rem 1.25rem;
	font-weight: 700;
	color: var(--top);
	text-decoration: none;
	background: var(--top-ink);
	border-radius: 999px;
	transition: transform .2s var(--ease-out);
}

.opening-jump .icon {
	transition: transform .35s var(--ease-out);
}

.opening-jump:hover .icon {
	transform: translateY(3px);
}

.opening-jump:active {
	transform: translateY(2px);
}

/* â”€â”€ The filter rail: categories and levels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.collection {
	position: relative;
}

/* the category radios and the level checkboxes: off screen, still
   focusable, and ahead of the rail and the grid so both can answer them */
.pick {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rail {
	position: sticky;
	top: var(--head-h);
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--rail-h);
	padding: 0 var(--gutter);
	color: var(--rail-ink);
	background: var(--rail);
	box-shadow: 0 1px 0 var(--rail-line);
}

/* â”€â”€ Frosted glass: the rail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* What scrolls under the rail shows through it, lightly and blurred (owner,
   2026-11-08), as it does under the header (chrome.css). The rail keeps its
   own ground at an opacity that holds every label at 4.5:1 or more over the
   brightest and the darkest content that can pass under it: a field of
   lime, white, paper or ink, or any stripe of the liquid glass. Its dimmed
   level labels need 84% (89% in the second theme), and it takes 96%, the
   header's value, so the two read as one charcoal over paper. Where
   backdrop-filter or color-mix() is unknown, and under reduced
   transparency, it stays solid. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red 50%, transparent)) {
	.rail {
		background: color-mix(in srgb, var(--rail) 96%, transparent);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
}

@media (prefers-reduced-transparency: reduce) {
	.rail {
		background: var(--rail);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.rail-picks,
.rail-levels {
	display: flex;
	align-items: center;
	gap: .35rem;
}

.chip,
.lv-toggle {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 42px;
	padding: 0 1.1rem;
	font-weight: 700;
	white-space: nowrap;
	border: 1.5px solid var(--rail-line);
	border-radius: 999px;
	cursor: pointer;
	transition: transform .2s var(--ease-out);
}

.chip:hover,
.lv-toggle:hover {
	border-color: var(--rail-ink);
}

.chip:active,
.lv-toggle:active {
	transform: translateY(2px);
}

/* the category on show: lime with ink type, the one lime chip */
#f-all:checked ~ .rail [for="f-all"],
#f-form:checked ~ .rail [for="f-form"],
#f-nav:checked ~ .rail [for="f-nav"],
#f-layout:checked ~ .rail [for="f-layout"],
#f-feedback:checked ~ .rail [for="f-feedback"] {
	color: #0c0c0d;
	background: #b8ff57;
	border-color: #0c0c0d;
}

/* a level that is off reads dim, with its meter unlit; one that is on is
   outlined in the rail's ink. With none on, every level shows, as an empty
   Isotope filter does */
.lv-toggle {
	padding: 0 .9rem;
	color: color-mix(in srgb, var(--rail-ink) 62%, var(--rail));
	border-style: dashed;
	--lv-1: var(--lv-off);
	--lv-2: var(--lv-off);
	--lv-3: var(--lv-off);
}

#l-beg:checked ~ .rail [for="l-beg"],
#l-int:checked ~ .rail [for="l-int"],
#l-adv:checked ~ .rail [for="l-adv"] {
	color: var(--rail-ink);
	border-style: solid;
	border-color: var(--rail-ink);
	--lv-1: #57d9a3;
	--lv-2: #ffd444;
	--lv-3: #ff6b6b;
}

#f-all:focus-visible ~ .rail [for="f-all"],
#f-form:focus-visible ~ .rail [for="f-form"],
#f-nav:focus-visible ~ .rail [for="f-nav"],
#f-layout:focus-visible ~ .rail [for="f-layout"],
#f-feedback:focus-visible ~ .rail [for="f-feedback"],
#l-beg:focus-visible ~ .rail [for="l-beg"],
#l-int:focus-visible ~ .rail [for="l-int"],
#l-adv:focus-visible ~ .rail [for="l-adv"] {
	outline: 3px solid #b8ff57;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #0c0c0d;
}

/* each level carries its count for every category; the picked one shows */
.lv-count {
	font-weight: 300;
	font-variant-numeric: tabular-nums;
}

.lv-count > span {
	display: none;
}

#f-all:checked ~ .rail .n-all,
#f-form:checked ~ .rail .n-form,
#f-nav:checked ~ .rail .n-nav,
#f-layout:checked ~ .rail .n-layout,
#f-feedback:checked ~ .rail .n-feedback {
	display: inline;
}

/* â”€â”€ The grid: Bootstrap's row and columns, with no gutter â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
}

.row > * {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

.row > .lv-heading {
	width: 1px;
}

.col-12 {
	flex: 0 0 auto;
	width: 100%;
}

@media (min-width: 992px) {
	.col-lg-6 {
		flex: 0 0 auto;
		width: 50%;
	}
}

/* three to a row from 1600px, a step of the site's own past Bootstrap's */
@media (min-width: 1600px) {
	.col-xxxl-4 {
		flex: 0 0 auto;
		width: 33.33333%;
	}
}



/* the column wrapper is unstyled; the field inside fills it, so both fields
   in a row share the row's height */
.row > .cell > .field {
	height: 100%;
}

/* â”€â”€ The checker and the filter â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* states.css gives every shown tile its place for the picked filter: --p
   two to a row and --q three to a row, its top and its row's height. The
   ground follows the place: two to a row, place p (from 0) is paper where
   (p + 1) mod 4 is 2 or 3; one and three to a row, on every odd place. */
.grid {
	--glide: .45s cubic-bezier(.22, .8, .24, 1);
}

@media (max-width: 991.98px) {
	.grid > .cell {
		--p0: mod(var(--p, 0), 2);
	}
}

@media (min-width: 992px) and (max-width: 1599.98px) {
	.grid > .cell {
		--p0: round(down, calc(mod(var(--p, 0) + 1, 4) / 2), 1);
	}

	.grid {
		--p0: var(--e2, 0);
	}
}

@media (min-width: 1600px) {
	.grid > .cell {
		--p0: mod(var(--q, 0), 2);
	}

	.grid {
		--p0: var(--e3, 0);
	}
}

/* A tile that drops out shrinks to nothing and fades where it stands, then
   goes (hidden, so it leaves the tab order and assistive tech); it only
   moves back to its parking spot once it is gone. A tile that shows slides
   to its place and, if it was out, grows in once it is nearly there. */
.grid > .cell {
	opacity: var(--on, 0);
	scale: var(--on, .001);
	visibility: var(--vis, hidden);
	transition: opacity .3s var(--ease-out), scale .3s var(--ease-out), visibility 0s linear .3s, translate 0s linear .45s, height 0s linear .45s;
}

.tile,
.tile-top,
.words {
	transition: background-color .45s ease;
}

/* two and three to a row, the grid places every tile itself. Hidden tiles
   wait at their All place, which can be far below a short state's last row;
   the clip keeps them from stretching the page past the footer (tiles are
   paint-contained, so nothing shown reaches past the grid anyway) */
@media (min-width: 992px) {
	.grid {
		position: relative;
		display: block;
		height: calc(var(--h2) * 1px);
		overflow: clip;
		transition: height var(--glide);
	}

	.grid > .cell {
		position: absolute;
		top: 0;
		left: 0;
		height: calc(var(--r2) * 1px);
		translate: calc(mod(var(--p), 2) * 100%) calc(var(--y2) * 1px);
	}

	.grid > .cell > .tile {
		height: 100%;
		min-height: 0;
	}
}

/* three to a row the steps scale with the width (--k3) */
@media (min-width: 1600px) {
	.grid {
		height: calc(var(--h3) * var(--k3) * 1px);
	}

	.grid > .cell {
		height: calc(var(--r3) * var(--k3) * 1px);
		translate: calc(mod(var(--q), 3) * 100%) calc(var(--y3) * var(--k3) * 1px);
	}
}

/* a phone keeps the plain column: a tile that drops out fades and shrinks
   while its row closes; one that comes back opens its row, then fades and
   grows in place. The row is the cell's one grid track, 0fr when out and
   1fr when shown, so both ways transition (display: none could not fade in) */
@media (max-width: 991.98px) {
	.grid > .cell {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, var(--rows, 0fr));
		overflow: clip;
		transition: opacity .3s var(--ease-out), scale .3s var(--ease-out), grid-template-rows .3s var(--ease-out), visibility 0s linear .3s;
	}
}

/* â”€â”€ No match: what a filter that leaves no examples shows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* The block fills the grid, which states.css sizes to fit it in those
   states (a phone takes the height below). It fades and grows in like an
   arriving tile, and its colors follow the ground the grid has there. The
   region is always on the page; only the block inside it turns visible. */
.grid-none {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: var(--gutter);
	pointer-events: none;
}

.grid-none-box {
	--none-ink: color-mix(in srgb, var(--s-words) calc(var(--pos) * 100%), #f4f1eb);
	--none-line: color-mix(in srgb, rgba(12, 12, 13, .42) calc(var(--pos) * 100%), rgba(244, 241, 235, .46));
	display: grid;
	justify-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 34rem;
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
	color: var(--none-ink);
	text-align: center;
	border: 2px dotted var(--none-line);
	border-radius: var(--radius-lg);
	opacity: var(--on, 0);
	scale: var(--on, .001);
	visibility: var(--vis, hidden);
	transition: opacity .3s var(--ease-out), scale .3s var(--ease-out), visibility 0s linear .3s;
}

/* the icon's circle runs past its viewBox, as Font Awesome draws it */
.grid-none-icon {
	width: 2.75rem;
	height: auto;
	overflow: visible;
	margin-bottom: .25rem;
}

.grid-none-box p {
	max-width: 26em;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 500;
	line-height: 1.45;
	text-wrap: balance;
}

@media (max-width: 991.98px) {
	.grid {
		min-height: calc(var(--none, 0) * 20rem);
	}
}

/* â”€â”€ A field â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.field {
	position: relative;
	isolation: isolate;
	color: var(--words);
	background: var(--field);
	--pad: clamp(1.25rem, 2.4vw, 3rem);
}

.field ::selection {
	color: var(--bg);
	background: var(--accent);
}

/* every example's field: its note top right in a light band, its demo in the
   open middle, its title bottom left in a second band. The bands run the full
   width of the field and tint it a hair (darker on paper, lighter on ink), so
   the words read as part of the card; they flip with the field */
.tile {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: clamp(.75rem, 1.1vw, 1.25rem);
	min-height: var(--fh);
	padding: 0 var(--pad);
	scroll-margin-top: calc(var(--head-h) + var(--rail-h) + .5rem);
	content-visibility: auto;
	contain-intrinsic-size: auto var(--fh);
	/* said outright, not left to content-visibility: an open modal, lightbox
	   or toast is fixed to its own field and painted inside it */
	contain: layout paint style;
}

.fh-1 {
	--fh: 440px;
}

.fh-2 {
	--fh: 520px;
}

.fh-3 {
	--fh: 620px;
}

.tile-top {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 1rem;
	min-width: 0;
	margin: 0 calc(var(--pad) * -1);
	padding: calc(var(--pad) * .75) var(--pad) calc(var(--pad) * .55);
	background: var(--tint);
}

.note {
	font-size: clamp(1rem, 1.2vw, 1.3125rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-align: right;
	text-wrap: balance;
	pointer-events: none;
	transition: transform .4s var(--ease-out);
}

/* Owner, 2026-11-08: the bands stay out of sight until a tile is hovered.
   The top band slides down and the bottom band slides up from the tile's
   edges (the tile clips them, contain: paint), then their words slide in.
   The bands keep their room in the layout, so no demo moves. A keyboard
   user gets the same reveal through :focus-within, and a touch screen,
   which cannot hover, keeps the bands showing at all times. */
@media (hover: hover) and (pointer: fine) {
	.tile-top {
		transform: translateY(-101%);
	}

	.words {
		transform: translateY(101%);
	}

	.note {
		opacity: 0;
		translate: 1.5rem 0;
	}

	.words > * {
		opacity: 0;
		translate: -1.5rem 0;
	}

	.tile:hover .tile-top,
	.tile:focus-within .tile-top,
	.tile:hover .words,
	.tile:focus-within .words {
		transform: none;
	}

	.tile:hover .note,
	.tile:focus-within .note,
	.tile:hover .words > *,
	.tile:focus-within .words > * {
		opacity: 1;
		translate: 0 0;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.tile-top,
	.words {
		transition: transform .35s var(--ease-out);
	}

	.note,
	.words > * {
		transition: opacity .3s ease, translate .45s var(--ease-out);
		transition-delay: 0s;
	}

	/* the words follow once their band has arrived; on the way out they leave first */
	.tile:hover .note,
	.tile:focus-within .note,
	.tile:hover .words > *,
	.tile:focus-within .words > * {
		transition-delay: .15s;
	}

	.tile:hover .words > :nth-child(2),
	.tile:focus-within .words > :nth-child(2) {
		transition-delay: .22s;
	}
}

/* a field shows its demo and nothing else: anything the demo section of a
   built page carries beside the demo (a draft note, for one) stays hidden */
.tile > .demo-section > :not(.demo-wrapper, .demo-tabs, .demo-clip) {
	display: none;
}

.tile > .demo-section {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
}

/* an example with no tuning in src/_data/homeTiles.json yet takes the tallest
   field at 1:1 and is cut off at its field, so it can never run under its
   bands or a neighbor (scripts/measure-home-tiles.mjs tunes it) */
.tile-untuned > .demo-section {
	overflow: clip;
}

/* a demo too tall for the tallest field even at 0.6 zoom (home/layout.mjs) is
   cut off at its field too, in the layouts where it does not fit, until its
   tile is trimmed */
@media (min-width: 992px) and (max-width: 1599.98px) {
	.tile-clip2 > .demo-section {
		overflow: clip;
	}
}

@media (min-width: 1600px) {
	.tile-clip3 > .demo-section {
		overflow: clip;
	}
}

/* the demo sits straight on the field: no window, no frame. A small demo
   plays zoomed; the zoom grows by --zd at 1440 and by less on a narrower field */
.tile .demo-wrapper {
	flex: 0 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	zoom: calc(1 + (var(--zd, 1) - 1) * var(--zs));
}

/* two to a row, a tile in an uneven row may play at the row's zoom for it
   (--zf2, set per filter state in home-states.css by home/layout.mjs) */
@media (min-width: 992px) and (max-width: 1599.98px) {
	.tile .demo-wrapper {
		zoom: calc(1 + (var(--zf2, var(--zd, 1)) - 1) * var(--zs));
	}
}

.z-6 { --zd: .6; }
.z-7 { --zd: .7; }
.z-8 { --zd: .8; }
.z-9 { --zd: .9; }
.z-10 { --zd: 1; }
.z-11 { --zd: 1.1; }
.z-12 { --zd: 1.2; }
.z-13 { --zd: 1.3; }
.z-14 { --zd: 1.4; }
.z-15 { --zd: 1.5; }
.z-16 { --zd: 1.6; }
.z-17 { --zd: 1.7; }
.z-18 { --zd: 1.8; }
.z-19 { --zd: 1.9; }
.z-20 { --zd: 2; }
.z-21 { --zd: 2.1; }
.z-22 { --zd: 2.2; }
.z-23 { --zd: 2.3; }
.z-24 { --zd: 2.4; }
.z-25 { --zd: 2.5; }
.z-26 { --zd: 2.6; }
.z-27 { --zd: 2.7; }
.z-28 { --zd: 2.8; }

/* three to a row, a few demos take a zoom of their own so they fit */
.z3-6 { --zd3: .6; }
.z3-7 { --zd3: .7; }
.z3-8 { --zd3: .8; }
.z3-9 { --zd3: .9; }
.z3-10 { --zd3: 1; }
.z3-11 { --zd3: 1.1; }
.z3-12 { --zd3: 1.2; }
.z3-13 { --zd3: 1.3; }
.z3-14 { --zd3: 1.4; }
.z3-15 { --zd3: 1.5; }
.z3-16 { --zd3: 1.6; }
.z3-17 { --zd3: 1.7; }
.z3-18 { --zd3: 1.8; }
.z3-19 { --zd3: 1.9; }
.z3-20 { --zd3: 2; }
.z3-21 { --zd3: 2.1; }
.z3-22 { --zd3: 2.2; }
.z3-23 { --zd3: 2.3; }
.z3-24 { --zd3: 2.4; }
.z3-25 { --zd3: 2.5; }
.z3-26 { --zd3: 2.6; }
.z3-27 { --zd3: 2.7; }
.z3-28 { --zd3: 2.8; }

.words {
	display: grid;
	justify-items: start;
	gap: .45rem;
	min-width: 0;
	margin: 0 calc(var(--pad) * -1);
	padding: calc(var(--pad) * .55) var(--pad) calc(var(--pad) * .75);
	background: var(--tint);
}

.tile-title {
	font-size: clamp(1.75rem, 2.2vw, 2.25rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.01em;
	text-wrap: balance;
}

/* two and three to a row, a note and a title each keep to one line, so the
   top bands and the bottom bands of a row are the same height and line up
   edge to edge; a phone, one to a row, lets them wrap. A line too long for
   its band steps its size down until it fits, so no text is ever cut: the
   build gives each tile its note's and its title's width in em (--nw, --tw),
   and the band's width over that is the largest size that fits. The line box
   keeps its usual height, so the band stays the height of the row's others */
@media (min-width: 992px) {
	.tile-top,
	.words {
		container-type: inline-size;
	}

	.note,
	.tile-title {
		white-space: nowrap;
	}

	.note {
		--fs: clamp(1rem, 1.2vw, 1.3125rem);
		font-size: min(var(--fs), 100cqi / var(--nw, .001));
		line-height: calc(var(--fs) * 1.15);
	}

	.tile-title {
		--fs: clamp(1.75rem, 2.2vw, 2.25rem);
		font-size: min(var(--fs), 100cqi / var(--tw, .001));
		line-height: calc(var(--fs) * .95);
	}
}

.tile-title a {
	text-decoration: none;
	border-radius: 6px;
}

.tile-title .tile-arrow {
	display: inline-block;
	width: .62em;
	height: .62em;
	margin-left: .2em;
	vertical-align: .02em;
	transition: transform .4s var(--ease-out);
}

.tile-title a:hover .tile-arrow,
.tile-title a:focus-visible .tile-arrow {
	transform: translateX(.22em);
}

.tile-title a:active {
	transform: translateY(1px);
}

.tile-level {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1;
	/* one height with or without the New mark, so the bands match */
	height: 1.375rem;
}

.new-mark {
	margin-left: .3rem;
	padding: .15rem .55rem .2rem;
	font-size: .75rem;
	font-weight: 750;
	color: #0c0c0d;
	background: #b8ff57;
	border: 1.5px solid #0c0c0d;
	border-radius: 999px;
}

/* â”€â”€ No field flip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* A field once flipped to the other neutral, in a growing circle, whenever its
   demo left its default state. The owner removed it on 2026-11-08 as jarring
   and distracting from the example, so a field keeps its resting color. */

/* â”€â”€ The level meter â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* three bars, always beside the word; teal, yellow and coral lose their
   contrast on paper, so the meter carries its own ink chip */
.level-meter {
	display: inline-flex;
	align-items: flex-end;
	flex: none;
	gap: .15em;
	height: 1.34em;
	padding: .24em .28em;
	font-size: .875rem;
	background: var(--meter-chip);
	border-radius: .32em;
}

.meter-bar {
	display: block;
	width: .26em;
	border-radius: .08em;
	background: var(--lv-off);
}

.meter-bar:nth-child(1) {
	height: 45%;
}

.meter-bar:nth-child(2) {
	height: 72%;
}

.meter-bar:nth-child(3) {
	height: 100%;
}

.meter-bar.is-lit {
	background: var(--level, var(--lv-1));
}

.meter-beginner {
	--level: var(--lv-1);
}

.meter-intermediate {
	--level: var(--lv-2);
}

.meter-advanced {
	--level: var(--lv-3);
}

.rail .level-meter {
	font-size: .85rem;
}

/* The signup row and the footer are the site's chrome, in chrome.css: the
   signup is the footer's top row on every page. */

/* â”€â”€ Owner review, 2026-11-08: the home tiles only; the demos stay as they are â”€â”€ */

/* Difference Blend Mode: the demo's wrapper cuts off anything outside its box
   left and right, and the panels run its full width, so their edge line was
   lost at both ends. A little room on each side keeps it all the way round,
   wherever the white bar is */
.tile[data-slug="difference-blend-mode"] .demo-wrapper {
	padding-inline: 3px;
}

/* Off-Canvas Navigation: the same for its frame's hairline, which the
   demo's wrapper cut off above and below */
.tile[data-slug="off-canvas-navigation"] .demo-wrapper {
	padding-block: 2px;
}

/* Styled Date Input: the demo inverts the calendar icon for a dark page,
   which makes it vanish on paper and go dark on ink; the field's own color
   scheme already draws it for its ground */
.tile[data-slug="date-input"] input[type="date"]::-webkit-calendar-picker-indicator {
	filter: opacity(.7);
}

.tile[data-slug="date-input"] input[type="date"]::-webkit-calendar-picker-indicator:hover {
	filter: none;
}

/* Styled Select Dropdown: the accent variant's caret is drawn in lime, which
   cannot be seen on paper; there it takes the paper accent green */
@container style(--l: 1) and style(--th: 0) {
	.tile[data-slug="styled-select"] .select-accent {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23087400' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
}

/* Skeleton Loader: the demo picks its shimmer by the page's theme switch,
   which on this page means a white sweep on paper, where it barely shows.
   Each field takes the sweep for its own ground, and on paper a darker one
   (owner, 2026-11-08: more intense, then a little less) */
#grid .tile[data-slug="skeleton-loader"] .demo-skeleton-loader .skel {
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 80%);
}

@container style(--l: 1) and style(--th: 0) {
	#grid .tile[data-slug="skeleton-loader"] .demo-skeleton-loader .skel {
		background-image: linear-gradient(90deg, rgba(12, 12, 13, 0) 18%, rgba(12, 12, 13, .14) 50%, rgba(12, 12, 13, 0) 82%);
	}
}

/* Numeric Stepper: like the skeleton, the restyled arrows pick their color by
   the page's theme switch, which drew them pale on paper. Each field draws
   them for its own ground */
#grid .tile[data-slug="numeric-stepper"] .demo-numeric-stepper input[type="number"].spin-arrows {
	color-scheme: dark;
}

#grid .tile[data-slug="numeric-stepper"] .demo-numeric-stepper input[type="number"].spin-arrows::-webkit-inner-spin-button {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 48'%3E%3Cpath d='M4 14l4-4 4 4M4 34l4 4 4-4' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
		linear-gradient(var(--border), var(--border));
}

@container style(--l: 1) and style(--th: 0) {
	#grid .tile[data-slug="numeric-stepper"] .demo-numeric-stepper input[type="number"].spin-arrows {
		color-scheme: light;
	}

	#grid .tile[data-slug="numeric-stepper"] .demo-numeric-stepper input[type="number"].spin-arrows::-webkit-inner-spin-button {
		background-image:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 48'%3E%3Cpath d='M4 14l4-4 4 4M4 34l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
			linear-gradient(var(--border), var(--border));
	}
}

/* Following a link to an element scrolls the page to that element, so the
   demos that open on :target made the page jump. On a tile the element a
   link targets has no box of its own (display: contents): :target still
   applies, and the page stays where it is. A link that only closes points
   at the empty mark at the end of its tile (home/eleventy.mjs) */
.tile-rest {
	display: contents;
}

/* Modal Dialog: its overlay draws the dim and centers the dialog, so on a
   tile those move to the overlay's ::before and to the dialog itself. Both
   are placed against the whole tile; the demo's own wrapper is only as tall
   as its button, which left the dim as a strip behind the dialog */
#grid .tile[data-slug="modal-dialog"] .demo-wrapper {
	position: static;
}

#grid .tile[data-slug="modal-dialog"] .modal-overlay {
	display: contents;
}

#grid .tile[data-slug="modal-dialog"] .modal-box {
	display: none;
}

#grid .tile[data-slug="modal-dialog"] .modal-overlay:target::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 10;
	background: rgba(0, 0, 0, .55);
}

#grid .tile[data-slug="modal-dialog"] .modal-overlay:target > .modal-box {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 11;
	height: fit-content;
	margin: auto;
}

/* CSS Lightbox: the same, over the whole field, as its overlay covered it */
#grid .tile[data-slug="lightbox"] .lb-overlay {
	display: contents;
}

#grid .tile[data-slug="lightbox"] .lb-overlay > * {
	display: none;
}

#grid .tile[data-slug="lightbox"] .lb-overlay:target::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(0, 0, 0, .85);
}

#grid .tile[data-slug="lightbox"] .lb-overlay:target > .lb-close {
	display: flex;
	z-index: 1000;
}

#grid .tile[data-slug="lightbox"] .lb-overlay:target > .lb-overlay-img {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 999;
	margin: auto;
}

/* â”€â”€ Effects that fill their field â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Owner, 2026-11-13: "Cards on the Home page that could just be the whole
   card instead of the constrained container". On a tile these effects run
   edge to edge across the field and meet the note band above and the title
   band below, with no frame: the demo area takes back the field's side
   padding and the gaps beside the bands, and the effect's stage stretches
   to fill it. Each keeps its own height as its least, which is what the
   tile is measured at (stretchy in src/_data/homeTiles.json, so it plays at
   1:1). The example pages keep their framed panels. */
.tile[data-slug="matrix-rain"] > .demo-section,
.tile[data-slug="glassmorphism"] > .demo-section,
.tile[data-slug="rain-effect"] > .demo-section,
.tile[data-slug="particle-float"] > .demo-section,
.tile[data-slug="confetti"] > .demo-section,
.tile[data-slug="falling-snow"] > .demo-section {
	align-items: stretch;
	margin: calc(clamp(.75rem, 1.1vw, 1.25rem) * -1) calc(var(--pad) * -1);
}

/* Where a pointer can hover, the bands wait out of sight until the tile is
   hovered, which left the field's color showing above and below the effect
   at rest (owner, 2026-11-13: these should be the whole card). There the
   effect runs under the bands' room too, top edge to bottom edge, and the
   bands slide in over it. A touch screen shows its bands at all times, so
   there the effect stays between them. */
@media (hover: hover) and (pointer: fine) {
	.tile[data-slug="matrix-rain"] > .demo-section,
	.tile[data-slug="glassmorphism"] > .demo-section,
	.tile[data-slug="rain-effect"] > .demo-section,
	.tile[data-slug="particle-float"] > .demo-section,
	.tile[data-slug="confetti"] > .demo-section,
	.tile[data-slug="falling-snow"] > .demo-section {
		grid-row: 1 / -1;
		grid-column: 1;
		margin-block: 0;
	}

	.tile[data-slug="matrix-rain"] > .tile-top,
	.tile[data-slug="glassmorphism"] > .tile-top,
	.tile[data-slug="rain-effect"] > .tile-top,
	.tile[data-slug="particle-float"] > .tile-top,
	.tile[data-slug="confetti"] > .tile-top,
	.tile[data-slug="falling-snow"] > .tile-top {
		grid-row: 1;
		grid-column: 1;
		position: relative;
		z-index: 1;
		/* the band's tint is a wash over the field; here it would wash over
		   the effect, so it sits on the field's own color */
		background: linear-gradient(var(--tint), var(--tint)) var(--field);
	}

	.tile[data-slug="matrix-rain"] > .words,
	.tile[data-slug="glassmorphism"] > .words,
	.tile[data-slug="rain-effect"] > .words,
	.tile[data-slug="particle-float"] > .words,
	.tile[data-slug="confetti"] > .words,
	.tile[data-slug="falling-snow"] > .words {
		grid-row: 3;
		grid-column: 1;
		position: relative;
		z-index: 1;
		/* the band's tint is a wash over the field; here it would wash over
		   the effect, so it sits on the field's own color */
		background: linear-gradient(var(--tint), var(--tint)) var(--field);
	}
}

.tile[data-slug="matrix-rain"] .demo-wrapper,
.tile[data-slug="glassmorphism"] .demo-wrapper,
.tile[data-slug="rain-effect"] .demo-wrapper,
.tile[data-slug="particle-float"] .demo-wrapper,
.tile[data-slug="confetti"] .demo-wrapper,
.tile[data-slug="falling-snow"] .demo-wrapper {
	display: grid;
	place-content: stretch;
	place-items: stretch;
	overflow: hidden;
}

.tile[data-slug="matrix-rain"] > .demo-section > .demo-wrapper .mr-rain,
.tile[data-slug="glassmorphism"] > .demo-section > .demo-wrapper .gm-scene,
.tile[data-slug="rain-effect"] > .demo-section > .demo-wrapper .rain-stage,
.tile[data-slug="particle-float"] > .demo-section > .demo-wrapper .particle-stage,
.tile[data-slug="confetti"] > .demo-section > .demo-wrapper .confetti-stage,
.tile[data-slug="falling-snow"] > .demo-section > .demo-wrapper .snow-stage {
	width: auto;
	max-width: none;
	height: auto;
	border-radius: 0;
}

.tile[data-slug="matrix-rain"] > .demo-section > .demo-wrapper .mr-rain,
.tile[data-slug="glassmorphism"] > .demo-section > .demo-wrapper .gm-scene {
	min-height: 21rem;
}

.tile[data-slug="rain-effect"] > .demo-section > .demo-wrapper .rain-stage {
	min-height: 220px;
}

/* Owner, 2026-11-13: with the scene stretched to the whole card the orbs
   went to its corners and the glass sat over plain color, so the blur had
   nothing to show. On a tile they are placed from the center, where the
   card is, so each one runs behind an edge of the glass: half of it sharp
   outside the card, half of it frosted inside */
.tile[data-slug="glassmorphism"] .gm-orb-1 {
	top: calc(50% - 11rem);
	left: calc(50% - 13.5rem);
	width: 12rem;
	height: 12rem;
}

.tile[data-slug="glassmorphism"] .gm-orb-2 {
	right: calc(50% - 13rem);
	bottom: calc(50% - 10.5rem);
	width: 10.5rem;
	height: 10.5rem;
}

.tile[data-slug="glassmorphism"] .gm-orb-3 {
	top: calc(50% - 9.5rem);
	right: calc(50% - 12rem);
	width: 6.5rem;
	height: 6.5rem;
}

/* the drift is the demo's own, a few rem each way, so it stays near the
   glass rather than wandering off to an edge */
.tile[data-slug="glassmorphism"] .gm-orb {
	--gm-dx: 2rem;
	--gm-dy: 1.5rem;
}

.tile[data-slug="glassmorphism"] .gm-orb-2 {
	--gm-dx: -2.5rem;
	--gm-dy: -1.5rem;
}

.tile[data-slug="glassmorphism"] .gm-orb-3 {
	--gm-dx: -1.5rem;
	--gm-dy: 2.5rem;
}

/* Owner, 2026-11-13: on a whole-card tile the label sat low and small;
   it is centered in the rain and set larger */
.tile[data-slug="rain-effect"] .rain-text {
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	font-size: 1.75rem;
	font-weight: 700;
}

/* Falling Snow's flakes fall by a share of the stage's own height, so they
   cross the whole field with no keyframes of its own here */
.tile[data-slug="falling-snow"] > .demo-section > .demo-wrapper .snow-stage {
	min-height: 260px;
}

.tile[data-slug="particle-float"] > .demo-section > .demo-wrapper .particle-stage,
.tile[data-slug="confetti"] > .demo-section > .demo-wrapper .confetti-stage {
	min-height: 240px;
}

/* Particle Float's and Confetti Burst's stage is a plain panel in the
   surface color, the frame itself; on a tile the pieces play on the field */
.tile[data-slug="particle-float"] > .demo-section > .demo-wrapper .particle-stage,
.tile[data-slug="confetti"] > .demo-section > .demo-wrapper .confetti-stage {
	background: none;
}

/* the drops, the particles and the confetti travel a set distance, as tall
   as the demo's own panel; on a tile they cross the whole field, however
   tall it is. They move by top, whose percentages are the stage's height
   (container units in a transform keyframe were drawn wrong by Chrome's
   compositor, which left every drop at the top of the field) */
.tile[data-slug="rain-effect"] .drop {
	animation-name: tile-rain-fall;
}

.tile[data-slug="particle-float"] .particle {
	animation-name: tile-particle-rise;
	/* the field is much larger than the demo's panel, so the dots are too */
	scale: 1.6;
}

.tile[data-slug="confetti"] .confetti-stage .piece {
	animation-name: tile-confetti-fall;
}

@keyframes tile-rain-fall {
	0% {
		top: -20px;
		transform: scaleX(1);
		opacity: 0;
	}
	5% { opacity: 1; }
	95% { opacity: .8; }
	100% {
		top: 100%;
		transform: scaleX(.5);
		opacity: 0;
	}
}

@keyframes tile-particle-rise {
	0% {
		top: 100%;
		transform: translateX(0);
		opacity: 0;
	}
	10% { opacity: .8; }
	90% { opacity: .6; }
	100% {
		top: -20px;
		transform: translateX(20px);
		opacity: 0;
	}
}

/* the demo's fall, its steps kept in proportion to the height */
@keyframes tile-confetti-fall {
	0% {
		top: -18px;
		transform: rotate(0deg) scaleX(1);
		opacity: 1;
	}
	25% {
		top: calc((100% + 20px) * .0615 - 18px);
		transform: rotate(90deg) scaleX(0);
	}
	50% {
		top: calc((100% + 20px) * .25 - 18px);
		transform: rotate(180deg) scaleX(-1);
	}
	75% {
		top: calc((100% + 20px) * .5615 - 18px);
		transform: rotate(270deg) scaleX(0);
		opacity: 1;
	}
	100% {
		top: calc(100% + 2px);
		transform: rotate(360deg) scaleX(1);
		opacity: 0;
	}
}

/* â”€â”€ Demos that need their own fit â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* one swatch is the paper itself and one is near black, so every swatch
   carries a hairline in its field's border color */
.tile[data-slug="color-swatch"] .swatch-group label {
	box-shadow: 0 0 0 1px var(--border);
}

/* the grid sits centered (owner, 2026-11-08), drawn in so its tips have room */
.tile[data-slug="tooltip-directions"] .td-grid {
	max-width: 15rem;
}

/* centered, the right-hand tip needs the room a field gives at 1440; where
   a field is narrower for its zoom (1200 to 1439, and phones to 767) the
   demo plays a little smaller so all four tips stay inside it */
@media (min-width: 1200px) and (max-width: 1439.98px) {
	.tile[data-slug="tooltip-directions"] .demo-wrapper {
		zoom: 1.2;
	}
}

@media (min-width: 576px) and (max-width: 767.98px) {
	.tile[data-slug="tooltip-directions"] .demo-wrapper {
		zoom: 1;
	}
}

/* the stepper lays its three fields side by side on any screen over 48em,
   which a field of 400 to 600px cannot hold; in a field they stack */
.tile[data-slug="numeric-stepper"] .stepper-group {
	grid-template-columns: minmax(0, 1fr);
	max-width: 17rem;
}

/* CSS Geometric Art draws its orbits and its star field in white for a
   night sky; on paper the orbits take a faint ink line and the star field
   inverts (the sun keeps its own colors), so the system still reads (the theme bit keeps the second theme's dark ground
   white) */
.tile[data-slug="geometric-art"] {
	--on-paper: calc(var(--l) * (1 - var(--th)));
}

.tile[data-slug="geometric-art"] .orbit {
	border-color: color-mix(in srgb, rgba(12, 12, 13, .2) calc(var(--on-paper) * 100%), rgba(255, 255, 255, .1));
}

.tile[data-slug="geometric-art"] .star-field {
	filter: invert(var(--on-paper));
}

/* Difference Blend Mode's black panels: on ink a lifted line keeps them off
   the field; on paper an ink line keeps the sweep panel's edge where its white
   bar runs against it (the stage clips the bar, so the line stays outside) */
.tile[data-slug="difference-blend-mode"] .blend-stage,
.tile[data-slug="difference-blend-mode"] .blend-orbit {
	box-shadow: 0 0 0 1.5px color-mix(in srgb, #0c0c0d calc(var(--l) * 100%), #3a3a3e);
}

/* the accordion and the expandable cards grow as panels open, and Line
   Chart's "Show data" adds its table under the chart (owner, 2026-11-13:
   it ran over the title band into the next row); past their field they
   scroll inside it rather than run under the title band */
/* Line Chart: under the chart, the data table ran past the field, and
   scrolling it left one row in view (owner, 2026-11-13: "things get weird
   when you click the checkbox"). Two and three to a row, Show data puts the
   table beside the chart instead, all seven days in view */
@media (min-width: 992px) {
	.tile[data-slug="line-chart"] .lc-chart:has(.lc-show input:checked) {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 1.5rem;
		max-width: none;
	}

	.tile[data-slug="line-chart"] .lc-chart:has(.lc-show input:checked) > :not(.lc-data) {
		grid-column: 1;
	}

	.tile[data-slug="line-chart"] .lc-chart:has(.lc-show input:checked) .lc-data {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: center;
	}

	.tile[data-slug="line-chart"] .lc-table th,
	.tile[data-slug="line-chart"] .lc-table td {
		padding-block: .3rem;
	}
}

.tile[data-slug="accordion"] > .demo-section,
.tile[data-slug="expandable-card"] > .demo-section,
.tile[data-slug="line-chart"] > .demo-section {
	align-items: safe center;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* the skeleton cards cast a shadow past their box, which needs a little
   room above and below on a phone */
.tile[data-slug="skeleton-loader"] > .demo-section {
	padding-block: .75rem;
}

/* the off-canvas frame is only a shade off its field, so a line keeps it visible */
.tile[data-slug="off-canvas-navigation"] .demo-wrapper > div {
	box-shadow: 0 0 0 1px var(--border);
}

/* the parallax sky is drawn dark whatever the ground, so its own type, hills
   and sun keep the dark set */
.tile[data-slug="parallax-scrolling"] .demo-section {
	--yellow: #ffd444;
	--orange: #ff9040;
	--text: #f0f0f0;
	--text-muted: #a9a69e;
	--surface: #141415;
	--surface-2: #1c1c1e;
	--border: #2a2a2d;
}

/* the ratio boxes, the blobs, the flip cards and the carousel slides set
   their labels in the ground color on bright fills; on every ground those
   labels stay ink, as on the live site */
.tile[data-slug="aspect-ratio-box"] .demo-section,
.tile[data-slug="morphing-blob"] .demo-section,
.tile[data-slug="3d-card-flip"] .demo-section,
.tile[data-slug="scroll-carousel"] .demo-section,
.tile[data-slug="before-after-slider"] .demo-section {
	--bg: #0c0c0d;
}

/* the buttons that open, reveal or move a demo are lime with ink type on
   every ground, as on the live site; the rest of each demo keeps its field's
   set, so accent type on paper stays the brand violet */
.tile[data-slug="hover-dropdown"] .dropdown-trigger,
.tile[data-slug="off-canvas-navigation"] .offcanvas-open,
.tile[data-slug="modal-dialog"] .modal-open-btn,
.tile[data-slug="show-hide-content"] .toggle-btn,
.tile[data-slug="multi-step-form"] .msf-btn {
	--accent: #b8ff57;
	--bg: #0c0c0d;
}

/* the dropdown keeps only a little of its empty room under its buttons, so
   they sit near the middle of the field; the open menu still lands inside it */
.tile[data-slug="hover-dropdown"] .demo-wrapper > div {
	padding-bottom: 40px !important;
}

/* Background Patterns prints each pattern's code under its swatch, which runs
   the gallery to nearly 3,800px; the tile shows the swatches only, as the
   share card does */
.tile[data-slug="background-patterns"] .bp-code {
	display: none;
}

/* its gallery fits as many 21rem columns as it can, one in a narrow tile.
   In a tile it runs five across from lg (owner, 2026-11-13), so it is two
   rows at every desktop width and the fit can play it larger; a phone keeps
   as many 9rem swatches as fit. Shorter swatches and larger type, so the
   names and functions read at the tile's zoom */
.tile[data-slug="background-patterns"] .bp-gallery {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
}

@media (min-width: 992px) {
	.tile[data-slug="background-patterns"] .bp-gallery {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.tile[data-slug="background-patterns"] .bp-swatch {
	height: 5rem;
}

.tile[data-slug="background-patterns"] .bp-name {
	font-size: 1.05rem;
}

.tile[data-slug="background-patterns"] .bp-name span {
	font-size: .85rem;
}

/* Print Styles' sample recipe is taller than the tallest field even at the
   smallest zoom; the tile keeps the header, the recipe's opening paragraph
   with its link, the sidebar and the footer, which is everything the print
   preview switch changes */
.tile[data-slug="print-styles"] .pr-figure,
.tile[data-slug="print-styles"] #pr-steps,
.tile[data-slug="print-styles"] #pr-ingredients,
.tile[data-slug="print-styles"] .pr-links a[href^="#pr-"],
.tile[data-slug="print-styles"] .pr-article ul,
.tile[data-slug="print-styles"] .pr-article ol {
	display: none;
}

/* The demos too tall for any field even at 0.6 zoom, trimmed for the tile.
   What a tile hides, it hides on every screen; what changes a layout or a
   size only applies two and three to a row (from 992px), since one to a row
   a tile grows with its demo. */

/* Color Mix keeps all eleven steps and its five base colors; the tile drops
   the "Base color" heading over the swatches and sets the steps closer */
.tile[data-slug="color-mix"] .cm-pills legend {
	display: none;
}

/* em vs rem keeps its padding comparison and both its switches; the tile
   drops the nested lists under it, the page's second lesson */
.tile[data-slug="em-vs-rem"] .er-nest {
	display: none;
}

/* Vertical Timeline keeps its first three milestones, the planned one, both
   widths and the line about where it switches; the tile drops two milestones,
   which leaves four that still alternate sides when wide, and the heading
   over the two widths */
.tile[data-slug="vertical-timeline"] .tl-item:nth-child(4),
.tile[data-slug="vertical-timeline"] .tl-item:nth-child(5),
.tile[data-slug="vertical-timeline"] .tl-pills legend {
	display: none;
}

/* Bento Grid keeps its five quotes, its three wrapper widths and every
   restack; the tile drops the quote marks and the customer names */
.tile[data-slug="bento-grid"] .bg-mark,
.tile[data-slug="bento-grid"] .bg-card figcaption {
	display: none;
}

/* in a field narrower than 34rem, Medium fills the field instead of running
   past it (the wrapper's max-width only holds inside a column that cannot
   grow) */
.tile[data-slug="bento-grid"] .bg-demo {
	grid-template-columns: minmax(0, 1fr);
}

/* Text Wrap keeps the shape and margin switches, the outline and the two
   paragraphs that wrap the plant; the tile drops the closing paragraph under
   the plant and the printed shape-outside value */
.tile[data-slug="text-wrap-around-image"] .tw-article p:last-of-type,
.tile[data-slug="text-wrap-around-image"] .tw-code {
	display: none;
}

/* Text Columns keeps the headline, the pull quote and three paragraphs, which
   still fill two or three columns; the tile drops the windmill picture, the
   line under the headline and two paragraphs */
.tile[data-slug="text-columns"] .tcol-fig,
.tile[data-slug="text-columns"] .tcol-dek,
.tile[data-slug="text-columns"] .tcol-article > p:nth-of-type(2),
.tile[data-slug="text-columns"] .tcol-article > p:nth-of-type(5) {
	display: none;
}

/* Anchor Positioning keeps all three panels and every control; the tile drops
   the CSS printed under each panel and the heading over the nine positions */
.tile[data-slug="anchor-positioning"] .ap-readout,
.tile[data-slug="anchor-positioning"] .ap-picker legend {
	display: none;
}

/* a photo card keeps to its column, rather than its picture's own width
   pushing the cards 20px past a phone's field */
.tile[data-slug="text-over-image"] .toi-card {
	min-width: 0;
}

/* the :has() cards' long selectors break anywhere, so a narrower card keeps
   to its column */
.tile[data-slug="has-selector"] .hs-card {
	min-width: 0;
}

.tile[data-slug="has-selector"] .hs-rule {
	overflow-wrap: anywhere;
}

@media (min-width: 992px) {
	/* Print Styles' recipe and sidebar wrap to one column under about 32rem,
	   which a narrow field reaches once the demo plays zoomed; in the tile
	   they keep to two columns, so the sidebar the print preview hides stays
	   beside the recipe */
	.tile[data-slug="print-styles"] .pr-article {
		flex-basis: 14rem;
	}

	.tile[data-slug="print-styles"] .pr-aside {
		flex-basis: 9rem;
	}

	/* Floating Action Button's phone is 30rem tall, a little more than a
	   field three to a row holds; the tile's phone is shorter, so its last
	   note runs under the button and off the screen, as a list on a real
	   phone does */
	.tile[data-slug="floating-action-button"] .fab-phone {
		height: 27rem;
	}

	/* Color Mix's steps sit closer */
	.tile[data-slug="color-mix"] .cm-scale {
		gap: .9rem;
	}

	.tile[data-slug="color-mix"] .cm-step {
		padding-block: .3rem;
	}

	.tile[data-slug="color-mix"] .cm-500 {
		padding-block: .55rem;
	}

	/* Mirror Reflection's flipped copy hangs below the stage's floor; the
	   floor runs the whole height of the reflection, so nothing hangs past
	   the stage, and the space over the plants comes in. The plants are
	   112px wide in the tile (150 on the page), so the stage is short enough
	   to play near full size and the captions read (2026-11-13) */
	.tile[data-slug="mirror-reflection"] .mr-stage {
		--mr-room: calc(112px * 1.36 + .25rem);
		padding-top: .75rem;
	}

	.tile[data-slug="mirror-reflection"] .mr-obj {
		width: 112px;
	}

	.tile[data-slug="mirror-reflection"] .mr-item {
		gap: .5rem;
	}

	/* the :has() cards always sit three across, so the demo stays short and
	   wide and plays near full size (2026-11-13; its zoom was held at 0.6
	   before, and is held at 0.9 now, where the form with both its errors
	   showing still fits) */
	.tile[data-slug="has-selector"] .hs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: .8rem;
	}

	.tile[data-slug="has-selector"] .hs-card {
		gap: .65rem;
		padding: .85rem .9rem 1rem;
	}

	/* Reduced Motion's app and its list of motions stack under about 33rem;
	   the tile keeps them side by side from a narrower width */
	.tile[data-slug="reduced-motion"] .rm-app {
		flex-basis: 15rem;
	}

	.tile[data-slug="reduced-motion"] .rm-legend {
		flex-basis: 10rem;
	}

	/* the three photo cards stay three across, rather than two with the third
	   under them */
	.tile[data-slug="text-over-image"] .toi-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Vertical Timeline's milestones sit closer */
	.tile[data-slug="vertical-timeline"] .tl {
		gap: .9rem;
	}

	/* Bento Grid's cards sit a little closer, so its equal rows come in */
	.tile[data-slug="bento-grid"] .bg-grid {
		gap: .6rem;
	}

	.tile[data-slug="bento-grid"] .bg-card {
		padding: .85rem 1rem;
	}

	/* Object Fit's five Tall boxes fit one row once each caption keeps to its
	   box's width and the boxes sit close; the zoom of its own below keeps
	   the row whole on the narrower fields */
	.tile[data-slug="object-fit"] .of-row {
		gap: 1rem .25rem;
		width: 100%;
	}

	.tile[data-slug="object-fit"] .of-fig figcaption {
		max-width: max(var(--of-w), 6.5rem);
	}

	/* its Big boxes keep to one row too and scroll sideways, rather than
	   wrapping to three rows of boxes 220 tall */
	.tile[data-slug="object-fit"] .of-lab:has([value="big"]:checked) .of-row {
		flex-wrap: nowrap;
		justify-content: safe center;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	/* Background Position keeps all nine frames and all four sizes; the size
	   buttons and the line about them sit in a column beside the frames,
	   which come in to fit the field's height */
	.tile[data-slug="background-position"] .bp {
		grid-template-columns: 9rem minmax(0, 1fr);
		align-items: start;
		max-width: 34rem;
	}

	.tile[data-slug="background-position"] .bp-grid {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	/* Text Wrap's plant is a little smaller */
	.tile[data-slug="text-wrap-around-image"] .tw-float {
		width: 200px;
	}

	/* Feature Detection keeps all eight features, set in two columns of four */
	.tile[data-slug="feature-detection"] .sup-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(4, auto);
		grid-auto-flow: column;
	}

	.tile[data-slug="feature-detection"] .sup-row:nth-child(5) {
		border-top: 0;
	}

	/* Text Columns' box brings its side padding in, so a narrow field still
	   holds two 14rem columns */
	.tile[data-slug="text-columns"] .tcol-box {
		padding-inline: .6rem;
	}

	/* Anchor Positioning keeps its two lower panels side by side and sets
	   the stages and the panels' padding shorter, so its larger type still
	   fits the field */
	.tile[data-slug="anchor-positioning"] .ap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .7rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-panel {
		gap: .5rem;
		padding: .85rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-stage {
		height: 7.5rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-pick {
		min-height: 2.2rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-link-stage {
		height: 6rem;
	}

	/* the flip panel has no picker row, so its scroller takes that room too;
	   at 6rem the anchor sat on the bottom edge, cut in half, and the label
	   ran into the two lines of instructions above it (owner, 2026-11-13:
	   "the bottom is cut off"). The top pad clears the wrapped text, so the
	   label sits between the text and the anchor at rest */
	.tile[data-slug="anchor-positioning"] .ap-scroller {
		height: 9rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-scroll-pad-top {
		height: 5.6rem;
	}
}

/* a few trimmed demos still run taller than their field once played (Bento
   Grid and Vertical Timeline at Narrow, Text Columns at 24rem, Masonry Layout
   at three columns, display at grid, Flexbox vs Grid at 50%); there they
   scroll inside the field, as the accordion does, rather than run under the
   title band */
.tile[data-slug="bento-grid"] > .demo-section,
.tile[data-slug="vertical-timeline"] > .demo-section,
.tile[data-slug="text-columns"] > .demo-section,
.tile[data-slug="display-property"] > .demo-section,
.tile[data-slug="flexbox-vs-grid"] > .demo-section {
	align-items: safe center;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Masonry Layout keeps all twelve items, which can run taller than its
   field, so at every width it scrolls inside the field, as the trimmed
   demos above do, rather than being cut off */
.tile[data-slug="masonry-layout"] > .demo-section {
	align-items: safe center;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Owner, 2026-11-13: "5 doesn't do anything", and the line about the
   numbers sat far from the wall, under the scroll. In a tile the wall takes
   the field's full width and makes exactly the columns picked, so every pick
   changes it; a pick whose columns would come out narrower than 6rem is not
   offered, and where only three fit there is nothing to pick. The demo plays
   at full size (a hand zoom of 1 in homeTiles.json) and the field scrolls
   for the rest of the wall, so the text stays readable. The line about the
   numbers sits under the picks, above the wall */
.tile[data-slug="masonry-layout"] .demo-wrapper {
	container-type: inline-size;
}

.tile[data-slug="masonry-layout"] .ml-key {
	margin-top: -.4rem;
}

/* the field scrolls for the rest of the wall, so the demo never needs to
   shrink to fit it; the fit's zoom would take its labels down to 8px */
@media (min-width: 992px) {
	.tile[data-slug="masonry-layout"] .demo-wrapper {
		zoom: 1;
	}
}

.tile[data-slug="masonry-layout"] .ml-wall {
	order: 1;
	columns: var(--ml-cols);
}

/* five columns of 6rem with their four gaps */
@container (width < 33rem) {
	.tile[data-slug="masonry-layout"] .ml-pill:has([value="5"]) {
		display: none;
	}
}

/* four columns of 6rem with their three gaps */
@container (width < 26.25rem) {
	.tile[data-slug="masonry-layout"] .ml-pills {
		display: none;
	}
}

/* Small text in the tiles (owner, 2026-11-13). These demos ran tall in a
   narrow field, so the fit played them at 0.6 to 0.8 and their text came
   out at 7 to 9px. As with Background Patterns above, each one is laid out
   for the tile (shorter and wider), so the fit plays it larger, and its
   small type is set a step larger, so it renders at 11px or more at 1440
   and 1700. Two to a row and wider only: one to a row a tile grows with its
   demo, and the example pages are untouched. Each tile's zoom comes from
   the fit (homeTiles.json), except the few with a zoom of their own below. */
@media (min-width: 992px) {
	/* QR Code: the line about it sits beside the code, not under it; the
	   code keeps its full quiet zone, so it still scans */
	.tile[data-slug="qr-code"] .qr-stack {
		flex-direction: row;
		gap: 1.25rem;
	}

	.tile[data-slug="qr-code"] .qr-caption {
		max-width: 10rem;
		font-size: .875rem;
		line-height: 1.5;
		text-align: left;
	}

	.tile[data-slug="qr-code"] .qr-label {
		font-size: .875rem;
	}

	/* Mirror Reflection: larger captions (its plants are smaller, above) */
	.tile[data-slug="mirror-reflection"] .mr-item figcaption {
		font-size: .95rem;
	}

	/* Gauge Chart: the four values sit in a column beside a fixed-size dial,
	   so the demo is short enough for a first-row field */
	.tile[data-slug="gauge-chart"] .gg {
		grid-template-columns: auto auto;
		justify-content: center;
		align-items: center;
		gap: 1rem 1.75rem;
	}

	.tile[data-slug="gauge-chart"] .gg-pills {
		display: grid;
		gap: .5rem;
	}

	.tile[data-slug="gauge-chart"] .gg-pills legend {
		margin-bottom: .5rem;
		font-size: .9rem;
		text-align: left;
	}

	.tile[data-slug="gauge-chart"] .gg-pill,
	.tile[data-slug="gauge-chart"] .gg-zone {
		font-size: .95rem;
	}

	.tile[data-slug="gauge-chart"] .gg-gauge {
		gap: .45rem;
	}

	.tile[data-slug="gauge-chart"] .gg-dial {
		font-size: 1rem;
	}

	.tile[data-slug="gauge-chart"] .gg-num {
		--gg-fs: .85;
	}

	.tile[data-slug="gauge-chart"] .gg-gauge figcaption {
		font-size: .9rem;
	}

	/* Variable Fallback: the three rows sit closer */
	.tile[data-slug="variable-fallback"] .vf-stack {
		gap: .5rem;
	}

	.tile[data-slug="variable-fallback"] .vf-row {
		gap: .3rem .75rem;
		padding: .45rem .9rem .5rem;
	}

	.tile[data-slug="variable-fallback"] .vf-name,
	.tile[data-slug="variable-fallback"] .vf-set {
		font-size: .9rem;
	}

	.tile[data-slug="variable-fallback"] .flex > span {
		font-size: .95rem;
	}

	.tile[data-slug="variable-fallback"] .vf-row .flex > :first-child::before {
		font-size: .8rem;
	}

	.tile[data-slug="variable-fallback"] .vf-rule {
		font-size: .82rem;
	}

	/* Center a Div: the frame and its CSS sit side by side under the
	   controls; the frame takes the code's height. Its zoom is held at 0.9
	   in homeTiles.json, where the Inset code, its longest, still fits */
	.tile[data-slug="center-a-div"] .cd {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: .75rem 1.5rem;
		max-width: 40rem;
	}

	.tile[data-slug="center-a-div"] .cd-methods,
	.tile[data-slug="center-a-div"] .cd-big {
		grid-column: 1 / -1;
	}

	.tile[data-slug="center-a-div"] .cd-frame {
		grid-column: 1;
		grid-row: 3;
		height: auto;
		min-height: 10rem;
		margin-bottom: 0;
	}

	.tile[data-slug="center-a-div"] .cd-code {
		grid-column: 2;
		grid-row: 3;
		align-self: start;
	}

	.tile[data-slug="center-a-div"] .cd-methods legend {
		font-size: .82rem;
	}

	.tile[data-slug="center-a-div"] .cd-opt,
	.tile[data-slug="center-a-div"] .cd-big {
		font-size: .95rem;
	}

	.tile[data-slug="center-a-div"] .cd-box {
		font-size: .85rem;
	}

	/* grid-template-areas: the template and the layout stay side by side;
	   the areas take less padding so four columns still fit beside it. Its
	   zoom is held at 0.8 in homeTiles.json, where they fit the narrowest
	   fields */
	.tile[data-slug="grid-template-areas"] .ga-body {
		flex-wrap: nowrap;
	}

	.tile[data-slug="grid-template-areas"] .ga-code {
		flex: 0 0 auto;
		padding: .75rem .7rem;
		overflow-x: visible;
		font-size: .875rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-frame {
		flex: 1 1 0;
		padding: .5rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-page {
		gap: .3rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-area {
		padding: .4rem .3rem .5rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-picks-label {
		font-size: .88rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-pill {
		font-size: .92rem;
	}

	.tile[data-slug="grid-template-areas"] .ga-name {
		font-size: .86rem;
	}

	/* clamp(): the readout of the three values moves out of the container,
	   into a column to its left (it still reads the container's sizes, which
	   it inherits), so the demo is half as tall. The column keeps the
	   readout's height, since it is positioned out of the flow */
	.tile[data-slug="clamp"] .cc {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: 1.6rem 1.25rem;
		max-width: 38rem;
	}

	.tile[data-slug="clamp"] .cc-widths {
		grid-column: 1 / -1;
	}

	.tile[data-slug="clamp"] .cc::after {
		content: "";
		grid-column: 1;
		grid-row: 2;
		height: 16.5rem;
	}

	.tile[data-slug="clamp"] .cc-frame {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
	}

	.tile[data-slug="clamp"] .cc-meter {
		position: absolute;
		top: 0;
		right: calc(100% + 1.25rem);
		width: 11rem;
		margin: 0;
	}

	.tile[data-slug="clamp"] .cc-widths legend,
	.tile[data-slug="clamp"] .cc-inner::before {
		font-size: .82rem;
	}

	.tile[data-slug="clamp"] .cc-opt,
	.tile[data-slug="clamp"] .cc-row dt {
		font-size: .92rem;
	}

	.tile[data-slug="clamp"] .cc-row dd {
		font-size: .85rem;
	}

	.tile[data-slug="clamp"] .cc-row .cc-rule {
		font-size: .8rem;
	}

	/* Attribute Selectors: the eight links sit closer and the card runs a
	   little wider; a long rule breaks onto its own line */
	.tile[data-slug="attribute-selectors"] .as-card {
		width: min(100%, 40rem);
		padding: 1rem 1.4rem;
	}

	.tile[data-slug="attribute-selectors"] .as-links li {
		padding: .3rem 0;
	}

	.tile[data-slug="attribute-selectors"] .as-card-title,
	.tile[data-slug="attribute-selectors"] .as-rule {
		font-size: .85rem;
	}

	.tile[data-slug="attribute-selectors"] .as-rule {
		overflow-wrap: anywhere;
	}

	/* Feature Detection: each feature's name runs across its row, with its
	   test and its result side by side under it */
	.tile[data-slug="feature-detection"] .sup-row {
		gap: .15rem .6rem;
		padding: .35rem .8rem .35rem 1rem;
	}

	.tile[data-slug="feature-detection"] .sup-name {
		grid-column: 1 / -1;
	}

	.tile[data-slug="feature-detection"] .sup-row .sup-test {
		grid-column: 1;
		grid-row: 2;
	}

	.tile[data-slug="feature-detection"] .sup-row .sup-state {
		grid-row: 2;
	}

	.tile[data-slug="feature-detection"] .sup-title {
		padding-block: .4rem;
	}

	.tile[data-slug="feature-detection"] .sup-total {
		padding-block: .35rem;
	}

	.tile[data-slug="feature-detection"] .sup-title,
	.tile[data-slug="feature-detection"] .sup-row .sup-test,
	.tile[data-slug="feature-detection"] .sup-why,
	.tile[data-slug="feature-detection"] .sup-yes,
	.tile[data-slug="feature-detection"] .sup-no,
	.tile[data-slug="feature-detection"] .sup-maybe {
		font-size: .875rem;
	}

	/* Vertical Text: the three examples wrap as their own widths allow (the
	   table no longer runs past its column), and the card and the shelf
	   are a little shorter */
	.tile[data-slug="vertical-text"] .vt-trio {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: .9rem 1rem;
		max-width: 50rem;
	}

	.tile[data-slug="vertical-text"] .vt-item {
		flex: 0 1 auto;
		gap: .5rem;
	}

	.tile[data-slug="vertical-text"] .vt-item:first-child {
		flex-basis: 13.5rem;
	}

	.tile[data-slug="vertical-text"] .vt-card {
		height: auto;
		min-height: 10rem;
	}

	.tile[data-slug="vertical-text"] .vt-shelf {
		height: 10rem;
	}

	.tile[data-slug="vertical-text"] .vt-table th,
	.tile[data-slug="vertical-text"] .vt-table td {
		padding-block: .22rem;
	}

	.tile[data-slug="vertical-text"] .vt-table thead th + th {
		padding-block: .4rem;
	}

	.tile[data-slug="vertical-text"] .vt-item figcaption,
	.tile[data-slug="vertical-text"] .vt-edge {
		font-size: .875rem;
	}

	.tile[data-slug="vertical-text"] .vt-body-text,
	.tile[data-slug="vertical-text"] .vt-spine,
	.tile[data-slug="vertical-text"] .vt-table {
		font-size: .9rem;
	}

	/* display: the paragraph and the readout split the width evenly, so the
	   readout's lines rarely wrap */
	.tile[data-slug="display-property"] .dp {
		gap: 1rem;
	}

	.tile[data-slug="display-property"] .dp-picks {
		gap: .45rem 1.2rem;
	}

	.tile[data-slug="display-property"] .dp-main {
		flex-wrap: nowrap;
	}

	.tile[data-slug="display-property"] .dp-stage {
		flex: 1 1 0;
		padding: 1rem 1rem 1.1rem;
	}

	.tile[data-slug="display-property"] .dp-read {
		flex: 1 1 0;
		padding: .85rem 1rem;
	}

	.tile[data-slug="display-property"] .dp-facts {
		gap: .4rem;
	}

	/* the paragraph is half the field wide here, so at inline the three
	   boxes stacked into each other and the first aid kit split from its
	   icon (owner, 2026-11-13: "so much overlap and wrapping"). The lines
	   are spaced so a box clears the text above and below it, and each box
	   keeps its icon and label together */
	.tile[data-slug="display-property"] .dp-text {
		line-height: 2.5rem;
		background-image: linear-gradient(to bottom, transparent calc(2.5rem - 1px), var(--border) 0);
		background-size: 100% 2.5rem;
	}

	.tile[data-slug="display-property"] .dp-box {
		white-space: nowrap;
	}

	.tile[data-slug="display-property"] .dp-legend,
	.tile[data-slug="display-property"] .dp-group-label,
	.tile[data-slug="display-property"] .dp-pill,
	.tile[data-slug="display-property"] .dp-switch,
	.tile[data-slug="display-property"] .dp-facts dt {
		font-size: .875rem;
	}

	.tile[data-slug="display-property"] .dp-same {
		font-size: .875rem;
	}

	.tile[data-slug="display-property"] .dp-facts dd {
		font-size: .9rem;
	}

	/* Subgrid Cards: the four cards always sit four across */
	.tile[data-slug="subgrid-cards"] .sg-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1rem .6rem;
	}

	.tile[data-slug="subgrid-cards"] .sg-body,
	.tile[data-slug="subgrid-cards"] .sg-btn,
	.tile[data-slug="subgrid-cards"] .sg-state {
		font-size: .875rem;
	}

	/* :has(): larger rules, labels and notes (the cards are three across, above) */
	.tile[data-slug="has-selector"] .hs-title {
		font-size: 1rem;
	}

	.tile[data-slug="has-selector"] .hs-rule,
	.tile[data-slug="has-selector"] .hs-count,
	.tile[data-slug="has-selector"] .hs-field label,
	.tile[data-slug="has-selector"] .hs-error,
	.tile[data-slug="has-selector"] .hs-plan-note {
		font-size: .875rem;
	}

	/* Text on Border: the two examples always sit side by side */
	.tile[data-slug="text-on-border"] .tb-stage {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem;
		padding: 1.1rem;
	}

	.tile[data-slug="text-on-border"] .tb-align legend,
	.tile[data-slug="text-on-border"] .tb-cap {
		font-size: .82rem;
	}

	.tile[data-slug="text-on-border"] .tb-opt {
		font-size: .92rem;
	}

	.tile[data-slug="text-on-border"] .tb-row {
		font-size: .875rem;
	}

	/* border-radius: the box (at the page's own phone size, 14 by 9rem, so
	   the radii still read) and the Box controls under it sit in a column
	   beside the printed CSS, which keeps to its own column however long it
	   runs. Its zoom is held at 0.8 in homeTiles.json, and takes a zoom of
	   its own on the narrowest fields below */
	.tile[data-slug="border-radius"] .br {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto auto 1fr;
		gap: 1rem;
		align-items: start;
	}

	.tile[data-slug="border-radius"] .br > .br-pick {
		grid-column: 1 / -1;
	}

	.tile[data-slug="border-radius"] .br-view {
		display: contents;
	}

	.tile[data-slug="border-radius"] .br-stage {
		--w: 14rem;
		--h: 9rem;
		grid-column: 1;
		grid-row: 2;
	}

	.tile[data-slug="border-radius"] .br-row {
		grid-column: 1;
		grid-row: 3;
		max-width: 15rem;
		gap: .6rem 1rem;
	}

	.tile[data-slug="border-radius"] .br-codes {
		grid-column: 2;
		grid-row: 2 / 5;
	}

	.tile[data-slug="border-radius"] .br-code {
		padding: .7rem;
		font-size: .875rem;
		line-height: 1.45;
	}

	.tile[data-slug="border-radius"] .br-pick legend,
	.tile[data-slug="border-radius"] .br-opt {
		font-size: .875rem;
	}

	.tile[data-slug="border-radius"] .br-check {
		font-size: .92rem;
	}

	/* Object Fit: larger captions and labels (its row of boxes is above) */
	.tile[data-slug="object-fit"] .of-pills legend,
	.tile[data-slug="object-fit"] .of-natural,
	.tile[data-slug="object-fit"] .of-fig figcaption {
		font-size: .875rem;
	}

	.tile[data-slug="object-fit"] .of-fig figcaption code {
		font-size: 1em;
	}

	.tile[data-slug="object-fit"] .of-pill {
		font-size: .95rem;
	}

	/* View Transitions: a narrower window, whose frame (75cqi plus 11.5rem)
	   is then short enough to play near full size; the photo page inside
	   takes its two-column layout */
	.tile[data-slug="view-transitions"] .vtw {
		width: min(100%, 15.5rem);
	}

	.tile[data-slug="view-transitions"] .vtw-hint {
		font-size: .875rem;
	}

	/* Flexbox vs Grid: each control's heading sits at the start of its row */
	.tile[data-slug="flexbox-vs-grid"] .fvg {
		gap: .9rem;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-controls {
		gap: .5rem 1.25rem;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-pills {
		align-items: center;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-pills legend {
		float: left;
		width: auto;
		margin: 0 .3rem 0 0;
		font-size: .875rem;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-stage {
		padding: .6rem .6rem 1rem;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-pill,
	.tile[data-slug="flexbox-vs-grid"] .fvg-head code,
	.tile[data-slug="flexbox-vs-grid"] .fvg-item {
		font-size: .875rem;
	}

	/* CSS Variables: each control's heading sits at the start of its row;
	   the card's small type is a step larger in proportion, so Compact
	   still sets it smaller than Comfortable */
	.tile[data-slug="variables"] .cv-controls {
		gap: .5rem 1.25rem;
	}

	.tile[data-slug="variables"] .cv-group {
		align-items: center;
	}

	.tile[data-slug="variables"] .cv-group legend {
		float: left;
		width: auto;
		margin: 0 .3rem 0 0;
		font-size: .875rem;
	}

	.tile[data-slug="variables"] .cv-opt {
		font-size: .9rem;
	}

	.tile[data-slug="variables"] .cv-tokens {
		font-size: .875rem;
	}

	.tile[data-slug="variables"] .cv-badge,
	.tile[data-slug="variables"] .cv-meta {
		font-size: calc(var(--font-size-s) * 1.15);
	}

	/* Text Columns: the space around the headline comes in, which makes
	   room for its larger type. Each control's heading stays above its
	   buttons (owner, 2026-11-13: a heading at the start of the row read as
	   one more button) */
	.tile[data-slug="text-columns"] .tcol-controls {
		gap: .5rem 1.5rem;
	}

	.tile[data-slug="text-columns"] .tcol-box {
		padding-top: .85rem;
	}

	.tile[data-slug="text-columns"] .tcol-readout {
		margin-bottom: .55rem;
	}

	.tile[data-slug="text-columns"] .tcol-top {
		margin-bottom: .75rem;
		padding-bottom: .6rem;
	}

	.tile[data-slug="text-columns"] .tcol-head {
		font-size: 2.1rem;
	}

	.tile[data-slug="text-columns"] .tcol-pick legend {
		margin-bottom: .35rem;
	}

	.tile[data-slug="text-columns"] .tcol-pick legend,
	.tile[data-slug="text-columns"] .tcol-kicker,
	.tile[data-slug="text-columns"] .tcol-readout,
	.tile[data-slug="text-columns"] .tcol-opt,
	.tile[data-slug="text-columns"] .tcol-article {
		font-size: 1rem;
	}

	/* Anchor Positioning: larger labels (its stages are shorter, below) */
	.tile[data-slug="anchor-positioning"] .ap-kicker,
	.tile[data-slug="anchor-positioning"] .ap-pick,
	.tile[data-slug="anchor-positioning"] .ap-opt,
	.tile[data-slug="anchor-positioning"] .ap-label,
	.tile[data-slug="anchor-positioning"] .ap-tip,
	.tile[data-slug="anchor-positioning"] .ap-scroll-pad,
	.tile[data-slug="anchor-positioning"] .ap-choice legend,
	.tile[data-slug="anchor-positioning"] .ap-nosupport {
		font-size: .875rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-anchor,
	.tile[data-slug="anchor-positioning"] .ap-node,
	.tile[data-slug="anchor-positioning"] .ap-pin {
		font-size: .9rem;
	}
}

/* lg to xl (a 441 to 534px field) the fit's zoom (0.7 of the way from 1:1)
   would leave Object Fit's five Tall boxes wrapping to two rows, and
   border-radius, display and CSS Variables wrapping their columns, so each
   plays smaller there; three to a row from 1600 to 1799 (a 477 to 533px
   field), Object Fit and border-radius take a zoom of their own too */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.tile[data-slug="object-fit"] .demo-wrapper {
		zoom: .76;
	}

	.tile[data-slug="border-radius"] .demo-wrapper,
	.tile[data-slug="display-property"] .demo-wrapper,
	.tile[data-slug="variables"] .demo-wrapper {
		zoom: .72;
	}
}

@media (min-width: 1600px) and (max-width: 1799.98px) {
	.tile[data-slug="object-fit"] .demo-wrapper,
	.tile[data-slug="border-radius"] .demo-wrapper {
		zoom: .79;
	}
}

/* three to a row these four still play at the fit's smallest zoom (0.72),
   so their labels are set larger again there */
@media (min-width: 1600px) {
	.tile[data-slug="flexbox-vs-grid"] .fvg-pills legend,
	.tile[data-slug="flexbox-vs-grid"] .fvg-pill,
	.tile[data-slug="flexbox-vs-grid"] .fvg-head code,
	.tile[data-slug="flexbox-vs-grid"] .fvg-item {
		font-size: .96rem;
	}

	.tile[data-slug="flexbox-vs-grid"] .fvg-head b {
		font-size: 1rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-kicker,
	.tile[data-slug="anchor-positioning"] .ap-pick,
	.tile[data-slug="anchor-positioning"] .ap-opt,
	.tile[data-slug="anchor-positioning"] .ap-label,
	.tile[data-slug="anchor-positioning"] .ap-tip,
	.tile[data-slug="anchor-positioning"] .ap-scroll-pad,
	.tile[data-slug="anchor-positioning"] .ap-choice legend,
	.tile[data-slug="anchor-positioning"] .ap-anchor,
	.tile[data-slug="anchor-positioning"] .ap-node,
	.tile[data-slug="anchor-positioning"] .ap-pin {
		font-size: .96rem;
	}

	.tile[data-slug="anchor-positioning"] .ap-link-stage {
		height: 7.25rem;
	}

	.tile[data-slug="display-property"] .dp-legend,
	.tile[data-slug="display-property"] .dp-group-label,
	.tile[data-slug="display-property"] .dp-pill,
	.tile[data-slug="display-property"] .dp-switch,
	.tile[data-slug="display-property"] .dp-same,
	.tile[data-slug="display-property"] .dp-facts dt,
	.tile[data-slug="display-property"] .dp-facts dd {
		font-size: .96rem;
	}

	.tile[data-slug="variables"] .cv-split {
		grid-template-columns: minmax(0, 18.5rem) minmax(0, 1fr);
	}

	.tile[data-slug="variables"] .cv-group legend,
	.tile[data-slug="variables"] .cv-opt,
	.tile[data-slug="variables"] .cv-tokens {
		font-size: .96rem;
	}

	.tile[data-slug="variables"] .cv-badge,
	.tile[data-slug="variables"] .cv-meta {
		font-size: calc(var(--font-size-s) * 1.3);
	}

	.tile[data-slug="variables"] .cv-text,
	.tile[data-slug="variables"] .cv-btn {
		font-size: calc(var(--font-size-m) * 1.1);
	}
}

/* the calendar takes a set width, so its month and its two buttons have room */
.tile[data-slug="calendar"] .cal-center {
	width: 17rem;
	max-width: 100%;
}

/* the ticker's slot trims the edges of the words above and below it, which
   its italic serif reaches into once the demo plays zoomed */
.tile[data-slug="text-ticker"] .ticker-slot {
	clip-path: inset(.04em 0 .1em);
}

/* the skeleton cards wrap to two rows on a field under 600px (two to a row
   to 1199px, three to a row to 1799px), so they shrink there; so do the other
   demos that run wide */
@media (min-width: 992px) and (max-width: 1199.98px), (min-width: 1600px) and (max-width: 1799.98px) {
	.tile[data-slug="skeleton-loader"] .demo-wrapper {
		zoom: .82;
	}

	.tile[data-slug="confirm-button"] .demo-wrapper {
		zoom: 1.35;
	}

	.tile[data-slug="tooltip-directions"] .demo-wrapper {
		zoom: 1.05;
	}

	/* its prev and next keep their arrows on one line */
	.tile[data-slug="pagination"] .demo-wrapper {
		zoom: 1.1;
	}

	.tile[data-slug="sticky-table-header"] .demo-wrapper {
		zoom: 1;
	}

	/* the two cards stay side by side */
	.tile[data-slug="3d-card-flip"] .demo-wrapper {
		zoom: 1;
	}

	/* its two pictures stay side by side */
	.tile[data-slug="image-zoom"] .demo-wrapper {
		zoom: .95;
	}
}

/* on a phone, the demos whose open or hidden parts reach past a 335px field */
@media (max-width: 575.98px) {
	.tile[data-slug="pagination"] .demo-wrapper {
		zoom: .88;
	}

	.tile[data-slug="hover-dropdown"] .demo-wrapper {
		zoom: 1;
	}

	.tile[data-slug="elastic-bounce"] .demo-wrapper {
		zoom: 1.1;
	}

	.tile[data-slug="skeleton-loader"] .demo-wrapper {
		zoom: .9;
	}

	.tile[data-slug="floating-labels"] .demo-wrapper {
		zoom: 1.25;
	}

	.tile[data-slug="range-slider"] .demo-wrapper {
		zoom: 1.45;
	}

	.tile[data-slug="expandable-search"] .demo-wrapper {
		zoom: 1.15;
	}

	/* its longest line, Animated Flow, stays on one line */
	.tile[data-slug="gradient-text"] .demo-wrapper {
		zoom: 1.05;
	}

	.tile[data-slug="confirm-button"] .demo-wrapper {
		zoom: 1.02;
	}

	/* the typed lines run wider than the field as they finish */
	.tile[data-slug="typewriter"] .demo-wrapper {
		zoom: 1.1;
	}

	.tile[data-slug="sticky-table-header"] .demo-wrapper,
	.tile[data-slug="hover-tooltip"] .demo-wrapper,
	.tile[data-slug="geometric-art"] .demo-wrapper {
		zoom: 1;
	}

	.tile[data-slug="tooltip-directions"] .demo-wrapper {
		zoom: .72;
	}

	/* Masonry Layout plays a little smaller, so a phone's field still has
	   room for four columns and its picks of three and four both show */
	.tile[data-slug="masonry-layout"] .demo-wrapper {
		zoom: .72;
	}
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* three to a row from 1600px: a 533 to 640px field to 1919px, and a wider
   one after; the demos grow by 0.7 of their zoom and keep that size as the
   field widens, so the room around them opens up; the fields take the
   three-up steps */
@media (min-width: 1600px) {
	body {
		--zs: .7;
		--k3: 1;
	}

	.field {
		--pad: clamp(1.1rem, 1.6vw, 2.25rem);
	}

	.tile {
		min-height: var(--fh3);
		contain-intrinsic-size: auto var(--fh3);
	}

	.tile .demo-wrapper {
		zoom: calc(1 + (var(--zf3, var(--zd3, var(--zd, 1))) - 1) * var(--zs));
	}

	/* the three-up steps, scaled by --k3 on wider screens; states.css works
	   in these base sizes */
	.fh3-1 {
		--fh3: calc(400px * var(--k3));
	}

	.fh3-2 {
		--fh3: calc(470px * var(--k3));
	}

	.fh3-3 {
		--fh3: calc(550px * var(--k3));
	}

}

@media (min-width: 1920px) {
	body {
		--k3: 1.05;
	}
}

/* very wide: a field near 850px three to a row */
@media (min-width: 2500px) {
	body {
		--zs: 1.1;
		--k3: 1.25;
	}
}

/* lg to xl: a 496 to 600px field; xl to xxl takes the 1440 steps two-up */
@media (min-width: 992px) and (max-width: 1199.98px) {
	body {
		--zs: .7;
	}

	.chip {
		padding: 0 .6rem;
	}

	.lv-toggle {
		gap: .3rem;
		padding: 0 .5rem;
	}

	.rail {
		gap: .5rem;
	}

	.rail-picks,
	.rail-levels {
		gap: .25rem;
	}
}

/* below lg: one field to a row, the full width */
@media (max-width: 991.98px) {
	.opening {
		grid-template-columns: minmax(0, 1fr);
	}

	/* the chips and the toggles run in one row that scrolls sideways; the
	   fade says there is more */
	.rail {
		justify-content: flex-start;
		gap: .75rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
		mask-image: linear-gradient(to right, #000 86%, transparent);
	}

	.rail::after {
		content: "";
		flex: 0 0 3rem;
	}

	.rail-picks,
	.rail-levels {
		flex: none;
	}

	.tile-title {
		font-size: clamp(1.75rem, 6.2vw, 2.25rem);
	}

	.note {
		font-size: clamp(1rem, 2.6vw, 1.25rem);
	}

	.field {
		--pad: clamp(1.25rem, 5vw, 2.5rem);
	}

	.fh-1 {
		--fh: 380px;
	}

	.fh-2 {
		--fh: 440px;
	}

	.fh-3 {
		--fh: 520px;
	}
}

/* below md: phones */
@media (max-width: 767.98px) {
	body {
		font-size: 1rem;
		--zs: .5;
		--rail-h: 58px;
	}

	.poster {
		font-size: calc(clamp(2.9rem, 16.4vw, 4.8rem) * .9);
		line-height: .86;
	}

	.opening-row {
		gap: .6rem;
		padding-bottom: 0;
	}

	.chip,
	.lv-toggle {
		min-height: 40px;
		padding: 0 .9rem;
	}

}

/* â”€â”€ Reduced motion: this page's own motion stops; content stays put â”€â”€â”€â”€â”€ */

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

	.opening-jump,
	.opening-jump .icon,
	.chip,
	.lv-toggle,
	.grid,
	.grid > .cell,
	.grid-none-box,
	.tile-top,
	.words,
	.note,
	.tile-arrow {
		transition: none;
	}

}
