@import url('./ridge-signal.css');
/* ==========================================================================
   Sovereign OS — Field Book
   A surveyor's field book for 7.53 acres: paper, ink, iron oxide, moss.
   ========================================================================== */

:root {
	--paper: #f3eee2;
	--paper-2: #e8e0cd;
	--card: #fbf8f1;
	--ink: #1c231f;
	--ink-2: #4a5249;
	--rule: #cbbfa4;
	--rule-strong: #8f8468;
	--iron: #97391a;        /* coal-country iron oxide */
	--iron-ink: #ffffff;
	--moss: #3b5a30;
	--moss-ink: #ffffff;
	--focus: #97391a;
	--shadow: 0 1px 0 rgba(28, 35, 31, .06), 0 8px 24px -16px rgba(28, 35, 31, .35);

	--f-head: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
	--f-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 1180px;
	--wrap-text: 720px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--step--1: clamp(.84rem, .82rem + .1vw, .9rem);
	--step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
	--step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
	--step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
	--step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		--paper: #121714;
		--paper-2: #1a211c;
		--card: #18201b;
		--ink: #ece6d8;
		--ink-2: #b6b1a1;
		--rule: #323b34;
		--rule-strong: #5d6659;
		--iron: #e38a62;
		--iron-ink: #1a0d07;
		--moss: #a3c188;
		--moss-ink: #0f170b;
		--focus: #f0a37f;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -18px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}

:root[data-mode="dark"] {
	--paper: #121714;
	--paper-2: #1a211c;
	--card: #18201b;
	--ink: #ece6d8;
	--ink-2: #b6b1a1;
	--rule: #323b34;
	--rule-strong: #5d6659;
	--iron: #e38a62;
	--iron-ink: #1a0d07;
	--moss: #a3c188;
	--moss-ink: #0f170b;
	--focus: #f0a37f;
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -18px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.fieldbook {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-wrap: break-word;
}

.fieldbook img, .fieldbook svg, .fieldbook video { max-width: 100%; height: auto; }
.fieldbook img { display: block; }

.fieldbook a { color: var(--iron); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.fieldbook a:hover { text-decoration-thickness: 2px; }

.fieldbook :focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}

.fieldbook h1, .fieldbook h2, .fieldbook h3, .fieldbook h4 {
	font-family: var(--f-head);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
	color: var(--ink);
}

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

.fb-skip {
	position: absolute; left: 12px; top: -80px; z-index: 100;
	background: var(--ink); color: var(--paper) !important; padding: 10px 16px;
	border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.fb-skip:focus { top: 12px; }

.fb-main:focus { outline: none; }

.fb-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.fb-wrap--text { max-width: calc(var(--wrap-text) + var(--gutter) * 2); }

/* Mono "field book" label */
.fb-label {
	font-family: var(--f-mono);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-2);
	margin: 0 0 .9rem;
	display: flex;
	align-items: center;
	gap: .55rem;
	flex-wrap: wrap;
}
.fb-label a { color: inherit; }
.fb-label--rule::before {
	content: "";
	width: 28px; height: 2px; background: var(--iron); flex: none;
}

.fb-dot {
	width: .55rem; height: .55rem; border-radius: 50%;
	background: var(--iron); display: inline-block;
}

/* ---------- Buttons & links ---------- */

.fb-btn,
.fieldbook .wpcf7-submit,
.fieldbook input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-height: 48px; padding: .7rem 1.25rem;
	font: 700 var(--step-0)/1.2 var(--f-body);
	background: var(--ink); color: var(--paper) !important;
	border: 2px solid var(--ink); border-radius: var(--radius);
	text-decoration: none; cursor: pointer;
}
.fb-btn:hover, .fieldbook .wpcf7-submit:hover { background: var(--iron); border-color: var(--iron); color: var(--iron-ink) !important; }
.fb-btn--ghost { background: transparent; color: var(--ink) !important; }
.fb-btn--ghost:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }

.fb-link { font-weight: 700; }

/* ---------- Header ---------- */

.fb-header {
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}
.fb-header__row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px 24px;
	padding-block: 14px;
}
.fb-brand {
	display: inline-flex; align-items: center; gap: .7rem;
	color: var(--ink) !important; text-decoration: none; min-height: 44px;
}
.fb-brand__mark { width: 38px; height: 38px; color: var(--iron); flex: none; }
.fb-brand__logo { width: 44px; height: 44px; object-fit: contain; }
.fb-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.fb-brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; }
.fb-brand__place { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.fb-header__tools { display: flex; align-items: center; gap: 8px; }

.fb-mode, .fb-menu-toggle {
	min-width: 44px; min-height: 44px;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	background: transparent; color: var(--ink);
	border: 1px solid var(--rule-strong); border-radius: var(--radius);
	font: 600 var(--step--1)/1 var(--f-body); cursor: pointer; padding: 0 12px;
}
.fb-mode svg { width: 20px; height: 20px; }
.fb-mode:hover, .fb-menu-toggle:hover { border-color: var(--ink); }

.fb-menu-toggle { display: none; }
.fb-menu-toggle__bars, .fb-menu-toggle__bars::before, .fb-menu-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.fb-menu-toggle__bars::before { position: absolute; top: -6px; }
.fb-menu-toggle__bars::after { position: absolute; top: 6px; }

.fb-nav { grid-column: 1 / -1; }
.fb-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 4px 6px;
}
.fb-nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
	color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.fb-nav__list a:hover { background: var(--paper-2); }
