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

   Look: a letterer's desk — warm off-white paper, navy ink, light blue pencil
   guide lines and a coral accent. The signature motif is the pair of lettering
   guide lines (a dashed x-height line above a solid baseline), drawn with CSS
   gradients and borders only.

   Contrast reference (WCAG AA, computed):
     ink          #22303f on paper #fbf8f1 / white ........ 12.7:1 / 13.4:1
     ink-soft     #3f4d5c on paper / desk #eadfce ......... 8.2:1 / 6.6:1
     ink-muted    #55616d on paper / desk #eadfce ......... 6.0:1 / 4.8:1
     accent       #b84a33 on paper / white ................ 4.9:1 / 5.2:1
     accent       #b84a33 on guide-tint / coral-tint ...... 4.6:1 / 4.6:1
     accent-hover #8f3524 on paper / beige / desk ......... 7.3:1 / 6.6:1 / 5.9:1
     guide-ink    #2f5d7a on white / guide-tint ........... 7.1:1 / 6.3:1
     white        #ffffff on accent #b84a33 ............... 5.2:1
     paper        #fbf8f1 on ink #22303f .................. 12.7:1
   The accent is 4.4:1 on beige #f3ece0 and 3.9:1 on desk #eadfce, so links on
   those two backgrounds use ink or accent-hover instead.
   Guide blue #8fb1c7, coral #d9694f and gold #d9a441 are decoration only and
   never carry text.
   ========================================================================== */

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

:root {
	/* Colour — raw palette */
	--hlb-guide: #8fb1c7;
	--hlb-guide-soft: #c9d9e3;
	--hlb-guide-deep: #5b86a1;
	--hlb-guide-ink: #2f5d7a;
	--hlb-guide-tint: #edf3f7;
	--hlb-coral: #d9694f;
	--hlb-coral-tint: #fbeee9;
	--hlb-gold: #d9a441;
	--hlb-desk: #eadfce;

	/* Colour — roles */
	--hlb-paper: #fbf8f1;
	--hlb-paper-deep: #f3ece0;
	--hlb-surface: #ffffff;
	--hlb-ink: #22303f;
	--hlb-ink-soft: #3f4d5c;
	--hlb-ink-muted: #55616d;
	--hlb-line: #e6dccb;
	--hlb-line-strong: #7d8996;
	--hlb-accent: #b84a33;
	--hlb-accent-hover: #8f3524;
	--hlb-accent-soft: #f3ece0;
	--hlb-second: #2f5d7a;
	--hlb-second-soft: #edf3f7;
	--hlb-focus: #1d5c85;

	/* Motif — lettering guide lines: a solid baseline and, above it, the
	   dashed x-height line. Used as two stacked background layers. */
	--hlb-rule-base: linear-gradient(var(--hlb-coral), var(--hlb-coral));
	--hlb-rule-x: repeating-linear-gradient(90deg, var(--hlb-guide) 0 6px, transparent 6px 10px);

	/* Typography — system stacks, nothing to download */
	--hlb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--hlb-font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--hlb-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

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

	--hlb-leading-tight: 1.2;
	--hlb-leading-snug: 1.35;
	--hlb-leading-normal: 1.7;
	--hlb-leading-relaxed: 1.8;

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

	/* Shape and shadow */
	--hlb-radius-sm: 4px;
	--hlb-radius: 6px;
	--hlb-radius-lg: 10px;
	--hlb-shadow-sm: 0 1px 2px rgba(34, 48, 63, 0.08);
	--hlb-shadow: 0 6px 18px rgba(34, 48, 63, 0.1);
	--hlb-shadow-lg: 0 14px 34px rgba(34, 48, 63, 0.14);

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

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--hlb-gutter: var(--hlb-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;
	}

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

body {
	margin: 0;
	background-color: var(--hlb-paper);
	color: var(--hlb-ink);
	font-family: var(--hlb-font-body);
	font-size: var(--hlb-text-md);
	line-height: var(--hlb-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;
}

/* A pencil guide line */
hr {
	border: 0;
	border-top: 2px dashed var(--hlb-guide);
	margin: var(--hlb-s7) 0;
}

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

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

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

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

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

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

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

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

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

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

strong,
b {
	font-weight: 700;
}

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

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

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

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

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

blockquote {
	margin: var(--hlb-s6) 0;
	padding: var(--hlb-s2) 0 var(--hlb-s2) var(--hlb-s5);
	border-left: 3px solid var(--hlb-coral);
	font-family: var(--hlb-font-head);
	font-size: var(--hlb-text-lg);
	font-style: italic;
	color: var(--hlb-ink-soft);
}

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

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

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

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

/* The main landmark only receives focus from the skip link. */
.hlb-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(--hlb-ink);
	border-radius: var(--hlb-radius-sm);
	box-shadow: var(--hlb-shadow);
	clip-path: none;
	color: var(--hlb-surface);
	display: block;
	font-size: var(--hlb-text-base);
	font-weight: 700;
	height: auto;
	left: var(--hlb-s4);
	line-height: normal;
	outline-color: var(--hlb-gold);
	padding: var(--hlb-s3) var(--hlb-s4);
	text-decoration: none;
	top: var(--hlb-s4);
	width: auto;
	z-index: 100000;
}

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

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

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

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

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

/* Used on the homepage, where the hero sits flush against the header. */
.hlb-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. */
.hlb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hlb-s7);
}

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

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

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

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

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

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

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

