/* ==========================================================================
   Houseplant Care — main stylesheet
   Design system: tokens, typography, components, layouts, utilities.
   No external dependencies. No remote fonts. No image files. Mobile-first.

   Look: a calm, bright indoor-plant shelf — leaf greens on a cream page,
   white cards with soft shadows and a sparing terracotta accent. The few
   decorations (short two-tone rules, leaf-shaped bullets) are plain CSS.

   Contrast reference (WCAG AA, calculated):
     ink         #22332b on cream #f7f4ec ............ 12.1:1
     ink-soft    #3d5247 on cream / pale green ....... 7.7:1 / 7.3:1
     ink-muted   #55695e on cream / deep cream ....... 5.3:1 / 4.9:1
     green       #2f6b4f on cream / white / pale ..... 5.7:1 / 6.2:1 / 5.4:1
     white       #fffdf8 on green #2f6b4f ............ 6.2:1
     terracotta  #a8532f (text) on cream / white ..... 4.8:1 / 5.2:1
     terracotta  #a8532f on its tint #fbefe7 ......... 4.7:1
   #4f9a6b (fresh green) and #c9744f (terracotta) are used for borders,
   bullets and icons only, never for body text.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colour — raw palette */
	--hpc-green: #2f6b4f;
	--hpc-green-dark: #22332b;
	--hpc-green-deep: #1f4a36;
	--hpc-green-fresh: #4f9a6b;
	--hpc-green-pale: #e6f1e8;
	--hpc-cream: #f7f4ec;
	--hpc-cream-deep: #efeadc;
	--hpc-white: #fffdf8;
	--hpc-terracotta: #c9744f;
	--hpc-terracotta-deep: #a8532f;
	--hpc-terracotta-soft: #fbefe7;
	--hpc-line-green: #cfe3d4;

	/* Colour — roles */
	--hpc-bg: var(--hpc-cream);
	--hpc-bg-deep: var(--hpc-cream-deep);
	--hpc-surface: var(--hpc-white);
	--hpc-ink: var(--hpc-green-dark);
	--hpc-ink-soft: #3d5247;
	--hpc-ink-muted: #55695e;
	--hpc-line: #d9e2d6;
	--hpc-line-strong: #6f8f7b;
	--hpc-accent: var(--hpc-green);
	--hpc-accent-hover: var(--hpc-green-deep);
	--hpc-accent-soft: var(--hpc-green-pale);
	--hpc-focus: var(--hpc-terracotta-deep);

	/* Decoration — a short two-tone rule under headings */
	--hpc-rule: linear-gradient(90deg, var(--hpc-green) 0 72%, var(--hpc-terracotta) 72% 100%);
	--hpc-band: linear-gradient(90deg, var(--hpc-green), var(--hpc-green-fresh));

	/* Typography — system stacks, nothing to download */
	--hpc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--hpc-font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--hpc-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--hpc-text-xs: 0.8125rem;
	--hpc-text-sm: 0.875rem;
	--hpc-text-base: 1rem;
	--hpc-text-md: 1.0625rem;
	--hpc-text-lg: 1.1875rem;
	--hpc-text-xl: 1.375rem;
	--hpc-text-2xl: 1.625rem;
	--hpc-text-3xl: 2rem;
	--hpc-text-4xl: 2.5rem;

	--hpc-leading-tight: 1.2;
	--hpc-leading-snug: 1.35;
	--hpc-leading-normal: 1.65;
	--hpc-leading-relaxed: 1.75;

	/* Spacing — 4px scale */
	--hpc-s1: 0.25rem;
	--hpc-s2: 0.5rem;
	--hpc-s3: 0.75rem;
	--hpc-s4: 1rem;
	--hpc-s5: 1.5rem;
	--hpc-s6: 2rem;
	--hpc-s7: 2.5rem;
	--hpc-s8: 3rem;
	--hpc-s9: 4rem;
	--hpc-s10: 5rem;

	/* Shape and shadow */
	--hpc-radius-sm: 8px;
	--hpc-radius: 12px;
	--hpc-radius-lg: 14px;
	--hpc-shadow-sm: 0 1px 2px rgba(34, 51, 43, 0.06), 0 1px 3px rgba(34, 51, 43, 0.04);
	--hpc-shadow: 0 6px 18px rgba(34, 51, 43, 0.09);
	--hpc-shadow-lg: 0 14px 34px rgba(34, 51, 43, 0.12);

	/* Layout */
	--hpc-container: 1180px;
	--hpc-container-narrow: 780px;
	--hpc-measure: 68ch;
	--hpc-gutter: var(--hpc-s4);

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--hpc-gutter: var(--hpc-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Light reset
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.hpc-card:hover,
	.hpc-topic:hover {
		transform: none !important;
	}
}

body {
	margin: 0;
	background-color: var(--hpc-bg);
	color: var(--hpc-ink);
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-md);
	line-height: var(--hpc-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--hpc-line-green);
	margin: var(--hpc-s7) 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--hpc-font-head);
	color: var(--hpc-ink);
	line-height: var(--hpc-leading-tight);
	margin: 0 0 var(--hpc-s4);
	font-weight: 700;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--hpc-text-4xl));
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, var(--hpc-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--hpc-text-xl));
}

h4 {
	font-size: var(--hpc-text-lg);
}

h5,
h6 {
	font-size: var(--hpc-text-base);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hpc-ink-soft);
}

p {
	margin: 0 0 var(--hpc-s4);
}

a {
	color: var(--hpc-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--hpc-accent-hover);
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--hpc-text-sm);
}

mark {
	background: #f9e2b8;
	color: var(--hpc-ink);
	padding: 0 0.15em;
}

code,
kbd,
samp {
	font-family: var(--hpc-font-mono);
	font-size: 0.9em;
	background: var(--hpc-bg-deep);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius-sm);
	padding: 0.1em 0.35em;
}

