/* The Truffle Farm newsletter signup. Matches the Aperitif theme as measured on the live site
   (2026-11-20): headings Spectral SC #2b2824, body Spectral #817c7b, accent #c8693a,
   input border #e6e6e6, square corners, theme button = Spectral SC 15px, letter-spacing 1.95px. */
/* Selectors are scoped under .ttf-nl with element names so they outrank the theme's
   button[type=submit] and input rules without !important. */
.ttf-nl {
	--ttf-accent: #c8693a;
	--ttf-accent-dark: #a8552c;
	--ttf-ink: #2b2824;
	--ttf-text: #817c7b;
	--ttf-line: #e6e6e6;
	font-family: Spectral, serif;
	color: var(--ttf-text);
}
.ttf-nl * { box-sizing: border-box; }

/* Inline (soft) block after a post or page */
.ttf-nl--inline {
	max-width: 760px;
	margin: 56px auto 24px;
	padding: 36px 40px 28px;
	background: #faf6f1;
	border-top: 2px solid var(--ttf-accent);
	text-align: left;
}
.ttf-nl .ttf-nl__title {
	font-family: "Spectral SC", serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: 1.5px;
	color: var(--ttf-ink);
	margin: 0 0 10px;
}
.ttf-nl p.ttf-nl__intro { margin: 0 0 20px; font-size: 17px; line-height: 25px; }


.ttf-nl__form { margin: 0; }
.ttf-nl__fields { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ttf-nl .ttf-nl__field { margin: 0; flex: 1 1 220px; }
/* Fields, consent and messages are divs, not p: the child theme sets p { margin-bottom: 20px !important }. */
.ttf-nl--inline .ttf-nl__field--email { flex-basis: 260px; }
.ttf-nl--footer .ttf-nl__field { flex-basis: 100%; }
.ttf-nl label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ttf-ink);
}
.ttf-nl__opt { color: var(--ttf-text); }
.ttf-nl input[type="email"],
.ttf-nl input[type="text"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	font-family: Spectral, serif;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	line-height: 24px;
	color: var(--ttf-ink);
	background: #fff;
	border: 1px solid var(--ttf-line);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}
/* The theme styles footer inputs as white text on a transparent field
   (#qodef-page-footer input[type=email] ...), which would make typed text invisible here. */
#qodef-page-footer .ttf-nl input[type="email"],
#qodef-page-footer .ttf-nl input[type="text"] {
	color: var(--ttf-ink);
	background-color: #fff;
	border: 1px solid var(--ttf-line);
	margin: 0;
}
.ttf-nl input:focus { outline: 2px solid var(--ttf-accent); outline-offset: 1px; border-color: var(--ttf-accent); }
.ttf-nl input[aria-invalid="true"] { border-color: #b3261e; }

.ttf-nl button.ttf-nl__button {
	display: inline-block;
	margin: 16px 0 0;
	padding: 12px 34px 11px;
	font-family: "Spectral SC", serif;
	font-size: 15px;
	line-height: 30px;
	letter-spacing: 1.95px;
	text-transform: none;
	color: #fff;
	background: var(--ttf-accent);
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .2s ease;
}
.ttf-nl button.ttf-nl__button:hover, .ttf-nl button.ttf-nl__button:focus-visible { background: var(--ttf-accent-dark); color: #fff; }
.ttf-nl button.ttf-nl__button:focus-visible { outline: 2px solid var(--ttf-ink); outline-offset: 2px; }
.ttf-nl button.ttf-nl__button[disabled] { opacity: .7; cursor: wait; }
/* The footer column is about 260px wide at desktop (4 columns): tighter tracking keeps the label on one line. */
.ttf-nl--footer button.ttf-nl__button { width: 100%; padding: 10px 12px 9px; letter-spacing: 1px; }

.ttf-nl .ttf-nl__consent { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--ttf-text); }
.ttf-nl .ttf-nl__msg { margin: 10px 0 0; font-size: 15px; line-height: 22px; }
.ttf-nl__msg:empty { display: none; }
.ttf-nl__msg.is-ok { color: #3c6b3a; }
.ttf-nl__msg.is-error { color: #b3261e; }
.ttf-nl__form.is-done .ttf-nl__fields,
.ttf-nl__form.is-done button.ttf-nl__button,
.ttf-nl__form.is-done .ttf-nl__captcha { display: none; }
.ttf-nl__captcha { margin-top: 12px; }

/* Honeypot: off-screen for people, still in the form for bots */
.ttf-nl__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* WPBakery element on a page or the homepage (v1.2.0): the same box, with room around it inside a row. */
.ttf-nl--page, .ttf-nl--homepage { margin: 48px auto 56px; }
.ttf-nl--homepage { margin-top: 24px; margin-bottom: 72px; }

@media (max-width: 680px) {
	.ttf-nl--inline { margin: 40px 0 16px; padding: 28px 20px 22px; }
	.ttf-nl--page, .ttf-nl--homepage { margin: 32px 0 40px; }
	.ttf-nl .ttf-nl__title { font-size: 26px; }
	.ttf-nl--inline button.ttf-nl__button { width: 100%; padding: 10px 12px 9px; letter-spacing: 1px; } /* one line at 375 wide */
}
