/**
 * Farminext — global stylesheet.
 *
 * Reset and base type, the site shell (utility bar, header, navigation, footer),
 * shared primitives (container, eyebrow, buttons, form controls) and the blog
 * templates. Marketing sections live in sections.css, loaded only where used.
 *
 * Every value comes from a token in _tokens.css. Do not hard-code a colour or a
 * size in this file.
 */

/* -------------------------------------------------------------------------
 * 1. Reset
 * ---------------------------------------------------------------------- */

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Anchor links must clear the sticky header. */
	scroll-padding-top: calc(var(--fx-header-height) + 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;
		scroll-behavior: auto !important;
	}
}

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

input, button, textarea, select { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

/* Navigation, card grids and step rows are lists for semantics, not for
   bullets. Prose lists opt back in via .entry-content. */
nav ul, nav ol,
.fx-section ul, .fx-section ol,
.fx-hero ul, .fx-page-hero ul { list-style: none; }

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* -------------------------------------------------------------------------
 * 2. Base type
 * ---------------------------------------------------------------------- */

body {
	background: var(--fx-bone);
	color: var(--fx-ink);
	font-family: var(--fx-font-sans);
	font-size: var(--fx-text-body);
	line-height: var(--fx-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fx-font-display);
	font-weight: 600;
	line-height: var(--fx-lh-heading);
	letter-spacing: -0.03em;
	color: inherit;
	text-wrap: balance;
}

p { text-wrap: pretty; }

a {
	color: var(--fx-brand-dark);
	text-decoration: none;
	transition: color var(--fx-duration-fast) var(--fx-ease);
}

a:hover { color: var(--fx-brand); }

::selection { background: var(--fx-brand-wash); color: var(--fx-ink); }

:focus-visible {
	outline: 2px solid var(--fx-brand);
	outline-offset: 2px;
}

hr { border: 0; border-top: 1px solid var(--fx-line); margin: var(--fx-space-4) 0; }

/* -------------------------------------------------------------------------
 * 3. Layout primitives
 * ---------------------------------------------------------------------- */

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

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

.container--narrow { max-width: calc(var(--fx-content) + var(--fx-gutter) * 2); }
.container--full { max-width: 100%; }

/* A section band. Colour comes from a modifier; padding from the band tokens.
   Clipped horizontally because the decorative radial blooms are drawn larger
   than the band and would otherwise widen the page on narrow screens.
   `clip` rather than `hidden` so no scroll container is created. */
.fx-section {
	padding-block: var(--fx-band);
	position: relative;
	overflow-x: hidden;
}

@supports (overflow: clip) {
	.fx-section { overflow: visible; overflow-x: clip; }
}
.fx-section--sm { padding-block: var(--fx-band-sm); }
.fx-section--xs { padding-block: var(--fx-band-xs); }

.fx-section--bone    { background: var(--fx-bone); color: var(--fx-ink); }
.fx-section--surface { background: var(--fx-surface); color: var(--fx-ink); }
.fx-section--dark    { background: var(--fx-forest); color: var(--fx-on-dark); }

.fx-section--ruled {
	border-top: 1px solid var(--fx-line-soft);
	border-bottom: 1px solid var(--fx-line-soft);
}

.fx-section--ruled-bottom { border-bottom: 1px solid var(--fx-line-soft); }

/* Headings inside dark bands must not inherit the light-band ink. */
.fx-section--dark h1,
.fx-section--dark h2,
.fx-section--dark h3,
.fx-section--dark h4 { color: var(--fx-on-dark); }

/* -------------------------------------------------------------------------
 * 4. Shared text primitives
 * ---------------------------------------------------------------------- */

/* Section eyebrow — "01 — WHO WE ARE" */
.fx-eyebrow {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono-lg);
	font-weight: 400;
	letter-spacing: var(--fx-ls-eyebrow);
	line-height: 1.4;
	color: var(--fx-brand);
	margin-block-end: 1.125rem;
}

.fx-section--dark .fx-eyebrow,
.fx-eyebrow--on-dark { color: var(--fx-brand-light); }

/* Card eyebrow — "S01", "PHASE 01" */
.fx-label {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	font-weight: 400;
	letter-spacing: var(--fx-ls-label);
	line-height: 1.4;
	color: var(--fx-brand);
}

.fx-label--muted  { color: var(--fx-ink-subtle); }
.fx-label--light  { color: var(--fx-brand-light); }
.fx-label--faint  { color: var(--fx-on-dark-45); }

/* Field label — "FULL NAME" */
.fx-field-label {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono-sm);
	letter-spacing: var(--fx-ls-mono);
	color: var(--fx-ink-subtle);
	margin-block-end: 0.5rem;
}

