/* On every page, before the page's own styles (the `pages` plugin links it). */

/*
 * Inter 4.1 (https://github.com/rsms/inter), SIL Open Font License 1.1: see
 * /assets/fonts/inter/LICENSE.txt. Variable, so one file per style covers every weight.
 * A browser only downloads it when text on the page uses it.
 */
@font-face {
	font-family: InterVariable;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/assets/fonts/inter/InterVariable.woff2') format('woff2');
}

@font-face {
	font-family: InterVariable;
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('/assets/fonts/inter/InterVariable-Italic.woff2') format('woff2');
}

/* Sizes include padding and border. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*
 * The site's surface, shared by every page: light grey, or dark purple in dark mode, with
 * a diagonal shade (from the 2020 site). Pages add their own on top, never a background of
 * their own for the whole page.
 */
:root {
	color-scheme: light dark;
	--text: light-dark(#222, #e0e1e4);
	--surface: light-dark(#eaedee, #2b0539);
	--shade: linear-gradient(
			161.5deg,
			transparent 40%,
			rgb(0 0 0 / 0.06) 50%,
			rgb(0 0 0 / 0.4)
		)
		no-repeat fixed;
}

body {
	margin: 0;
	min-block-size: 100dvh;
	color: var(--text);
	background: var(--shade) var(--surface);
}
