/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/inter-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('../fonts/source-serif-variable.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
	--ever: #24382C;
	--ever-mid: #1E2C22;
	--ever-deep: #161F18;
	--brass: #B4894A;
	--brass-soft: #C8A668;
	--brass-deep: #8C6A33;
	--cream: #F3EDE1;
	--cream-2: #ECE4D4;
	--warm: #FBF8F1;
	--ink: #23201B;
	--ink-soft: #5F5848;
	--ink-faint: #8A7C62;
	--line: #DACFBC;
	--line-dark: rgba(243, 237, 225, 0.16);

	--font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--radius: 4px;
	--max-width: 1120px;
	--narrow-width: 860px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--ever); }
a:hover { color: var(--brass-deep); }
a, .btn { transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 2.4rem 0 1rem;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.35rem; }

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

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section--narrow { max-width: var(--narrow-width); margin-left: auto; margin-right: auto; }
.section--page { padding: 52px 0 88px; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.01em;
	border: none;
	border-radius: var(--radius);
	padding: 15px 26px;
	cursor: pointer;
	text-decoration: none;
}
.btn--primary, .wp-block-button__link {
	background: var(--ever);
	color: var(--cream) !important;
}
.btn--primary:hover, .wp-block-button__link:hover {
	background: var(--ever-mid);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -10px rgba(35, 32, 27, 0.5);
}
.btn--brass { background: var(--brass); color: #1C1508 !important; }
.btn--brass:hover { background: var(--brass-soft); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
	background: var(--ever-deep);
	color: var(--cream);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.site-logo {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	color: var(--cream);
	text-decoration: none;
	white-space: nowrap;
}
.site-logo b { color: var(--brass-soft); font-weight: 600; }
.site-logo:hover { color: var(--cream); }

.site-nav__list {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.site-nav__list a {
	color: rgba(243, 237, 225, 0.8);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.site-nav__list a:hover { color: var(--brass-soft); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--brass-soft); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}
.nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--cream);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Page hero band ---------- */
.page-hero {
	background:
		radial-gradient(120% 90% at 80% -10%, #2B4234 0%, rgba(43, 66, 52, 0) 55%),
		radial-gradient(90% 70% at 8% 112%, #20301F 0%, rgba(32, 48, 31, 0) 60%),
		var(--ever-deep);
	color: var(--cream);
	padding: 76px 0 60px;
}
.page-hero .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--brass-soft);
	margin: 0 0 14px;
}
.page-hero__title {
	color: var(--cream);
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 500;
	max-width: 18ch;
}

/* ---------- Page content ---------- */
.page-title { margin-bottom: 1.4rem; }
.page-content p, .page-content li { font-size: 1.07rem; color: var(--ink); }
.page-content li { margin-bottom: 0.4rem; }
.page-content em { color: var(--ink-soft); }
.page-content hr, .wp-block-separator {
	border: none;
	border-top: 1px solid var(--line);
	margin: 3rem auto;
}
.page-content img { border-radius: var(--radius); }
.page-content .is-style-rounded img { border-radius: 50%; }
.page-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.page-content figure.aligncenter { display: table; }

.wp-block-pullquote {
	border-left: 4px solid var(--brass);
	background: var(--warm);
	border-radius: var(--radius);
	padding: 30px 34px;
	margin: 2.6rem 0;
	text-align: left;
}
.wp-block-pullquote blockquote { margin: 0; border: none; padding: 0; }
.wp-block-pullquote p {
	font-family: var(--font-display);
	font-size: 1.45rem !important;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ever);
	margin: 0;
}
.page-content blockquote:not(.wp-block-pullquote blockquote) {
	border-left: 3px solid var(--brass);
	margin: 2rem 0;
	padding: 4px 0 4px 22px;
	color: var(--ink-soft);
}

.wp-block-buttons { margin: 1.6rem 0; }
.wp-block-spacer { max-height: 32px; }

/* ---------- Field Notes (reviewed posts on hubs) ---------- */
.field-notes {
	margin-top: 3.2rem;
	padding-top: 2.4rem;
	border-top: 1px solid var(--line);
}
.field-notes__title { margin-top: 0; }
.field-notes__sub {
	color: var(--ink-soft);
	margin: 0 0 1.6rem;
	font-style: italic;
}
.field-notes__item {
	border-left: 3px solid var(--brass);
	background: var(--warm);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin-bottom: 16px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.field-notes__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -14px rgba(35, 32, 27, 0.35);
}
.field-notes__item h3 { margin: 0 0 6px; font-size: 1.2rem; }
.field-notes__item h3 a { text-decoration: none; }
.field-notes__item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Archive fallback (old posts) ---------- */
.archive-item { border-top: 1px solid var(--line); padding: 26px 0; }
.archive-item:last-child { border-bottom: 1px solid var(--line); }
.archive-item h2 { margin: 0 0 8px; font-size: 1.35rem; }
.archive-item h2 a { text-decoration: none; }
.archive-item p { margin: 0; color: var(--ink-soft); }
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ever-deep);
	color: rgba(243, 237, 225, 0.66);
	margin-top: 40px;
	padding: 56px 0 40px;
	font-size: 14px;
}
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand .site-logo { font-size: 19px; }
.site-footer__brand p { margin: 10px 0 0; max-width: 44ch; }
.site-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__nav a {
	color: rgba(243, 237, 225, 0.8);
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
}
.site-footer__nav a:hover { color: var(--brass-soft); }
.site-footer__bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.site-footer__bottom p { margin: 0 0 6px; }
.site-footer__bottom em { font-family: var(--font-display); color: var(--brass-soft); }

/* ---------- Scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	a, .btn, .wp-block-button__link { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.section { padding: 56px 0; }
	.section--page { padding: 44px 0 64px; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.page-hero { padding: 52px 0 40px; }

	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--ever-deep);
		padding: 6px 20px 22px;
		display: none;
		z-index: 40;
		box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a {
		display: block;
		padding: 13px 0;
		border-bottom: 1px solid var(--line-dark);
		font-size: 14px;
	}
	.site-header__inner { position: relative; }
	.site-header { position: relative; }

	.wp-block-pullquote { padding: 22px 24px; }
	.wp-block-pullquote p { font-size: 1.2rem !important; }
}