/* Monospace arrow glyph that trails a link or button. */
.fx-arrow {
	font-family: var(--fx-font-mono);
	font-size: 0.8125rem;
	line-height: 1;
}

.fx-lead {
	font-size: var(--fx-text-lead);
	line-height: 1.6;
	color: var(--fx-ink-strong);
}

.fx-prose {
	font-size: var(--fx-text-body);
	line-height: var(--fx-lh-loose);
	color: var(--fx-ink-muted);
}

.fx-section--dark .fx-prose { color: var(--fx-on-dark-66); }

.fx-measure    { max-width: 62ch; }
.fx-measure-sm { max-width: 52ch; }
.fx-measure-lg { max-width: 68ch; }

/* -------------------------------------------------------------------------
 * 5. Buttons and link affordances
 * ---------------------------------------------------------------------- */

.fx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	font-family: var(--fx-font-sans);
	font-size: var(--fx-text-sm);
	font-weight: 600;
	line-height: 1.2;
	padding: 1rem 1.875rem;
	border: 1px solid transparent;
	border-radius: var(--fx-radius-sm);
	cursor: pointer;
	text-align: center;
	transition: background var(--fx-duration-fast) var(--fx-ease),
	            color var(--fx-duration-fast) var(--fx-ease),
	            border-color var(--fx-duration-fast) var(--fx-ease);
}

.fx-btn--sm { font-size: var(--fx-text-xs); padding: 0.8125rem 1.25rem; }
.fx-btn--md { font-size: var(--fx-text-sm); padding: 0.9375rem 1.625rem; }

/* Green fill. Lightens on hover — the dark-band default. */
.fx-btn--primary { background: var(--fx-brand); color: var(--fx-on-dark); }
.fx-btn--primary:hover,
.fx-btn--primary:focus-visible { background: var(--fx-brand-light); color: var(--fx-forest); }

/* Green fill that goes to ink — used on light bands. */
.fx-btn--primary-ink { background: var(--fx-brand); color: var(--fx-on-dark); }
.fx-btn--primary-ink:hover,
.fx-btn--primary-ink:focus-visible { background: var(--fx-ink); color: var(--fx-on-dark); }

/* Outlined, for dark backgrounds. */
.fx-btn--ghost {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--fx-on-dark);
	font-weight: 500;
}
.fx-btn--ghost:hover,
.fx-btn--ghost:focus-visible {
	border-color: var(--fx-on-dark);
	background: var(--fx-fill-dark-hover);
	color: var(--fx-on-dark);
}

/* White fill, for dark backgrounds. */
.fx-btn--white { background: var(--fx-surface); color: var(--fx-forest); }
.fx-btn--white:hover,
.fx-btn--white:focus-visible { background: var(--fx-brand-light); color: var(--fx-forest); }

/* Ink fill — the navigation's Log in. */
.fx-btn--ink {
	background: var(--fx-ink);
	color: var(--fx-on-dark);
	font-weight: 500;
	font-size: var(--fx-text-xs);
	padding: 0.75rem 1.375rem;
}
.fx-btn--ink:hover,
.fx-btn--ink:focus-visible { background: var(--fx-brand); color: var(--fx-on-dark); }

/* Outlined, for light backgrounds. */
.fx-btn--outline { border-color: var(--fx-ink); color: var(--fx-ink); }
.fx-btn--outline:hover,
.fx-btn--outline:focus-visible { background: var(--fx-ink); color: var(--fx-on-dark); }

/* Buttons sitting on a solid brand-green panel. */
.fx-on-brand .fx-btn--white:hover,
.fx-on-brand .fx-btn--white:focus-visible { background: var(--fx-forest); color: var(--fx-on-dark); }

.fx-on-brand .fx-btn--ghost { border-color: rgba(255, 255, 255, 0.55); }
.fx-on-brand .fx-btn--ghost:hover,
.fx-on-brand .fx-btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.55); }

.fx-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fx-btn-row--tight { gap: 0.625rem; }

/* Text link with a trailing arrow. */
.fx-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-size: var(--fx-text-base);
	font-weight: 600;
	color: var(--fx-brand);
}
.fx-link-arrow:hover { color: var(--fx-ink); }
.fx-section--dark .fx-link-arrow:hover { color: var(--fx-on-dark); }

/* Text link with a rule under it. */
.fx-link-rule {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-size: var(--fx-text-sm);
	font-weight: 500;
	color: var(--fx-ink);
	border-bottom: 1px solid currentColor;
	padding-block-end: 0.375rem;
	flex-shrink: 0;
}
.fx-link-rule:hover { color: var(--fx-brand); }

