/* ========= Global base (no inline styles anywhere) ========= */

/* Local fonts (TTF) */
@font-face {
	font-family: 'FNF-Display';
	src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'FNF-Sans';
	src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'FNF-Sans';
	src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* Reset-ish */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	color: #1b1b16;
	background: #f7f5ef;
	font: 16px/1.6 'FNF-Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial,
		sans-serif;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Design tokens */
:root {
	--ff-display: 'FNF-Display', serif;
	--ff-sans: 'FNF-Sans', sans-serif;

	--c-ink: #1b1b16;
	--c-muted: #5b5b50;
	--c-cream: #f7f5ef;
	--c-sage: #3f6b4e;
	--c-olive: #516b3c;
	--c-wheat: #e6d7b6;
	--c-amber: #b2772a;
	--c-paper: #fffdf7;

	--radius-xl: 1.25rem;
	--radius-lg: 0.875rem;
	--radius-md: 0.5rem;

	--shadow-soft: 0 8px 24px rgba(27, 27, 22, 0.08);
	--shadow-float: 0 10px 30px rgba(20, 40, 20, 0.15);

	--sp-2xs: 0.25rem;
	--sp-xs: 0.5rem;
	--sp-sm: 0.75rem;
	--sp-md: 1rem;
	--sp-lg: 1.5rem;
	--sp-xl: 2rem;
	--sp-2xl: 3rem;
}

/* Containers & utilities */
.container {
	width: min(1120px, 92vw);
	margin-inline: auto;
	padding-inline: var(--sp-md);
}
.eyebrow {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.78rem;
	color: var(--c-olive);
}
.muted {
	color: var(--c-muted);
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem;
	border-radius: var(--radius-md);
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease,
		background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	font-weight: 600;
}
.btn:focus-visible {
	outline: 3px solid #1d6;
	outline-offset: 2px;
}
.btn--primary {
	background: linear-gradient(180deg, #4f7b5c, #3f6b4e);
	color: #fff;
	box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-float);
}
.btn--ghost {
	background: transparent;
	border-color: var(--c-olive);
	color: var(--c-olive);
}
.btn--ghost:hover {
	background: #e7efe7;
}

/* Header (fixed) */
.site-header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(120%) blur(6px);
	background: rgba(247, 245, 239, 0.8);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 0.6rem;
}
.brand {
	font-family: var(--ff-display);
	font-size: 1.4rem;
	color: var(--c-ink);
	text-decoration: none;
}
.nav-list {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-link {
	text-decoration: none;
	color: var(--c-ink);
	padding: 0.4rem 0.6rem;
	border-radius: 0.5rem;
}
.nav-link[aria-current='page'],
.nav-link:hover {
	background: #efece0;
}

/* Footer (TuneForge-format) */
.footer {
	margin-top: var(--sp-2xl);
	padding: var(--sp-xl) 0;
	background: #efece0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-container {
	display: grid;
	grid-template-columns: 1.1fr 0.6fr auto;
	gap: 1rem;
	align-items: start;
}
.footer-column a {
	color: var(--c-ink);
	text-decoration: none;
}
.footer-column a:hover {
	text-decoration: underline;
}
.footer-brand {
	margin: 0 0 0.25rem;
	font-family: var(--ff-display);
	font-size: 1.2rem;
}
.footer-links {
	display: grid;
	gap: 0.35rem;
}
.footer-top {
	display: flex;
	align-items: start;
	justify-content: end;
}
.back-to-top {
	padding: 0.6rem 0.9rem;
	border-radius: var(--radius-md);
	border: 2px solid var(--c-olive);
	background: #fff;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top:hover {
	transform: translateY(-1px);
	background: #e7efe7;
	box-shadow: var(--shadow-soft);
}

@media (max-width: 920px) {
	.footer-container {
		grid-template-columns: 1fr;
	}
	.footer-top {
		justify-content: flex-start;
	}
}

/* Reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(10px);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Images: global constraint */
img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}
.figure,
.tile {
	box-shadow: var(--shadow-soft);
}

/* Accessibility helpers */
.skip-anchor {
	position: relative;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (max-width: 640px) {
	.nav-list {
		gap: 0.5rem;
	}
	.brand {
		font-size: 1.2rem;
	}
}
/* ===== Thank You page (Farm & Fable) ===== */
.thankyou-section {
	min-height: 100vh;
	padding: clamp(2rem, 6vw, 4rem) 0;
	display: grid;
	place-items: center;
	background: radial-gradient(
				900px 420px at 12% -10%,
				#eef5ea 0%,
				transparent 60%
			)
			no-repeat,
		radial-gradient(700px 360px at 100% 100%, #fff7e7 0%, transparent 55%)
			no-repeat,
		var(--c-cream, #faf7ef);
}

.thankyou-container {
	max-width: min(760px, 92vw);
	background: var(--c-paper, #fffdf7);
	border-radius: var(--radius-xl, 16px);
	box-shadow: var(--shadow-soft, 0 10px 20px rgba(0, 0, 0, 0.06));
	padding: clamp(1.25rem, 3.5vw, 2rem);
	text-align: center;
	animation: ty-fade 0.6s ease-out both,
		ty-float 7s ease-in-out infinite alternate;
}

.thankyou-title {
	font-family: var(--ff-display, 'Playfair Display', serif);
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	margin: 0.25rem 0 0.6rem;
}

.thankyou-message {
	color: var(--c-ink, #2a2a2a);
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 0.9rem;
}

.cta-button {
	display: inline-block;
	padding: 0.7rem 1rem;
	border-radius: var(--radius-md, 12px);
	border: 2px solid var(--c-olive, #4f7b5c);
	background: #fff;
	color: var(--c-olive, #4f7b5c);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
	transform: translateY(-1px);
	background: #e7efe7;
	box-shadow: var(--shadow-soft, 0 10px 20px rgba(0, 0, 0, 0.06));
}
.cta-button:focus-visible {
	outline: 3px solid rgba(79, 123, 92, 0.35);
	outline-offset: 2px;
}

/* A11y: motion-safe / responsive */
@keyframes ty-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes ty-float {
	from {
		transform: translateY(-2px);
	}
	to {
		transform: translateY(2px);
	}
}

@media (max-width: 560px) {
	.thankyou-container {
		padding: 1rem;
	}
	.thankyou-message {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thankyou-container {
		animation: none;
	}
	.cta-button {
		transition: none;
	}
}
