/* ==========================================================================
   Guide Me How - homepage
   Loaded only on the front page (see functions.php).
   ========================================================================== */

:root {
	--gmh-green: #007537;
	--gmh-green-dark: #005a2a;
	--gmh-brand: #408560;
	--gmh-mint: #eafffd;
	--gmh-tint: #f4f9f6;
	--gmh-ink: #1f1a1a;
	--gmh-muted: #5d6762;
	--gmh-line: #dfe9e4;
	--gmh-radius: 14px;
}

.gmh-hero,
.gmh-section,
.gmh-pagehead,
.gmh-article {
	font-family: "Inter", sans-serif;
	color: var(--gmh-ink);
}

.gmh-hero *,
.gmh-section *,
.gmh-pagehead *,
.gmh-article * {
	transition: none;
}

.gmh-hero h1,
.gmh-hero h2,
.gmh-hero h3,
.gmh-section h2,
.gmh-section h3,
.gmh-pagehead h1,
.gmh-article h2,
.gmh-article h3 {
	margin: 0;
	color: var(--gmh-ink);
}

.gmh-hero ul,
.gmh-section ul,
.gmh-pagehead ul,
.gmh-article__side ul,
.gmh-tags {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Hero ---------- */

.gmh-hero {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(64, 133, 96, .14), transparent 60%),
		var(--gmh-mint);
	padding: 72px 0 80px;
}

.gmh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.gmh-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gmh-green);
	background: #fff;
	border: 1px solid var(--gmh-line);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 22px;
}

.gmh-hero__title {
	font-size: 54px;
	line-height: 1.08;
	font-weight: 850;
	letter-spacing: -.02em;
}

.gmh-hero__title span {
	color: var(--gmh-green);
}

.gmh-hero__lead {
	margin-top: 20px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--gmh-muted);
	max-width: 34em;
}

.gmh-search {
	display: flex;
	gap: 8px;
	margin-top: 30px;
	padding: 7px;
	background: #fff;
	border: 1px solid var(--gmh-line);
	border-radius: 999px;
	box-shadow: 0 10px 30px -12px rgba(0, 80, 40, .25);
	max-width: 560px;
}

.gmh-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	padding: 10px 16px;
	color: var(--gmh-ink);
	outline: none;
}

.gmh-search button {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	background: var(--gmh-green);
	border-radius: 999px;
	padding: 12px 26px;
}

.gmh-search button:hover,
.gmh-search button:focus-visible {
	background: var(--gmh-green-dark);
}

.gmh-search:focus-within {
	border-color: var(--gmh-brand);
}

.gmh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px !important;
}

.gmh-chips a {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--gmh-ink);
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--gmh-line);
	border-radius: 999px;
	padding: 8px 15px;
}

.gmh-chips a:hover,
.gmh-chips a:focus-visible {
	border-color: var(--gmh-green);
	color: var(--gmh-green);
	background: #fff;
}

.gmh-hero__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gmh-muted);
	margin-bottom: 12px;
}

/* ---------- Sections ---------- */

.gmh-section {
	padding: 72px 0;
	background: #fff;
}

.gmh-section--tint {
	background: var(--gmh-tint);
}

.gmh-section--topic {
	padding: 56px 0;
}

.gmh-section--topic + .gmh-section--topic {
	border-top: 1px solid var(--gmh-line);
}

.gmh-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
}

.gmh-section__head h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.gmh-section__icon {
	display: inline-flex;
	color: var(--gmh-green);
}

.gmh-viewall {
	font-size: 15px;
	font-weight: 700;
	color: var(--gmh-green);
	white-space: nowrap;
}

.gmh-viewall:hover,
.gmh-viewall:focus-visible {
	text-decoration: underline;
}

/* ---------- Topics ---------- */

.gmh-topics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
}

.gmh-topic {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--gmh-line);
	border-radius: var(--gmh-radius);
	color: var(--gmh-ink);
	transition: border-color .2s, box-shadow .2s, transform .2s !important;
}

.gmh-topic:hover,
.gmh-topic:focus-visible {
	border-color: var(--gmh-brand);
	box-shadow: 0 14px 30px -18px rgba(0, 80, 40, .45);
	transform: translateY(-2px);
}

