/**
 * Base — reset, body defaults, root typography, light mode support.
 *
 * Minimal reset + site-wide defaults. Everything else is handled by
 * components and templates.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	background: var(--slist-bg);
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--slist-bg);
	color: var(--slist-text-primary);
	font-family: var(--slist-font-body);
	font-size: var(--slist-text-body);
	line-height: var(--slist-lh-default);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-variant-ligatures: common-ligatures;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

p {
	margin: 0 0 var(--slist-space-3);
}

ul,
ol {
	padding-left: var(--slist-space-4);
	margin: 0 0 var(--slist-space-3);
}

hr {
	border: 0;
	border-top: 1px solid var(--slist-separator);
	margin: var(--slist-space-5) 0;
}

::selection {
	background: var(--slist-primary);
	color: #ffffff;
}

:focus-visible {
	outline: 2px solid var(--slist-primary);
	outline-offset: 2px;
}

/**
 * GP base override — GP sets global text color based on its customizer;
 * we want our tokens to win.
 */
body,
body .entry-content,
.site-content {
	background: var(--slist-bg);
	color: var(--slist-text-primary);
}

/**
 * GP container neutralization — we use our own layout widths.
 */
.inside-article,
.entry-content,
.inside-page-content {
	background: transparent;
}

/**
 * Reduced motion — users who've opted out of animation see instant changes.
 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
