/* Torus house sheet. The one stylesheet for anything GTM makes in HTML:
   one-pagers, reports, social cards, email graphics, event material, dashboards.
   It matches the website on staging and the 2026-11 product brand iteration.
   Rules: gtm/brand/DESIGN.md and gtm/brand/kit/. This file is the single
   source of values: the token block in DESIGN.md is generated from it by
   `bun run gtm:sync`, and `gtm:check` fails if Bridge Orange drifts from
   --accent in assets/design/brand.css.
   Font paths are relative to this file. When an output leaves the repo, copy
   assets/brand/fonts/ next to it or inline the fonts. */

@font-face {
	font-family: "Overpass";
	src: url("fonts/overpass.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Questrial";
	src: url("fonts/questrial.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
/* Questrial has one weight. Bold inside reading text is Overpass, never synthetic. */
@font-face {
	font-family: "Questrial";
	src: url("fonts/overpass.woff2") format("woff2");
	font-weight: 600 900;
	font-display: swap;
}
@font-face {
	font-family: "Overpass Mono";
	src: url("fonts/overpass-mono.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}
@font-face {
	font-family: "Space Grotesk";
	src: url("fonts/space-grotesk.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	/* Ground and surfaces: true greys only. A neutral with a hue is a defect. */
	--ground: #ffffff;
	--surface: #f4f4f4;
	--selected: #ebebeb;

	/* Ink */
	--ink: #1a1a1a;
	--ink-mid: #4c4c4c;
	--ink-faint: #5e5e5e;

	/* Lines */
	--line: #dfdfdf;
	--line-strong: #b6b6b6;

	/* The one accent */
	--bridge-orange: #f04a00;
	--accent-text: #a8360a;

	/* Status: words first, colour second */
	--success: #4a7a5b;
	--error: #8b4049;

	/* Type */
	--font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Questrial", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "Overpass Mono", ui-monospace, Menlo, monospace;
	--font-wordmark: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

	/* Scale (px): 12 14 16 18 20 24 32 48 64 96 */
	--text-small: 12px;
	--text-meta: 14px;
	--text-body: 16px;
	--text-lead: 18px;
	--text-title: 20px;
	--text-subsection: 24px;
	--text-section: 32px;
	--text-page: 48px;
	--text-display: 64px;
	--text-hero: 96px;

	/* Space: 4px base */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;
	--space-12: 48px;
	--space-16: 64px;
	--space-24: 96px;

	--line-width: 1px;
	--radius: 0;
	--measure: 32em;
	--ease: cubic-bezier(0.22, 0.8, 0.2, 1);
	--duration-state: 100ms;
	--duration-move: 180ms;
	color-scheme: light;
}

/* Night version: film and dark rooms only. The website and product are light only. */
.torus-night {
	--ground: #111111;
	--surface: #1c1c1c;
	--ink: #ececec;
	--accent-text: #f45a14;
	color-scheme: dark;
}

.torus-sheet {
	background: var(--ground);
	color: var(--ink);
	font: 400 var(--text-body) / 1.6 var(--font-body);
}
.torus-sheet h1,
.torus-sheet h2,
.torus-sheet h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	text-wrap: balance;
}
.torus-sheet h1 {
	font-size: var(--text-display);
	letter-spacing: -0.03em;
}
.torus-sheet h2 {
	font-size: var(--text-section);
	letter-spacing: -0.03em;
}
.torus-sheet h3 {
	font-size: var(--text-title);
	font-weight: 500;
}
.torus-sheet p,
.torus-sheet li {
	max-width: var(--measure);
}
.torus-sheet b,
.torus-sheet strong {
	font-weight: 600;
}
/* Labels: sentence case, no tracking, faint ink. Never uppercase, never tracked. */
.torus-label {
	font: 400 var(--text-small) / 1.4 var(--font-body);
	color: var(--ink-faint);
}
.torus-value {
	font: 400 var(--text-meta) / 1.4 var(--font-mono);
	font-variant-numeric: tabular-nums;
}
.torus-sheet * {
	border-radius: var(--radius);
	box-shadow: none;
}
