:root {
	--bg: #0a0a0e;
	--ink: #e9e7f1;
	--muted: #807d8e;
	--line: #25232f;
	--tint: #121119;
	--accent: #a996ff;
	--hot: #dcff5e;
	--display: "Syne", "Helvetica Neue", Arial, sans-serif;
	--mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #e8e7ee;
		--ink: #0f0e17;
		--muted: #5e5b6d;
		--line: #c6c4d1;
		--tint: #dedce7;
		--accent: #4a2fe0;
		--hot: #ff3d1f;
		color-scheme: light;
	}
}

:root[data-theme="light"] {
	--bg: #e8e7ee;
	--ink: #0f0e17;
	--muted: #5e5b6d;
	--line: #c6c4d1;
	--tint: #dedce7;
	--accent: #4a2fe0;
	--hot: #ff3d1f;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	/* the rings grow past the edge of a narrow window; that must not add a scrollbar */
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 1px solid var(--hot);
	outline-offset: 3px;
}

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	text-decoration: none;
}

/* three nested rings, each tangent to the last */
.wordmark::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background:
		radial-gradient(circle at 50% 78%, transparent 2.5px, currentColor 2.5px, currentColor 3.5px, transparent 3.5px),
		radial-gradient(circle at 50% 64%, transparent 5px, currentColor 5px, currentColor 6px, transparent 6px);
}

.site-header nav {
	display: flex;
	gap: 26px;
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.site-header nav {
	align-items: center;
}

/* half-filled ring: flips between the light and dark theme */
.theme-toggle {
	width: 16px;
	height: 16px;
	padding: 0;
	border: 1px solid var(--muted);
	border-radius: 50%;
	background: linear-gradient(90deg, var(--muted) 50%, transparent 50%);
	cursor: pointer;
	transition: transform 0.3s;
}

.theme-toggle:hover {
	border-color: var(--ink);
	background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
	transform: rotate(180deg);
}

.site-header nav a {
	text-decoration: none;
	color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	color: var(--ink);
}

/* Hero */

.hero {
	position: relative;
	padding: 84px 0 0;
}

.eyebrow {
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	margin: 0 0 30px;
}

.eyebrow b {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--accent);
}

h1 {
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(2.3rem, 6.4vw, 4.9rem);
	line-height: 1;
	letter-spacing: -0.04em;
	margin: 0;
	max-width: 16ch;
}

h1 em {
	font-style: normal;
	color: var(--accent);
}

@media (min-width: 700px) {
	h1 {
		max-width: none;
	}
	h1 em {
		display: block;
		white-space: nowrap;
	}
	.hero h1 {
		max-width: 13ch;
	}
	.hero h1 em {
		width: max-content;
	}
}

.page h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	max-width: 20ch;
}

.lead {
	font-size: 1.12rem;
	color: var(--muted);
	max-width: 56ch;
	margin: 34px 0 0;
}

.lead strong {
	color: var(--ink);
	font-weight: 500;
}

.rings {
	position: absolute;
	top: 88px;
	right: -40px;
	width: 380px;
	height: 380px;
	pointer-events: none;
	/* the rings breathe about a point a little below their middle, and may drift past the box */
	transform-origin: 50% 62%;
	overflow: visible;
}