pre {
	font-family: var(--hpc-font-mono);
	font-size: var(--hpc-text-sm);
	background: var(--hpc-bg-deep);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	margin: var(--hpc-s6) 0;
	padding: var(--hpc-s2) 0 var(--hpc-s2) var(--hpc-s5);
	border-left: 4px solid var(--hpc-green-fresh);
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-lg);
	color: var(--hpc-ink-soft);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: var(--hpc-s2);
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-sm);
	font-style: normal;
	color: var(--hpc-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Accessibility
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hpc-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* The main landmark only receives focus from the skip link. */
.hpc-site-main:focus {
	outline: 0;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--hpc-ink);
	border-radius: var(--hpc-radius-sm);
	box-shadow: var(--hpc-shadow);
	clip-path: none;
	color: var(--hpc-surface);
	display: block;
	font-size: var(--hpc-text-base);
	font-weight: 700;
	height: auto;
	left: var(--hpc-s4);
	line-height: normal;
	outline-color: var(--hpc-green-pale);
	padding: var(--hpc-s3) var(--hpc-s4);
	text-decoration: none;
	top: var(--hpc-s4);
	width: auto;
	z-index: 100000;
}

.hpc-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.hpc-container {
	width: 100%;
	max-width: var(--hpc-container);
	margin-inline: auto;
	padding-inline: var(--hpc-gutter);
}

.hpc-container--narrow {
	max-width: var(--hpc-container-narrow);
}

.hpc-site-main {
	flex: 1 0 auto;
	padding-block: var(--hpc-s7) var(--hpc-s9);
}

/* Used on the homepage, where the hero sits flush against the header. */
.hpc-site-main--flush {
	padding-top: 0;
}

/* minmax(0, 1fr) lets the column shrink below the intrinsic width of wide
   children (tables, long words) so they scroll inside it instead of pushing
   the page sideways. */
.hpc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s7);
}

.hpc-layout > * {
	min-width: 0;
}

@media (min-width: 62em) {
	.hpc-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--hpc-s8);
		align-items: start;
	}
}

.hpc-stack > * + * {
	margin-top: var(--hpc-s4);
}

.hpc-section {
	margin-block: var(--hpc-s9);
}

.hpc-section:first-child {
	margin-top: var(--hpc-s8);
}

.hpc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hpc-s2) var(--hpc-s4);
	margin-bottom: var(--hpc-s6);
	padding-bottom: var(--hpc-s4);
	border-bottom: 1px solid var(--hpc-line);
}

.hpc-section__title {
	position: relative;
	margin: 0;
	padding-bottom: var(--hpc-s3);
	font-size: var(--hpc-text-2xl);
}

/* A short two-tone rule under every section title. */
.hpc-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3rem;
	height: 3px;
	border-radius: 999px;
	background: var(--hpc-rule);
}

/* Always on its own line under the title and the "View all" link. */
.hpc-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: 0;
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-base);
}

.hpc-section__link {
	font-size: var(--hpc-text-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.hpc-section__link:hover {
	text-decoration: underline;
}

.hpc-section__link::after {
	content: " \2192";
}

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */

.hpc-site-header {
	position: relative;
	z-index: 50;
	background: var(--hpc-surface);
	border-bottom: 1px solid var(--hpc-line);
}

/* A thin leaf-green band along the bottom of the header. */
.hpc-site-header::after {
	content: "";
	display: block;
	height: 3px;
	background: var(--hpc-band);
}

.hpc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hpc-s4);
	min-height: 4.25rem;
	min-width: 0;
}

.hpc-branding {
	display: flex;
	align-items: center;
	gap: var(--hpc-s3);
	min-width: 0;
}

.hpc-branding__mark {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
}

.hpc-branding__text {
	min-width: 0;
}

.hpc-branding__title {
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-xl);
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.02em;
}

.hpc-branding__title a {
	color: var(--hpc-ink);
	text-decoration: none;
}

.hpc-branding__title a:hover {
	color: var(--hpc-accent);
}

.hpc-branding__tagline {
	margin: 0.2rem 0 0;
	font-size: var(--hpc-text-xs);
	color: var(--hpc-ink-muted);
	line-height: 1.3;
}

/* On the narrowest phones the tagline would wrap under the menu button. */
@media (max-width: 29.99em) {
	.hpc-branding__tagline {
		display: none;
	}
}

.custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Mobile menu button */
.hpc-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: var(--hpc-s2);
	background: var(--hpc-surface);
	border: 1.5px solid var(--hpc-line-strong);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--hpc-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--hpc-s2) var(--hpc-s3);
}

.hpc-menu-toggle:hover {
	background: var(--hpc-accent-soft);
	border-color: var(--hpc-green);
	color: var(--hpc-ink);
}

.hpc-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.hpc-menu-toggle__bars::before,
.hpc-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.hpc-menu-toggle__bars::before {
	top: -6px;
}

.hpc-menu-toggle__bars::after {
	top: 6px;
}

.hpc-header__panel {
	display: none;
	padding-bottom: var(--hpc-s5);
}

.hpc-header__panel.is-open {
	display: block;
}

.hpc-nav__list,
.hpc-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-nav__list li {
	position: relative;
}

.hpc-nav__list a {
	display: block;
	padding: var(--hpc-s3) var(--hpc-s1);
	border-bottom: 1px solid var(--hpc-line);
	color: var(--hpc-ink);
	font-size: var(--hpc-text-base);
	font-weight: 600;
	text-decoration: none;
}

.hpc-nav__list a:hover {
	color: var(--hpc-accent);
}

.hpc-nav__list .sub-menu a {
	padding-left: var(--hpc-s5);
	font-weight: 500;
}

.hpc-nav .current-menu-item > a,
.hpc-nav .current-menu-ancestor > a,
.hpc-nav .current_page_item > a {
	color: var(--hpc-accent);
}

.hpc-header__search {
	margin-top: var(--hpc-s4);
}

/* Shown only to users who can edit menus, when no menu is assigned to the
   primary location. Visitors never see this block. */
.hpc-nav--empty {
	margin: 0;
	padding: var(--hpc-s3) 0;
	font-size: var(--hpc-text-sm);
}

