/* HPHT — base stylesheet (loaded via wp_enqueue_style).
   Modern reset → tokens → layout primitives → components. */

/* ───── tokens (editorial-outdoor palette) ───── */
:root {
	/* Brand */
	--c-primary:   #1273b5;            /* slightly warmer blue */
	--c-primary-d: #0b5689;            /* darker for hover */
	--c-secondary: #4a7a2f;            /* forest green */
	--c-accent:    #d8d7b5;            /* warm sand (events cards) */
	--c-accent-2:  #ece9d4;            /* lighter sand (section bg) */
	--c-terracotta:#c75d35;            /* warm accent for chips */

	/* Neutrals */
	--c-ink:     #1f2422;
	--c-ink-2:   #4a4f4c;              /* secondary text */
	--c-muted:   #6b7066;
	--c-surface: #ffffff;
	--c-surface-2: #f8f8f4;            /* paper */
	--c-footer:  #232826;
	--c-border:  #e2e1d8;

	--ff-display: 'Poppins', system-ui, sans-serif;
	--ff-body:    'Roboto', system-ui, sans-serif;

	--space-0: 0;
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-8: 3rem;
	--space-10: 4rem;
	--space-12: 6rem;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 18px;
	--radius-pill: 9999px;

	--container-max: 1240px;
	--container-pad: clamp(1rem, 4vw, 2rem);

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

	--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--motion: 240ms;
}

/* Honour user motion preference. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0ms !important;
		transition-duration: 0ms !important;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
	/* Default 16px root. rem-based sizes are predictable. */
}

body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 1rem;               /* 16px */
	line-height: 1.65;
	color: var(--c-ink);
	background: var(--c-surface);
	-webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: var(--c-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover, a:focus-visible { color: var(--c-secondary); }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ───── accessibility ───── */
.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 !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: var(--space-3) var(--space-4);
	background: var(--c-ink);
	color: var(--c-surface);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ───── layout primitives ───── */
.hpht-container {
	width: min(100%, var(--container-max));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.hpht-stack > * + * { margin-top: var(--space-5); }

.hpht-grid {
	display: grid;
	gap: var(--space-5);
}

/* ───── typography roles ───── */
h1, h2, h3, h4 {
	font-family: var(--ff-display);
	color: var(--c-ink);
	line-height: 1.2;
}

h1 { font-size: clamp(2rem,    1.5rem + 1.8vw, 2.75rem); font-weight: 300; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);  font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 1rem;    font-weight: 600; }

.entry-content,
.entry-content p,
.entry-content li {
	font-size: 1.0625rem;        /* 17px */
	line-height: 1.7;
}
.entry-content p + p,
.entry-content p + ul,
.entry-content ul + p { margin-top: 1em; }

/* ───── buttons ───── */
.hpht-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius-md);
	font-weight: 600;
	letter-spacing: 0.02em;
	border: 1px solid transparent;
	transition: background 0.15s ease, transform 0.15s ease;
}
.hpht-btn:hover, .hpht-btn:focus-visible {
	background: var(--c-secondary);
	color: #fff;
	transform: translateY(-1px);
}
.hpht-btn--ghost {
	background: transparent;
	color: var(--c-primary);
	border-color: currentColor;
}

/* ───── post lists / cards ───── */
.post-list {
	display: grid;
	gap: var(--space-6);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.post-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	padding-bottom: var(--space-4);
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__header { padding-inline: var(--space-5); }
.post-card__title { font-size: 1.25rem; }
.post-card__title a { color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-primary); }
.post-card__meta { font-size: 0.875rem; color: var(--c-muted); margin-top: var(--space-1); }
.post-card__excerpt { padding-inline: var(--space-5); flex: 1; }
.post-card__cta { padding-inline: var(--space-5); }

/* ───── pagination ───── */
.pagination, .nav-links {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin-block: var(--space-8);
}
.pagination .page-numbers, .nav-links .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	padding: var(--space-2) var(--space-3);
	justify-content: center;
	align-items: center;
	border-radius: var(--radius-sm);
	background: #f3f4f1;
	color: var(--c-ink);
}
.pagination .current, .nav-links .current { background: var(--c-primary); color: #fff; }