.gmh-topic__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	color: var(--gmh-green);
	background: var(--gmh-mint);
	margin-bottom: 6px;
}

.gmh-topic__name {
	font-size: 19px;
	font-weight: 750;
}

.gmh-topic__desc {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--gmh-muted);
	flex: 1;
}

.gmh-topic__count {
	font-size: 14px;
	font-weight: 700;
	color: var(--gmh-green);
	margin-top: 4px;
}

/* ---------- Cards ---------- */

.gmh-grid {
	display: grid;
	gap: 28px;
}

.gmh-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gmh-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gmh-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gmh-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--gmh-radius);
	overflow: hidden;
	background: var(--gmh-line);
}

.gmh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease !important;
}

.gmh-card:hover .gmh-card__media img {
	transform: scale(1.04);
}

.gmh-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 16px;
}

.gmh-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gmh-green);
	background: var(--gmh-mint);
	border-radius: 999px;
	padding: 4px 10px;
}

.gmh-pill:hover,
.gmh-pill:focus-visible {
	background: var(--gmh-green);
	color: #fff;
}

.gmh-card__title {
	font-size: 19px !important;
	line-height: 1.35;
	font-weight: 750;
}

.gmh-card__title a {
	color: var(--gmh-ink);
}

.gmh-card__title a:hover,
.gmh-card__title a:focus-visible {
	color: var(--gmh-green);
}

.gmh-card__excerpt {
	font-size: 16px;
	line-height: 1.6;
	color: var(--gmh-muted);
}

.gmh-card__meta {
	font-size: 13.5px;
	color: var(--gmh-muted);
}

/* Large card (hero) */
.gmh-card--large {
	background: #fff;
	border-radius: calc(var(--gmh-radius) + 4px);
	padding: 12px;
	box-shadow: 0 24px 50px -26px rgba(0, 60, 30, .45);
}

.gmh-card--large .gmh-card__media {
	aspect-ratio: 16 / 10;
}

.gmh-card--large .gmh-card__body {
	padding: 18px 12px 10px;
}

.gmh-card--large .gmh-card__title {
	font-size: 26px !important;
	line-height: 1.25;
}

/* Compact card (topic rows) */
.gmh-card--compact .gmh-card__title {
	font-size: 17px !important;
}

.gmh-card--compact .gmh-pill {
	display: none;
}

/* ---------- Load more ---------- */

.gmh-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.gmh-loadmore button {
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--gmh-green);
	background: #fff;
	border: 2px solid var(--gmh-green);
	border-radius: 999px;
	padding: 13px 34px;
}

.gmh-loadmore button:hover,
.gmh-loadmore button:focus-visible {
	color: #fff;
	background: var(--gmh-green);
}

/* ---------- Accessibility ---------- */

.gmh-hero a:focus-visible,
.gmh-section a:focus-visible,
.gmh-hero button:focus-visible,
.gmh-section button:focus-visible {
	outline: 3px solid rgba(0, 117, 55, .45);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Inner pages: page headers, articles, archives, search
   ========================================================================== */

.gmh-narrow {
	max-width: 860px;
}

/* ---------- Page header ---------- */

.gmh-pagehead {
	background:
		radial-gradient(900px 300px at 90% -20%, rgba(64, 133, 96, .14), transparent 60%),
		var(--gmh-mint);
	padding: 44px 0 52px;
}

.gmh-pagehead--center {
	text-align: center;
	padding: 90px 0 100px;
}

.gmh-pagehead--center .gmh-search,
.gmh-pagehead--center .gmh-chips {
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
}

.gmh-pagehead__title {
	font-size: 46px;
	line-height: 1.12;
	font-weight: 850;
	letter-spacing: -.02em;
	margin: 0;
}

.gmh-pagehead__lead {
	margin-top: 16px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--gmh-muted);
	max-width: 42em;
}

.gmh-pagehead__row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.gmh-pagehead__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: #fff;
	color: var(--gmh-green);
	border: 1px solid var(--gmh-line);
}

.gmh-pagehead__icon svg {
	width: 36px;
	height: 36px;
}

.gmh-pagehead__count {
	margin-top: 14px;
	font-size: 15px;
	color: var(--gmh-muted);
}

