/* =========================================================================
   Above Public Affairs — main stylesheet
   ========================================================================= */

:root {
	--c-ink:        #0E1B2C;   /* deep navy — primary text */
	--c-ink-soft:   #43526A;
	--c-muted:      #6B7A90;
	--c-line:       #E3E7EE;
	--c-bg:         #F7F5F0;   /* warm off-white */
	--c-bg-card:    #FFFFFF;
	--c-accent:     #B8862A;   /* muted gold */
	--c-accent-ink: #8C6519;

	--f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-5: 3rem;
	--space-6: 4.5rem;
	--space-7: 6rem;

	--radius: 4px;
	--max-w:  72rem;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--c-accent-ink);
	text-decoration: none;
	transition-property: color;
	transition-duration: 150ms;
	transition-timing-function: ease;
}

a:hover,
a:focus-visible {
	color: var(--c-ink);
}

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0 0 var(--space-3);
}

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

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

/* =========================================================================
   Splash page
   ========================================================================= */

body.splash {
	min-height: 100vh;
	color: #F7F5F0;
	background:
		radial-gradient(ellipse at 70% 20%, rgba(70, 110, 180, 0.7), transparent 55%),
		radial-gradient(ellipse at 20% 80%, rgba(20, 50, 100, 0.75), transparent 60%),
		linear-gradient(135deg, #03070F 0%, #0E1B2C 25%, #21406B 55%, #0A1830 80%, #050B17 100%);
	background-size: 220% 220%, 220% 220%, 320% 320%;
	background-position: 0% 50%, 100% 50%, 0% 0%;
	animation: splash-bg-drift 9s ease-in-out infinite;
	position: relative;
	overflow-x: hidden;
}

/* Rotating accent glow — primary visible motion behind the wordmark */
body.splash::before {
	content: '';
	position: fixed;
	top: -75%;
	left: -75%;
	width: 250%;
	height: 250%;
	background:
		radial-gradient(circle at 30% 40%, rgba(120, 170, 240, 0.42), transparent 32%),
		radial-gradient(circle at 70% 60%, rgba(50, 90, 170, 0.45), transparent 36%),
		radial-gradient(circle at 50% 50%, rgba(90, 140, 220, 0.28), transparent 28%);
	animation: splash-orbit 18s linear infinite;
	pointer-events: none;
	z-index: 0;
	will-change: transform;
}

/* Film-grain noise overlay — high-contrast, visible texture */
body.splash::after {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.95 0'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
	background-size: 260px 260px;
	opacity: 0.5;
	mix-blend-mode: soft-light;
	pointer-events: none;
	z-index: 1;
	animation: splash-noise-shift 1.2s steps(4) infinite;
}

@keyframes splash-bg-drift {
	0%, 100% {
		background-position: 0% 50%, 100% 50%, 0% 0%;
	}
	50% {
		background-position: 100% 50%, 0% 50%, 100% 100%;
	}
}

@keyframes splash-orbit {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Subtle "live grain" — shifts the noise sample each frame so it shimmers */
@keyframes splash-noise-shift {
	0%   { background-position: 0 0; }
	25%  { background-position: -60px 30px; }
	50%  { background-position: 40px -50px; }
	75%  { background-position: -20px 70px; }
	100% { background-position: 0 0; }
}

.splash__page {
	position: relative;
	z-index: 2;
	min-height: 100vh;
}

/* Main ----------------------------------------------------------------- */

.splash__main {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--space-4) var(--space-4) calc(var(--space-6) + 2rem);
}

@media (max-width: 640px) {
	.splash__main {
		padding: var(--space-3) var(--space-3) calc(var(--space-5) + 2rem);
	}
}

.splash__inner {
	width: 100%;
	max-width: 60rem;
}

.splash__headline {
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(2.75rem, 9vw, 6.5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: #FFFFFF;
	margin: 0 0 var(--space-5);
	text-wrap: balance;
}

/* Actions -------------------------------------------------------------- */

.splash__actions {
	display: flex;
	justify-content: center;
}

.splash__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.5rem;
	min-height: 44px;
	font-family: var(--f-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	color: rgba(255, 255, 255, 0.85);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius);
	transition-property: color, border-color, background, transform;
	transition-duration: 180ms;
	transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.splash__btn:hover,
.splash__btn:focus-visible {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.05);
}

.splash__btn:active {
	transform: scale(0.96);
}

/* Footer --------------------------------------------------------------- */

.splash__footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: var(--space-3) var(--space-4);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
}

.splash__footer p {
	margin: 0;
}

/* =========================================================================
   Future full-site shell (header.php / footer.php / index.php / page.php)
   ========================================================================= */

.site-header {
	border-bottom: 1px solid var(--c-line);
	background: #fff;
}

.site-header__inner,
.site-footer__inner,
.content__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: var(--space-3) var(--space-4);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.site-header__brand {
	font-family: var(--f-display);
	font-size: 1.25rem;
	color: var(--c-ink);
	font-weight: 500;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--space-3);
}

.site-nav a {
	color: var(--c-ink-soft);
	font-size: 0.9375rem;
}

.content__inner {
	padding-top: var(--space-6);
	padding-bottom: var(--space-6);
}

.site-footer {
	border-top: 1px solid var(--c-line);
	background: #fff;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	color: var(--c-muted);
}

/* =========================================================================
   Accessibility utilities
   ========================================================================= */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