/* -------------------------------------------------------------------------
 * 6. Form controls
 * ---------------------------------------------------------------------- */

.fx-input,
.fx-select,
.fx-textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	font-family: var(--fx-font-sans);
	font-size: var(--fx-text-sm);
	color: var(--fx-ink);
	background: var(--fx-surface);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius-sm);
	padding: 0.8125rem 0.875rem;
	outline: none;
	transition: border-color var(--fx-duration-fast) var(--fx-ease),
	            box-shadow var(--fx-duration-fast) var(--fx-ease);
}

textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6357' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	padding-right: 2.25rem;
}

.fx-input:focus,
.fx-select:focus,
.fx-textarea:focus,
input:focus,
select:focus,
textarea:focus {
	border-color: var(--fx-brand);
	box-shadow: var(--fx-focus-ring);
}

/* The soft ring alone is too faint to serve as a keyboard focus indicator, so
   keyboard focus keeps the outline the rest of the site uses. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--fx-brand);
	outline-offset: 2px;
}

::placeholder { color: var(--fx-ink-placeholder); opacity: 1; }

/* Honeypot. Hidden from people, reachable by bots. */
.fx-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * 7. Utility bar
 * ---------------------------------------------------------------------- */

.fx-utility {
	background: var(--fx-forest);
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.78125rem;
	letter-spacing: 0.02em;
}

.fx-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--fx-utility-height);
}

.fx-utility__reach {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-width: 0;
}

.fx-utility__label {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono-sm);
	letter-spacing: var(--fx-ls-mono);
	text-transform: uppercase;
	color: var(--fx-on-dark-45);
	white-space: nowrap;
}

.fx-utility__flags {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fx-utility__flags li { display: flex; align-items: center; gap: 0.4375rem; white-space: nowrap; color: var(--fx-on-dark-80); }

.fx-flag {
	display: block;
	inline-size: 1.25rem;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}

.fx-utility__more {
	color: var(--fx-brand-light);
	white-space: nowrap;
}

.fx-utility__more:hover { color: var(--fx-brand-lift); }

.fx-utility__links {
	display: flex;
	align-items: center;
	gap: 1.125rem;
	flex-shrink: 0;
}

.fx-utility__links a { color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.fx-utility__links a:hover { color: var(--fx-brand-lift); }
.fx-utility__links .fx-utility__register { color: var(--fx-brand-light); font-weight: 600; }

.fx-utility__divider {
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1080px) {
	.fx-utility__label,
	.fx-utility__email,
	.fx-utility__email + .fx-utility__divider { display: none; }
}

@media (max-width: 720px) {
	.fx-utility__country,
	.fx-utility__more { display: none; }
	.fx-utility__flags { gap: 0.5rem; }
}

/* -------------------------------------------------------------------------
 * 8. Header and primary navigation
 * ---------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(247, 248, 244, 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--fx-line-soft);
}

@supports not (backdrop-filter: blur(1px)) {
	.site-header { background: var(--fx-bone); }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--fx-header-height);
}

.site-branding { display: flex; align-items: center; flex-shrink: 0; }

.site-branding a { display: flex; align-items: center; }

.site-branding img,
.custom-logo {
	height: 28px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.site-title {
	font-family: var(--fx-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	margin: 0;
}
.site-title a { color: var(--fx-ink); }
.site-title a:hover { color: var(--fx-brand); }
.site-description { display: none; }

.main-navigation .menu {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--fx-ink-nav);
	font-size: var(--fx-text-xs);
	font-weight: 500;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a { color: var(--fx-brand); }

.site-header__actions { display: flex; align-items: center; gap: 0.875rem; flex-shrink: 0; }

/* Sub-menus */
.main-navigation .menu-item-has-children { position: relative; }

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 15rem;
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	background: var(--fx-surface);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius);
	box-shadow: var(--fx-shadow-md);
	z-index: 10;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: var(--fx-radius-sm);
	white-space: normal;
}

.main-navigation .sub-menu a:hover { background: var(--fx-bone); }

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .submenu-toggle[aria-expanded="true"] + .sub-menu { display: block; }

.submenu-toggle {
	background: none;
	border: 0;
	padding: 0.25rem;
	margin-inline-start: 0.25rem;
	cursor: pointer;
	color: inherit;
	line-height: 0;
}

.submenu-toggle__icon {
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform var(--fx-duration) var(--fx-ease);
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon { transform: rotate(-135deg); }

/* Hamburger */
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.5rem;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	color: var(--fx-ink);
	order: 3;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--fx-duration) var(--fx-ease),
	            background var(--fx-duration) var(--fx-ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: relative; }