.rings circle,
.rings path {
	fill: none;
	stroke: var(--line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.rings circle:nth-child(4),
.rings path:nth-child(4) {
	stroke: var(--accent);
}

/* Signal figure */

.signal {
	margin: 76px 0 0;
	border: 1px solid var(--line);
}

.signal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.signal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.signal-meta i,
.signal-settings i,
.trace-label i {
	font-style: normal;
	text-transform: none;
	font-size: 1.25em;
	line-height: 0;
}

.signal-meta b {
	font-weight: 400;
	color: var(--ink);
}

.signal-ctrl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.readout {
	font-variant-numeric: tabular-nums;
	min-width: 20ch;
	margin-right: 8px;
	text-align: right;
}

/* secondary button: the pill of .links, as a button */
.tool {
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: var(--ink);
	background: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 9px 14px;
	cursor: pointer;
}

.tool:hover {
	border-color: var(--accent);
}

.tool[aria-expanded="true"] {
	border-color: var(--ink);
}

.tool[aria-busy="true"] {
	color: var(--hot);
	border-color: var(--hot);
}

/* settings: a ruled strip of labelled fields between the head and the plots */
.signal-settings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
	gap: 16px 18px;
	padding: 18px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.signal-settings[hidden] {
	display: none;
}

.signal-settings label {
	display: grid;
	gap: 8px;
	align-content: start;
}

.signal-settings input,
.signal-settings select {
	width: 100%;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 0 10px;
	font: inherit;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 0;
}

.signal-settings input:hover,
.signal-settings select:hover {
	border-color: var(--accent);
}

.signal-settings input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.signal-settings .note {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	flex-wrap: wrap;
	margin: 0;
	font-family: var(--sans);
	font-size: 0.88rem;
	text-transform: none;
	letter-spacing: 0;
}

.signal-settings .note span {
	flex: 1 1 40ch;
	max-width: 76ch;
}

.signal-settings .note .tool {
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.play {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: var(--ink);
	background: none;
	border: 1px solid var(--ink);
	border-radius: 999px;
	padding: 9px 16px 9px 14px;
	cursor: pointer;
}

.play::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent currentColor;
}

.play[aria-pressed="true"] {
	color: var(--bg);
	background: var(--hot);
	border-color: var(--hot);
}

.play[aria-pressed="true"]::before {
	width: 8px;
	height: 8px;
	border: 0;
	background: currentColor;
}

.play:hover {
	border-color: var(--hot);
}

/* alpha scale: a hairline from 0 to 2 with a knob for the target */
.spectrum {
	display: grid;
	grid-template-columns: 96px 1fr;
	align-items: start;
	gap: 16px;
	padding: 20px 18px 14px;
	border-bottom: 1px solid var(--line);
}

.spectrum .trace-label {
	margin-top: -6px;
}

.scale {
	position: relative;
	height: 44px;
}

/* 14px wider than the scale, so the centre of the knob reaches both ends */
.scale input {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	z-index: 1;
	top: 0;
	left: -7px;
	width: calc(100% + 14px);
	height: 22px;
	margin: 0;
	background: none;
	cursor: pointer;
}

.scale input::-webkit-slider-runnable-track {
	height: 1px;
	background: var(--line);
}

.scale input::-moz-range-track {
	height: 1px;
	background: var(--line);
}

.scale input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -6.5px;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: var(--bg);
}

.scale input::-moz-range-thumb {
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: var(--bg);
}

.scale input:hover::-webkit-slider-thumb,
.scale input:active::-webkit-slider-thumb {
	border-color: var(--hot);
}

.scale input:hover::-moz-range-thumb,
.scale input:active::-moz-range-thumb {
	border-color: var(--hot);
}

/* the alpha the current signal measures: a dot that sits inside the knob when on target */
.got {
	position: absolute;
	z-index: 2;
	top: 8.5px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--accent);
	pointer-events: none;
}

.scale ol {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	white-space: nowrap;
}

.scale li {
	position: absolute;
	top: 11px;
	padding-top: 14px;
	transform: translateX(-50%);
}

.scale li::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 50%;
	width: 1px;
	height: 7px;
	background: var(--line);
}

.scale li:nth-child(1) {
	left: 0;
	transform: none;
}

.scale li:nth-child(1)::before {
	left: 0;
}

.scale li:nth-child(2) {
	left: 25%;
}

/* 1 is the middle and the target: a longer tick in the accent */
.scale li:nth-child(3) {
	left: 50%;
	color: var(--ink);
}

