/* AeroTickets — reset and base typography. */

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: var(--leading-relaxed);
	color: var(--ink);
	background: var(--canvas);
	overflow-x: hidden;
}

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

a {
	color: var(--brand-blue);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--brand-navy); }

p { margin: 0 0 var(--space-4); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--ink);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

ul, ol { padding-left: var(--space-6); margin: 0 0 var(--space-4); }
li { margin-bottom: var(--space-2); }

hr {
	border: 0;
	height: 1px;
	background: var(--border);
	margin: var(--space-12) 0;
}

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

button { cursor: pointer; }

::selection {
	background: var(--brand-blue);
	color: #fff;
}

/* Focus */
:focus-visible {
	outline: 2px solid var(--brand-blue);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px; left: var(--space-4);
	background: var(--brand-navy);
	color: #fff;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	z-index: var(--z-toast);
	transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
