@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600;7..72,700&display=swap');

:root {
	--bg: #f4efe6;
	--bg-soft: #fbf8f2;
	--bg-contrast: #1f2521;
	--surface: rgba(255, 252, 246, 0.8);
	--surface-strong: #fffdf9;
	--border: rgba(54, 50, 44, 0.14);
	--text: #1f1c19;
	--text-soft: #5c554c;
	--text-muted: #746d63;
	--accent: #1f6d5c;
	--accent-strong: #0f4c40;
	--accent-soft: rgba(31, 109, 92, 0.12);
	--shadow: 0 20px 60px rgba(54, 43, 29, 0.08);
	--radius-sm: 12px;
	--radius-md: 20px;
	--radius-lg: 28px;
	--container: 1200px;
	--reading: 760px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(31, 109, 92, 0.14), transparent 34%),
		linear-gradient(180deg, #f7f2ea 0%, #f4efe6 52%, #efe8dd 100%);
	line-height: 1.65;
}

a {
	color: inherit;
	text-decoration-color: rgba(31, 109, 92, 0.35);
	text-underline-offset: 0.15em;
}

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

.container {
	width: min(calc(100% - 2rem), var(--container));
	margin: 0 auto;
}

.site-main {
	padding: 2rem 0 5rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 1rem 0;
	backdrop-filter: blur(14px);
	background: rgba(244, 239, 230, 0.78);
	border-bottom: 1px solid rgba(54, 50, 44, 0.08);
}

.main-nav,
.footer-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.logo {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	text-decoration: none;
}

