/* The piighost charter for Chainlit, served by the app itself: no font CDN.
   Colours and radius come from theme.json, converted from the charter's tokens. */

@font-face {
	font-family: 'Schibsted Grotesk Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 400 900;
	src: url('/public/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Schibsted Grotesk Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 400 900;
	src: url('/public/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url('/public/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src: url('/public/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* The field of dots behind every piighost interface: 1px every 22px, the text
   colour at 13% in light mode and 17% in dark. Messages sit on opaque bubbles. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(hsl(var(--foreground) / 0.13) 1px, transparent 1.2px);
	background-size: 22px 22px;
}
.dark body::before {
	background-image: radial-gradient(hsl(var(--foreground) / 0.17) 1px, transparent 1.2px);
}
#root {
	background: transparent;
}

/* Code and placeholders are machine-read: IBM Plex Mono, 400 or 500. Chainlit
   sets its own monospace stack and a semibold weight through Tailwind classes,
   which win over an element selector. */
.font-mono,
code,
pre,
kbd {
	font-family: var(--font-mono) !important;
}
code.font-semibold,
.font-mono.font-semibold {
	font-weight: 500;
}

/* The logo follows the chat's theme, not the system's colour scheme. */
.light img.logo {
	content: url('/logo?theme=light');
}
.dark img.logo {
	content: url('/logo?theme=dark');
}