.fb-nav__list .current-menu-item > a,
.fb-nav__list .current_page_item > a,
.fb-nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--iron); }
.fb-nav__list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
.fb-nav .fb-search { margin-top: 10px; }

/* JS present + small screens: collapsible menu. Without JS the list stays visible. */
@media (max-width: 959.98px) {
	.fb-js .fb-menu-toggle { display: inline-flex; }
	.fb-js .fb-nav { display: none; padding-bottom: 12px; }
	.fb-js .fb-nav.is-open { display: block; }
	.fb-js .fb-nav__list { flex-direction: column; }
	.fb-js .fb-nav__list a { width: 100%; border-bottom: 1px solid var(--rule); border-radius: 0; }
}

@media (min-width: 960px) {
	.fb-header__row { grid-template-columns: auto 1fr auto; }
	.fb-nav { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
	.fb-header__tools { grid-column: 3; }
	.fb-nav .fb-search { margin-top: 0; }
	.fb-nav .fb-search__input { width: 170px; }
}

/* ---------- Search form ---------- */

.fb-search { display: flex; gap: 6px; max-width: 460px; }
.fb-search__input {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
	font: inherit; color: var(--ink); background: var(--card);
	border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.fb-search__btn {
	min-height: 44px; padding: 0 14px; font: 700 var(--step--1)/1 var(--f-body);
	color: var(--paper); background: var(--ink); border: 0; border-radius: var(--radius); cursor: pointer;
}

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

.fb-hero {
	position: relative; overflow: hidden;
	padding-block: clamp(40px, 8vw, 110px) clamp(36px, 6vw, 80px);
	border-bottom: 1px solid var(--rule);
}
.fb-contours {
	position: absolute; inset: 0; width: 100%; height: 100%;
	color: var(--rule); opacity: .75; pointer-events: none;
}
.fb-hero__grid { position: relative; display: grid; gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (min-width: 960px) { .fb-hero__grid { grid-template-columns: 1.25fr 1fr; } }

.fb-hero__title { font-size: var(--step-4); font-weight: 700; max-width: 16ch; }
.fb-hero__intro { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; color: var(--ink); margin: 0 0 1.6rem; }
.fb-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fb-hero__figure { margin: 0; }
.fb-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.fb-hero__figure figcaption { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2); margin-top: .5rem; }

.fb-hero__facts {
	margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.fb-hero__facts > div { padding: 14px 14px 12px; }
.fb-hero__facts > div + div { border-left: 1px dashed var(--rule); }
@media (max-width: 560px) { .fb-hero__facts { grid-template-columns: 1fr 1fr; } .fb-hero__facts > div:nth-child(3) { border-left: 0; } .fb-hero__facts > div:nth-child(n+3) { border-top: 1px dashed var(--rule); } }
.fb-hero__facts dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fb-hero__facts dd { margin: .25rem 0 0; font-family: var(--f-head); font-weight: 700; font-size: var(--step-1); line-height: 1.1; }
.fb-hero__facts abbr { text-decoration: none; font-size: .6em; }

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

.fb-section { padding-block: clamp(44px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.fb-section--tight { padding-block: clamp(28px, 4vw, 56px); border-bottom: 0; }
.fb-section__head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 36px); }
.fb-section__title { font-size: var(--step-3); }
.fb-section__note { color: var(--ink-2); margin: 0; max-width: 62ch; }
.fb-section__more { margin: 28px 0 0; }

/* ---------- Status chips ---------- */

.fb-chip {
	display: inline-flex; align-items: center; gap: .35rem;
	font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
	letter-spacing: .06em; text-transform: uppercase;
	padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
	border: 1px solid currentColor;
}
.fb-chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.fb-chip--planned { color: var(--ink-2); }
.fb-chip--planned::before { background: transparent; border: 1.5px solid currentColor; }
.fb-chip--underway { background: var(--iron); color: var(--iron-ink); border-color: var(--iron); }
.fb-chip--done { background: var(--moss); color: var(--moss-ink); border-color: var(--moss); }
.fb-chip--paused { color: var(--ink-2); border-style: dashed; }

/* ---------- Build status ---------- */

.fb-status { background: var(--paper-2); }
.fb-status__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .fb-status__grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.fb-status__count { font-family: var(--f-head); font-size: var(--step-1); margin: 0 0 .3rem; }
.fb-status__updated { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2); margin: 0; }

.fb-status__list {
	list-style: none; margin: 0; padding: 0;
	background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow);
	counter-reset: fbitem;
}
.fb-status__item {
	counter-increment: fbitem;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px;
	padding: 16px 18px; border-bottom: 1px dashed var(--rule);
}
.fb-status__item:last-child { border-bottom: 0; }
.fb-status__item::before {
	content: counter(fbitem, decimal-leading-zero);
	font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2);
}
.fb-status__label { font-weight: 600; }
.fb-status__note { grid-column: 2 / -1; color: var(--ink-2); font-size: var(--step--1); }
.fb-status__item--done .fb-status__label { text-decoration: line-through; text-decoration-color: var(--moss); text-decoration-thickness: 2px; }