.logo-mark,
.footer-title {
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.logo-subtitle,
.footer-copy {
	font-size: 0.92rem;
	color: var(--text-soft);
}

.logo-metric {
	font-size: 0.84rem;
	color: var(--text-muted);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links a {
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--text-soft);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a.is-current,
.nav-links a[aria-current="page"] {
	background: var(--surface-strong);
	color: var(--text);
	box-shadow: inset 0 0 0 1px rgba(31, 109, 92, 0.15);
}

.nav-links li {
	list-style: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	background: var(--surface-strong);
	color: var(--text);
	transform: translateY(-1px);
}

.hero-panel,
.section-block,
.article-shell,
.not-found-shell {
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.hero-panel {
	margin: 0 auto 2rem;
	padding: 0;
}

.hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 2rem;
	padding: 3rem 0;
}

.hero-copy,
.hero-note,
.article-shell,
.not-found-shell {
	padding: 2rem;
}

.hero-copy h1,
.article-header h1,
.not-found-shell h1 {
	margin: 0;
	font-family: 'Literata', serif;
	font-size: clamp(2.3rem, 4vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.hero-text,
.article-lead,
.hub-card p,
.empty-state,
.not-found-shell p {
	font-size: 1.05rem;
	color: var(--text-soft);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.5rem;
}

.button-primary,
.button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.35rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
	background: var(--accent);
	color: #fff;
}

.button-secondary {
	background: var(--surface-strong);
	color: var(--text);
	border: 1px solid var(--border);
}

.button-primary:hover,
.button-secondary:hover {
	transform: translateY(-1px);
}

.hero-note {
	align-self: end;
	border-radius: var(--radius-lg);
	background: var(--bg-contrast);
	color: rgba(255, 255, 255, 0.9);
}

.hero-note p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}

.section-block,
.article-shell,
.not-found-shell {
	border-radius: var(--radius-lg);
}

.section-block {
	margin-top: 2rem;
	padding: 2rem;
}

.section-block-muted {
	background: rgba(255, 250, 244, 0.94);
}

.section-block-inline {
	margin-top: 2rem;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.section-heading {
	margin-bottom: 1.4rem;
}

.section-heading h2 {
	margin: 0;
	font-family: 'Literata', serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	line-height: 1.1;
}

.section-copy {
	margin: 0.65rem 0 0;
	max-width: 48rem;
	color: var(--text-soft);
}

.eyebrow,
.card-eyebrow {
	margin: 0 0 0.8rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.hub-grid,
[data-type="cards-grid"] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
}

.hub-card,
.card,
[data-type="card"] {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.3rem;
	border-radius: var(--radius-md);
	background: var(--surface-strong);
	border: 1px solid var(--border);
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(54, 43, 29, 0.05);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover,
.card:hover,
[data-type="card"]:hover {
	transform: translateY(-3px);
	border-color: rgba(31, 109, 92, 0.28);
	box-shadow: 0 18px 38px rgba(54, 43, 29, 0.1);
}

.hub-card-compact {
	justify-content: space-between;
}

.hub-card h3,
[data-element="card-title"] {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--text);
}

.hub-card p:not(.card-eyebrow):not(.card-link-hint):not(.card-meta),
[data-element="card-description"] {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.9em;
}

.card-meta {
	margin-top: auto;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-strong);
}

.card-link-hint {
	margin-top: auto;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--accent-strong);
}

.no-results {
	margin: 2rem 0 0;
	color: var(--text-soft);
}

.article-shell {
	max-width: min(100%, 960px);
	margin: 0 auto;
}

.article-shell-reading {
	max-width: min(100%, 980px);
}

.article-header {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.article-meta,
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	font-size: 0.95rem;
	color: var(--text-muted);
}

.breadcrumb a {
	text-decoration: none;
}

.prose {
	max-width: var(--reading);
	margin: 0 auto;
	padding-top: 1.8rem;
	font-size: 1.08rem;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose table,
.prose blockquote,
.prose figure {
	margin: 1.2rem 0;
}

.prose h2,
.prose h3,
.prose h4 {
	margin: 2.2rem 0 0.8rem;
	font-family: 'Literata', serif;
	line-height: 1.15;
}

.prose h2 {
	font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.prose h3 {
	font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.prose ul,
.prose ol {
	padding-left: 1.25rem;
}

.prose li {
	margin: 0.65rem 0 0.65rem 1.1rem;
}

.prose blockquote {
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--accent);
	background: rgba(31, 109, 92, 0.08);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-soft);
}

.prose pre,
.prose code {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.prose pre {
	padding: 1rem;
	overflow-x: auto;
	background: #1f2521;
	color: #f7f7f3;
	border-radius: var(--radius-sm);
}

.prose :not(pre) > code {
	padding: 0.15rem 0.35rem;
	border-radius: 0.45rem;
	background: rgba(31, 109, 92, 0.08);
	color: var(--accent-strong);
}

article table {
	width: 100%;
	display: block;
	overflow-x: auto;
}

.prose table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
	background: var(--surface-strong);
}

.prose th,
.prose td,
.wp-block-table th,
.wp-block-table td {
	padding: 0.8rem;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.prose hr {
	border: 0;
	height: 1px;
	margin: 2rem 0;
	background: var(--border);
}

.not-found-shell {
	max-width: min(100%, 900px);
	margin: 0 auto;
}

.site-footer {
	padding: 1.5rem 0 3rem;
	color: var(--text-soft);
}

.footer-brand,
.footer-column {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-label {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-trust {
	margin: 0;
	max-width: 28rem;
}

.footer-start-links {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-start-links a {
	text-decoration: none;
}

@media (max-width: 860px) {
	.hero-layout,
	.main-nav,
	.footer-layout {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-copy,
	.hero-note,
	.article-shell,
	.not-found-shell,
	.section-block {
		padding: 1.4rem;
	}
}

@media (max-width: 640px) {
	.site-main {
		padding-top: 1rem;
	}

	.container {
		width: min(calc(100% - 1rem), var(--container));
	}

	.logo {
		flex-direction: row;
		align-items: baseline;
		gap: 0.75rem;
		flex-wrap: wrap;
	}

	.logo-metric {
		display: none;
	}

	.nav-links {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0.5rem;
		padding-bottom: 0.25rem;
	}

	.nav-links::-webkit-scrollbar {
		display: none;
	}

	.nav-links a {
		flex-shrink: 0;
	}

	.prose {
		font-size: 1rem;
	}
}