/* Guide lines under every section title: a dashed x-height line above a
   solid baseline. */
.hlb-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4rem;
	height: 8px;
	background:
		var(--hlb-rule-base) left bottom / 100% 2px no-repeat,
		var(--hlb-rule-x) left top / 100% 2px no-repeat;
}

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

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

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

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

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

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

/* A pair of guide lines along the bottom of the header. */
.hlb-site-header::after {
	content: "";
	display: block;
	height: 7px;
	background:
		linear-gradient(var(--hlb-ink), var(--hlb-ink)) left bottom / 100% 2px no-repeat,
		var(--hlb-rule-x) left top / 100% 1px no-repeat;
}

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

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

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

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

.hlb-branding__title {
	font-family: var(--hlb-font-head);
	font-size: var(--hlb-text-xl);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	letter-spacing: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hlb-nav__list li {
	position: relative;
}

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

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

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

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

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

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

@media (min-width: 62em) {
	.hlb-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. */
	.hlb-site-header .hlb-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--hlb-s5);
	}

	.hlb-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. */
	.hlb-header__panel,
	.hlb-header__panel.is-open {
		display: contents;
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hlb-required {
	color: var(--hlb-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: var(--hlb-surface);
	border: 1.5px solid var(--hlb-line-strong);
	border-radius: var(--hlb-radius-sm);
	color: var(--hlb-ink);
	font: inherit;
	font-size: var(--hlb-text-base);
	padding: var(--hlb-s3);
}

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

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

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

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

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

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

.hlb-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(--hlb-accent-soft);
	border: 1.5px solid var(--hlb-line-strong);
	border-radius: var(--hlb-radius-sm);
	color: var(--hlb-ink);
	cursor: pointer;
	padding: 0 var(--hlb-s3);
}

.hlb-search-form__submit:hover {
	background: var(--hlb-desk);
	border-color: var(--hlb-ink);
	color: var(--hlb-ink);
}

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

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

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

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

.hlb-button--secondary {
	background: var(--hlb-surface);
	border-color: var(--hlb-ink);
	color: var(--hlb-ink);
}

.hlb-button--secondary:hover,
.hlb-button--secondary:focus {
	background: var(--hlb-ink);
	border-color: var(--hlb-ink);
	color: var(--hlb-surface);
}

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

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

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

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

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

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

a.hlb-chip:hover {
	background: var(--hlb-accent-soft);
	border-color: var(--hlb-guide);
	color: var(--hlb-ink);
}

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

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

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

.hlb-meta a {
	color: inherit;
}

.hlb-meta svg {
	flex: 0 0 auto;
	color: var(--hlb-guide-deep);
}

.hlb-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
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

.hlb-card:hover {
	border-color: var(--hlb-guide);
	box-shadow: var(--hlb-shadow);
	transform: translateY(-3px);
}

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

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

/* Posts without a featured image get a sheet of ruled practice paper. */
.hlb-card__media--placeholder,
.hlb-card-row__media--placeholder {
	background:
		repeating-linear-gradient(180deg, transparent 0 22px, var(--hlb-guide-soft) 22px 23px),
		var(--hlb-paper-deep);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hlb-steps > li::before {
	content: counter(hlb-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--hlb-paper);
	border: 1.5px solid var(--hlb-ink);
	border-radius: 50%;
	color: var(--hlb-ink);
	font-family: var(--hlb-font-head);
	font-size: var(--hlb-text-lg);
	font-style: italic;
	font-weight: 700;
}

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

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

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

/* Ruled practice paper: faint horizontal guide lines over the desk colour. */
.hlb-hero {
	background-color: var(--hlb-paper-deep);
	background-image:
		repeating-linear-gradient(180deg, transparent 0 39px, rgba(143, 177, 199, 0.3) 39px 40px),
		linear-gradient(180deg, var(--hlb-paper-deep), var(--hlb-paper));
	border-bottom: 2px solid var(--hlb-guide);
	padding-block: var(--hlb-s8);
}

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

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

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

.hlb-hero__title {
	font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.12;
	margin-bottom: var(--hlb-s4);
	max-width: 16ch;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Closing call to action */
.hlb-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hlb-s5);
	align-items: center;
	background: var(--hlb-ink);
	border-radius: var(--hlb-radius-lg);
	color: #e3e9ef;
	padding: var(--hlb-s7) var(--hlb-s5);
	/* A dashed pencil guide line set inside the panel edge. */
	outline: 1px dashed rgba(143, 177, 199, 0.6);
	outline-offset: -10px;
}

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

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

.hlb-cta__text {
	color: #e3e9ef;
	margin: 0;
	max-width: 54ch;
}

.hlb-cta .hlb-button {
	background: var(--hlb-paper);
	border-color: var(--hlb-paper);
	color: var(--hlb-ink);
}

.hlb-cta .hlb-button:hover,
.hlb-cta .hlb-button:focus {
	background: var(--hlb-surface);
	border-color: var(--hlb-surface);
	color: var(--hlb-ink);
}

.hlb-cta :focus-visible {
	outline-color: var(--hlb-gold);
}

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

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

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

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

.hlb-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--hlb-guide-deep);
	font-weight: 700;
}