/* ---------- Ledger (cards) ---------- */

.fb-ledger { display: grid; gap: 20px; }
@media (min-width: 640px) { .fb-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fb-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fb-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
	border-radius: var(--radius); overflow: hidden;
}
.fb-card:hover { border-top-color: var(--iron); box-shadow: var(--shadow); }
.fb-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fb-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.fb-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.fb-card__cat { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
.fb-card__title { font-size: var(--step-1); margin: 0; }
.fb-card__title a { color: var(--ink); text-decoration: none; }
.fb-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.fb-card__title a:hover { text-decoration: underline; }
.fb-card__title a:focus-visible { outline: none; }
.fb-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.fb-card__excerpt { color: var(--ink-2); font-size: var(--step--1); }
.fb-card__excerpt p { margin: 0; }

.fb-stamp { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); }
.fb-stamp__ago { color: var(--ink-2); }

.fb-empty { padding: 28px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- How to help ---------- */

.fb-help__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .fb-help__grid { grid-template-columns: repeat(3, 1fr); } }
.fb-help__item { padding: 22px 4px 26px; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) {
	.fb-help__item { padding: 26px 26px 30px 0; border-bottom: 0; }
	.fb-help__item + .fb-help__item { padding-left: 26px; border-left: 1px dashed var(--rule); }
}
.fb-help__num { font-family: var(--f-mono); color: var(--iron); font-size: var(--step--1); }
.fb-help__item h3 { font-size: var(--step-2); margin-top: .3rem; }
.fb-help__item p { color: var(--ink-2); }

/* ---------- Road ---------- */

.fb-road__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .fb-road__list { grid-template-columns: repeat(4, 1fr); } }
.fb-road__step { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.fb-road__step--now { border: 2px solid var(--iron); }
.fb-road__step h3 { font-size: var(--step-1); margin: .9rem 0 .4rem; }
.fb-road__step p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

/* ---------- Page heads & entries ---------- */

.fb-pagehead { padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--rule); }
.fb-pagehead__title { font-size: var(--step-4); font-weight: 700; max-width: 22ch; }
.fb-pagehead__lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; margin: 0 0 1rem; }
.fb-pagehead--entry .fb-pagehead__title { font-size: var(--step-3); }
.fb-entry__meta { margin: 0; }

.fb-filter ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-filter a {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 12px;
	border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1);
}
.fb-filter a:hover { border-color: var(--iron); color: var(--iron); }
.fb-filter__n { font-family: var(--f-mono); color: var(--ink-2); font-size: .74rem; }

.fb-entry__hero { margin-block: 28px 8px; }
.fb-entry__hero img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); }
.fb-entry__hero figcaption { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2); margin-top: .5rem; }

.fb-prose { padding-block: 28px 12px; font-size: 1.1rem; line-height: 1.72; }
.fb-prose > * { margin-block: 0 1.1em; }
.fb-prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.fb-prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.fb-prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.1em; border-left: 3px solid var(--iron); font-family: var(--f-head); font-size: var(--step-1); }
.fb-prose img, .fb-prose figure { border-radius: var(--radius); }
.fb-prose figcaption { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2); }
.fb-prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); display: block; max-width: 100%; overflow-x: auto; }
.fb-prose th, .fb-prose td { border-bottom: 1px solid var(--rule); padding: .55em .4em; text-align: left; }
.fb-prose code, .fb-prose pre { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); border-radius: 3px; }
.fb-prose pre { padding: 1em; overflow-x: auto; }
.fb-prose .alignwide { max-width: min(1100px, 100vw - 2 * var(--gutter)); margin-inline: auto; }
.fb-prose .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.fb-entry__foot { padding-block: 12px 48px; }
.fb-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: var(--step--1); color: var(--ink); text-decoration: none; }
.fb-postnav .nav-links { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 18px; }
@media (min-width: 720px) { .fb-postnav .nav-links { grid-template-columns: 1fr 1fr; } .fb-postnav .nav-next { text-align: right; } }
.fb-postnav a { display: block; color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: var(--step-1); }
.fb-postnav .nav-next .fb-label { justify-content: flex-end; }

