/* ==========================================================================
   base.css — reset, document defaults, typography, prose, a11y helpers.
   ========================================================================== */

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

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background: var(--c-abyss);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Subtle fixed depth gradient behind everything */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(20, 184, 166, 0.10), transparent 60%),
		radial-gradient(90% 60% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
		var(--c-abyss);
}

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

a {
	color: var(--c-aqua);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-aqua-deep); }

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

button { font: inherit; color: inherit; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

/* ---- Headings ---- */
h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: var(--lh-tight);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { max-width: var(--measure); }

strong, b { font-weight: 600; color: #fff; }

/* ---- Icons ---- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; }
.icon--inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; }
.icon--lg { width: 40px; height: 40px; }
.icon--xl { width: 64px; height: 64px; }

/* ---- Accessibility: focus + skip link + screen-reader text ---- */
:focus-visible {
	outline: 3px solid var(--c-aqua);
	outline-offset: 2px;
	border-radius: 4px;
}

.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: var(--space-4);
	z-index: var(--z-modal);
	padding: var(--space-3) var(--space-4);
	background: var(--c-aqua);
	color: #04141b;
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); color: #04141b; }

/* ---- Long-form content (prose) ---- */
.prose { color: var(--c-ink); }
.prose > * + * { margin-top: var(--space-5); }
.prose p,
.prose li { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-7); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.prose h3 { margin-top: var(--space-6); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34, 211, 238, 0.5); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
	border-left: 3px solid var(--c-aqua);
	padding: var(--space-2) var(--space-5);
	color: var(--c-muted);
	background: var(--glass-bg);
	border-radius: var(--radius-sm);
}
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose code {
	background: var(--c-surface);
	padding: 0.15em 0.4em;
	border-radius: 6px;
	font-size: 0.9em;
}
.prose hr { border: 0; border-top: 1px solid var(--c-line); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: var(--measure); }
.eyebrow {
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-teal);
}
.eyebrow--glow { color: var(--c-aqua); text-shadow: 0 0 18px rgba(34, 211, 238, 0.5); }
