/**
 * Healthy Golden Gems — design tokens & layout
 * Trust-focused health news (not wellness-marketing aesthetic).
 */

:root {
	--hgg-primary: #0b5c8c;
	--hgg-primary-dark: #084566;
	--hgg-accent: #1a7f4b;
	--hgg-text: #1a2332;
	--hgg-text-muted: #5c6b7a;
	--hgg-border: #d8e0e8;
	--hgg-surface: #f4f7fa;
	--hgg-surface-alt: #eef3f8;
	--hgg-radius: 8px;
	--hgg-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hgg-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--hgg-content-width: 720px;
	--hgg-wide-width: 1100px;
}

body {
	color: var(--hgg-text);
}

/* Headings — editorial serif */
h1, h2, h3, .entry-title, .wp-block-post-title {
	font-family: var(--hgg-font-serif);
	font-weight: 700;
	color: var(--hgg-text);
	letter-spacing: -0.02em;
}

.site-title a,
.main-header-menu a {
	font-family: var(--hgg-font-sans);
	font-weight: 600;
}

/* Header bar accent */
.site-header {
	border-bottom: 3px solid var(--hgg-primary);
}

/* Category / meta chips */
.hgg-meta,
.wp-block-post-terms a {
	font-family: var(--hgg-font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wp-block-post-terms a {
	background: var(--hgg-surface-alt);
	color: var(--hgg-primary-dark) !important;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	text-decoration: none !important;
}

/* Homepage hero */
.hgg-hero {
	background: linear-gradient(135deg, var(--hgg-surface) 0%, #fff 55%);
	border: 1px solid var(--hgg-border);
	border-radius: var(--hgg-radius);
	padding: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: 2rem;
}

.hgg-hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin-bottom: 0.75rem;
	color: var(--hgg-primary-dark);
}

.hgg-hero p.lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--hgg-text-muted);
	max-width: 42rem;
}

.hgg-hero .hgg-tagline {
	display: inline-block;
	font-family: var(--hgg-font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hgg-accent);
	margin-bottom: 0.5rem;
}

/* Trust strip */
.hgg-trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	font-family: var(--hgg-font-sans);
	font-size: 0.875rem;
	color: var(--hgg-text-muted);
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hgg-border);
}

.hgg-trust-strip span::before {
	content: "✓ ";
	color: var(--hgg-accent);
	font-weight: 700;
}

/* Article cards on archive/home */
.hgg-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.hgg-card {
	border: 1px solid var(--hgg-border);
	border-radius: var(--hgg-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hgg-card:hover {
	border-color: var(--hgg-primary);
	box-shadow: 0 8px 24px rgba(11, 92, 140, 0.08);
}

.hgg-card-body {
	padding: 1.25rem;
}

.hgg-card h3 {
	font-size: 1.125rem;
	margin: 0.5rem 0;
}

.hgg-card h3 a {
	color: var(--hgg-text);
	text-decoration: none;
}

.hgg-card h3 a:hover {
	color: var(--hgg-primary);
}

/* In-article callouts */
.hgg-key-facts,
.wp-block-group.hgg-key-facts {
	background: var(--hgg-surface);
	border-left: 4px solid var(--hgg-primary);
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	border-radius: 0 var(--hgg-radius) var(--hgg-radius) 0;
}

.hgg-key-facts h3,
.hgg-key-facts .wp-block-heading {
	font-family: var(--hgg-font-sans);
	font-size: 0.875rem !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 0 !important;
	color: var(--hgg-primary-dark);
}

.hgg-preliminary {
	background: #fff8e6;
	border-left: 4px solid #c9a227;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	border-radius: 0 var(--hgg-radius) var(--hgg-radius) 0;
	font-size: 0.9375rem;
}

.hgg-sources {
	background: #fff;
	border: 1px solid var(--hgg-border);
	padding: 1.25rem;
	margin: 2rem 0 1rem;
	border-radius: var(--hgg-radius);
}

.hgg-sources h3 {
	font-family: var(--hgg-font-sans);
	font-size: 1rem !important;
	margin-bottom: 0.75rem;
}

.hgg-sources ol {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
}

.hgg-sources a {
	word-break: break-word;
}

/* Post footer disclaimer */
.hgg-disclaimer {
	background: var(--hgg-surface-alt);
	border: 1px solid var(--hgg-border);
	border-radius: var(--hgg-radius);
	padding: 1rem 1.25rem;
	margin-top: 2rem;
	font-size: 0.875rem;
	color: var(--hgg-text-muted);
}

.hgg-disclaimer strong {
	color: var(--hgg-text);
}

/* Footer */
.site-footer {
	background: var(--hgg-text);
	color: #c5cdd6;
	font-size: 0.875rem;
}

.site-footer a {
	color: #e8edf2;
}

/* Readable article measure */
.single-post .entry-content,
.page .entry-content {
	max-width: var(--hgg-content-width);
	margin-left: auto;
	margin-right: auto;
}

.single-post .entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.single-post .entry-content p:first-of-type {
	font-size: 1.125rem;
	color: var(--hgg-text-muted);
}

/* Buttons */
.wp-block-button__link,
.hgg-btn a {
	background: var(--hgg-primary) !important;
	border-radius: 6px !important;
	font-family: var(--hgg-font-sans);
	font-weight: 600;
	padding: 0.65rem 1.25rem !important;
}

.wp-block-button__link:hover {
	background: var(--hgg-primary-dark) !important;
}

/* Editor alignment with front */
.editor-styles-wrapper {
	font-family: var(--hgg-font-sans);
}