.nav-toggle__bars::before { top: -6.5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Below the desktop layout the bar keeps only the logo, Join now and the menu
   button; everything else lives in the full-screen menu (mobile-menu.css). */
@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.main-navigation { display: none; }
	.site-header__actions .fx-btn--ink { padding: 0.6875rem 1.125rem; }
}

@media (max-width: 560px) {
	.site-header__actions .fx-btn--ink { padding: 0.5625rem 0.875rem; font-size: var(--fx-text-2xs); }
	.site-header__inner { gap: 0.75rem; }
	.site-branding { margin-inline-end: auto; }
	.site-branding img, .custom-logo { height: 24px; }
}

.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

/* -------------------------------------------------------------------------
 * 9. Footer
 * ---------------------------------------------------------------------- */

.site-footer {
	background: var(--fx-forest-deep);
	color: var(--fx-on-dark-60);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--fx-text-sm);
}

.site-footer__inner { padding-block: clamp(4rem, 2.3rem + 7.5vw, 6.5rem) 2.125rem; }

.site-footer a:not(.fx-btn) { color: var(--fx-on-dark-60); }
.site-footer a:not(.fx-btn):hover { color: var(--fx-brand-light); }

/* Closing call to action */
.site-footer__cta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 4rem;
	flex-wrap: wrap;
	padding-block-end: clamp(3rem, 1.9rem + 4.9vw, 4.75rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-block-end: clamp(3rem, 1.9rem + 4.9vw, 4.75rem);
}

.site-footer__cta h2 {
	font-size: var(--fx-text-h2-sm);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--fx-on-dark);
	max-width: 22ch;
	margin: 0;
}

.site-footer__cta-actions {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	flex-shrink: 0;
}

/* Brand column beside four link columns */
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 3.4fr);
	gap: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);
	padding-block-end: clamp(3.25rem, 2.2rem + 3.5vw, 5rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.75rem clamp(1.5rem, 0.8rem + 2vw, 3rem);
}

.site-footer__logo { display: inline-block; margin-block-end: 1.625rem; }

/* Header-logo size: a signature, not a billboard. The asset is 1234px wide,
   so this stays sharp on any screen. */
.site-footer__logo img { display: block; width: 152px; height: auto; }

.site-footer__blurb {
	font-size: var(--fx-text-sm);
	line-height: var(--fx-lh-loose);
	margin: 0;
	max-width: 36ch;
}

.site-footer__contact {
	display: grid;
	gap: 0.875rem;
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
}

.site-footer__contact address { font-style: normal; line-height: 1.6; }

.site-footer__account { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-block-start: 1.75rem; }

.site-footer__social { display: flex; gap: 1.125rem; font-size: var(--fx-text-xs); flex-wrap: wrap; margin-block-start: 1.75rem; }

.site-footer__heading {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	font-weight: 400;
	letter-spacing: var(--fx-ls-label);
	color: var(--fx-on-dark-35);
	margin: 0 0 1.375rem;
	text-transform: uppercase;
}

.site-footer__column ul,
.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.8125rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--fx-text-sm);
}

.site-footer__list a { line-height: 1.45; }

/* Where we work */
.site-footer__places {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 3.4fr);
	gap: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);
	align-items: start;
	padding-block: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__places .site-footer__heading { margin: 1.125rem 0 0; }

/* Cell borders rather than gap-over-background, so a short last row leaves
   clean space instead of a stripe. */
.site-footer__places-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__places-list li {
	display: grid;
	gap: 0.4375rem;
	padding: 1.0625rem 1.25rem 1.125rem;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__place-label {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono-sm);
	letter-spacing: var(--fx-ls-label);
	text-transform: uppercase;
	color: var(--fx-on-dark-45);
}

.site-footer__place-name { display: flex; align-items: center; gap: 0.5rem; color: var(--fx-on-dark); font-weight: 500; }
a.site-footer__place-more { color: var(--fx-brand-light); }
a.site-footer__place-more:hover { color: var(--fx-brand-lift); }

/* Company line */
.site-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	padding-block-start: 1.875rem;
	font-size: var(--fx-text-2xs);
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__bar a:not(.fx-btn) { color: rgba(255, 255, 255, 0.55); }
.site-footer__bar a:not(.fx-btn):hover { color: var(--fx-brand-light); }

.site-footer__legalese,
.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.625rem;
}

.site-footer__top { white-space: nowrap; }

.footer-navigation { display: flex; gap: 1.625rem; flex-wrap: wrap; }