@media (min-width: 62em) {
	.hpc-menu-toggle {
		display: none;
	}

	/* Two rows: brand and search on the first, the full menu on the second.
	   Eight menu items fit on one line from about 1000px up; if a longer menu
	   is assigned, the list wraps instead of overflowing the page. */
	.hpc-site-header .hpc-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--hpc-s5);
	}

	.hpc-header__inner {
		flex: 1 1 0;
		min-height: 4.75rem;
	}

	/* The panel wrapper dissolves so that its two children (menu and search)
	   can be placed independently in the header's flex layout. */
	.hpc-header__panel,
	.hpc-header__panel.is-open {
		display: contents;
	}

	.hpc-header__search {
		order: 2;
		flex: 0 1 16rem;
		min-width: 11rem;
		margin-top: 0;
	}

	.hpc-nav {
		order: 3;
		flex: 1 0 100%;
		min-width: 0;
		border-top: 1px solid var(--hpc-line);
		padding-block: var(--hpc-s2);
	}

	.hpc-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--hpc-s1);
		margin-inline: calc(-1 * var(--hpc-s3));
	}

	.hpc-nav__list a {
		border-bottom: 0;
		border-radius: var(--hpc-radius-sm);
		padding: var(--hpc-s2) var(--hpc-s3);
		font-size: var(--hpc-text-sm);
		white-space: nowrap;
	}

	.hpc-nav__list a:hover {
		background: var(--hpc-accent-soft);
		color: var(--hpc-ink);
	}

	.hpc-nav .current-menu-item > a,
	.hpc-nav .current-menu-ancestor > a,
	.hpc-nav .current_page_item > a {
		background: var(--hpc-accent-soft);
		color: var(--hpc-ink);
		box-shadow: inset 0 -3px 0 var(--hpc-terracotta);
	}

	/* Submenus (one level) */
	.hpc-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--hpc-surface);
		border: 1px solid var(--hpc-line);
		border-radius: var(--hpc-radius);
		box-shadow: var(--hpc-shadow-lg);
		padding: var(--hpc-s2);
		z-index: 60;
	}

	.hpc-nav__list li:hover > .sub-menu,
	.hpc-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.hpc-nav__list .sub-menu a {
		padding-left: var(--hpc-s3);
		white-space: normal;
	}
}

@media (min-width: 75em) {
	.hpc-nav__list a {
		font-size: 0.9375rem;
		padding-inline: var(--hpc-s4);
	}

	.hpc-nav__list {
		margin-inline: calc(-1 * var(--hpc-s4));
	}
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-size: var(--hpc-text-sm);
	font-weight: 700;
	margin-bottom: var(--hpc-s2);
}

.hpc-field {
	margin-bottom: var(--hpc-s5);
}

.hpc-field__hint {
	display: block;
	margin-top: var(--hpc-s2);
	font-size: var(--hpc-text-xs);
	font-weight: 400;
	color: var(--hpc-ink-muted);
}

.hpc-required {
	color: var(--hpc-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: #fffdf8;
	border: 1.5px solid var(--hpc-line-strong);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-ink);
	font: inherit;
	font-size: var(--hpc-text-base);
	padding: var(--hpc-s3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--hpc-focus);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--hpc-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--hpc-ink-muted);
	opacity: 1;
}

/* Search field */
.hpc-search-form {
	display: flex;
	gap: var(--hpc-s2);
}

.hpc-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.hpc-search-form input[type="search"] {
	min-height: 2.75rem;
	padding-block: var(--hpc-s2);
}

.hpc-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	background: var(--hpc-accent-soft);
	border: 1.5px solid var(--hpc-line-strong);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-ink);
	cursor: pointer;
	padding: 0 var(--hpc-s3);
}

.hpc-search-form__submit:hover {
	background: var(--hpc-line-green);
	border-color: var(--hpc-green);
	color: var(--hpc-ink);
}

.hpc-search-form__submit .hpc-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.hpc-button,
.hpc-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--hpc-s2);
	background: var(--hpc-accent);
	border: 1.5px solid var(--hpc-accent);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-surface);
	cursor: pointer;
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-base);
	font-weight: 700;
	line-height: 1.3;
	min-height: 2.875rem;
	padding: var(--hpc-s3) var(--hpc-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hpc-button:hover,
.hpc-button:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background: var(--hpc-accent-hover);
	border-color: var(--hpc-accent-hover);
	color: var(--hpc-surface);
}

.hpc-button--secondary {
	background: transparent;
	border-color: var(--hpc-line-strong);
	color: var(--hpc-ink);
}

.hpc-button--secondary:hover,
.hpc-button--secondary:focus {
	background: var(--hpc-accent-soft);
	border-color: var(--hpc-green);
	color: var(--hpc-ink);
}

.hpc-button--small {
	font-size: var(--hpc-text-sm);
	min-height: 0;
	padding: var(--hpc-s2) var(--hpc-s4);
}

.hpc-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   9. Labels, categories, metadata
   -------------------------------------------------------------------------- */

.hpc-eyebrow {
	display: inline-block;
	font-size: var(--hpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hpc-green);
	text-decoration: none;
	margin-bottom: var(--hpc-s2);
}

a.hpc-eyebrow:hover {
	color: var(--hpc-accent-hover);
	text-decoration: underline;
}

.hpc-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--hpc-s1);
	background: var(--hpc-green-pale);
	border: 1px solid var(--hpc-line-green);
	border-radius: 999px;
	color: var(--hpc-green);
	font-size: var(--hpc-text-sm);
	font-weight: 600;
	padding: 0.3rem 0.8rem;
	text-decoration: none;
}

a.hpc-chip:hover {
	background: var(--hpc-surface);
	border-color: var(--hpc-green-fresh);
	color: var(--hpc-accent-hover);
}

.hpc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hpc-s2) var(--hpc-s4);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-meta > li {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hpc-s2) var(--hpc-s4);
}

.hpc-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--hpc-s2);
}

.hpc-meta a {
	color: inherit;
}

.hpc-meta svg {
	flex: 0 0 auto;
	color: var(--hpc-green-fresh);
}

.hpc-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   10. Cards and grids
   -------------------------------------------------------------------------- */

.hpc-grid {
	display: grid;
	gap: var(--hpc-s5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 36em) {
	.hpc-grid--2,
	.hpc-grid--3,
	.hpc-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.hpc-grid {
		gap: var(--hpc-s6);
	}

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

	.hpc-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--hpc-s5);
	}
}