.scale li:nth-child(3)::before {
	top: -6px;
	height: 13px;
	background: var(--accent);
}

.scale li:nth-child(4) {
	left: 75%;
}

.scale li:nth-child(5) {
	left: 100%;
	transform: translateX(-100%);
}

.scale li:nth-child(5)::before {
	left: calc(100% - 1px);
}

.traces {
	padding: 18px 18px 10px;
}

.trace {
	display: grid;
	grid-template-columns: 96px 1fr;
	align-items: center;
	gap: 16px;
}

.trace + .trace {
	margin-top: 4px;
}

.trace-label {
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	line-height: 1.7;
}

.trace-label b {
	display: block;
	color: var(--ink);
	font-weight: 400;
}

.plot {
	position: relative;
	height: 96px;
}

.trace:first-child .plot {
	cursor: crosshair;
}

.plot svg {
	display: block;
	width: 100%;
	height: 100%;
}

.plot path {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.15;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.trace:nth-child(2) path {
	opacity: 0.75;
}

.trace:nth-child(3) path {
	opacity: 0.5;
}

/* the part of a trace that the next one zooms into */
.win {
	position: absolute;
	top: 0;
	bottom: 0;
	border: solid var(--line);
	border-width: 0 1px;
	background: var(--tint);
	z-index: -1;
}

.plot {
	z-index: 0;
}

.ph {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--hot);
	display: none;
}

.ph b {
	position: absolute;
	left: -3px;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: var(--hot);
}

.signal figcaption i {
	font-style: normal;
}

.signal figcaption {
	padding: 14px 18px 16px;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--muted);
}

/* Projects */

.section-title {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 0.66rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
	margin: 96px 0 16px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	list-style: none;
	padding: 0;
	margin: 0;
	border: solid var(--line);
	border-width: 1px 0 0 1px;
	counter-reset: card;
}

.cards li {
	grid-column: span 3;
	display: flex;
	border: solid var(--line);
	border-width: 0 1px 1px 0;
	counter-increment: card;
}

.cards li.wide {
	grid-column: span 6;
}

/* three across */
.cards li.third {
	grid-column: span 4;
}

/* a card that closes the grid on a row of its own */
.cards li.full {
	grid-column: span 12;
}

.full .card {
	min-height: 0;
}

.card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 250px;
	padding: 20px 22px 20px;
	text-decoration: none;
	transition: background-color 0.2s;
}

.card:hover {
	color: inherit;
	background: var(--tint);
}

.card .kind {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.card .kind::after {
	content: counter(card, decimal-leading-zero);
}

.card h3 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.75rem;
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin: 44px 0 12px;
}

.wide .card h3 {
	font-size: 2.3rem;
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
	max-width: 44ch;
}

.card .dest {
	margin-top: auto;
	padding-top: 26px;
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	color: var(--accent);
}

.card .dest::after {
	content: "\2197";
	display: inline-block;
	margin-left: 8px;
	transition: transform 0.2s;
}

.card:hover .dest {
	color: var(--hot);
}

/* a card with several links instead of one */
.card.multi:hover .dest {
	color: var(--accent);
}

.card .dests {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 26px;
}

.card .dests .dest {
	display: flex;
	white-space: nowrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	text-decoration: none;
}

.card .dests .dest i {
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.6rem;
	line-height: 1.75;
	color: var(--muted);
	margin-right: auto;
}

.card.multi .dests .dest:hover {
	color: var(--hot);
}

.card .dests .dest::after {
	margin-left: 0;
}

.card .dests .dest:hover::after {
	transform: translate(2px, -2px);
}

.card.multi:hover .dest:not(:hover)::after {
	transform: none;
}

.card:hover .dest::after {
	transform: translate(2px, -2px);
}

/* Inner pages */

.page {
	padding: 72px 0 0;
}

.page section {
	border-top: 1px solid var(--line);
	margin-top: 64px;
	padding-top: 40px;
}