.site-footer__credit { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.site-footer__credit a { color: rgba(255, 255, 255, 0.68); }

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2.5rem;
	padding-block-end: 3rem;
}

.site-footer .widget__title {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	font-weight: 400;
	letter-spacing: var(--fx-ls-label);
	color: var(--fx-on-dark-35);
	text-transform: uppercase;
	margin: 0 0 1.25rem;
}

@media (max-width: 1100px) {
	.site-footer__grid,
	.site-footer__places { grid-template-columns: 1fr; gap: 3rem; }
	.site-footer__places { gap: 1.25rem; }
	.site-footer__places .site-footer__heading { margin: 0; }
}

@media (max-width: 760px) {
	.site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.site-footer__cta { gap: 2rem; }
	.site-footer__cta-actions { width: 100%; }
	.site-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
 * 10. Blog, archives and single posts
 * ---------------------------------------------------------------------- */

.site-main > .container { padding-block: var(--fx-band-xs); }

.page-header { margin-block-end: var(--fx-space-4); }

.page-title {
	font-size: var(--fx-text-h2);
	letter-spacing: var(--fx-ls-h2);
}

.archive-description { color: var(--fx-ink-muted); margin-block-start: var(--fx-space-2); max-width: 62ch; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	list-style: none;
	border-top: 1px solid var(--fx-line);
	border-left: 1px solid var(--fx-line);
}

.entry--card {
	display: flex;
	flex-direction: column;
	background: var(--fx-surface);
	border-right: 1px solid var(--fx-line);
	border-bottom: 1px solid var(--fx-line);
	transition: background var(--fx-duration) var(--fx-ease);
}

.entry--card:hover { background: var(--fx-bone); }

.entry--card .entry-media { display: block; }
.entry--card .entry-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.entry__body {
	display: flex;
	flex-direction: column;
	gap: var(--fx-space-2);
	padding: 2rem 1.875rem 1.875rem;
	flex: 1;
}

.entry-title { font-size: var(--fx-text-h4); font-weight: 500; letter-spacing: -0.022em; }
.entry-title a { color: var(--fx-ink); }
.entry-title a:hover { color: var(--fx-brand); }

.entry-summary { color: var(--fx-ink-muted); font-size: var(--fx-text-sm); line-height: 1.65; }

.entry-meta,
.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	letter-spacing: 0.1em;
	color: var(--fx-ink-subtle);
	text-transform: uppercase;
}

.entry--single { max-width: var(--fx-content); margin-inline: auto; }
.entry--single .entry-title { font-size: var(--fx-text-h1); font-weight: 600; letter-spacing: -0.035em; }
.entry--single .entry-media { margin-block: var(--fx-space-4); }
.entry--single .entry-media img { width: 100%; }

.entry-content > * + * { margin-block-start: var(--fx-space-3); }
.entry-content h2 { font-size: var(--fx-text-h3); margin-block-start: var(--fx-space-4); }
.entry-content h3 { font-size: var(--fx-text-h4); font-weight: 500; margin-block-start: var(--fx-space-3); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }
.entry-content blockquote {
	border-left: 2px solid var(--fx-brand);
	padding-inline-start: var(--fx-space-3);
	font-size: var(--fx-text-lead);
	color: var(--fx-ink-strong);
}

.entry-content > *:not(.alignwide):not(.alignfull) { max-width: var(--fx-content); margin-inline: auto; }
.alignwide { max-width: var(--fx-max); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }

.entry--page { max-width: var(--fx-content); margin-inline: auto; }
.entry--page > * + * { margin-block-start: var(--fx-space-3); }

.more-link { font-weight: 600; }
.more-link::after { content: " →"; }

