Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

6.1 KB
Raw Blame
/* The package insert card (/materialize/insert/:certId).
   Two audiences, one sheet: an operator on screen, and a sheet of card stock
   coming out of a printer. The @media print block is the real deliverable, so
   nothing here uses a screen-only trick (dark surfaces, backdrop filters) that
   a printer renders as a slab of toner.

   The palette is local because this page loads no nav and no footer (it is a
   print target, not a site page). It now imports the token sheet directly, so a
   canonical reference resolves here instead of falling back to a light-on-light
   default, and the platform floors (focus ring, disabled affordance, reduced
   motion) reach the on-screen toolbar. */

@import url('/tokens.css');

/* Dark-only on screen: the sheet pins the canonical primitives to their dark
   values so a globally-chosen light theme cannot half-flip a surface whose
   remaining literals are dark. The @media print block below overrides all of
   this for paper. */
:root,
/* Doubled :root is a deliberate specificity bump (0,3,0): the token sheet's own
   [data-theme='light'] block would otherwise win on document order and half-flip
   this dark-only surface. */
:root:root[data-theme='light'] {
	color-scheme: dark;
	--bg-0: #0a0a0a;

	--pi-bg: var(--bg-0);
	--pi-ink: #f4f4f5;
	--pi-dim: #a1a1aa;
	--pi-line: rgba(255, 255, 255, 0.16);
	--pi-line-strong: rgba(255, 255, 255, 0.3);
	--pi-surface: rgba(255, 255, 255, 0.05);
	--pi-accent: #7c9cff;
	--pi-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pi-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
	--pi-display: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
	margin: 0;
	background: var(--pi-bg);
	font-family: var(--pi-font);
}

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

.pi-root {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 24px 96px;
	color: var(--pi-ink);
}

.pi-status {
	padding: 24px;
	border: 1px solid var(--pi-line);
	border-radius: 16px;
	background: var(--pi-surface);
	color: var(--pi-dim);
	font-size: 13px;
	line-height: 1.6;
}

.pi-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.pi-toolbar-note {
	flex: 1 1 220px;
	min-width: 0;
	font-size: 12px;
	color: var(--pi-dim);
	line-height: 1.6;
}

.pi-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--pi-line);
	background: transparent;
	color: var(--pi-ink);
	font: inherit;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition:
		background var(--duration-fast) var(--ease-standard),
		border-color var(--duration-fast) var(--ease-standard),
		transform var(--duration-instant) var(--ease-standard);
}
.pi-btn:hover {
	background: var(--pi-surface);
	border-color: var(--pi-line-strong);
}
.pi-btn:active {
	transform: translateY(1px);
}
.pi-btn:focus-visible {
	outline: 2px solid var(--pi-accent);
	outline-offset: 2px;
}
.pi-btn--primary {
	background: var(--pi-ink);
	color: var(--pi-bg);
	border-color: transparent;
	font-weight: 500;
}

/* ── the card ─────────────────────────────────────────────────────────── */

.pi-card {
	/* A5 landscape: the size a print bureau's card stock cuts to without waste. */
	width: 210mm;
	max-width: 100%;
	min-height: 148mm;
	margin: 0 auto;
	padding: 14mm;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr auto;
	gap: 8mm;
	background: #ffffff;
	color: #111111;
	border-radius: 3mm;
	border: 1px solid rgba(0, 0, 0, 0.12);
	font-family: var(--pi-font);
}

.pi-mark {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8mm;
	border-bottom: 0.4mm solid #111111;
	padding-bottom: 4mm;
}

.pi-wordmark {
	font-family: var(--pi-display);
	font-size: 7mm;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

.pi-kicker {
	font-family: var(--pi-mono);
	font-size: 2.8mm;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #555555;
	margin: 0;
}

.pi-body h1 {
	margin: 0 0 3mm;
	font-family: var(--pi-display);
	font-size: 8mm;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.pi-edition {
	margin: 0 0 6mm;
	font-family: var(--pi-mono);
	font-size: 4.6mm;
	letter-spacing: 0.02em;
}

.pi-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4mm 8mm;
	margin: 0;
}
.pi-facts dt {
	margin: 0 0 1mm;
	font-family: var(--pi-mono);
	font-size: 2.6mm;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #666666;
}
.pi-facts dd {
	margin: 0;
	font-size: 3.4mm;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.pi-qr-block {
	text-align: center;
	align-self: center;
}
.pi-qr {
	width: 42mm;
	height: 42mm;
	display: block;
	margin: 0 auto 2mm;
}
.pi-qr-caption {
	margin: 0;
	font-family: var(--pi-mono);
	font-size: 2.6mm;
	letter-spacing: 0.06em;
	color: #444444;
}

.pi-foot {
	grid-column: 1 / -1;
	border-top: 0.3mm solid rgba(0, 0, 0, 0.2);
	padding-top: 3mm;
	font-size: 2.7mm;
	line-height: 1.5;
	color: #444444;
	display: flex;
	justify-content: space-between;
	gap: 6mm;
}
.pi-foot code {
	font-family: var(--pi-mono);
	overflow-wrap: anywhere;
}

/* ── print ────────────────────────────────────────────────────────────── */

@page {
	size: A5 landscape;
	margin: 0;
}

@media print {
	/* Site-wide scripts inject their own chrome into every page (the Cmd+K
	   palette, the locale switcher, the tour prompt). None of it belongs on a
	   sheet of card stock, and this page cannot opt out of the injection, so the
	   print sheet hides everything that is not the card. */
	body > *:not(.pi-root) {
		display: none !important;
	}
	.pi-toolbar,
	.pi-status {
		display: none !important;
	}
	.pi-root {
		padding: 0;
		max-width: none;
	}
	.pi-card {
		border: 0;
		border-radius: 0;
		width: 100%;
		min-height: 100vh;
		page-break-inside: avoid;
	}
}