.page h2 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.9rem;
	line-height: 1.1;
	letter-spacing: -0.035em;
	margin: 0 0 10px;
}

.page h3 {
	font-family: var(--mono);
	font-size: 0.64rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin: 36px 0 12px;
}

.page p,
.page ul {
	max-width: 66ch;
}

.page ul {
	padding-left: 1.1em;
}

.page li::marker {
	color: var(--accent);
}

.page li + li {
	margin-top: 6px;
}

/* example prompts: one per ruled row, each with a copy button */
.page ul.prompts {
	list-style: none;
	padding: 0;
	max-width: 820px;
	border-top: 1px solid var(--line);
}

.prompts li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.page .prompts li + li {
	margin-top: 0;
}

.prompts .tool {
	flex: none;
}

/* a companion tool set apart from the sections: accent frame, text and button on the left, numbered steps on the right */
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 32px 48px;
	margin-top: 64px;
	padding: 32px 34px 34px;
	border: 1px solid var(--accent);
	background: var(--tint);
}

.feature .kind {
	font-family: var(--mono);
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	margin: 0 0 18px;
}

.feature h2 {
	margin-bottom: 14px;
}

.feature .action {
	display: inline-block;
	margin-top: 14px;
	color: var(--bg);
	background: var(--ink);
	text-decoration: none;
}

.feature .action::after {
	content: "\2197";
	margin-left: 8px;
}

.feature .action:hover {
	color: var(--bg);
	background: var(--accent);
}

.page .steps {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	font-size: 0.96rem;
	color: var(--muted);
}

.page .steps li {
	counter-increment: step;
	position: relative;
	margin: 0;
	padding: 14px 0 14px 44px;
	border-bottom: 1px solid var(--line);
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 17px;
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	color: var(--accent);
}

.steps b {
	display: block;
	font-weight: 500;
	color: var(--ink);
}

@media (max-width: 760px) {
	.feature {
		grid-template-columns: 1fr;
		padding: 24px 20px 26px;
	}
}

.pkg-name {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--accent);
	margin: 0 0 18px;
}

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0 !important;
	list-style: none;
}

.links li + li {
	margin-top: 0;
}

