/*
 * GOGFITS design tokens and base styles.
 * Beam & Blueprint — dark stage surfaces + light reading surfaces.
 */

:root {
	/* Color: light system */
	--gogfits-color-background: #F4F6F8;
	--gogfits-color-surface: #FFFFFF;
	--gogfits-color-surface-alt: #E9EDF2;
	--gogfits-color-text: #0B1220;
	--gogfits-color-muted: #4F5B6A;
	--gogfits-color-border: #D7DEE7;
	--gogfits-color-link: #075985;

	/* Color: dark system */
	--gogfits-color-dark-background: #070B12;
	--gogfits-color-dark-surface: #0B1220;
	--gogfits-color-dark-surface-alt: #111B2C;
	--gogfits-color-dark-text: #F1F4F8;
	--gogfits-color-dark-muted: #C4D0DE;
	--gogfits-color-dark-border: #253146;
	--gogfits-color-dark-link: #7DD3FC;

	/* Color: brand */
	--gogfits-color-brand-ink: #070B12;
	--gogfits-color-brand-navy: #0B1220;
	--gogfits-color-brand-amber: #F5A623;
	--gogfits-color-brand-amber-bright: #FFC24B;
	--gogfits-color-brand-cyan: #38BDF8;
	--gogfits-color-brand-on-amber: #000000;
	--gogfits-color-brand-on-cyan: #000000;
	--gogfits-color-on-primary: #FFFFFF;

	/* Color: status + focus */
	--gogfits-color-success: #1A7F37;
	--gogfits-color-warning: #B45309;
	--gogfits-color-danger: #B42318;
	--gogfits-color-focus-light: #1D4ED8;
	--gogfits-color-focus-dark: #93C5FD;

	/* Typography */
	--gogfits-font-display: "Space Grotesk", "Inter", sans-serif;
	--gogfits-font-body: "Inter", system-ui, sans-serif;
	--gogfits-font-mono: "IBM Plex Mono", ui-monospace, monospace;

	/* Spacing */
	--gogfits-space-2xs: 2px;
	--gogfits-space-xs: 4px;
	--gogfits-space-sm: 8px;
	--gogfits-space-md: 16px;
	--gogfits-space-lg: 24px;
	--gogfits-space-xl: 32px;
	--gogfits-space-2xl: 48px;
	--gogfits-space-3xl: 64px;
	--gogfits-space-4xl: 96px;
	--gogfits-space-section: 120px;

	/* Radius */
	--gogfits-radius-xs: 2px;
	--gogfits-radius-sm: 4px;
	--gogfits-radius-md: 8px;
	--gogfits-radius-lg: 12px;
	--gogfits-radius-pill: 999px;

	/* Motion */
	--gogfits-motion-fast: 150ms;
	--gogfits-motion-base: 250ms;
	--gogfits-motion-slow: 400ms;
	--gogfits-motion-reveal: 600ms;

	/* Layout */
	--gogfits-content-max: 1200px;
	--gogfits-wide-max: 1440px;
	--gogfits-gutter: 24px;
	--gogfits-gutter-mobile: 16px;
}

/* TODO: self-hosted @font-face declarations for Space Grotesk, Inter, IBM Plex Mono. */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--gogfits-color-background);
	color: var(--gogfits-color-text);
	font-family: var(--gogfits-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--gogfits-color-link);
}

h1,
h2,
h3,
h4 {
	font-family: var(--gogfits-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--gogfits-color-text);
}

.container {
	width: 100%;
	max-width: var(--gogfits-content-max);
	margin-inline: auto;
	padding-inline: var(--gogfits-gutter);
}

.section {
	padding-block: var(--gogfits-space-3xl);
}

.section--dark {
	background: var(--gogfits-color-dark-surface);
	color: var(--gogfits-color-dark-text);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--gogfits-color-dark-text);
}

.eyebrow {
	font-family: var(--gogfits-font-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.placeholder-note {
	font-family: var(--gogfits-font-mono);
	font-size: 0.8125rem;
	color: var(--gogfits-color-muted);
}

.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;
}

.alignleft {
	float: left;
	margin-right: var(--gogfits-space-md);
}

.alignright {
	float: right;
	margin-left: var(--gogfits-space-md);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-family: var(--gogfits-font-mono);
	font-size: 0.8125rem;
	color: var(--gogfits-color-muted);
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

@media (max-width: 768px) {
	.container {
		padding-inline: var(--gogfits-gutter-mobile);
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