.hpc-card {
	display: flex;
	flex-direction: column;
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	box-shadow: var(--hpc-shadow-sm);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.hpc-card:hover {
	border-color: var(--hpc-green-fresh);
	box-shadow: var(--hpc-shadow);
	transform: translateY(-3px);
}

.hpc-card__media {
	display: block;
	background: var(--hpc-bg-deep);
	border-bottom: 1px solid var(--hpc-line);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hpc-card__media img,
.hpc-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Posts without a featured image get a pale-green panel with a small leaf
   (an inline data URI: no image file, no request). */
.hpc-card__media--placeholder,
.hpc-card-row__media--placeholder {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 44V22' stroke='%234f9a6b' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M24 27C12 27 8 17 9 7c10 0 16 6 15 20z' fill='%234f9a6b'/%3E%3Cpath d='M24 33c10 0 14-8 13-16-8 0-14 5-13 16z' fill='%232f6b4f'/%3E%3C/svg%3E") center / 3.5rem 3.5rem no-repeat,
		linear-gradient(135deg, var(--hpc-green-pale), var(--hpc-line-green));
}

.hpc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--hpc-s2);
	padding: var(--hpc-s5) var(--hpc-s5) var(--hpc-s5);
}

.hpc-grid--4 .hpc-card__body {
	padding: var(--hpc-s4);
}

.hpc-card__title {
	font-size: var(--hpc-text-lg);
	line-height: var(--hpc-leading-snug);
	margin: 0;
}

.hpc-grid--4 .hpc-card__title {
	font-size: var(--hpc-text-md);
}

.hpc-card__title a,
.hpc-card-row__title a,
.hpc-steps__title a {
	color: var(--hpc-ink);
	text-decoration: none;
}

.hpc-card__title a:hover,
.hpc-card-row__title a:hover,
.hpc-steps__title a:hover {
	color: var(--hpc-accent);
	text-decoration: underline;
}

.hpc-card__excerpt {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-sm);
	line-height: var(--hpc-leading-normal);
	margin: 0;
}

.hpc-card__footer {
	margin-top: auto;
	padding-top: var(--hpc-s3);
	border-top: 1px solid var(--hpc-line);
}

/* Horizontal card (lists and search results) */
.hpc-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s4);
	padding-bottom: var(--hpc-s5);
	border-bottom: 1px solid var(--hpc-line);
}

.hpc-card-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (min-width: 36em) {
	.hpc-card-row {
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: var(--hpc-s5);
		align-items: start;
	}
}

.hpc-card-row__media {
	display: block;
	background: var(--hpc-bg-deep);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

/* min-width: 0 keeps long titles from blowing out the grid column. */
.hpc-card-row__body {
	min-width: 0;
}

.hpc-card-row__title {
	font-size: var(--hpc-text-xl);
	margin: var(--hpc-s1) 0 var(--hpc-s2);
}

.hpc-card-row__excerpt {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-base);
	margin: 0 0 var(--hpc-s3);
}

.hpc-card-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s5);
}

/* Numbered path (Start Here) */
.hpc-steps {
	list-style: none;
	counter-reset: hpc-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s4);
	margin: 0;
	padding: 0;
}

@media (min-width: 48em) {
	.hpc-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--hpc-s5);
	}
}

.hpc-steps > li {
	counter-increment: hpc-step;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: var(--hpc-s4);
	align-items: start;
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-left: 4px solid var(--hpc-green-fresh);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5);
}

.hpc-steps > li::before {
	content: counter(hpc-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--hpc-accent);
	border-radius: 50%;
	color: var(--hpc-surface);
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-lg);
	font-weight: 800;
}

.hpc-steps__title {
	font-size: var(--hpc-text-lg);
	line-height: var(--hpc-leading-snug);
	margin: 0 0 var(--hpc-s2);
}

.hpc-steps p {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-sm);
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Homepage — hero and sections
   -------------------------------------------------------------------------- */

.hpc-hero {
	background-color: var(--hpc-green-pale);
	background-image:
		radial-gradient(circle at 92% 0%, rgba(79, 154, 107, 0.16) 0 13rem, transparent 13.05rem),
		linear-gradient(180deg, var(--hpc-green-pale), var(--hpc-bg));
	border-bottom: 1px solid var(--hpc-line);
	padding-block: var(--hpc-s8);
}

.hpc-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s6);
	align-items: center;
}

@media (min-width: 62em) {
	.hpc-hero {
		padding-block: var(--hpc-s10);
	}

	.hpc-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--hpc-s9);
	}
}

.hpc-hero__title {
	font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: var(--hpc-s4);
	max-width: 20ch;
}

.hpc-hero__text {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-lg);
	line-height: var(--hpc-leading-relaxed);
	max-width: 48ch;
	margin-bottom: var(--hpc-s6);
}

.hpc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hpc-s3);
}

/* Decorative inline SVG (no image request, no JS). */
.hpc-hero__figure {
	display: none;
	max-width: 27rem;
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 62em) {
	.hpc-hero__figure {
		display: block;
	}
}

.hpc-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Category strip (optional "Browse by Topic" section) */
.hpc-topics {
	display: grid;
	gap: var(--hpc-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-topic {
	display: flex;
	flex-direction: column;
	gap: var(--hpc-s2);
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-top: 4px solid var(--hpc-green-fresh);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5) var(--hpc-s4);
	text-decoration: none;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.hpc-topic:hover {
	box-shadow: var(--hpc-shadow);
	transform: translateY(-2px);
}

.hpc-topic__name {
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-lg);
	font-weight: 700;
	color: var(--hpc-ink);
}

.hpc-topic:hover .hpc-topic__name {
	color: var(--hpc-accent);
}

.hpc-topic__desc {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-sm);
	line-height: var(--hpc-leading-normal);
}

.hpc-topic__count {
	margin-top: auto;
	padding-top: var(--hpc-s2);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-xs);
}

/* Closing call to action */
.hpc-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s5);
	align-items: center;
	background-color: var(--hpc-green);
	background-image: radial-gradient(circle at 100% 0%, rgba(255, 253, 248, 0.1) 0 9rem, transparent 9.05rem);
	border-radius: var(--hpc-radius-lg);
	box-shadow: var(--hpc-shadow);
	color: #eaf4ec;
	padding: var(--hpc-s7) var(--hpc-s5);
}

@media (min-width: 48em) {
	.hpc-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--hpc-s8);
	}
}

.hpc-cta__title {
	color: var(--hpc-surface);
	margin-bottom: var(--hpc-s3);
}