.fb-pagination { margin-top: 32px; }
.fb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600;
}
.fb-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Volunteer ---------- */

.fb-steps { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; gap: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); }
.fb-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px dashed var(--rule); }
.fb-steps li:last-child { border-bottom: 0; }
.fb-steps__n { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-weight: 500; }
.fb-steps p { margin: .2rem 0 0; color: var(--ink-2); }

.fb-formbox { padding-block: 16px 36px; }
.fb-formbox h2 { font-size: var(--step-2); }
.fb-notice { padding: 16px 18px; border-left: 4px solid var(--iron); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.fb-callout { padding-bottom: 56px; }
.fb-callout p { margin: 0; padding: 16px 18px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }

/* ---------- Forms (Contact Form 7 & core) ---------- */

.fb-form, .fb-comments { font-size: var(--step-0); }
.fb-form label, .fb-comments label { display: block; font-weight: 600; margin-bottom: .3rem; }
.fb-form p { margin: 0 0 1rem; }
.fieldbook .fb-form input[type="text"],
.fieldbook .fb-form input[type="email"],
.fieldbook .fb-form input[type="tel"],
.fieldbook .fb-form input[type="url"],
.fieldbook .fb-form input[type="number"],
.fieldbook .fb-form select,
.fieldbook .fb-form textarea,
.fieldbook .fb-comments input[type="text"],
.fieldbook .fb-comments input[type="email"],
.fieldbook .fb-comments input[type="url"],
.fieldbook .fb-comments textarea {
	width: 100%; min-height: 48px; padding: .6rem .8rem;
	font: inherit; color: var(--ink); background: var(--card);
	border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.fieldbook .fb-form textarea { min-height: 140px; }
.fieldbook .fb-form input:focus-visible, .fieldbook .fb-form select:focus-visible, .fieldbook .fb-form textarea:focus-visible { border-color: var(--iron); }
.fieldbook .wpcf7-list-item { display: block; margin: 0 0 .4rem; }
.fieldbook .wpcf7-not-valid-tip { color: var(--iron); font-weight: 600; font-size: var(--step--1); }
.fieldbook .wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); }
.fieldbook .wpcf7 form.invalid .wpcf7-response-output, .fieldbook .wpcf7 form.failed .wpcf7-response-output { border-color: var(--iron); }
.fieldbook .wpcf7 form.sent .wpcf7-response-output { border-color: var(--moss); }
.fb-form--inline form { display: grid; gap: 10px; }

/* ---------- Footer ---------- */

.fb-footer { background: var(--ink); color: var(--paper); padding-top: clamp(40px, 6vw, 72px); }
.fb-footer a { color: var(--paper); }
.fb-footer .fb-label { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.fb-footer__grid { display: grid; gap: 36px; padding-bottom: 36px; }
@media (min-width: 960px) { .fb-footer__grid { grid-template-columns: 1.3fr .8fr 1fr; } }
.fieldbook .fb-footer__title { color: var(--paper); font-size: var(--step-2); }
.fb-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fb-footer__list a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; }
.fb-footer__list a:hover { text-decoration: underline; }
.fb-footer__ledger p:last-child { margin: 0; font-size: var(--step--1); line-height: 1.6; }
.fb-footer .fb-btn--ghost { color: var(--paper) !important; border-color: var(--paper); }
.fb-footer .fb-btn--ghost:hover { background: var(--paper); color: var(--ink) !important; }
.fb-footer .fb-form input[type="email"], .fb-footer .fb-form input[type="text"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.fb-footer .wpcf7-submit { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.fb-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-block: 18px 28px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, var(--ink));
	font-family: var(--f-mono); font-size: .78rem;
}
.fb-footer__base p { margin: 0; }

/* ---------- 404 ---------- */

.fb-404 { border-bottom: 0; padding-bottom: 80px; }
.fb-404__links { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- WordPress core classes ---------- */

.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-2); }
.sticky .fb-card { border-top-color: var(--iron); }
.bypostauthor { display: block; }
.fb-comments__list { padding-left: 1.1em; }

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: no-preference) {
	.fb-btn, .fb-card, .fb-nav__list a, .fb-filter a { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
}

@media print {
	.fb-header__tools, .fb-nav, .fb-footer__signup, .fb-contours, .fb-skip { display: none !important; }
	body.fieldbook { background: #fff; color: #000; }
}

.fb-help__img { width: 100%; aspect-ratio: 700 / 510; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }