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

   Look: a clean sketchbook — warm paper, graphite-gray text, serif headings,
   leaf-green links and buttons, a sparing dusty rose. Motifs (dashed blue
   construction lines, sketchbook-page cards, pencil-circle step numbers) are
   drawn with CSS borders and gradients only.

   Contrast reference (WCAG AA, calculated, approximate):
     ink        #2f2f35 on paper #fbf7ee .......... 12.4:1
     ink-soft   #5c5c64 on paper / surface ........ 6.2:1 / 6.5:1
     ink-muted  #66666e on paper / paper-deep ..... 5.3:1 / 4.8:1
     accent     #4f7350 on paper / paper-deep ..... 5.0:1 / 4.6:1
     accent     #4f7350 on accent-soft #eef3e8 .... 4.8:1
     sage-deep  #3a573b on sage-soft #eef3e8 ...... 7.1:1
     rose-deep  #8f3f4e on rose-soft #fbeff0 ...... 6.2:1
     surface    #fffdf8 on accent #4f7350 ......... 5.3:1
     surface    #fffdf8 on ink #2f2f35 ............ 13.0:1
   Construction blue #7fa3c4 and dusty rose #b85c6b are used for lines and
   borders only, never for text.
   ========================================================================== */

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

:root {
	/* Colour — raw palette */
	--fdt-rule: #bdb6a6;          /* pencil rule: card edges, dashed dividers */
	--fdt-pencil-light: #cfc8b8;  /* faint pencil line */
	--fdt-pencil: #7d7d86;        /* mid graphite: icons, markers */
	--fdt-graphite: #5c5c64;      /* soft graphite: small labels */
	--fdt-sage: #a9bf9a;
	--fdt-sage-deep: #3a573b;
	--fdt-sage-soft: #eef3e8;
	--fdt-rose: #b85c6b;          /* dusty rose: sparing accent, never body text */
	--fdt-rose-deep: #8f3f4e;
	--fdt-rose-soft: #fbeff0;
	--fdt-blue: #7fa3c4;          /* construction blue: dashed lines only, never text */
	--fdt-highlight: #f2d27a;

	/* Colour — roles */
	--fdt-paper: #fbf7ee;
	--fdt-paper-deep: #f3ecdc;
	--fdt-surface: #fffdf8;
	--fdt-ink: #2f2f35;
	--fdt-ink-soft: #5c5c64;
	--fdt-ink-muted: #66666e;
	--fdt-line: #ddd5c3;
	--fdt-line-strong: #8a867c;
	--fdt-accent: #4f7350;
	--fdt-accent-hover: #3a573b;
	--fdt-accent-soft: #eef3e8;
	--fdt-second: #3a573b;
	--fdt-second-soft: #eef3e8;
	--fdt-focus: #2c5d8a;

	/* Motif — a dashed construction line, as drawn before the final outline */
	--fdt-construction: repeating-linear-gradient(
		90deg,
		var(--fdt-blue) 0 6px,
		transparent 6px 10px
	);

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

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

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

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

	/* Shape and shadow */
	--fdt-radius-sm: 3px;
	--fdt-radius: 4px;
	--fdt-radius-lg: 6px;
	/* Paper shadows: a sheet lying on the page underneath it. */
	--fdt-shadow-sm: 2px 3px 0 rgba(47, 47, 53, 0.05);
	--fdt-shadow: 3px 5px 0 rgba(47, 47, 53, 0.07), 0 8px 18px rgba(47, 47, 53, 0.06);
	--fdt-shadow-lg: 0 12px 28px rgba(47, 47, 53, 0.12);

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

	color-scheme: light;
}

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

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

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

/* Construction line */
hr {
	border: 0;
	border-top: 1px dashed var(--fdt-blue);
	margin: var(--fdt-s7) 0;
}

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

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

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

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

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

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

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

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

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

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

strong,
b {
	font-weight: 700;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* A short dashed construction line under every section title. */
.fdt-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4rem;
	height: 2px;
	background: var(--fdt-construction);
}

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

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

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

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

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

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

