/**
 * Standards FM — base styles.
 *
 * Foundation tokens + minimal chrome. Visual design layers on top later.
 */

@font-face {
	font-family: 'Bozon';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/bozon-500.woff2) format('woff2');
}

@font-face {
	font-family: 'Bozon';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/bozon-700.woff2) format('woff2');
}

:root {
	-webkit-tap-highlight-color: transparent;
	--sfm-navy: #001357;
	--sfm-navy-deep: #00103f;
	--sfm-green: #01a44c;
	--sfm-green-dark: #1e4b06;
	--sfm-ink: #1c1c1e;
	--sfm-muted: #6b7191;
	--sfm-line: rgba(0, 19, 87, 0.12);
	--sfm-bg: #ffffff;
	--sfm-container: 1200px;
	--sfm-font-sans: 'Bozon', -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial, sans-serif;
	--sfm-text-xs: 0.8125rem;
	--sfm-text-sm: 0.875rem;
	--sfm-text-md: 0.9375rem;
	--sfm-text-base: 1rem;
	--sfm-text-lg: 1.125rem;
	--sfm-text-xl: clamp(1.25rem, 1.45vw, 1.375rem);
	--sfm-text-2xl: clamp(1.5rem, 2vw, 1.875rem);
	--sfm-text-3xl: clamp(2rem, 3vw, 3rem);
	--sfm-weight-medium: 500;
	--sfm-weight-bold: 700;
	--sfm-leading-tight: 1.15;
	--sfm-leading-heading: 1.25;
	--sfm-leading-body: 1.65;
}

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

body {
	margin: 0;
	font-family: var(--sfm-font-sans);
	font-weight: var(--sfm-weight-medium);
	font-size: var(--sfm-text-base);
	line-height: var(--sfm-leading-body);
	color: var(--sfm-ink);
	background: var(--sfm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--sfm-navy);
	text-decoration: none;
}

a:hover {
	color: var(--sfm-green-dark);
}

/* Accessibility ---------------------------------------------------------- */

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 10px 16px;
	background: var(--sfm-navy);
	color: #fff;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	color: #fff;
}

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

.site-main {
	max-width: var(--sfm-container);
	margin: 0 auto;
	padding: 48px 24px;
}

.post-list {
	display: grid;
	gap: 40px;
}

.post-card__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 4vw, 30px);
	line-height: 1.25;
}

.post-card__excerpt {
	color: var(--sfm-muted);
}

.post-card__meta {
	margin-top: 12px;
	font-size: 13px;
	color: var(--sfm-muted);
}

.pagination,
.nav-links {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 48px;
}

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

.site-footer {
	border-top: 1px solid var(--sfm-line);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--sfm-container);
	margin: 0 auto;
	padding: 24px;
}

.site-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--sfm-muted);
}

.site-footer__list {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}