.hlb-breadcrumbs a {
	color: var(--hlb-ink-soft);
	text-decoration: underline;
	text-decoration-color: var(--hlb-guide);
}

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

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

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

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

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

.hlb-article__meta {
	padding-top: var(--hlb-s4);
	border-top: 1px dashed var(--hlb-guide);
}

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

.hlb-article__figure img {
	border-radius: var(--hlb-radius);
	width: 100%;
}

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

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

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

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

.hlb-content h2 {
	margin-top: var(--hlb-s8);
	padding-bottom: var(--hlb-s4);
	background:
		var(--hlb-rule-base) left bottom / 4rem 2px no-repeat,
		var(--hlb-rule-x) left 0 bottom 6px / 4rem 2px no-repeat;
}

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

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

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

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

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

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

.hlb-content ul:not([class]) > li::marker {
	color: var(--hlb-guide-deep);
}

/* Ordered lists are the tutorial steps: bold numbers, room to breathe and a
   dashed guide line between top-level steps. */
.hlb-content ol {
	padding-left: 1.75em;
}

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

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

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

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

.hlb-content img {
	border-radius: var(--hlb-radius);
	background-color: var(--hlb-desk);
}

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

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

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

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

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

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

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

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

.hlb-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(243, 236, 224, 0.55);
}

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

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

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

/* Callouts — used in article content and available in the block editor */
.hlb-callout {
	position: relative;
	background: var(--hlb-surface);
	border: 1px solid var(--hlb-line);
	border-left: 4px solid var(--hlb-guide);
	border-radius: var(--hlb-radius);
	padding: var(--hlb-s5);
	margin-block: var(--hlb-s6);
}

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