/* Dashed construction line just under the header's pencil rule. */
.fdt-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 2px;
	background: var(--fdt-construction);
	opacity: 0.7;
	pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-nav__list li {
	position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-search-form__submit:hover {
	background: var(--fdt-pencil-light);
	border-color: var(--fdt-graphite);
	color: var(--fdt-ink);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-meta a {
	color: inherit;
}

.fdt-meta svg {
	flex: 0 0 auto;
	color: var(--fdt-pencil);
}

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

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

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

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

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

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

/* A card is a sketchbook page: thin graphite edge, a slight paper shadow. */
.fdt-card {
	display: flex;
	flex-direction: column;
	background: var(--fdt-surface);
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius);
	box-shadow: var(--fdt-shadow-sm);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.fdt-card:hover {
	border-color: var(--fdt-pencil);
	box-shadow: var(--fdt-shadow);
	transform: translateY(-2px);
}

.fdt-card__media {
	display: block;
	background: var(--fdt-paper);
	border-bottom: 1px dashed var(--fdt-rule);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

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

/* Posts without a featured image get a blank sketchbook page: two light
   construction circles on paper. */
.fdt-card__media--placeholder,
.fdt-card-row__media--placeholder {
	background-color: var(--fdt-paper);
	background-image:
		radial-gradient(circle at 50% 50%, transparent 0 2.4rem, rgba(127, 163, 196, 0.55) 2.4rem calc(2.4rem + 1px), transparent calc(2.4rem + 1px)),
		radial-gradient(circle at 50% 50%, transparent 0 0.9rem, rgba(127, 163, 196, 0.55) 0.9rem calc(0.9rem + 1px), transparent calc(0.9rem + 1px));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-steps > li {
	counter-increment: fdt-step;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: var(--fdt-s4);
	align-items: start;
	background: var(--fdt-surface);
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius);
	box-shadow: var(--fdt-shadow-sm);
	padding: var(--fdt-s5);
}

/* Step number in a pencil-drawn circle: a slightly uneven graphite ring over
   a dashed blue construction circle. */
.fdt-steps > li::before {
	content: counter(fdt-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0.125rem;
	background: var(--fdt-surface);
	border: 1.5px solid var(--fdt-ink-soft);
	border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
	outline: 1px dashed var(--fdt-blue);
	outline-offset: 2px;
	transform: rotate(-4deg);
	color: var(--fdt-ink);
	font-family: var(--fdt-font-head);
	font-size: var(--fdt-text-lg);
	font-weight: 700;
}

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

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

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

/* A sketchbook spread: page white with a very faint blue drawing grid. */
.fdt-hero {
	background-color: var(--fdt-surface);
	background-image:
		linear-gradient(rgba(127, 163, 196, 0.11) 1px, transparent 1px),
		linear-gradient(90deg, rgba(127, 163, 196, 0.11) 1px, transparent 1px);
	background-size: 28px 28px;
	background-position: center top;
	border-bottom: 1px dashed var(--fdt-blue);
	padding-block: var(--fdt-s8);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Closing call to action */
.fdt-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fdt-s5);
	align-items: center;
	background: var(--fdt-accent-soft);
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius-lg);
	box-shadow: var(--fdt-shadow-sm);
	color: var(--fdt-ink-soft);
	padding: var(--fdt-s7) var(--fdt-s5);
	/* Dashed construction line set inside the panel edge. */
	outline: 1px dashed var(--fdt-blue);
	outline-offset: -9px;
}

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

.fdt-cta__title {
	color: var(--fdt-ink);
	margin-bottom: var(--fdt-s3);
}

.fdt-cta__text {
	color: var(--fdt-ink-soft);
	margin: 0;
	max-width: 54ch;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Images are pencil drawings on cream paper: a thin graphite edge and a
   paper shadow make each one read as a sheet resting on the page. */
.fdt-article__figure img {
	background-color: var(--fdt-paper);
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius);
	box-shadow: var(--fdt-shadow-sm);
	width: 100%;
}

/* Figures and captions: a pencilled note under the drawing. */
.fdt-article__figure figcaption,
.fdt-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--fdt-s3);
	padding-left: var(--fdt-s3);
	border-left: 2px solid var(--fdt-sage);
	color: var(--fdt-ink-muted);
	font-family: var(--fdt-font-head);
	font-size: var(--fdt-text-base);
	font-style: italic;
	line-height: var(--fdt-leading-snug);
	text-align: left;
}

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

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

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

