/* ============================================================
   Base / reset / typography
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }

body {
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip; /* contain full-bleed section images; prevents horizontal scroll */
}

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

a { color: var(--blue); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }

button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }

ul { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid rgba(26, 158, 217, .55); outline-offset: 2px; border-radius: 4px; }

/* Rich text (legal pages, about, content) */
.rich-text { color: var(--body); }
.rich-text h2 { font-size: clamp(24px, 3vw, 32px); margin: 1.6em 0 .5em; }
.rich-text h3 { font-size: clamp(20px, 2.4vw, 24px); margin: 1.4em 0 .4em; }
.rich-text p { margin: 0 0 1em; }
.rich-text ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.rich-text ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich-text li { margin: .25em 0; }
.rich-text a { text-decoration: underline; }
.rich-text strong { color: var(--ink); }

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: -100px; left: 12px; z-index: 1000;
	background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
