/* ─────────────────────────────────────────────────────────────────
 *  Falcon Vision — Base Styles
 *  Reset + body typography + global elements.
 * ───────────────────────────────────────────────────────────────── */

/* ── Font loading ─────────────────────────────────────────────────
 * Self-host these next; for now, pulled from a CDN that serves
 * licensed open replacements for Avenir LT Pro. */
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Forum&display=swap");

/* ── Modern CSS reset ─────────────────────────────────────────── */

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

html {
	/* Smooth scroll, but only when motion is permitted */
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Set the base for rem calculations. 16px is the typical browser default. */
	font-size: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background-color: var(--fv-bg);
	color: var(--fv-fg);
	font-family: var(--fv-font-body);
	font-size: var(--fv-text-base);
	font-weight: var(--fv-weight-regular);
	line-height: var(--fv-leading-normal);
	letter-spacing: 0.005em;
	overflow-x: hidden;
}

/* Anchor base */
a {
	color: inherit;
	text-decoration: none;
	transition: color var(--fv-dur-fast) var(--fv-ease-soft);
}
a:focus-visible {
	outline: 2px solid var(--fv-color-blue-light);
	outline-offset: 3px;
	border-radius: var(--fv-radius-xs);
}

/* Media */
img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
	font-style: italic; /* Visually flag broken alt text */
	vertical-align: middle;
}

/* Form elements inherit font */
input, button, textarea, select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

/* Remove default list styles where we re-style */
ul[role="list"], ol[role="list"] {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Selection */
::selection {
	background: var(--fv-selection-bg);
	color: var(--fv-selection-fg);
}

/* Scrollbar — slim, dark, on-brand */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--fv-color-charcoal) transparent;
}
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: var(--fv-bg);
}
::-webkit-scrollbar-thumb {
	background: var(--fv-color-charcoal);
	border-radius: var(--fv-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
	background: var(--fv-color-blue);
}

/* ── Typography ───────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fv-font-heading);
	font-weight: var(--fv-weight-medium);
	line-height: var(--fv-leading-tight);
	color: var(--fv-fg);
	margin: 0;
	letter-spacing: var(--fv-tracking-wider);
	text-transform: uppercase;
}

/* The hero / page-title scale. Wrap inside .fv-display for editorial italic. */
h1 {
	font-size: clamp(var(--fv-text-4xl), 7vw, var(--fv-text-7xl));
	letter-spacing: var(--fv-tracking-widest);
}

h2 {
	font-size: clamp(var(--fv-text-3xl), 4.5vw, var(--fv-text-5xl));
	letter-spacing: var(--fv-tracking-wider);
}

h3 {
	font-size: clamp(var(--fv-text-xl), 2.5vw, var(--fv-text-3xl));
	letter-spacing: var(--fv-tracking-wide);
}

h4 {
	font-size: var(--fv-text-xl);
	letter-spacing: var(--fv-tracking-wide);
}

h5 {
	font-size: var(--fv-text-lg);
	letter-spacing: var(--fv-tracking-wide);
}

h6 {
	font-size: var(--fv-text-base);
	letter-spacing: var(--fv-tracking-wider);
}

/* Editorial display — serif italic, used on hero leads & quotes */
.fv-display {
	font-family: var(--fv-font-display);
	font-style: italic;
	font-weight: var(--fv-weight-regular);
	letter-spacing: var(--fv-tracking-normal);
	text-transform: none;
	line-height: var(--fv-leading-snug);
}

p {
	margin: 0 0 var(--fv-space-4) 0;
	color: var(--fv-fg);
	line-height: var(--fv-leading-relaxed);
}

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

strong { font-weight: var(--fv-weight-semibold); }
em { font-style: italic; }

small { font-size: var(--fv-text-sm); }

hr {
	border: 0;
	border-top: 1px solid var(--fv-border);
	margin: var(--fv-space-12) 0;
}

blockquote {
	margin: var(--fv-space-8) 0;
	padding-left: var(--fv-space-6);
	border-left: 2px solid var(--fv-color-blue);
	font-family: var(--fv-font-display);
	font-style: italic;
	font-size: var(--fv-text-xl);
	line-height: var(--fv-leading-snug);
}

/* ── Accessibility helpers ────────────────────────────────────── */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip link (placed at top of body in header.php) */
.fv-skip-link {
	position: absolute;
	top: -40px;
	left: 1rem;
	background: var(--fv-color-blue);
	color: var(--fv-color-white);
	padding: 0.75rem 1.25rem;
	z-index: 100;
	font-weight: var(--fv-weight-semibold);
	letter-spacing: var(--fv-tracking-wide);
	text-transform: uppercase;
	font-size: var(--fv-text-sm);
}

.fv-skip-link:focus {
	top: 1rem;
	outline: 2px solid var(--fv-color-white);
}

/* ── Main content gutter ──────────────────────────────────────── */

main {
	position: relative;
	min-height: 100vh;
}