.hpc-cta__text {
	color: #eaf4ec;
	margin: 0;
	max-width: 54ch;
}

.hpc-cta .hpc-button {
	background: var(--hpc-surface);
	border-color: var(--hpc-surface);
	color: var(--hpc-ink);
}

.hpc-cta .hpc-button:hover,
.hpc-cta .hpc-button:focus {
	background: var(--hpc-green-pale);
	border-color: var(--hpc-green-pale);
	color: var(--hpc-ink);
}

.hpc-cta :focus-visible {
	outline-color: var(--hpc-surface);
}

/* --------------------------------------------------------------------------
   12. Article
   -------------------------------------------------------------------------- */

.hpc-breadcrumbs {
	margin-bottom: var(--hpc-s5);
	font-size: var(--hpc-text-sm);
	color: var(--hpc-ink-muted);
}

.hpc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hpc-s1) var(--hpc-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--hpc-s2);
	min-width: 0;
}

.hpc-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--hpc-green-fresh);
	font-weight: 700;
}

.hpc-breadcrumbs a {
	color: var(--hpc-ink-soft);
	text-decoration: underline;
	text-decoration-color: var(--hpc-green-fresh);
}

.hpc-breadcrumbs a:hover {
	color: var(--hpc-accent);
}

.hpc-breadcrumbs [aria-current="page"] {
	color: var(--hpc-ink-muted);
}

.hpc-article__header {
	margin-bottom: var(--hpc-s6);
}

.hpc-article__title {
	margin-bottom: var(--hpc-s4);
	max-width: 24ch;
}

.hpc-article__summary {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-lg);
	line-height: var(--hpc-leading-relaxed);
	max-width: var(--hpc-measure);
	margin-bottom: var(--hpc-s4);
}

.hpc-article__meta {
	padding-top: var(--hpc-s4);
	border-top: 1px solid var(--hpc-line);
}

.hpc-article__figure {
	margin-bottom: var(--hpc-s6);
}

.hpc-article__figure img {
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	width: 100%;
}

/* Figures and captions */
.hpc-article__figure figcaption,
.hpc-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--hpc-s3);
	padding-left: var(--hpc-s3);
	border-left: 3px solid var(--hpc-green-fresh);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
	line-height: var(--hpc-leading-snug);
	text-align: left;
}

/* Body text */
.hpc-content {
	font-size: var(--hpc-text-md);
	line-height: var(--hpc-leading-relaxed);
	min-width: 0;
}

.hpc-content > * {
	max-width: var(--hpc-measure);
}

.hpc-content > .alignwide,
.hpc-content > .alignfull,
.hpc-content > .hpc-tutorial-facts,
.hpc-content > .hpc-toc,
.hpc-content > figure,
.hpc-content > .wp-block-image,
.hpc-content > .wp-block-gallery,
.hpc-content > .wp-block-table,
.hpc-content > .hpc-table-wrap,
.hpc-content > table,
.hpc-content > .hpc-ad-slot {
	max-width: 100%;
}

.hpc-content h2 {
	margin-top: var(--hpc-s8);
	padding-bottom: var(--hpc-s3);
	background: var(--hpc-rule) left bottom / 3rem 3px no-repeat;
}

.hpc-content h3 {
	margin-top: var(--hpc-s6);
}

.hpc-content h4 {
	margin-top: var(--hpc-s5);
}

.hpc-content > h2:first-child,
.hpc-content > h3:first-child {
	margin-top: 0;
}

.hpc-content ul,
.hpc-content ol {
	margin: 0 0 var(--hpc-s5);
	padding-left: 1.5em;
}

.hpc-content li + li {
	margin-top: var(--hpc-s2);
}

.hpc-content li > ul,
.hpc-content li > ol {
	margin-top: var(--hpc-s2);
	margin-bottom: 0;
}

.hpc-content ul:not([class]) > li::marker {
	color: var(--hpc-green-fresh);
}

/* Ordered lists carry the steps of a guide: bold numbers, room to breathe
   and a hairline between top-level steps. */
.hpc-content ol {
	padding-left: 1.75em;
}

.hpc-content ol > li {
	padding-left: 0.35em;
}

.hpc-content ol > li::marker {
	color: var(--hpc-accent);
	font-family: var(--hpc-font-head);
	font-weight: 800;
}

.hpc-content > ol > li + li {
	margin-top: var(--hpc-s3);
	padding-top: var(--hpc-s3);
	border-top: 1px solid var(--hpc-line);
}

.hpc-content figure,
.hpc-content .wp-block-image {
	margin-block: var(--hpc-s6);
}

.hpc-content img {
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	max-width: 100%;
	height: auto;
	background-color: var(--hpc-surface);
}

.hpc-content a {
	text-decoration: underline;
}

/* Tables — always scroll inside their own box, never the page.
   inc/toc.php wraps every table in .hpc-table-wrap; the bare-table rules
   below cover the block editor and any table that escapes the wrapper. */
.hpc-table-wrap,
.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: var(--hpc-s6);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	background: var(--hpc-surface);
}

/* A block-editor table figure already scrolls: its inner wrapper stays plain. */
.wp-block-table .hpc-table-wrap {
	overflow: visible;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.hpc-content > table {
	display: block;
	overflow-x: auto;
	margin-block: var(--hpc-s6);
}

.hpc-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--hpc-text-sm);
	line-height: var(--hpc-leading-snug);
}

.hpc-table-wrap table,
.wp-block-table table {
	min-width: 30rem;
	margin: 0;
}

.hpc-content th,
.hpc-content td,
.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--hpc-line);
	padding: var(--hpc-s3) var(--hpc-s4);
	text-align: left;
	vertical-align: top;
}

.hpc-content tbody tr:last-child > *,
.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

.hpc-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(230, 241, 232, 0.5);
}