.container--with-sidebar {
	display: grid;
	gap: var(--fx-rail-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
	.container--with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

.widget-area { display: flex; flex-direction: column; gap: var(--fx-space-4); }

.widget__title {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: var(--fx-ls-label);
	color: var(--fx-ink-subtle);
	margin-block-end: var(--fx-space-2);
}

.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-form__field { flex: 1 1 12rem; }

.breadcrumbs {
	color: var(--fx-ink-subtle);
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-block-end: var(--fx-space-3);
}

.comments-area { max-width: var(--fx-content); margin: var(--fx-space-5) auto 0; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fx-space-3); }
.comment-list .children { list-style: none; padding-inline-start: var(--fx-space-3); }

.pagination { margin-block-start: var(--fx-space-5); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.5rem;
	border: 1px solid var(--fx-line);
	background: var(--fx-surface);
	color: var(--fx-ink);
	font-size: var(--fx-text-sm);
}

.pagination .page-numbers:hover { border-color: var(--fx-brand); color: var(--fx-brand); }
.pagination .page-numbers.current { background: var(--fx-brand); border-color: var(--fx-brand); color: var(--fx-on-dark); }

.post-navigation { margin-block-start: var(--fx-space-5); border-top: 1px solid var(--fx-line); padding-block-start: var(--fx-space-3); }
.post-navigation .nav-links { display: grid; gap: var(--fx-space-3); }

.post-navigation .nav-subtitle {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	letter-spacing: var(--fx-ls-label);
	text-transform: uppercase;
	color: var(--fx-ink-subtle);
	margin-block-end: 0.375rem;
}

.post-navigation a { font-weight: 600; color: var(--fx-ink); }
.post-navigation a:hover { color: var(--fx-brand); }

.error-404__code {
	font-family: var(--fx-font-display);
	font-size: clamp(4rem, 12vw, 9rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--fx-line);
}

/* Block editor button styles */
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	background: var(--fx-brand);
	color: var(--fx-on-dark);
	font-size: var(--fx-text-sm);
	font-weight: 600;
	padding: 1rem 1.875rem;
	border: 1px solid transparent;
	border-radius: var(--fx-radius-sm);
	cursor: pointer;
	transition: background var(--fx-duration-fast) var(--fx-ease), color var(--fx-duration-fast) var(--fx-ease);
}

.button:hover,
.wp-block-button__link:hover { background: var(--fx-ink); color: var(--fx-on-dark); }

.is-style-farminext-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--fx-ink);
	color: var(--fx-ink);
}

.is-style-farminext-ghost .wp-block-button__link:hover { background: var(--fx-ink); color: var(--fx-on-dark); }

.is-style-farminext-card {
	background: var(--fx-surface);
	border: 1px solid var(--fx-line);
	padding: var(--fx-space-4);
}

.menu--inline { display: flex; flex-wrap: wrap; gap: var(--fx-space-2); list-style: none; margin: 0; padding: 0; }
.menu--inline a { color: inherit; }

/* -------------------------------------------------------------------------
 * 11. Accessibility helpers
 * ---------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--fx-gutter);
	z-index: 100;
}

.skip-link:focus {
	top: 0.5rem;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	background: var(--fx-ink);
	color: var(--fx-on-dark);
	border-radius: var(--fx-radius-sm);
}

/* Branding link and the footer copyright inherit their type; they exist as
   hooks for overrides rather than carrying styles of their own. */
.site-branding__link { display: flex; align-items: center; }
.site-footer__copyright { display: inline-block; }


/* -------------------------------------------------------------------------
 * 12. Comment form
 *
 * Core prints this markup; these rules only bring it in line with the site's
 * own form controls.
 * ---------------------------------------------------------------------- */

.comment-respond { margin-block-start: var(--fx-space-4); }

.comment-reply-title { font-size: var(--fx-text-h4); font-weight: 500; margin-block-end: var(--fx-space-2); }

.comment-form { display: grid; gap: var(--fx-space-2); }

.comment-form label {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono-sm);
	letter-spacing: var(--fx-ls-mono);
	text-transform: uppercase;
	color: var(--fx-ink-subtle);
	margin-block-end: 0.5rem;
}

.comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; font-family: var(--fx-font-sans); font-size: var(--fx-text-3xs); letter-spacing: normal; }
.comment-form-cookies-consent input { width: auto; }

.comment-notes,
.comment-form .logged-in-as { font-size: var(--fx-text-3xs); color: var(--fx-ink-subtle); }

.comment-form .submit {
	justify-self: start;
	background: var(--fx-brand);
	color: var(--fx-on-dark);
	font-size: var(--fx-text-sm);
	font-weight: 600;
	padding: 1rem 1.875rem;
	border: 0;
	border-radius: var(--fx-radius-sm);
	cursor: pointer;
	transition: background var(--fx-duration-fast) var(--fx-ease);
}

.comment-form .submit:hover { background: var(--fx-ink); }

.comment-body { border-top: 1px solid var(--fx-line); padding-block: var(--fx-space-2); }
.comment-meta { font-family: var(--fx-font-mono); font-size: var(--fx-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fx-ink-subtle); }

/* -------------------------------------------------------------------------
 * 13. Interaction states
 *
 * Hover is in the design; pressed, disabled and busy are not, and a site
 * without them feels unfinished the moment anyone actually uses it.
 * ---------------------------------------------------------------------- */

.fx-btn:active,
.button:active,
.wp-block-button__link:active { transform: translateY(1px); }

