/**
 * Base Styles
 * CSS Reset, typography, and global styles
 *
 * @package GospelHope
 */

/* Box Sizing Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove Default Margins */
* {
	margin: 0;
	padding: 0;
}

/* HTML & Body */
html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height-normal);
	color: var(--color-text);
	background-color: var(--color-background);
	min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-headings);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	margin-bottom: var(--space-md);
}

h1 {
	font-size: var(--font-size-5xl);
}

h2 {
	font-size: var(--font-size-4xl);
}

h3 {
	font-size: var(--font-size-3xl);
}

h4 {
	font-size: var(--font-size-2xl);
}

h5 {
	font-size: var(--font-size-xl);
}

h6 {
	font-size: var(--font-size-lg);
}

p {
	margin-bottom: var(--space-md);
}

/* Links */
a {
	color: var(--color-navy);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-lime);
}

a:focus {
	outline: 2px solid var(--color-lime);
	outline-offset: 2px;
}

/* Lists */
ul, ol {
	list-style: none;
}

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

/* Buttons */
button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	cursor: pointer;
	background: none;
	border: none;
}

/* Skip Link (Accessibility) */
.skipLink {
	position: absolute;
	top: -100px;
	left: 0;
	padding: var(--space-sm) var(--space-md);
	background-color: var(--color-navy);
	color: var(--color-white);
	font-weight: var(--font-weight-bold);
	z-index: var(--z-tooltip);
	transition: top var(--transition-fast);
}

.skipLink:focus {
	top: 0;
	outline: 2px solid var(--color-lime);
	outline-offset: 2px;
}

/* Container */
.contentWrapper {
	max-width: var(--container-xl);
	margin: 0 auto;
	padding: var(--space-lg);
}

/* Responsive Typography */
@media (max-width: 768px) {
	html {
		font-size: 14px;
	}

	h1 {
		font-size: var(--font-size-4xl);
	}

	h2 {
		font-size: var(--font-size-3xl);
	}

	h3 {
		font-size: var(--font-size-2xl);
	}
}

/* Utility Classes */
.visuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