.hpc-content thead th,
.wp-block-table thead th {
	background: var(--hpc-accent-soft);
	border-bottom: 2px solid var(--hpc-green-fresh);
	color: var(--hpc-ink);
	font-size: var(--hpc-text-xs);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hpc-content tbody th {
	font-weight: 700;
}

.hpc-content table caption {
	caption-side: bottom;
	padding: var(--hpc-s3) var(--hpc-s4);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
	text-align: left;
}

/* Callouts — used in article content and available in the block editor.
   Plain: white. Tip: pale green. "Good to know" (--warning): a calm
   terracotta note, not an alarm. */
.hpc-callout {
	position: relative;
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-left: 4px solid var(--hpc-green-fresh);
	border-radius: var(--hpc-radius);
	box-shadow: var(--hpc-shadow-sm);
	padding: var(--hpc-s5);
	margin-block: var(--hpc-s6);
}

.hpc-callout > :last-child {
	margin-bottom: 0;
}

.hpc-callout__title {
	display: flex;
	align-items: center;
	gap: var(--hpc-s2);
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-sm);
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: var(--hpc-leading-snug);
	text-transform: uppercase;
	color: var(--hpc-green);
	margin: 0 0 var(--hpc-s2);
}

/* Small shape before the title: a leaf for tips, a dot for notes. */
.hpc-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 0 70% 0 70%;
	background: currentColor;
}

.hpc-callout--tip {
	background: var(--hpc-green-pale);
	border-color: var(--hpc-line-green);
	border-left-color: var(--hpc-green-fresh);
}

.hpc-callout--tip .hpc-callout__title {
	color: var(--hpc-green);
}

.hpc-callout--warning {
	background: var(--hpc-terracotta-soft);
	border-color: #efd3c3;
	border-left-color: var(--hpc-terracotta);
}

.hpc-callout--warning .hpc-callout__title {
	color: var(--hpc-terracotta-deep);
}

.hpc-callout--warning .hpc-callout__title::before {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
}

/* At-a-glance card (difficulty, time needed, best for, when to do it and
   the "What you need" list) */
.hpc-tutorial-facts {
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-top: 4px solid var(--hpc-green);
	border-radius: var(--hpc-radius);
	box-shadow: var(--hpc-shadow-sm);
	padding: var(--hpc-s5);
	margin-bottom: var(--hpc-s6);
}

.hpc-tutorial-facts__title,
.hpc-toc__title {
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hpc-ink-soft);
	margin: 0 0 var(--hpc-s4);
}

.hpc-facts {
	display: grid;
	gap: var(--hpc-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
	margin: 0;
}

.hpc-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--hpc-s3);
	min-width: 0;
}

.hpc-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--hpc-accent-soft);
	border: 1px solid var(--hpc-line-green);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-green);
}

.hpc-facts__icon .hpc-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.hpc-facts__label {
	display: block;
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: var(--hpc-leading-snug);
	text-transform: uppercase;
	color: var(--hpc-ink-muted);
	margin: 0;
}

.hpc-facts__value {
	display: block;
	font-size: var(--hpc-text-base);
	font-weight: 700;
	line-height: var(--hpc-leading-snug);
	margin-top: 0.15rem;
}

.hpc-materials {
	margin-top: var(--hpc-s5);
	padding-top: var(--hpc-s4);
	border-top: 1px solid var(--hpc-line-green);
}

.hpc-materials .hpc-facts__label {
	margin-bottom: var(--hpc-s3);
}

.hpc-materials__list {
	list-style: none;
	display: grid;
	gap: var(--hpc-s2) var(--hpc-s5);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	margin: 0;
	padding: 0;
	font-size: var(--hpc-text-base);
}

.hpc-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--hpc-s3);
	margin: 0;
}

.hpc-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55em;
	background: var(--hpc-green-fresh);
	border-radius: 0 70% 0 70%;
}

/* Table of contents */
.hpc-toc {
	background: var(--hpc-accent-soft);
	border: 1px solid var(--hpc-line-green);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5);
	margin-bottom: var(--hpc-s6);
}

.hpc-toc__title {
	margin-bottom: var(--hpc-s3);
}

.hpc-toc ol {
	counter-reset: hpc-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--hpc-text-base);
}

.hpc-toc > ol > li {
	counter-increment: hpc-toc;
	margin: 0;
}

.hpc-toc > ol > li + li {
	margin-top: var(--hpc-s2);
}

.hpc-toc > ol > li > a::before {
	content: counter(hpc-toc) ". ";
	color: var(--hpc-green);
	font-weight: 700;
}

.hpc-toc a {
	color: var(--hpc-ink);
	text-decoration: underline;
	text-decoration-color: var(--hpc-green-fresh);
}

.hpc-toc a:hover {
	color: var(--hpc-accent-hover);
	text-decoration-color: currentColor;
}

.hpc-toc ol ol {
	margin: var(--hpc-s2) 0 0 var(--hpc-s5);
	font-size: var(--hpc-text-sm);
}

.hpc-toc ol ol li + li {
	margin-top: var(--hpc-s1);
}

.hpc-toc ol ol a {
	color: var(--hpc-ink-soft);
}

/* FAQ */
.hpc-faq {
	margin-top: var(--hpc-s8);
}

.hpc-faq > h2 {
	padding-bottom: var(--hpc-s3);
	margin-bottom: var(--hpc-s5);
	background: var(--hpc-rule) left bottom / 3rem 3px no-repeat;
}

.hpc-faq__item {
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-left: 5px solid var(--hpc-line-green);
	border-radius: var(--hpc-radius);
	margin-bottom: var(--hpc-s3);
	padding: var(--hpc-s4) var(--hpc-s5);
}

.hpc-faq__question {
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-lg);
	font-weight: 700;
	margin: 0 0 var(--hpc-s2);
}

.hpc-faq__answer {
	color: var(--hpc-ink-soft);
	max-width: var(--hpc-measure);
}

.hpc-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Article footer */
.hpc-article__footer {
	margin-top: var(--hpc-s8);
	padding-top: var(--hpc-s5);
	border-top: 1px solid var(--hpc-line);
}

.hpc-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hpc-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-tags__label {
	font-size: var(--hpc-text-sm);
	font-weight: 700;
	color: var(--hpc-ink-soft);
}

/* Previous / next */
.hpc-post-nav {
	margin-top: var(--hpc-s7);
}

.hpc-post-nav__links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s4);
}

@media (min-width: 48em) {
	.hpc-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* When only "next" exists it moves to the right-hand column, where its
	   right-aligned text expects to sit. */
	.hpc-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.hpc-post-nav__link {
	display: block;
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s4) var(--hpc-s5);
	text-decoration: none;
	height: 100%;
}