.fx-btn--primary:active,
.fx-btn--primary-ink:active { background: var(--fx-brand-dark); color: var(--fx-on-dark); }
.fx-btn--white:active { background: var(--fx-line); }
.fx-btn--ghost:active { background: rgba(255, 255, 255, 0.12); }
.fx-btn--ink:active,
.fx-btn--outline:active { background: var(--fx-ink-strong); color: var(--fx-on-dark); }

@media (prefers-reduced-motion: reduce) {
	.fx-btn:active,
	.button:active,
	.wp-block-button__link:active { transform: none; }
}

.fx-btn[aria-disabled="true"],
.fx-btn:disabled,
button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* A form that has been submitted says so, so nobody double-sends an enquiry. */
.fx-btn.is-busy,
button.is-busy {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.fx-btn.is-busy::after,
button.is-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	color: var(--fx-on-dark);
	animation: fx-spin 640ms linear infinite;
}

@keyframes fx-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.fx-btn.is-busy::after,
	button.is-busy::after { animation-duration: 2s; }
}

/* The current page is marked in the navigation, not left to guesswork. */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_parent > a,
.main-navigation [aria-current="page"] { color: var(--fx-brand); }

@media (min-width: 1081px) {
	.main-navigation .menu > li > a { position: relative; }

	.main-navigation .menu > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -0.5rem;
		height: 1.5px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--fx-duration) var(--fx-ease);
	}

	.main-navigation .menu > li > a:hover::after,
	.main-navigation .menu > li > a:focus-visible::after,
	.main-navigation .current-menu-item > a::after,
	.main-navigation .current-menu-ancestor > a::after,
	.main-navigation .current_page_item > a::after,
	.main-navigation [aria-current="page"]::after { transform: scaleX(1); }

	@media (prefers-reduced-motion: reduce) {
		.main-navigation .menu > li > a::after { transition: none; }
	}
}

/* The header separates itself from the page once it is over content. */
.site-header { transition: box-shadow var(--fx-duration) var(--fx-ease), border-color var(--fx-duration) var(--fx-ease); }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--fx-line), 0 10px 30px rgb(14 23 18 / 6%); border-bottom-color: transparent; }

/* -------------------------------------------------------------------------
 * 14. Brand details
 * ---------------------------------------------------------------------- */

html { accent-color: var(--fx-brand); }

input, textarea, select { caret-color: var(--fx-brand); }

/* Firefox */
* { scrollbar-color: var(--fx-line) transparent; }

/* WebKit / Blink */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fx-line); border: 3px solid var(--fx-bone); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--fx-ink-faint); }

.fx-section--dark ::-webkit-scrollbar-thumb,
.site-footer ::-webkit-scrollbar-thumb { background: var(--fx-line-dark); border-color: var(--fx-forest); }

/* Figures inside the dashboard, the stats strip and the data table read as
   columns, so their digits should line up. */
.fx-stat__value,
.fx-kpi__value,
.fx-dtable__row,
.fx-bar__value,
.fx-chart__axis,
.fx-phase__num { font-variant-numeric: tabular-nums; }

/* Long-form prose gets a real underline, offset clear of the descenders. */
.entry-content a:not(.fx-btn):not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.entry-content a:not(.fx-btn):hover { text-decoration-color: currentColor; }

/* -------------------------------------------------------------------------
 * 15. Print
 *
 * Marketing chrome is noise on paper. What survives: the wordmark, the words,
 * and where a link actually went.
 * ---------------------------------------------------------------------- */