.hlb-callout__title {
	display: flex;
	align-items: center;
	gap: var(--hlb-s2);
	font-size: var(--hlb-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hlb-guide-ink);
	margin-bottom: var(--hlb-s2);
}

/* Small shape before the title: a dot for tips, a triangle for common
   mistakes. */
.hlb-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: currentColor;
}

.hlb-callout--tip {
	background: var(--hlb-guide-tint);
	border-color: var(--hlb-guide-soft);
	border-left-color: var(--hlb-guide-deep);
}

.hlb-callout--tip .hlb-callout__title {
	color: var(--hlb-guide-ink);
}

.hlb-callout--warning {
	background: var(--hlb-coral-tint);
	border-color: #f0cfc4;
	border-left-color: var(--hlb-coral);
}

.hlb-callout--warning .hlb-callout__title {
	color: var(--hlb-accent-hover);
}

.hlb-callout--warning .hlb-callout__title::before {
	width: 0;
	height: 0;
	border-radius: 0;
	background: none;
	border-left: 0.42rem solid transparent;
	border-right: 0.42rem solid transparent;
	border-bottom: 0.72rem solid currentColor;
}

/* Tutorial facts (difficulty, time, tools, paper, what you need) */
.hlb-tutorial-facts {
	background: var(--hlb-surface);
	border: 1px solid var(--hlb-line);
	border-top: 3px solid var(--hlb-ink);
	border-radius: var(--hlb-radius);
	box-shadow: var(--hlb-shadow-sm);
	padding: var(--hlb-s5);
	margin-bottom: var(--hlb-s6);
}

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

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

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

.hlb-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--hlb-guide-tint);
	border: 1px solid var(--hlb-guide-soft);
	border-radius: 50%;
	color: var(--hlb-guide-ink);
}

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

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

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

.hlb-materials {
	margin-top: var(--hlb-s5);
	padding-top: var(--hlb-s4);
	border-top: 1px dashed var(--hlb-guide);
}

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

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

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

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

/* Table of contents */
.hlb-toc {
	background: var(--hlb-paper-deep);
	border: 1px solid var(--hlb-line);
	border-radius: var(--hlb-radius);
	padding: var(--hlb-s5);
	margin-bottom: var(--hlb-s6);
}

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

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

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

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

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

.hlb-toc a {
	color: var(--hlb-ink);
	text-decoration: underline;
	text-decoration-color: var(--hlb-guide);
}

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

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

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

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

.hlb-toc ol ol a:hover {
	color: var(--hlb-accent-hover);
}

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

.hlb-faq > h2 {
	padding-bottom: var(--hlb-s4);
	margin-bottom: var(--hlb-s5);
	background:
		var(--hlb-rule-base) left bottom / 4rem 2px no-repeat,
		var(--hlb-rule-x) left 0 bottom 6px / 4rem 2px no-repeat;
}

.hlb-faq__item {
	background: var(--hlb-surface);
	border: 1px solid var(--hlb-line);
	border-left: 4px solid var(--hlb-guide-soft);
	border-radius: var(--hlb-radius);
	margin-bottom: var(--hlb-s3);
	padding: var(--hlb-s4) var(--hlb-s5);
}

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

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

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

/* Article footer */
.hlb-article__footer {
	margin-top: var(--hlb-s8);
	padding-top: var(--hlb-s5);
	border-top: 1px dashed var(--hlb-guide);
}

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

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

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

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