.hpc-post-nav__link:hover {
	border-color: var(--hpc-green-fresh);
	background: var(--hpc-accent-soft);
}

.hpc-post-nav__direction {
	display: block;
	font-size: var(--hpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hpc-ink-muted);
	margin-bottom: var(--hpc-s2);
}

.hpc-post-nav__title {
	display: block;
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-base);
	font-weight: 700;
	color: var(--hpc-ink);
	line-height: var(--hpc-leading-snug);
}

.hpc-post-nav__link--prev {
	text-align: left;
}

.hpc-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   13. Sidebar and widgets
   -------------------------------------------------------------------------- */

.hpc-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s5);
}

@media (min-width: 62em) {
	.hpc-sidebar--sticky {
		position: sticky;
		top: var(--hpc-s5);
	}
}

.hpc-widget {
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-top: 4px solid var(--hpc-green-fresh);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5);
	font-size: var(--hpc-text-base);
}

.hpc-widget__title,
.hpc-widget .widget-title {
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hpc-ink-soft);
	margin: 0 0 var(--hpc-s4);
}

.hpc-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-widget li + li {
	margin-top: var(--hpc-s3);
	padding-top: var(--hpc-s3);
	border-top: 1px solid var(--hpc-line);
}

.hpc-widget a {
	color: var(--hpc-ink);
	text-decoration: none;
}

.hpc-widget a:hover {
	color: var(--hpc-accent);
	text-decoration: underline;
}

.hpc-widget .children,
.hpc-widget .sub-menu {
	margin-top: var(--hpc-s3);
	padding-left: var(--hpc-s4);
}

/* --------------------------------------------------------------------------
   14. Archives, pagination, search, 404
   -------------------------------------------------------------------------- */

.hpc-archive-header {
	margin-bottom: var(--hpc-s7);
	padding-bottom: var(--hpc-s5);
	border-bottom: 1px solid var(--hpc-line);
}

.hpc-archive-header__title {
	margin-bottom: var(--hpc-s3);
	padding-bottom: var(--hpc-s4);
	background: var(--hpc-rule) left bottom / 4rem 4px no-repeat;
}

.hpc-archive-header__description {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-lg);
	line-height: var(--hpc-leading-relaxed);
	max-width: var(--hpc-measure);
	margin-top: var(--hpc-s4);
}

.hpc-archive-header__description > :last-child {
	margin-bottom: 0;
}

.hpc-archive-header__count {
	margin: var(--hpc-s3) 0 0;
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
}

.hpc-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hpc-s2);
	list-style: none;
	margin: var(--hpc-s4) 0 0;
	padding: 0;
}

.hpc-pagination {
	margin-top: var(--hpc-s8);
	padding-top: var(--hpc-s5);
	border-top: 1px solid var(--hpc-line);
}

.hpc-pagination .nav-links {
	display: flex;
	justify-content: center;
}

.hpc-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--hpc-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpc-pagination li {
	margin: 0;
}

.hpc-pagination a.page-numbers,
.hpc-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: var(--hpc-s3);
	background: var(--hpc-surface);
	border: 1.5px solid var(--hpc-line-strong);
	border-radius: var(--hpc-radius-sm);
	color: var(--hpc-ink);
	font-size: var(--hpc-text-sm);
	font-weight: 700;
	text-decoration: none;
}

.hpc-pagination a.page-numbers:hover {
	background: var(--hpc-accent-soft);
	border-color: var(--hpc-green);
	color: var(--hpc-ink);
}

.hpc-pagination span.page-numbers.current {
	background: var(--hpc-ink);
	border-color: var(--hpc-ink);
	color: var(--hpc-surface);
}

.hpc-pagination span.page-numbers.dots {
	border-color: transparent;
	background: none;
	min-width: 1.5rem;
	padding-inline: 0;
}

/* Search */
.hpc-search-intro {
	margin-bottom: var(--hpc-s6);
	padding-bottom: var(--hpc-s5);
	border-bottom: 1px solid var(--hpc-line);
}

.hpc-search-intro .hpc-search-form {
	max-width: 32rem;
	margin-top: var(--hpc-s4);
}

.hpc-no-results {
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line-green);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s6) var(--hpc-s5);
}

.hpc-no-results .hpc-search-form {
	max-width: 30rem;
	margin-top: var(--hpc-s5);
}

.hpc-no-results__suggestions {
	display: grid;
	gap: var(--hpc-s2);
	list-style: none;
	margin: var(--hpc-s4) 0 var(--hpc-s5);
	padding: 0;
}

.hpc-no-results__suggestions li {
	padding-left: 1.3em;
	position: relative;
}

.hpc-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--hpc-green-fresh);
	border-radius: 0 70% 0 70%;
}

/* Two ways forward on dead ends: the beginner guide and the full list. */
.hpc-suggested {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hpc-s3);
	margin: var(--hpc-s5) 0;
}

.hpc-error-404 .hpc-suggested {
	justify-content: center;
}

/* 404 */
.hpc-error-404 {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.hpc-error-404__code {
	display: inline-block;
	font-family: var(--hpc-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-weight: 800;
	line-height: 1;
	color: var(--hpc-green-fresh);
	margin: 0 0 var(--hpc-s5);
	padding-bottom: var(--hpc-s3);
	background: var(--hpc-rule) center bottom / 100% 4px no-repeat;
}

.hpc-error-404 .hpc-search-form {
	max-width: 26rem;
	margin: var(--hpc-s5) auto 0;
	text-align: left;
}

.hpc-error-404 .hpc-subcategories {
	justify-content: center;
	margin-top: var(--hpc-s4);
}

.hpc-error-404 .hpc-section {
	margin-top: var(--hpc-s8);
	text-align: left;
}

.hpc-error-404__headline {
	margin-top: var(--hpc-s7);
	font-size: var(--hpc-text-xl);
}

/* --------------------------------------------------------------------------
   15. Pages and contact form
   -------------------------------------------------------------------------- */

.hpc-page__header {
	margin-bottom: var(--hpc-s6);
	padding-bottom: var(--hpc-s5);
	border-bottom: 1px solid var(--hpc-line);
}

.hpc-page__header .hpc-page__title {
	margin-bottom: 0;
	padding-bottom: var(--hpc-s4);
	background: var(--hpc-rule) left bottom / 4rem 4px no-repeat;
}

.hpc-page__updated {
	margin: var(--hpc-s3) 0 0;
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
}

.hpc-form-notice {
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s4) var(--hpc-s5);
	margin-bottom: var(--hpc-s5);
	border: 1px solid;
	border-left-width: 5px;
}

.hpc-form-notice > :last-child {
	margin-bottom: 0;
}

.hpc-form-notice--success {
	background: #eef7ef;
	border-color: #9cc5a1;
	color: #1f5128;
}

.hpc-form-notice--error {
	background: #fdeeec;
	border-color: #e3a79e;
	color: #7d2418;
}

.hpc-form-notice__list {
	margin: var(--hpc-s2) 0 0;
	padding-left: 1.2em;
}

.hpc-form {
	max-width: 38rem;
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-top: 4px solid var(--hpc-green-fresh);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5);
}

