/* Design tokens of the iic tool UIs, taken from iso2p-web (web/src/app.css). Font files are in ./fonts. */

/* Look and feel after the ICON INCAR brand (as in susan): black / white surfaces, yellow as
   the single accent, Montserrat Bold ALL CAPS for titles, Asterisk Sans Pro for text and
   JetBrains Mono for code and logs. Dark only; every colour comes from the tokens below. */

@font-face {
	font-family: 'Montserrat';
	src: url('./fonts/montserrat-bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
/* Asterisk Sans Pro is used where it is installed (iic machines); it is not shipped as a web font. */
@font-face {
	font-family: 'Asterisk Sans Pro';
	font-weight: 400;
	src: local('Asterisk Sans Pro'), local('AsteriskSansPro-Regular');
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('./fonts/JetBrainsMono-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('./fonts/JetBrainsMono-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ══ colours ═══════════════════════════════════════════════════════════════ */

:root {
	--iic-yellow: #fdf258;
	--iic-black: #000000;
	--iic-white: #ffffff;
	--iic-red: #ff0055;
	--iic-green: #47ebbc;
	--iic-grey: #c0c1bd;
	--iic-grey-dark: #636363;
}

:root {
	color-scheme: dark;
	--spin-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'><path d='M1 6.5 5 2.5 9 6.5' fill='none' stroke='%23a7a8a4' stroke-width='1.6'/><path d='M1 9.5 5 13.5 9 9.5' fill='none' stroke='%23a7a8a4' stroke-width='1.6'/></svg>");
	--spin-icon-hover: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'><path d='M1 6.5 5 2.5 9 6.5' fill='none' stroke='%23fdf258' stroke-width='1.6'/><path d='M1 9.5 5 13.5 9 9.5' fill='none' stroke='%23fdf258' stroke-width='1.6'/></svg>");
	--bg: var(--iic-black);
	--bg-raised: #181818;
	--bg-sunken: #0f0f0f;
	--bg-card: #0f0f0f;
	--bg-track: #2a2a2a;
	--bg-invert: var(--iic-white);
	--fg: var(--iic-white);
	--fg-soft: #e4e4e2;
	--fg-muted: #a7a8a4;
	--fg-dim: #8c8d89;
	--fg-faint: #636363;
	--fg-on-fill: var(--iic-black);
	--fg-on-invert: var(--iic-black);
	--border: #2a2a2a;
	--border-subtle: #1f1f1f;
	--border-control: #4a4a4a;
	--field-border: #4a4a4a;
	/* Yellow fills, and text and lines in the accent. */
	--accent: var(--iic-yellow);
	--accent-text: var(--iic-yellow);
	--accent-line: var(--iic-yellow);
	--current: rgb(253 242 88 / 0.08);
	--danger: var(--iic-red);
	--ok: var(--iic-green);
	--ok-tint: rgb(71 235 188 / 0.08);
	--warn: #ffa53c;
	--attention: var(--iic-yellow);
	--scrim: rgb(0 0 0 / 0.6);
	--vid-frame: #141414;
	--vid-bg: var(--iic-black);
	--vid-border: var(--iic-white);
	--vid-hatch-a: #1a1a1a;
	--vid-hatch-b: #121212;
	--vid-label-fg: var(--iic-white);
	--vid-label-shadow: 0 0 2px var(--iic-black);
	--vid-chip-fg: var(--iic-white);
	--vid-chip-bg: rgb(0 0 0 / 0.5);
	--vid-chip-border: rgb(255 255 255 / 0.3);
}

:root {
	--font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Asterisk Sans Pro', 'Helvetica Neue', Arial, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--radius: 2px;

	/* Names used by the components, mapped onto the colour tokens. */
	--text: var(--fg);
	--muted: var(--fg-muted);
	--surface: var(--bg);
	--surface-2: var(--bg-raised);
	--selected: var(--current);
	--code-bg: var(--bg-sunken);
	--capture-bg: var(--vid-bg);
	--stage-bg: var(--vid-frame);
	--grid-dot: var(--border);
	--output-border: var(--vid-border);
	--label-bg: var(--vid-chip-bg);
	--label-fg: var(--vid-label-fg);
	--view-border: var(--attention);
	--view-bg: color-mix(in srgb, var(--accent) 8%, transparent);
	--view-bg-selected: color-mix(in srgb, var(--accent) 22%, transparent);
	--accent-fg: var(--fg-on-fill);
}