.links a {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

.links a:hover {
	border-color: var(--accent);
}

code,
pre {
	font-family: var(--mono);
	font-stretch: 87.5%;
	font-size: 0.78rem;
}

:not(pre) > code {
	color: var(--accent);
}

pre {
	background: var(--tint);
	border: 1px solid var(--line);
	padding: 18px 20px;
	overflow-x: auto;
	line-height: 1.75;
	margin: 0 0 14px;
	max-width: 820px;
	tab-size: 2;
}

.table-scroll {
	overflow-x: auto;
	max-width: 820px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

th,
td {
	text-align: left;
	vertical-align: top;
	padding: 14px 18px 14px 0;
	border-bottom: 1px solid var(--line);
}

th {
	font-family: var(--mono);
	font-size: 0.6rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

td:first-child {
	white-space: nowrap;
}

/* Account: sign-in forms, API tokens, admin */

/* a ruled box of labelled fields, the settings strip as a stand-alone form */
.form {
	display: grid;
	gap: 18px;
	max-width: 440px;
	margin: 36px 0 0;
	padding: 24px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.form[hidden] {
	display: none;
}

.form label {
	display: grid;
	gap: 8px;
}

.form label i {
	font-style: normal;
	text-transform: none;
	letter-spacing: 0.02em;
}

.form input {
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	font: inherit;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 0;
}

.form input:hover {
	border-color: var(--accent);
}

/* a form on one line: a field and its button, e.g. naming a new token */
.form.inline {
	max-width: 820px;
	grid-template-columns: 1fr auto;
	align-items: end;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
}

.form-actions a {
	text-decoration: none;
	color: var(--muted);
}

.form-actions a:hover {
	color: var(--accent);
}

/* the main action of a form: the .tool pill with the ink border of .play */
.action {
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink);
	background: none;
	border: 1px solid var(--ink);
	border-radius: 999px;
	padding: 11px 18px;
	cursor: pointer;
}

.action:hover {
	border-color: var(--accent);
}

.action[aria-busy="true"],
.tool[aria-busy="true"] {
	color: var(--hot);
	border-color: var(--hot);
	cursor: progress;
}

.page .tool {
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 7px 12px;
}

/* what the server answered, under the form or the list it belongs to */
.form-status {
	max-width: 66ch;
	margin: 18px 0 0;
	font-size: 0.95rem;
	color: var(--ink);
}

.form-status:empty {
	display: none;
}

.form-status .tool {
	margin-left: 10px;
}

/* the token, shown once: a code block with its copy button */
.secret {
	max-width: 820px;
	margin: 22px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--accent);
}

.secret[hidden] {
	display: none;
}

.secret p {
	margin: 0 0 14px;
	font-size: 0.95rem;
}

.secret div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.secret code {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--ink);
}

.account-list {
	margin-top: 28px;
}

.account-list td:last-child {
	text-align: right;
	white-space: nowrap;
	padding-right: 0;
}

.account-list .tool + .tool {
	margin-left: 6px;
}

.account-list .meta {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.account-list .empty td {
	color: var(--muted);
	text-align: left;
}

/* Footer */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 110px;
	padding: 22px 0 44px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.site-footer a {
	text-decoration: none;
	color: var(--ink);
}

.site-footer a:hover {
	color: var(--accent);
}

@media (max-width: 980px) {
	/* the rings move from beside the heading to under the text, above the figure */
	.hero {
		display: flex;
		flex-direction: column;
	}
	.rings {
		position: static;
		order: 1;
		align-self: center;
		width: 220px;
		height: 220px;
		margin: 100px 0 0;
	}
	.signal {
		order: 2;
	}
	.cards li,
	.cards li.third {
		grid-column: span 6;
	}
}

@media (max-width: 820px) {
	.cards li,
	.cards li.wide,
	.cards li.third {
		grid-column: span 12;
	}
	.card {
		min-height: 0;
	}
	.card h3,
	.wide .card h3 {
		font-size: 1.9rem;
		margin-top: 30px;
	}
	.trace {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.spectrum {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-top: 16px;
	}
	.spectrum .trace-label {
		margin-top: 0;
	}
	.scale li span {
		display: none;
	}
	.trace + .trace {
		margin-top: 12px;
	}
	.trace-label b {
		display: inline;
		margin-right: 8px;
	}
	.plot {
		height: 72px;
	}
	.hero {
		padding-top: 52px;
	}
	.signal {
		margin-top: 52px;
	}
	.readout {
		min-width: 0;
	}
	/* the three buttons share one line; the readout gets its own below them */
	.signal-ctrl {
		justify-content: flex-start;
		gap: 6px;
	}
	.readout {
		order: 1;
		flex-basis: 100%;
		margin: 6px 0 0;
		text-align: left;
	}
	.readout:empty {
		display: none;
	}
	.tool {
		padding: 9px 10px;
	}
	.play {
		padding: 9px 12px 9px 10px;
	}
	/* 16px keeps iOS from zooming the page when a field takes focus */
	.signal-settings input,
	.signal-settings select,
	.form input {
		font-size: 16px;
		letter-spacing: 0;
	}
	.form {
		padding: 18px;
	}
	.form.inline {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.form.inline .action {
		justify-self: start;
	}
	.account-list td:last-child {
		text-align: left;
		padding-top: 4px;
	}
	.site-header nav {
		gap: 16px;
	}
	thead {
		display: none;
	}
	td {
		display: block;
		padding-right: 0;
	}
	td:first-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-toggle,
	.card,
	.card .dest::after {
		transition: none;
	}
}
