/* Task 05F — editorial, static content, search and 404. */
body.blog,
body.single-post,
body.archive.category,
body.archive.tag,
body.search,
body.error404,
body.page {
	--hhm-content-ink: #171a18;
	--hhm-content-muted: #69706b;
	--hhm-content-line: #d8d6cc;
	--hhm-content-surface: #fdfdfa;
	--hhm-content-soft: #f1f0ea;
	--hhm-content-gold: #d4af37;
}

.hhm-content-archive,
.hhm-content-search,
.hhm-article,
.hhm-related-articles,
.hhm-not-found { background: #f5f4f0; }

.hhm-content-archive__hero {
	padding: clamp(52px, 8vw, 104px) 0;
	background: linear-gradient(126deg, #0e0f13 0%, #14161d 68%, #373226 100%);
	color: #fff;
}
.hhm-content-archive__hero > .hhm-container {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, .35fr);
	gap: clamp(30px, 7vw, 90px);
	align-items: end;
}
.hhm-content-archive__hero > .hhm-container > div > span,
.hhm-content-search > .hhm-container > header > span,
.hhm-related-articles header > span {
	display: block;
	margin-bottom: 10px;
	color: #e9c860;
	font-size: .7rem;
	font-weight: 850;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.hhm-content-archive__hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(3rem, 7vw, 6.3rem);
	line-height: .93;
	letter-spacing: -.06em;
}
body.hhm-site .hhm-content-archive__hero h1,
body.hhm-site .hhm-article__header h1,
body.hhm-site .hhm-not-found h1 { color: #fff !important; }
.hhm-content-archive__hero > .hhm-container > div > div {
	max-width: 62ch;
	margin-top: 20px;
	color: #c2c4be;
	font-size: 1rem;
	line-height: 1.7;
}
.hhm-content-archive__hero aside {
	padding: 23px;
	border: 1px solid #484e48;
	border-radius: 16px;
	background: rgba(255, 255, 255, .05);
}
.hhm-content-archive__hero aside strong { display: block; color: #e9c860; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; }
.hhm-content-archive__hero aside span { color: #d5d6d1; font-size: .79rem; font-weight: 750; }

.hhm-content-categories {
	display: flex;
	gap: 8px;
	margin-block: 24px 30px;
	padding-bottom: 4px;
	overflow-x: auto;
}
.hhm-content-categories a {
	display: inline-flex;
	flex: 0 0 auto;
	min-height: 40px;
	gap: 8px;
	align-items: center;
	padding: 8px 13px;
	border: 1px solid var(--hhm-content-line);
	border-radius: 999px;
	background: var(--hhm-content-surface);
	color: #6f7379;
	font-size: .76rem;
	font-weight: 750;
}
body.hhm-site .hhm-content-categories a { color: #6f7379 !important; }
.hhm-content-categories a:hover,
.hhm-content-categories a.is-active { border-color: var(--hhm-content-ink); background: var(--hhm-content-ink); color: #fff; }
body.hhm-site .hhm-content-categories a:hover,
body.hhm-site .hhm-content-categories a.is-active { color: #fff !important; }
.hhm-content-categories small { color: #9c7e3c; font-weight: 850; }

.hhm-article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	padding-bottom: clamp(58px, 8vw, 96px);
}
.hhm-article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hhm-content-line);
	border-radius: 16px;
	background: var(--hhm-content-surface);
	box-shadow: 0 14px 38px rgba(28, 31, 28, .045);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hhm-article-card:hover {
	transform: translateY(-3px);
	border-color: #bba05e;
	box-shadow: 0 20px 48px rgba(28, 31, 28, .09);
}
.hhm-article-card--featured {
	grid-column: span 2;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}
.hhm-article-card__media {
	display: block;
	position: relative;
	min-height: 225px;
	overflow: hidden;
	background: #e9e7df;
}
.hhm-article-card--featured .hhm-article-card__media { min-height: 440px; }
.hhm-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hhm-article-card:hover .hhm-article-card__media img { transform: scale(1.025); }
.hhm-article-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: inherit;
	place-items: center;
	background:
		radial-gradient(circle at 75% 25%, rgba(212, 175, 55, .27), transparent 24%),
		linear-gradient(135deg, #1b211d, #343a33);
	color: #e9c860;
}
.hhm-article-card__placeholder svg { width: 48px; height: 48px; }
.hhm-article-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.hhm-article-card--featured .hhm-article-card__body { justify-content: center; padding: clamp(24px, 4vw, 42px); }
.hhm-article-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 12px;
	color: var(--hhm-content-muted);
	font-size: .66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .045em;
}
.hhm-article-card__meta a { color: #886b32; font-weight: 850; }
.hhm-article-card h2 {
	margin: 14px 0 10px;
	color: var(--hhm-content-ink);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.17;
	letter-spacing: -.025em;
}
.hhm-article-card--featured h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
.hhm-article-card h2 a { color: inherit; }
.hhm-article-card p { margin: 0; color: #626a64; font-size: .83rem; line-height: 1.65; }
.hhm-article-card__read {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: auto;
	padding-top: 22px;
	color: var(--hhm-content-ink);
	font-size: .75rem;
	font-weight: 850;
}
body.hhm-site .hhm-article-card__read { color: var(--hhm-content-ink) !important; }
.hhm-article-card__read svg { width: 16px; height: 16px; }

.hhm-content-pagination { padding: 0 0 70px; }
.hhm-content-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hhm-content-pagination .page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	border: 1px solid var(--hhm-content-line);
	border-radius: 8px;
	background: var(--hhm-content-surface);
	color: #6a6e75;
	font-size: .76rem;
	font-weight: 800;
}
.hhm-content-pagination .page-numbers.current,
.hhm-content-pagination .page-numbers:hover { border-color: var(--hhm-content-ink); background: var(--hhm-content-ink); color: #fff; }

/* Single article. */
.hhm-article__header {
	padding: clamp(50px, 8vw, 104px) 0 clamp(76px, 10vw, 132px);
	background: linear-gradient(125deg, #0e0f13, #14161d 70%, #373225);
	color: #fff;
}
.hhm-article__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 34px;
	color: #9a9da2;
	font-size: .72rem;
}
.hhm-article__breadcrumb a { color: #c9ceca; }
.hhm-article__category {
	display: inline-flex;
	margin-bottom: 17px;
	color: #e9c860;
	font-size: .7rem;
	font-weight: 850;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.hhm-article__header h1 {
	max-width: 1080px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.7rem, 6vw, 5.8rem);
	line-height: .98;
	letter-spacing: -.055em;
}
.hhm-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 28px;
	color: #b8bab4;
	font-size: .76rem;
	font-weight: 700;
}
.hhm-article__featured {
	margin-top: clamp(-66px, -6vw, -42px);
}
.hhm-article__featured img {
	width: 100%;
	max-height: 680px;
	border: 7px solid #f5f4f0;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 22px 60px rgba(22, 25, 22, .17);
}
.hhm-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 780px) minmax(240px, 310px);
	gap: clamp(34px, 7vw, 90px);
	align-items: start;
	justify-content: center;
	padding-block: clamp(50px, 8vw, 100px);
}
.hhm-article__body {
	min-width: 0;
	color: #5f6369;
	font-size: clamp(1rem, 1.15vw, 1.08rem);
	line-height: 1.82;
}
.hhm-article__body > :first-child { margin-top: 0; }
.hhm-article__body h2,
.hhm-article__body h3,
.hhm-article__body h4 {
	margin: 1.8em 0 .65em;
	color: var(--hhm-content-ink);
	line-height: 1.15;
	letter-spacing: -.028em;
	scroll-margin-top: 120px;
}
.hhm-article__body h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.hhm-article__body h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.hhm-article__body p { margin: 0 0 1.35em; }
.hhm-article__body a {
	color: #775d28;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.hhm-article__body ul,
.hhm-article__body ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.hhm-article__body li + li { margin-top: .5em; }
.hhm-article__body blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border-left: 4px solid var(--hhm-content-gold);
	border-radius: 0 11px 11px 0;
	background: #ebe8dc;
	color: #55595f;
	font-size: 1.08em;
}
.hhm-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.hhm-article__body figure { max-width: 100%; margin: 1.8em 0; }
.hhm-article__body figcaption { margin-top: 8px; color: var(--hhm-content-muted); font-size: .72rem; text-align: center; }
.hhm-article__body table {
	display: block;
	max-width: 100%;
	margin: 1.8em 0;
	overflow-x: auto;
	border: 1px solid var(--hhm-content-line);
	border-collapse: collapse;
	border-radius: 10px;
	background: var(--hhm-content-surface);
}
.hhm-article__body th,
.hhm-article__body td { padding: 11px 13px; border: 1px solid var(--hhm-content-line); font-size: .82rem; }
.hhm-article__body th { background: #eeece4; color: var(--hhm-content-ink); }
.hhm-article__body .ez-toc-container {
	margin: 0 0 34px !important;
	padding: 20px !important;
	border: 1px solid var(--hhm-content-line) !important;
	border-radius: 12px !important;
	background: var(--hhm-content-surface) !important;
	box-shadow: none !important;
}
.hhm-article-toc {
	margin: 0 0 34px;
	padding: 20px;
	border: 1px solid var(--hhm-content-line);
	border-radius: 12px;
	background: var(--hhm-content-surface);
}
.hhm-article-toc > strong { display: block; margin-bottom: 12px; color: var(--hhm-content-ink); font-size: .88rem; }
.hhm-article-toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px 24px;
	margin: 0;
	padding-left: 1.25em;
}
.hhm-article-toc li { margin: 0 !important; color: #c39a2e; font-size: .72rem; }
.hhm-article-toc a { color: #70747a; font-size: .78rem; font-weight: 700; text-decoration: none; }
.hhm-article-toc a:hover { color: #9d822f; text-decoration: underline; }
.hhm-article__body .ez-toc-title-container { color: var(--hhm-content-ink); font-weight: 850; }
.hhm-article__body .ez-toc-list a { color: #70747a; font-size: .8rem; font-weight: 650; text-decoration: none; }
.hhm-article__aside {
	position: sticky;
	top: 110px;
	padding: 24px;
	border: 1px solid #343a35;
	border-radius: 15px;
	background: #1b201c;
	color: #fff;
}
.hhm-article__aside > span { color: #e9c860; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hhm-article__aside > strong { display: block; margin: 13px 0 22px; font-size: 1.1rem; line-height: 1.4; }
.hhm-article__aside a {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	border-top: 1px solid #3d443e;
	color: #fff;
	font-size: .76rem;
	font-weight: 800;
}
.hhm-article__aside svg { width: 15px; height: 15px; }
.hhm-article-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding-bottom: 70px;
}
.hhm-article-navigation a {
	display: flex;
	min-height: 110px;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	border: 1px solid var(--hhm-content-line);
	border-radius: 13px;
	background: var(--hhm-content-surface);
	color: var(--hhm-content-ink);
}
.hhm-article-navigation div:last-child { text-align: right; }
.hhm-article-navigation small { color: #947637; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.hhm-article-navigation strong { margin-top: 5px; font-size: .9rem; line-height: 1.35; }
.hhm-related-articles { padding: clamp(58px, 8vw, 90px) 0 0; background: #ebe8dd; }
.hhm-related-articles header { margin-bottom: 24px; }
.hhm-related-articles header > span { color: #8d6d2f; }
.hhm-related-articles h2 { margin: 0; color: var(--hhm-content-ink); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.hhm-article-grid--related { padding-bottom: 75px; }
.hhm-article-comments { padding-block: 50px; }

/* General content search. */
.hhm-content-search { padding: clamp(48px, 7vw, 88px) 0; min-height: 65vh; }
.hhm-content-search > .hhm-container > header {
	margin-bottom: 30px;
	padding: clamp(28px, 5vw, 58px);
	border-radius: 18px;
	background: #1a1f1b;
	color: #fff;
}
.hhm-content-search h1 { margin: 0 0 23px; color: #fff !important; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.045em; }
.hhm-content-search form { display: flex; max-width: 720px; }
.hhm-content-search input {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 11px 14px;
	border: 1px solid #505750;
	border-radius: 9px 0 0 9px;
	background: #fff;
	color: var(--hhm-content-ink);
}
.hhm-content-search button {
	min-height: 50px;
	padding: 10px 20px;
	border: 0;
	border-radius: 0 9px 9px 0;
	background: #d4af37;
	color: #181b18;
	font-weight: 850;
}
.hhm-content-search__results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hhm-content-search__results article {
	padding: 24px;
	border: 1px solid var(--hhm-content-line);
	border-radius: 13px;
	background: var(--hhm-content-surface);
}
.hhm-content-search__results small { color: #937537; font-weight: 850; text-transform: uppercase; }
.hhm-content-search__results h2 { margin: 10px 0; font-size: 1.25rem; }
.hhm-content-search__results h2 a { color: var(--hhm-content-ink); }
.hhm-content-search__results p { margin: 0; color: #646b65; font-size: .82rem; line-height: 1.6; }
.hhm-content-empty { margin-bottom: 70px; padding: 54px; border: 1px solid var(--hhm-content-line); border-radius: 16px; background: var(--hhm-content-surface); text-align: center; }
.hhm-content-empty h2 { margin-top: 0; color: var(--hhm-content-ink); }

/* Static pages using the modern page.php shell. */
body.page .hhm-standard-page { padding: 24px 0 74px; background: #f5f4f0; }
body.page .hhm-standard-page__breadcrumb {
	display: flex;
	gap: 9px;
	margin-bottom: 18px;
	color: #747b76;
	font-size: .78rem;
}
body.page .hhm-standard-page__breadcrumb a { color: #454c47; }
body.page .hhm-standard-page__hero {
	margin-bottom: 25px;
	padding: clamp(28px, 5vw, 58px);
	border-radius: 18px;
	background: #1a1f1b;
}
body.page .hhm-standard-page__hero > span { display: block; margin-bottom: 9px; color: #e9c860; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
body.page .hhm-standard-page__hero h1 { margin: 0; color: #fff !important; font-size: clamp(2.1rem, 4.5vw, 4rem); letter-spacing: -.045em; }
body.page .hhm-standard-page__content {
	padding: clamp(24px, 5vw, 56px);
	border: 1px solid var(--hhm-content-line);
	border-radius: 16px;
	background: var(--hhm-content-surface);
	color: #5f6369;
	line-height: 1.75;
}
body.page .hhm-standard-page__content h2,
body.page .hhm-standard-page__content h3 { color: var(--hhm-content-ink); letter-spacing: -.025em; }
body.page .hhm-standard-page__content a { color: #9d822f; text-decoration: underline; text-underline-offset: 2px; }
body.page .hhm-standard-page__content img,
body.page .hhm-standard-page__content iframe { max-width: 100%; border-radius: 12px; }

/* Helpful 404. */
.hhm-not-found { min-height: 70vh; padding: clamp(48px, 8vw, 100px) 0; }
.hhm-not-found > .hhm-container {
	display: grid;
	grid-template-columns: .45fr 1fr;
	gap: clamp(30px, 7vw, 90px);
	align-items: center;
}
.hhm-not-found__code {
	color: #dedbd0;
	font-size: clamp(8rem, 19vw, 17rem);
	font-weight: 900;
	line-height: .75;
	letter-spacing: -.09em;
	writing-mode: vertical-rl;
}
.hhm-not-found section { padding: clamp(28px, 5vw, 56px); border-radius: 18px; background: #191e1a; color: #fff; }
.hhm-not-found section > span { color: #ddc57c; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hhm-not-found h1 { margin: 12px 0 18px; color: #fff; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.hhm-not-found section p { max-width: 62ch; color: #c4cac4; line-height: 1.7; }
.hhm-not-found__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hhm-not-found__actions .hhm-button--ghost { border-color: #555d56; color: #fff; }
.hhm-not-found nav {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.hhm-not-found nav a {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 3px 12px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--hhm-content-line);
	border-radius: 12px;
	background: var(--hhm-content-surface);
	color: var(--hhm-content-ink);
}
.hhm-not-found nav a > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; background: #efede4; color: #c39a2e; }
.hhm-not-found nav svg { width: 21px; height: 21px; }
.hhm-not-found nav small { color: var(--hhm-content-muted); font-size: .67rem; }

@media (max-width: 900px) {
	.hhm-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hhm-article-card--featured { grid-column: 1 / -1; }
	.hhm-article__layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 34px; }
}

@media (max-width: 700px) {
	.hhm-content-archive__hero { padding: 52px 0; }
	.hhm-content-archive__hero > .hhm-container { grid-template-columns: 1fr; }
	.hhm-content-archive__hero aside { display: inline-flex; width: fit-content; gap: 10px; align-items: baseline; }
	.hhm-content-archive__hero aside strong { font-size: 2rem; }
	.hhm-content-categories { margin-block: 17px 22px; }
	.hhm-article-grid { grid-template-columns: 1fr; gap: 11px; }
	.hhm-article-card--featured { display: flex; grid-column: auto; }
	.hhm-article-card--featured .hhm-article-card__media { min-height: 250px; }
	.hhm-article-card__media { min-height: 210px; }
	.hhm-article-card--featured h2 { font-size: 1.55rem; }
	.hhm-article__header { padding: 45px 0 76px; }
	.hhm-article__header h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
	.hhm-article__featured { margin-top: -45px; }
	.hhm-article__featured img { border-width: 4px; border-radius: 14px; }
	.hhm-article__layout { grid-template-columns: 1fr; padding-block: 42px; }
	.hhm-article-toc ol { grid-template-columns: 1fr; }
	.hhm-article__aside { position: static; }
	.hhm-article-navigation { grid-template-columns: 1fr; }
	.hhm-article-navigation div:last-child { text-align: left; }
	.hhm-content-search { padding: 35px 0; }
	.hhm-content-search__results { grid-template-columns: 1fr; }
	.hhm-content-search form { display: grid; grid-template-columns: 1fr auto; }
	body.page .hhm-standard-page { padding: 13px 0 52px; }
	body.page .hhm-standard-page__hero { padding: 24px 20px; border-radius: 14px; }
	body.page .hhm-standard-page__content { padding: 22px 17px; }
	.hhm-not-found > .hhm-container { grid-template-columns: 1fr; }
	.hhm-not-found__code { display: none; }
	.hhm-not-found section { padding: 28px 20px; }
	.hhm-not-found nav { grid-template-columns: 1fr; }
}
