/**
 * Base styles: minimal reset, typography defaults, and shared components
 * (buttons) that every template should reuse instead of redefining.
 */

/* -------------------------------------------------------------------------
 * Minimal reset
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Visually hidden but still announced by screen readers — used for form
   labels that are implied visually (e.g. a placeholder) but still need a
   real <label>/<span> for accessibility. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Typography
 * ---------------------------------------------------------------------- */

body {
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--color-text);
	background-color: var(--color-white);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
	color: var(--color-primary);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-primary);
	text-decoration: underline;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-primary-hover);
}

/* -------------------------------------------------------------------------
 * Buttons
 *
 * Shared button component so every CTA across the site (header, hero,
 * donation forms, etc.) looks and behaves the same way. Use .btn as the
 * base class and .btn--primary / .btn--outline as modifiers.
 * ---------------------------------------------------------------------- */

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	padding: 0.75em 1.5em;
	border-radius: var(--radius-base);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus {
	background-color: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	color: var(--color-white);
	text-decoration: none;
}

.btn--outline {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus {
	background-color: var(--color-primary);
	color: var(--color-white);
	text-decoration: none;
}

.btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Optional trailing arrow, e.g. <a class="btn btn--primary btn--arrow"> */

.btn--arrow::after {
	content: '\2192';
	margin-left: 0.5em;
	font-weight: 700;
}