.hpc-form > :last-child {
	margin-bottom: 0;
}

.hpc-form input[aria-invalid="true"],
.hpc-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
	border-width: 2px;
}

.hpc-field__error {
	display: block;
	margin-top: var(--hpc-s2);
	color: #8c2b20;
	font-size: var(--hpc-text-sm);
	font-weight: 700;
}

.hpc-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Comments
   -------------------------------------------------------------------------- */

.hpc-comments {
	margin-top: var(--hpc-s9);
	padding-top: var(--hpc-s6);
	border-top: 1px solid var(--hpc-line);
}

.hpc-comments__title {
	font-size: var(--hpc-text-2xl);
}

.hpc-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--hpc-s7);
	padding: 0;
}

.hpc-comments .comment-list ol.children {
	list-style: none;
	margin: var(--hpc-s4) 0 0 var(--hpc-s5);
	padding: 0;
}

.hpc-comments .comment-body {
	background: var(--hpc-surface);
	border: 1px solid var(--hpc-line);
	border-radius: var(--hpc-radius);
	padding: var(--hpc-s5);
	margin-bottom: var(--hpc-s4);
}

.hpc-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hpc-s2) var(--hpc-s3);
	font-size: var(--hpc-text-sm);
	color: var(--hpc-ink-muted);
	margin-bottom: var(--hpc-s3);
}

.hpc-comments .comment-author img {
	display: inline-block;
	border-radius: 50%;
	margin-right: var(--hpc-s2);
	vertical-align: middle;
}

.hpc-comments .reply {
	font-size: var(--hpc-text-sm);
	font-weight: 700;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--hpc-text-sm);
	color: var(--hpc-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--hpc-s4);
}

/* --------------------------------------------------------------------------
   17. Ad slots (empty and disabled by default)
   -------------------------------------------------------------------------- */

.hpc-ad-slot {
	margin-block: var(--hpc-s6);
	text-align: center;
	overflow: hidden;
}

.hpc-ad-slot__label {
	display: block;
	margin-bottom: var(--hpc-s2);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hpc-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.hpc-site-footer {
	background: var(--hpc-bg-deep);
	margin-top: auto;
	padding-bottom: var(--hpc-s6);
}

/* A thin leaf-green band along the top of the footer. */
.hpc-site-footer::before {
	content: "";
	display: block;
	height: 3px;
	margin-bottom: var(--hpc-s8);
	background: var(--hpc-band);
}

.hpc-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hpc-s6);
	margin-bottom: var(--hpc-s6);
}

@media (min-width: 48em) {
	.hpc-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--hpc-s8);
	}
}

.hpc-footer__about p {
	color: var(--hpc-ink-soft);
	font-size: var(--hpc-text-base);
	max-width: 44ch;
	margin-bottom: 0;
}

/* General-information note under the site description. */
.hpc-footer__about .hpc-footer__disclaimer {
	margin-top: var(--hpc-s3);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
	line-height: var(--hpc-leading-snug);
}

.hpc-footer__nav {
	min-width: 0;
}

.hpc-footer__heading {
	font-family: var(--hpc-font-body);
	font-size: var(--hpc-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hpc-ink-soft);
	margin: 0 0 var(--hpc-s3);
}

.hpc-footer__about .hpc-footer__heading {
	font-family: var(--hpc-font-head);
	font-size: var(--hpc-text-xl);
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--hpc-ink);
}

.hpc-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--hpc-text-base);
}

.hpc-footer__menu li + li {
	margin-top: var(--hpc-s1);
}

.hpc-footer__menu a {
	display: inline-block;
	padding-block: var(--hpc-s1);
	color: var(--hpc-ink-soft);
	text-decoration: none;
}

.hpc-footer__menu a:hover {
	color: var(--hpc-accent-hover);
	text-decoration: underline;
}

.hpc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hpc-s3);
	padding-top: var(--hpc-s5);
	border-top: 1px solid var(--hpc-line-green);
	color: var(--hpc-ink-muted);
	font-size: var(--hpc-text-sm);
}

.hpc-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   19. Utilities and editor alignments
   -------------------------------------------------------------------------- */

.hpc-visually-balanced {
	max-width: var(--hpc-measure);
}

.hpc-text-center {
	text-align: center;
}

.hpc-mt-0 {
	margin-top: 0;
}

.hpc-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--hpc-s5) var(--hpc-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--hpc-s4) var(--hpc-s5);
}

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--hpc-s4);
	}
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--hpc-radius);
}

/* --------------------------------------------------------------------------
   20. Print — guides that read well on a printed page
   -------------------------------------------------------------------------- */

@media print {
	.hpc-site-header,
	.hpc-site-footer,
	.hpc-ad-slot,
	.hpc-post-nav,
	.hpc-comments,
	.hpc-sidebar,
	.hpc-related,
	.hpc-skip-link,
	.hpc-breadcrumbs {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.hpc-content > * {
		max-width: none;
	}

	.hpc-table-wrap,
	.wp-block-table {
		overflow: visible;
	}

	.hpc-table-wrap table,
	.wp-block-table table {
		min-width: 0;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	.hpc-content h2,
	.hpc-content h3 {
		break-after: avoid;
	}

	figure,
	.hpc-callout,
	.hpc-tutorial-facts,
	.hpc-facts__item {
		break-inside: avoid;
	}
}
