:root {
	--background: var(--background-100);
	--background-100: oklch(0.9911 var(--tint-c, 0) var(--tint-h, 286.4));
	--border: oklch(0.9219 var(--tint-c, 0) var(--tint-h, 0));
	--brand: var(--brand-violet);
	--brand-violet: oklch(0.5690 0.2666 284.8);
	--fg-4: var(--gray-1000);
	--font-mono: "SF Mono", "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, Courier, monospace;
	--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--foreground: var(--fg-4);
	--gray-1000: oklch(0.2855 var(--tint-c-soft, 0.0113) var(--tint-h, 271));
	--gray-600: oklch(0.6960 var(--tint-c, 0) var(--tint-h, 0));
	--gray-800: oklch(0.5555 var(--tint-c-soft, 0) var(--tint-h, 0));
	--gray-900: oklch(0.3737 var(--tint-c-soft, 0.0153) var(--tint-h, 259.81));
	--hairline-width: 0.5px;
	--muted-foreground: var(--gray-800);
	--radius: 8px;
	--radius-sm: calc(var(--radius) - 4px);
	--ring: var(--brand);
	--speed-quick-transition: 0.1s;
	--text-base: 0.875rem;
	--text-base--line-height: 1.25rem;
	--text-lg: 1rem;
	--text-selection: color-mix(in oklab, var(--brand) 28%, transparent);
	--text-selection-ink: color-mix(in oklab, var(--brand) 30%, black);
	--text-sm: 0.8125rem;
	--text-sm--line-height: 1.25rem;
	--text-xl: 1.125rem;
}

/*
 * selectia.ai, drawn with Selectia's design system: every colour, radius, hairline
 * and type step below is a token of the product (app/globals.css,
 * app/styles/design-tokens.generated.css). The build copies the definitions of
 * the tokens this file reads into a :root block above it; a token it cannot
 * find fails the build.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("/fonts/InterVariable.woff2") format("woff2-variations");
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	color-scheme: light;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: var(--text-lg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
	font-feature-settings: normal;
	text-rendering: optimizeLegibility;
	text-underline-position: from-font;
	text-decoration-skip-ink: auto;
}

::selection {
	background: var(--text-selection);
	color: var(--text-selection-ink);
}

a {
	color: inherit;
	text-decoration-color: var(--gray-600);
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--speed-quick-transition) ease-out;
}

a:hover {
	text-decoration-color: currentColor;
}

a:focus-visible {
	outline: 1px solid var(--ring);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.wrap {
	width: 100%;
	max-width: 48rem;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	color: var(--muted-foreground);
}

/* Header and footer */

.site-header {
	border-bottom: var(--hairline-width) solid var(--border);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--foreground);
	font-size: var(--text-lg);
	font-weight: 590;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.brand svg {
	width: 1.375rem;
	height: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.25rem 1.25rem;
	font-size: var(--text-sm);
	line-height: var(--text-sm--line-height);
}

.site-nav a {
	color: var(--muted-foreground);
	text-decoration: none;
	transition: color var(--speed-quick-transition) ease-out;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--foreground);
}

.site-footer {
	border-top: var(--hairline-width) solid var(--border);
	padding: 1.5rem 0 2.5rem;
	color: var(--muted-foreground);
	font-size: var(--text-sm);
	line-height: var(--text-sm--line-height);
}

.site-footer p {
	margin: 0 0 0.5rem;
}

.site-footer a {
	color: var(--muted-foreground);
}

/* Content */

main.wrap {
	padding-top: 4rem;
	padding-bottom: 4.5rem;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.55rem + 1.8vw, 2.75rem);
	font-weight: 590;
	line-height: 1.12;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

h2 {
	margin: 3rem 0 0.75rem;
	font-size: var(--text-xl);
	font-weight: 590;
	line-height: 1.4;
	letter-spacing: -0.012em;
	color: var(--foreground);
}

h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: var(--text-lg);
	font-weight: 590;
	line-height: 1.5;
	color: var(--foreground);
}

p,
ul {
	margin: 0 0 1rem;
}

ul {
	padding-left: 1.25rem;
}

li + li {
	margin-top: 0.4rem;
}

li::marker {
	color: var(--gray-600);
}

strong {
	font-weight: 590;
	color: var(--foreground);
}

code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	color: var(--gray-900);
	overflow-wrap: anywhere;
}

.lead {
	max-width: 36rem;
	margin-bottom: 0;
	color: var(--muted-foreground);
	font-size: var(--text-xl);
	line-height: 1.55;
}

.meta {
	color: var(--muted-foreground);
	font-size: var(--text-base);
}

/* Home page: the features are a list, not cards -- nothing in it opens anything. */

.features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 3rem;
	margin: 3.5rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.features {
		grid-template-columns: 1fr 1fr;
	}
}

.features li {
	margin: 0;
}

.features h3 {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 0.375rem;
	font-size: var(--text-base);
	line-height: var(--text-base--line-height);
}

.features p {
	margin: 0;
	color: var(--muted-foreground);
	font-size: var(--text-base);
	line-height: 1.6;
}

.google {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: var(--hairline-width) solid var(--border);
}

.google h2 {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: 0;
}

.google p {
	color: var(--gray-900);
}

.google p:last-child {
	margin-bottom: 0;
}
