/* base.css — Reset, fonts, custom properties */
@import "./tokens.css";

/* Self-hosted house fonts (Newsreader + IBM Plex Mono, OFL) — no CDN, matches the
   rendered-report identity. The same subset .woff2 the renderer base64-inlines. */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/newsreader-500.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-variant-numeric: tabular-nums;
	scroll-behavior: smooth;
}

body {
	font-family: var(--rv-font-body);
	font-size: var(--rv-size-body);
	font-weight: var(--rv-weight-regular);
	line-height: var(--rv-leading-body);
	color: var(--rv-text-primary);
	background-color: var(--rv-surface-primary);
	min-height: 100vh;
}

a {
	color: var(--rv-color-accent);
	text-decoration: none;
}

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

img {
	max-width: 100%;
	display: block;
}

code {
	font-family: var(--rv-font-code);
	font-size: var(--rv-size-code);
}

::selection {
	background: var(--rv-accent-subtle);
	color: var(--rv-text-primary);
}
