/* Base element styles — mobile-first */

body {
	font-family: var(--gpoa-font);
	color: var(--gpoa-ink);
	background: var(--gpoa-bg);
	font-size: var(--gpoa-body);
	line-height: var(--gpoa-lh);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--gpoa-font);
	color: var(--gpoa-ink);
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 var(--gpoa-space-4);
}

h1 { font-size: var(--gpoa-h1); }
h2 { font-size: var(--gpoa-h2); }
h3 { font-size: var(--gpoa-h3); font-weight: 600; }

p {
	margin: 0 0 var(--gpoa-space-4);
	max-width: 65ch;
}

a {
	color: var(--gpoa-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--gpoa-transition);
}

a:hover {
	color: var(--gpoa-accent-dark);
}

/* Visible, consistent focus state everywhere — accessibility requirement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--gpoa-accent);
	outline-offset: 2px;
}

.gpoa-container {
	width: 100%;
	max-width: var(--gpoa-content-width);
	margin-inline: auto;
	padding-inline: var(--gpoa-space-5);
}

@media (min-width: 768px) {
	.gpoa-container {
		padding-inline: var(--gpoa-space-7);
	}
}

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

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

.gpoa-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.gpoa-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.gpoa-reveal {
		opacity: 1;
		transform: none;
	}
}
