/* Base Styles & Resets */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
	box-sizing: border-box;
	zoom: 85%;
}

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

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

body {
	background-color: var(--background-color);
	color: var(--text-primary);
	font-family: var(--font-body);
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	text-align: center;
	color: var(--text-primary);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

p, b, strong, table {
	font-size: 1.15rem;
}

b, strong {
	font-weight: 700;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-fast);
}

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

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

/* Accessibility */
.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 {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--dark-navy);
	color: var(--white-color);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-md);
	z-index: 10000;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 1rem;
}

/* Global focus states */
:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Scroll to top button */
.scroll-to-top {
	position: fixed;
	bottom: 2.5rem;
	right: 2.5rem;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--radius-full);
	background-color: var(--accent-color);
	color: var(--dark-navy);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: bold;
	box-shadow: 0 4px 12px var(--black-15);
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all var(--transition-normal);
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover {
	background-color: var(--accent-hover);
	transform: translateY(-5px);
	box-shadow: 0 6px 16px var(--black-20);
}