.gmh-pagehead .gmh-search {
	margin-top: 24px;
}

.gmh-pagehead--article .gmh-pagehead__title,
.gmh-pagehead--article .gmh-pagehead__lead {
	max-width: 760px;
}

.gmh-pagehead .gmh-pill {
	margin-bottom: 14px;
}

.gmh-eyebrow--plain {
	display: block;
	background: none;
	border: 0;
	padding: 0;
	margin-bottom: 6px;
}

.gmh-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--gmh-muted);
	margin-bottom: 18px;
}

.gmh-crumbs a {
	color: var(--gmh-muted);
	font-weight: 600;
}

.gmh-crumbs a:hover,
.gmh-crumbs a:focus-visible {
	color: var(--gmh-green);
}

.gmh-crumbs__sep {
	color: #b5c4bc;
}

/* ---------- Byline / avatars ---------- */

.gmh-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

.gmh-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gmh-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: .02em;
}

.gmh-avatar--lg {
	width: 64px;
	height: 64px;
	font-size: 21px;
}

.gmh-byline__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gmh-byline__name {
	font-size: 15px;
	font-weight: 700;
}

.gmh-byline__name a {
	color: var(--gmh-ink);
}

.gmh-byline__name a:hover {
	color: var(--gmh-green);
}

.gmh-byline__meta {
	font-size: 14px;
	color: var(--gmh-muted);
}

/* ---------- Article ---------- */

.gmh-article__figure {
	margin-top: -1px;
	padding-top: 36px;
}

.gmh-article__figure img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: calc(var(--gmh-radius) + 4px);
}

.gmh-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 72px;
	align-items: start;
	padding-top: 44px;
	padding-bottom: 72px;
}

.gmh-article__main {
	min-width: 0;
	max-width: 740px;
}

.gmh-article__side {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ---------- Prose ---------- */

.gmh-prose {
	font-family: "Inter", sans-serif;
	font-size: 18px;
	line-height: 1.75;
	color: #2b2626;
}

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

.gmh-prose p {
	margin: 0 0 20px;
	font-size: inherit;
	line-height: inherit;
}

.gmh-prose h2 {
	font-size: 27px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--gmh-ink);
	margin: 44px 0 14px;
}

.gmh-prose h3 {
	font-size: 21px;
	font-weight: 750;
	margin: 32px 0 10px;
}

.gmh-prose ul,
.gmh-prose ol {
	margin: 0 0 22px;
	padding-left: 24px;
}

.gmh-prose ul {
	list-style: disc;
}

.gmh-prose ol {
	list-style: decimal;
}

.gmh-prose li {
	margin-bottom: 9px;
	padding-left: 4px;
	font-size: inherit;
	line-height: 1.65;
}

.gmh-prose li::marker {
	color: var(--gmh-green);
	font-weight: 700;
}

.gmh-prose strong {
	color: var(--gmh-ink);
}

.gmh-prose a {
	color: var(--gmh-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gmh-prose a:hover {
	color: var(--gmh-green-dark);
}

/* ---------- Tags / author ---------- */

.gmh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 0;
}

.gmh-tags a {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--gmh-muted);
	background: var(--gmh-tint);
	border: 1px solid var(--gmh-line);
	border-radius: 999px;
	padding: 6px 12px;
}

.gmh-tags a:hover,
.gmh-tags a:focus-visible {
	color: var(--gmh-green);
	border-color: var(--gmh-green);
}

.gmh-authorbox {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 24px;
	background: var(--gmh-tint);
	border: 1px solid var(--gmh-line);
	border-radius: var(--gmh-radius);
}

.gmh-authorbox p {
	margin: 0;
}

.gmh-authorbox__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gmh-muted);
}

.gmh-authorbox__name {
	font-size: 19px;
	font-weight: 800;
	margin-top: 2px !important;
}

.gmh-authorbox__bio {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--gmh-muted);
	margin: 6px 0 10px !important;
}

/* ---------- Sidebar ---------- */

.gmh-sidebox {
	padding: 22px;
	border: 1px solid var(--gmh-line);
	border-radius: var(--gmh-radius);
	background: #fff;
}