@media (min-width: 48em) {
	.hlb-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. */
	.hlb-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

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

.hlb-post-nav__link:hover {
	border-color: var(--hlb-guide);
	background: var(--hlb-accent-soft);
}

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

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

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

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

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

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

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

.hlb-widget {
	background: var(--hlb-surface);
	border: 1px solid var(--hlb-line);
	border-top: 3px solid var(--hlb-ink);
	border-radius: var(--hlb-radius);
	padding: var(--hlb-s5);
	font-size: var(--hlb-text-base);
}

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

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

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

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

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

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

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

.hlb-archive-header {
	margin-bottom: var(--hlb-s7);
	padding-bottom: var(--hlb-s5);
	border-bottom: 1px dashed var(--hlb-guide);
}

.hlb-archive-header__title {
	margin-bottom: var(--hlb-s3);
	padding-bottom: var(--hlb-s4);
	background:
		var(--hlb-rule-base) left bottom / 5rem 2px no-repeat,
		var(--hlb-rule-x) left 0 bottom 6px / 5rem 2px no-repeat;
}

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

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

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

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

.hlb-pagination {
	margin-top: var(--hlb-s8);
	padding-top: var(--hlb-s5);
	border-top: 1px dashed var(--hlb-guide);
}

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

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

.hlb-pagination li {
	margin: 0;
}

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

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

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

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

/* Search */
.hlb-search-intro {
	margin-bottom: var(--hlb-s6);
	padding-bottom: var(--hlb-s5);
	border-bottom: 1px dashed var(--hlb-guide);
}

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

.hlb-no-results {
	background: var(--hlb-surface);
	border: 2px dashed var(--hlb-guide);
	border-radius: var(--hlb-radius);
	padding: var(--hlb-s6) var(--hlb-s5);
}

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

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

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

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

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

.hlb-error-404__code {
	display: inline-block;
	font-family: var(--hlb-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	color: var(--hlb-guide);
	margin: 0 0 var(--hlb-s5);
	padding-bottom: var(--hlb-s4);
	background:
		var(--hlb-rule-base) center bottom / 100% 2px no-repeat,
		var(--hlb-rule-x) left 0 bottom 8px / 100% 2px no-repeat;
}

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

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

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

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

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

.hlb-page__header {
	margin-bottom: var(--hlb-s6);
	padding-bottom: var(--hlb-s5);
	border-bottom: 1px dashed var(--hlb-guide);
}

.hlb-page__header .hlb-page__title {
	margin-bottom: 0;
	padding-bottom: var(--hlb-s4);
	background:
		var(--hlb-rule-base) left bottom / 5rem 2px no-repeat,
		var(--hlb-rule-x) left 0 bottom 6px / 5rem 2px no-repeat;
}

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

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

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

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

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

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

.hlb-form {
	max-width: 38rem;
	background: var(--hlb-surface);
	border: 1px solid var(--hlb-line);
	border-top: 3px solid var(--hlb-ink);
	border-radius: var(--hlb-radius);
	padding: var(--hlb-s5);
}

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

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

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

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

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

.hlb-comments {
	margin-top: var(--hlb-s9);
	padding-top: var(--hlb-s6);
	border-top: 1px dashed var(--hlb-guide);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hlb-site-footer {
	background: var(--hlb-desk);
	margin-top: auto;
	padding-bottom: var(--hlb-s6);
}

/* A pair of guide lines along the top of the footer. */
.hlb-site-footer::before {
	content: "";
	display: block;
	height: 7px;
	margin-bottom: var(--hlb-s8);
	background:
		linear-gradient(var(--hlb-ink), var(--hlb-ink)) left top / 100% 2px no-repeat,
		var(--hlb-rule-x) left bottom / 100% 1px no-repeat;
}

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

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

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

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

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

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

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

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

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

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

.hlb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hlb-s3);
	padding-top: var(--hlb-s5);
	border-top: 1px dashed var(--hlb-guide-deep);
	color: var(--hlb-ink-soft);
	font-size: var(--hlb-text-sm);
}

.hlb-footer__bottom p {
	margin: 0;
}

/* The plain accent is too light on the desk colour. */
.hlb-site-footer a {
	color: var(--hlb-ink-soft);
}

.hlb-site-footer a:hover,
.hlb-site-footer a:focus {
	color: var(--hlb-accent-hover);
}

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

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

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

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

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

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

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

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--hlb-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(--hlb-radius);
}

/* --------------------------------------------------------------------------
   20. Print — tutorials that read well on paper
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

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

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