/* Shared chrome for the static site: design tokens, the reset, and the bits that
   appear on every page (masthead, wordmark, buttons, footer). Page-specific
   layout stays inline in the page that uses it.

   This file exists so the palette has ONE copy per surface instead of one per
   page. `backend/app/brand.py`'s header is the cautionary tale: `render.py` kept
   its own hex values behind a comment claiming they matched the web, and two of
   them never did. A second landing-site page copying these values by hand would
   be the same setup.

   The values are transcribed from `frontend/src/app.css`, which is the source of
   truth for them, and `frontend/src/lib/site-palette.test.ts` FAILS if any token
   here stops matching it. That test is not decoration: the first version of this
   file asserted in this very comment that it was transcribed, while carrying two
   invented light `--shadow-*` values — the identical failure mode to the one
   `brand.py`'s header describes, reintroduced by the change that cited it. Prose
   claiming a match is not a match. */

:root {
	color-scheme: light;

	--bg: #f6f7f9;
	--surface: #ffffff;
	--text: #1a2233;
	--muted: #5b6472;
	--border: #e5e7eb;
	--track: #f1f2f4;
	--primary: #2743b8;
	--primary-weak: #e8ecfb;
	--primary-ink: #ffffff;

	--font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-pill: 999px;
	--shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
	--shadow-2: 0 6px 20px rgba(16, 24, 40, 0.14);
}

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--bg: #0f1420;
		--surface: #161c2b;
		--text: #e7ebf3;
		--muted: #99a2b3;
		--border: #263041;
		--track: #1e2636;
		--primary: #7d93f0;
		--primary-weak: #202a45;
		--primary-ink: #0f1420;
		--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
		--shadow-2: 0 8px 24px rgba(0, 0, 0, 0.55);
	}
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0;
}

a {
	color: var(--primary);
}

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

.wrap {
	width: 100%;
	max-width: 68rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.skip {
	position: absolute;
	left: -9999px;
}
.skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 10;
	padding: 0.6rem 1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

/* ---- masthead ---- */

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--text);
	text-decoration: none;
}
.wordmark svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}
.wordmark .dot {
	color: var(--primary);
}

/* ---- buttons ---- */

.btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-md);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	white-space: nowrap;
}
.btn-primary {
	background: var(--primary);
	color: var(--primary-ink);
}
.btn-primary:hover {
	opacity: 0.92;
}
.btn-ghost {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
}
.btn-ghost:hover {
	background: var(--track);
}

/* ---- footer ---- */

footer {
	border-top: 1px solid var(--border);
	padding: 2rem 0 3rem;
	font-size: 0.85rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
}
footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}