.gmh-sidebox__title {
	font-size: 18px !important;
	font-weight: 800;
	margin: 0 0 14px !important;
}

.gmh-minilist {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 16px !important;
}

.gmh-minilist a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--gmh-ink);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.35;
}

.gmh-minilist a:hover span,
.gmh-minilist a:focus-visible span {
	color: var(--gmh-green);
}

.gmh-minilist img {
	flex: none;
	width: 76px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.gmh-search--side {
	margin: 0;
	box-shadow: none;
	border-radius: 12px;
	padding: 5px;
}

.gmh-search--side input {
	font-size: 15px;
	padding: 8px 10px;
}

.gmh-search--side button {
	border-radius: 9px;
	font-size: 14px;
	padding: 9px 14px;
}

/* ---------- Archive / search ---------- */

.gmh-section--compact {
	padding: 48px 0;
}

.gmh-section--compact .gmh-section__head {
	margin-bottom: 18px;
}

.gmh-section--compact .gmh-section__head h2 {
	font-size: 24px;
}

.gmh-section--page {
	padding: 52px 0 80px;
}

.gmh-empty {
	font-size: 18px;
	color: var(--gmh-muted);
}

.gmh-empty .gmh-chips {
	margin-top: 18px !important;
}

.gmh-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 52px;
}

.gmh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gmh-line);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 650;
	color: var(--gmh-ink);
	background: #fff;
}

.gmh-pagination a.page-numbers:hover,
.gmh-pagination a.page-numbers:focus-visible {
	border-color: var(--gmh-green);
	color: var(--gmh-green);
}

.gmh-pagination .page-numbers.current {
	background: var(--gmh-green);
	border-color: var(--gmh-green);
	color: #fff;
}

.gmh-pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.gmh-article__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}
	.gmh-article__side {
		position: static;
	}
	.gmh-article__main {
		max-width: none;
	}
}


@media (max-width: 1080px) {
	.gmh-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gmh-hero__title {
		font-size: 44px;
	}
}

@media (max-width: 900px) {
	.gmh-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.gmh-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.gmh-hero {
		padding: 44px 0 52px;
	}
	.gmh-hero__title {
		font-size: 34px;
	}
	.gmh-hero__lead {
		font-size: 17px;
	}
	.gmh-search button {
		padding: 12px 18px;
	}
	.gmh-section,
	.gmh-section--topic {
		padding: 48px 0;
	}
	.gmh-section__head h2 {
		font-size: 25px;
	}
	.gmh-grid {
		gap: 24px;
	}
	.gmh-grid--4,
	.gmh-grid--3 {
		grid-template-columns: 1fr;
	}
	.gmh-section--topic .gmh-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
	.gmh-card--compact .gmh-card__title {
		font-size: 15px !important;
	}
	.gmh-card--large .gmh-card__title {
		font-size: 22px !important;
	}
	.gmh-topics {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.gmh-topic {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas: "icon name" "icon count";
		align-items: center;
		column-gap: 16px;
		row-gap: 2px;
		padding: 16px;
	}
	.gmh-topic__icon {
		grid-area: icon;
		margin: 0;
	}
	.gmh-topic__name {
		grid-area: name;
		font-size: 17px;
	}
	.gmh-topic__count {
		grid-area: count;
		margin: 0;
	}
	.gmh-topic__desc {
		display: none;
	}
	.gmh-pagehead {
		padding: 32px 0 38px;
	}
	.gmh-pagehead--center {
		padding: 56px 0 64px;
	}
	.gmh-pagehead__title {
		font-size: 31px;
	}
	.gmh-pagehead__lead {
		font-size: 17px;
	}
	.gmh-pagehead__icon {
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}
	.gmh-pagehead__icon svg {
		width: 28px;
		height: 28px;
	}
	.gmh-article__figure {
		padding-top: 24px;
	}
	.gmh-article__layout {
		padding-top: 32px;
		padding-bottom: 48px;
	}
	.gmh-prose {
		font-size: 17px;
	}
	.gmh-prose h2 {
		font-size: 23px;
		margin-top: 36px;
	}
	.gmh-authorbox {
		flex-direction: column;
		padding: 20px;
	}
}