@media print {
	.fx-utility,
	.site-header,
	.nav-toggle,
	.main-navigation,
	.skip-link,
	.fx-bloom,
	.fx-hero__media,
	.fx-hero__glow,
	.fx-console,
	.site-footer__cta,
	.site-footer__wordmark,
	.search-form,
	.comment-respond,
	.fx-btn { display: none !important; }

	html, body {
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
	}

	.fx-section,
	.fx-hero,
	.fx-page-hero,
	.fx-cta-band,
	.site-footer {
		background: #fff !important;
		color: #000 !important;
		padding-block: 1.5rem !important;
		border: 0 !important;
	}

	.fx-section--dark *,
	.fx-hero *,
	.fx-page-hero *,
	.fx-cta-band *,
	.site-footer * { color: #000 !important; background: transparent !important; }

	.fx-hgrid,
	.fx-hgrid > *,
	.post-grid,
	.entry--card { border-color: #999 !important; }

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	h1, h2, h3 { break-after: avoid-page; }
	.fx-hgrid > *, .entry--card, figure, table { break-inside: avoid-page; }

	[data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
 * 16. Article typography
 *
 * A post is the one place on the site that is read rather than scanned, so it
 * gets its own rhythm: a header that breathes, a lead paragraph, and terms
 * closed off below the body instead of trailing it.
 * ---------------------------------------------------------------------- */

.entry--single .entry-header {
	padding-block-end: var(--fx-space-3);
	margin-block-end: var(--fx-space-4);
	border-bottom: 1px solid var(--fx-line);
}

.entry--single .entry-title { margin-block-end: var(--fx-space-2); }

.entry--single .entry-meta {
	gap: 1.25rem;
	color: var(--fx-ink-subtle);
}

/* The excerpt, when the editor wrote one, opens the article. */
.entry--single .entry-content > p:first-child {
	font-size: var(--fx-text-lead);
	line-height: 1.6;
	color: var(--fx-ink-strong);
}

.entry--single .entry-content > * + * { margin-block-start: var(--fx-space-3); }

.entry--single .entry-content h2 {
	font-size: var(--fx-text-h3);
	margin-block-start: var(--fx-space-4);
}

.entry--single .entry-content h3 {
	font-size: var(--fx-text-h4);
	font-weight: 500;
	margin-block-start: var(--fx-space-3);
}

.entry-footer {
	margin-block-start: var(--fx-space-4);
	padding-block-start: var(--fx-space-2);
	border-top: 1px solid var(--fx-line);
}

.entry-footer:empty { display: none; border: 0; margin: 0; padding: 0; }

.entry-footer .cat-links,
.entry-footer .tags-links { color: var(--fx-ink-subtle); }

.entry-footer a { color: var(--fx-ink-muted); }
.entry-footer a:hover { color: var(--fx-brand); }

/* -------------------------------------------------------------------------
 * 17. Sidebar
 *
 * Core prints block widgets with their own heading markup, so the classic
 * .widget__title rule never matches. Both shapes are covered here.
 * ---------------------------------------------------------------------- */

.widget-area .widget__title,
.widget-area .wp-block-heading,
.widget-area .wp-block-search__label,
.widget-area > h2,
.widget > h2 {
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: var(--fx-ls-label);
	text-transform: uppercase;
	color: var(--fx-ink-subtle);
	margin: 0 0 var(--fx-space-2);
}

.widget-area li { margin-block-end: 0.5rem; }
.widget-area a { color: var(--fx-ink-muted); }
.widget-area a:hover { color: var(--fx-brand); }

.widget-area .wp-block-latest-posts__post-date,
.widget-area .wp-block-latest-comments__comment-date {
	display: block;
	font-family: var(--fx-font-mono);
	font-size: var(--fx-mono);
	letter-spacing: 0.08em;
	color: var(--fx-ink-faint);
	margin-block-start: 0.125rem;
}

/* Core's block search, matched to searchform.php. */
.wp-block-search__inside-wrapper {
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-radius-sm);
	background: var(--fx-surface);
	overflow: hidden;
}

.wp-block-search__inside-wrapper:focus-within {
	border-color: var(--fx-brand);
	box-shadow: var(--fx-focus-ring);
}

.wp-block-search__input {
	border: 0;
	border-radius: 0;
	padding: 0.75rem 0.875rem;
}

.wp-block-search__input:focus,
.wp-block-search__input:focus-visible { outline: none; box-shadow: none; }

.wp-block-search__button {
	border: 0;
	border-radius: 0;
	margin: 0;
	background: var(--fx-brand);
	color: var(--fx-on-dark);
	font-size: var(--fx-text-xs);
	font-weight: 600;
	padding-inline: 1.125rem;
	cursor: pointer;
	transition: background var(--fx-duration-fast) var(--fx-ease);
}

.wp-block-search__button:hover { background: var(--fx-ink); }

/* Core's "button outside" variant separates the two with a gap; the design
   treats field and button as one control. */
.wp-block-search__button-outside .wp-block-search__inside-wrapper { gap: 0; }
.wp-block-search .wp-block-search__label { display: block; }

/* More than one header button: on a phone only the last one fits — the
   strongest, Register by default. */
@media (max-width: 560px) {
	.site-header__actions .fx-btn:not(:last-of-type) { display: none; }
}

/* Header buttons of any style share the Register button's size. */
.site-header__actions .fx-btn { font-weight: 500; font-size: var(--fx-text-xs); padding: 0.75rem 1.375rem; }

@media (max-width: 1080px) {
	.site-header__actions .fx-btn { padding: 0.6875rem 1.125rem; }
}

@media (max-width: 560px) {
	.site-header__actions .fx-btn { padding: 0.5625rem 0.875rem; font-size: var(--fx-text-2xs); }
}