.fdt-content h2 {
	margin-top: var(--fdt-s8);
	padding-bottom: var(--fdt-s3);
	background: var(--fdt-construction) left bottom / 3.5rem 2px no-repeat;
}

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

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

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

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

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

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

.fdt-content ul:not([class]) > li::marker {
	color: var(--fdt-pencil);
}

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

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

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

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

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

.fdt-content img {
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius);
	background-color: var(--fdt-paper);
	box-shadow: var(--fdt-shadow-sm);
}

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

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

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

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

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

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

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

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

.fdt-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(243, 236, 220, 0.5);
}

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

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

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

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

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

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

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

.fdt-callout--tip {
	background: var(--fdt-sage-soft);
	border-color: #cddac9;
	border-left-color: var(--fdt-accent);
}

.fdt-callout--tip .fdt-callout__title {
	color: var(--fdt-sage-deep);
}

.fdt-callout--warning {
	background: var(--fdt-rose-soft);
	border-color: #efd3d7;
	border-left-color: var(--fdt-rose);
}

.fdt-callout--warning .fdt-callout__title {
	color: var(--fdt-rose-deep);
}

.fdt-callout--warning .fdt-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 card (difficulty, time, pencils, paper, what you need): a
   sketchbook page with a dashed construction line set inside its edge. */
.fdt-tutorial-facts {
	background: var(--fdt-surface);
	border: 1px solid var(--fdt-rule);
	border-radius: var(--fdt-radius);
	box-shadow: var(--fdt-shadow-sm);
	outline: 1px dashed var(--fdt-blue);
	outline-offset: -7px;
	padding: var(--fdt-s5) var(--fdt-s5);
	margin-bottom: var(--fdt-s6);
}

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

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

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

.fdt-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--fdt-accent-soft);
	border: 1px solid #cddac9;
	border-radius: 50%;
	color: var(--fdt-second);
}

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

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

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

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

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

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

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

.fdt-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55em;
	background: var(--fdt-sage);
	border-radius: 1px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-faq > h2 {
	padding-bottom: var(--fdt-s3);
	margin-bottom: var(--fdt-s5);
	background: var(--fdt-construction) left bottom / 3.5rem 2px no-repeat;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fdt-archive-header__title {
	margin-bottom: var(--fdt-s3);
	padding-bottom: var(--fdt-s4);
	background: var(--fdt-construction) left bottom / 4.5rem 2px no-repeat;
}

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

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

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

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

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

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

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

.fdt-pagination li {
	margin: 0;
}

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

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

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

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

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

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

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

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

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

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

.fdt-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--fdt-sage);
	border-radius: 1px;
}

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

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

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

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

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

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

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

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

.fdt-page__header .fdt-page__title {
	margin-bottom: 0;
	padding-bottom: var(--fdt-s4);
	background: var(--fdt-construction) left bottom / 4.5rem 2px no-repeat;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Pencil rule and dashed construction line along the top of the footer. */
.fdt-site-footer::before {
	content: "";
	display: block;
	height: 6px;
	margin-bottom: var(--fdt-s8);
	border-top: 1px solid var(--fdt-rule);
	background: var(--fdt-construction) left bottom / auto 2px repeat-x;
}

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

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

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

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

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

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

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

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

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

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

.fdt-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fdt-s3);
	padding-top: var(--fdt-s5);
	border-top: 2px dashed var(--fdt-rule);
	color: var(--fdt-ink-muted);
	font-size: var(--fdt-text-sm);
}

.fdt-footer__bottom p {
	margin: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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