/* ============================================================
   Ames Family Farm — farmhouse blog theme
   Cream / deep green / terracotta. Vanilla CSS, no frameworks.
   ============================================================ */

:root {
	--aff-cream: #FBF7EC;
	--aff-paper: #FFFDF8;
	--aff-green: #2F5233;
	--aff-green-dark: #234026;
	--aff-accent: #B4551F; /* overridden by Customizer */
	--aff-accent-dark: #8F4318;
	--aff-ink: #2B2A24;
	--aff-muted: #6B675C;
	--aff-border: #E7DFCC;
	--aff-radius: 12px;
	--aff-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--aff-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--aff-maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--aff-cream);
	color: var(--aff-ink);
	font-family: var(--aff-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aff-green); text-decoration: none; }
a:hover { color: var(--aff-accent); }

h1, h2, h3, h4 { font-family: var(--aff-serif); line-height: 1.2; margin: 0 0 .6em; color: var(--aff-green-dark); }

.container { max-width: var(--aff-maxw); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: static; width: auto; height: auto; clip: auto;
	background: var(--aff-green); color: #fff; padding: 10px 16px; display: inline-block;
}

.btn {
	display: inline-block; padding: 12px 26px; border-radius: 999px;
	font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer;
	transition: background .2s, transform .2s;
}
.btn-primary { background: var(--aff-accent); color: #fff; }
.btn-primary:hover { background: var(--aff-accent-dark); color: #fff; transform: translateY(-1px); }

.section-title { font-size: clamp(26px, 3.5vw, 36px); text-align: center; margin: 0 0 28px; }

/* ---------------- Header ---------------- */
.site-header { background: var(--aff-paper); border-bottom: 3px solid var(--aff-green); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.site-branding { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.site-logo-text { font-family: var(--aff-serif); font-size: 26px; font-weight: 700; color: var(--aff-green-dark); display: flex; align-items: center; gap: 8px; }
.logo-mark { font-size: 30px; }
.site-tagline { margin: 0; font-size: 13px; color: var(--aff-muted); font-style: italic; }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: block; padding: 10px 12px; font-weight: 600; color: var(--aff-ink); border-radius: 8px; white-space: nowrap; }
.nav-list a:hover, .nav-list .current-menu-item a { background: #F1EAD6; color: var(--aff-green-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle {
	background: none; border: 1px solid var(--aff-border); border-radius: 8px;
	font-size: 18px; padding: 6px 10px; cursor: pointer; color: var(--aff-ink);
}
.menu-toggle { display: none; }
.social-icons { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.social-icons a {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--aff-green); color: #fff; font-size: 12px; font-weight: 800;
}
.social-icons a:hover { background: var(--aff-accent); color: #fff; }

.search-overlay { background: var(--aff-paper); border-bottom: 1px solid var(--aff-border); padding: 20px 0; }
.search-overlay .container { display: flex; gap: 10px; align-items: center; }
.search-form { display: flex; gap: 8px; flex: 1; }
.search-form .search-field {
	flex: 1; padding: 12px 16px; border: 2px solid var(--aff-border); border-radius: 999px;
	font-size: 16px; background: #fff;
}
.search-form .search-submit {
	padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
	background: var(--aff-green); color: #fff; font-weight: 700;
}
.search-close { background: none; border: none; font-size: 30px; cursor: pointer; color: var(--aff-muted); }

/* ---------------- Ad slots ---------------- */
.ad-slot { text-align: center; margin: 20px auto; }
.ad-slot .adsbygoogle { margin: 0 auto; }
.ad-below-header-wrap { padding-top: 6px; }
.card-ad { background: #F4EEDC; display: flex; align-items: center; justify-content: center; min-height: 250px; }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(180deg, #EFE7CF 0%, var(--aff-cream) 100%); padding: 48px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-cat, .entry-cat, .card-cat {
	display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--aff-accent); margin-bottom: 10px;
}
.hero-title { font-size: clamp(30px, 4.5vw, 52px); margin: 0 0 14px; }
.hero-title a { color: var(--aff-green-dark); }
.hero-excerpt { color: var(--aff-muted); font-size: 18px; margin: 0 0 22px; }
.hero-image img { border-radius: var(--aff-radius); box-shadow: 0 12px 32px rgba(47, 82, 51, .18); }

/* ---------------- Pillars ---------------- */
.pillars { padding: 56px 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
	background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius);
	overflow: hidden; display: flex; flex-direction: column; color: var(--aff-ink);
	transition: transform .2s, box-shadow .2s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(47, 82, 51, .14); color: var(--aff-ink); }
.pillar-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pillar-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pillar-title { font-family: var(--aff-serif); font-size: 22px; font-weight: 700; color: var(--aff-green-dark); }
.pillar-desc { color: var(--aff-muted); font-size: 15px; flex: 1; }
.pillar-link { font-weight: 700; color: var(--aff-accent); }

/* ---------------- Post grid / cards ---------------- */
.latest-posts { padding: 20px 0 60px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
	background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.card-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 20px; margin: 0; }
.card-title a { color: var(--aff-green-dark); }
.card-title a:hover { color: var(--aff-accent); }
.card-meta { font-size: 13px; color: var(--aff-muted); margin: 0; }
.card-excerpt { font-size: 15px; color: var(--aff-muted); margin: 0; flex: 1; }

/* ---------------- Newsletter ---------------- */
.newsletter-section { background: var(--aff-green); color: #F4EFE2; padding: 56px 0; text-align: center; }
.newsletter-section .section-title { color: #fff; }
.newsletter-sub { max-width: 560px; margin: 0 auto 24px; opacity: .9; }
.newsletter-widget form, .newsletter-widget .email-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-widget input[type="email"], .newsletter-widget input[type="text"] {
	padding: 12px 18px; border-radius: 999px; border: none; font-size: 16px; min-width: 280px;
}
.newsletter-widget input[type="submit"], .newsletter-widget button {
	padding: 12px 28px; border-radius: 999px; border: none; cursor: pointer;
	background: var(--aff-accent); color: #fff; font-weight: 700; font-size: 16px;
}

/* ---------------- Content / single ---------------- */
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 32px; padding-bottom: 60px; }
.content-wrap > * { min-width: 0; }
.content-wrap.no-sidebar { grid-template-columns: minmax(0, 760px); justify-content: center; }
.breadcrumbs { font-size: 14px; color: var(--aff-muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #B9B09A; }

.entry-title { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 12px; }
.entry-meta { color: var(--aff-muted); font-size: 15px; margin: 0 0 24px; }
.entry-featured { margin: 0 0 28px; }
.entry-featured img { border-radius: var(--aff-radius); width: 100%; }
.entry-content { font-size: 18px; overflow-wrap: break-word; }
.entry-title, .entry-title-xl, .archive-title, .card-title { overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2 { font-size: 30px; margin: 1.6em 0 .6em; padding-top: .4em; border-top: 2px solid var(--aff-border); }
.entry-content h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
	border-left: 4px solid var(--aff-accent); margin: 1.6em 0; padding: .6em 1.2em;
	background: var(--aff-paper); font-style: italic; border-radius: 0 8px 8px 0;
}
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--aff-muted); text-align: center; margin-top: 8px; }

/* Table of contents */
.toc { background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius); padding: 20px 24px; margin: 0 0 28px; }
.toc-title { font-family: var(--aff-serif); font-weight: 700; font-size: 19px; margin: 0 0 10px; color: var(--aff-green-dark); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; }
.toc-level-3 { padding-left: 18px; }
.toc a { color: var(--aff-ink); }
.toc a:hover { color: var(--aff-accent); }

/* Pinterest pin-it button */
.pin-hover { position: relative; }
.pin-btn {
	position: absolute; top: 12px; left: 12px; z-index: 5;
	background: #BD081C; color: #fff; border: none; border-radius: 999px;
	padding: 8px 16px; font-size: 14px; font-weight: 800; cursor: pointer;
	opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
	display: flex; align-items: center; gap: 6px;
}
.pin-hover:hover .pin-btn, .pin-btn:focus { opacity: 1; transform: none; }
.pin-btn:hover { background: #9E0718; color: #fff; }

/* Share buttons */
.share-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--aff-border); }
.share-label { font-weight: 700; }
.share-btn { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; }
.share-pinterest { background: #BD081C; }
.share-facebook { background: #1877F2; }
.share-x { background: #111; }
.share-email { background: var(--aff-green); }
.share-btn:hover { opacity: .85; color: #fff; }
.entry-tags { font-size: 15px; color: var(--aff-muted); }

/* Author box */
.author-box { display: flex; gap: 18px; background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius); padding: 22px; margin: 28px 0; }
.author-avatar img { border-radius: 50%; }
.author-name { font-family: var(--aff-serif); font-size: 19px; font-weight: 700; margin: 0 0 6px; color: var(--aff-green-dark); }
.author-bio { margin: 0 0 8px; font-size: 15px; color: var(--aff-muted); }
.author-link { font-weight: 700; font-size: 15px; }

/* Related posts */
.related-posts { margin: 36px 0; }
.related-posts .section-title { text-align: left; font-size: 26px; }

/* ---------------- Sidebar / widgets ---------------- */
.site-sidebar .widget { background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius); padding: 22px; margin-bottom: 24px; }
.widget-title { font-size: 20px; margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 8px; }
.widget_search .search-form { flex-wrap: nowrap; }
.widget_search .search-field { min-width: 0; }

/* ---------------- Archive / search / 404 ---------------- */
.archive-header { margin-bottom: 28px; }
.archive-title { font-size: clamp(28px, 4vw, 40px); }
.archive-description { color: var(--aff-muted); max-width: 700px; }
.pagination { margin: 36px 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 10px 16px; border: 1px solid var(--aff-border); border-radius: 8px; margin: 0 4px; background: var(--aff-paper); color: var(--aff-ink); font-weight: 600; }
.pagination .current { background: var(--aff-green); color: #fff; border-color: var(--aff-green); }

.error-404 { text-align: center; padding: 60px 0; }
.error-code { font-family: var(--aff-serif); font-size: clamp(80px, 15vw, 160px); color: var(--aff-border); margin: 0; line-height: 1; }
.error-title { font-size: 32px; }
.error-text { color: var(--aff-muted); max-width: 520px; margin: 0 auto 24px; }
.error-404 .search-form { max-width: 480px; margin: 0 auto 24px; }
.error-404 .post-grid { margin-top: 32px; text-align: left; }

/* ---------------- Comments ---------------- */
.comments-area { margin-top: 40px; border-top: 1px solid var(--aff-border); padding-top: 28px; }
.comments-title { font-size: 24px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .children { list-style: none; margin-left: 0; padding-left: 40px; }
.comment-body { background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius); padding: 18px; margin-bottom: 16px; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata { font-size: 13px; color: var(--aff-muted); margin-bottom: 8px; }
.comment-content p { margin: 0 0 1em; }
.reply { margin-top: 8px; }
.comment-reply-link { font-size: 14px; font-weight: 700; }
.comment-form label { display: block; font-weight: 600; margin: 12px 0 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px; border: 2px solid var(--aff-border); border-radius: 8px; font-size: 16px; font-family: var(--aff-sans); background: #fff;
}
.comment-form textarea { min-height: 140px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------------- Write for Us page ---------------- */
.write-for-us .entry-subtitle { font-size: 19px; color: var(--aff-muted); max-width: 720px; }
.pricing { padding: 36px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.price-card { background: var(--aff-paper); border: 2px solid var(--aff-border); border-radius: var(--aff-radius); padding: 30px 26px; text-align: center; }
.price-featured { border-color: var(--aff-accent); box-shadow: 0 12px 30px rgba(180, 85, 31, .15); position: relative; }
.price-name { font-size: 22px; margin: 0 0 8px; }
.price-amount { font-family: var(--aff-serif); font-size: 52px; font-weight: 700; color: var(--aff-green-dark); margin: 0 0 16px; }
.price-amount .currency { font-size: 28px; vertical-align: top; }
.price-features { list-style: none; margin: 0; padding: 0; text-align: left; }
.price-features li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--aff-border); font-size: 15px; }
.price-features li::before { content: "✓"; position: absolute; left: 4px; color: var(--aff-green); font-weight: 800; }
.pricing-note { text-align: center; font-size: 14px; color: var(--aff-muted); }
.guidelines { background: var(--aff-paper); border: 1px solid var(--aff-border); border-radius: var(--aff-radius); padding: 30px; margin: 12px 0 36px; }
.guideline-list { margin: 0; padding-left: 1.2em; }
.guideline-list li { margin-bottom: 10px; }
.contact-cta { text-align: center; padding: 12px 0 60px; }
.form-placeholder { background: #F4EEDC; border: 2px dashed var(--aff-border); border-radius: var(--aff-radius); padding: 32px; color: var(--aff-muted); max-width: 640px; margin: 20px auto; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--aff-green-dark); color: #D9D4C3; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 48px 20px; }
.site-footer .widget-title { color: #fff; font-size: 18px; }
.site-footer a { color: #EDE7D3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-bottom-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-text { margin: 0; font-size: 14px; }
.footer-nav { list-style: none; display: flex; gap: 16px; margin: 0 0 0 auto; padding: 0; font-size: 14px; }
.footer-bottom .social-icons a { background: rgba(255, 255, 255, .15); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1400px) {
	.site-tagline { display: none; }
	.header-actions .social-icons { display: none; }
	.header-inner { gap: 12px; }
	.nav-list a { padding: 8px 10px; font-size: 15px; }
}
@media (max-width: 1100px) {
	.content-wrap { grid-template-columns: 1fr; }
	.post-grid, .pillar-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-inner { grid-template-columns: 1fr; }
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--aff-paper); border-bottom: 2px solid var(--aff-border); }
	.main-nav.open { display: block; }
	.main-nav .nav-list { flex-direction: column; padding: 10px 20px 20px; }
	.site-header { position: relative; }
	.header-inner { flex-wrap: wrap; }
}

@media (max-width: 640px) {
	.post-grid, .pillar-grid, .pricing-grid { grid-template-columns: 1fr; }
	.site-tagline { display: none; }
	.header-actions .social-icons { display: none; }
	.pin-btn { opacity: 1; transform: none; }
}

/* ============================================================
   Design refresh v1.1 — editorial farmhouse polish
   ============================================================ */

/* --- Global micro-polish --- */
::selection { background: var(--aff-accent); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--aff-accent);
	outline-offset: 2px;
	border-radius: 4px;
}
html { scroll-padding-top: 90px; }

/* --- Header: shadow on scroll (JS toggles .scrolled) --- */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(35, 64, 38, .14); }
.logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--aff-green); color: #fff; font-size: 22px; flex-shrink: 0;
}

/* --- Hero v2: richer editorial treatment --- */
.hero {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(180, 85, 31, .10), transparent 60%),
		radial-gradient(900px 420px at -10% 110%, rgba(47, 82, 51, .10), transparent 55%),
		linear-gradient(180deg, #F0E8D2 0%, var(--aff-cream) 100%);
	padding: 64px 0 72px;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
	background-image: radial-gradient(rgba(47, 82, 51, .10) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero-kicker {
	display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2.5px;
	text-transform: uppercase; color: var(--aff-green-dark);
	border: 1px solid var(--aff-green); border-radius: 999px;
	padding: 6px 16px; margin: 0 0 16px; background: rgba(255, 255, 255, .55);
}
.hero-title { font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -.015em; line-height: 1.08; margin: 0 0 12px; }
.hero-meta { font-size: 14px; color: var(--aff-muted); margin: 0 0 16px; letter-spacing: .4px; }
.hero-excerpt { font-size: 19px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn:hover { filter: brightness(1.06) saturate(1.05); }
.btn-secondary {
	display: inline-block; padding: 12px 26px; border-radius: 999px;
	font-weight: 700; font-size: 16px; cursor: pointer;
	background: transparent; color: var(--aff-green-dark); border: 2px solid var(--aff-green);
	transition: background .2s, color .2s, transform .2s;
}
.btn-secondary:hover { background: var(--aff-green); color: #fff; transform: translateY(-1px); }
.btn { box-shadow: 0 2px 0 rgba(0, 0, 0, .04); }

/* Layered / overlapping featured-image treatment */
.hero-frame { display: block; position: relative; }
.hero-frame-img { display: block; position: relative; z-index: 1; }
.hero-frame-img img {
	border-radius: var(--aff-radius);
	box-shadow: 0 24px 60px rgba(47, 82, 51, .28);
	aspect-ratio: 16/10; width: 100%; object-fit: cover;
}
.hero-frame::before {
	content: ""; position: absolute; inset: 0;
	border: 2px solid var(--aff-accent); border-radius: var(--aff-radius);
	transform: translate(18px, 18px);
	z-index: 0; opacity: .85;
}
.hero-frame::after {
	content: ""; position: absolute; inset: 0;
	border-radius: var(--aff-radius); z-index: 2; pointer-events: none;
	background: linear-gradient(180deg, transparent 60%, rgba(35, 64, 38, .18));
}

/* --- Post cards: refined hover + meta --- */
.post-card { transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(47, 82, 51, .16); }
.card-image { overflow: hidden; }
.card-image img { aspect-ratio: 16/10; transition: transform .45s ease; }
.post-card:hover .card-image img { transform: scale(1.06); }
.card-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
	transition: background-size .3s ease, color .2s;
	padding-bottom: 2px;
}
.post-card:hover .card-title a { background-size: 100% 2px; color: var(--aff-accent); }
.card-meta {
	font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.2px;
	font-weight: 600;
}
.card-excerpt { font-size: 15.5px; line-height: 1.6; }
.card-readmore {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
	font-weight: 700; font-size: 15px; color: var(--aff-accent);
}
.card-readmore span { transition: transform .2s; }
.post-card:hover .card-readmore span { transform: translateX(4px); }

/* --- Typography: pull quotes, drop caps, rhythm --- */
.entry-content { font-size: 18.5px; line-height: 1.75; }
.entry-content h2 { letter-spacing: -.01em; }
.pull-quote {
	font-family: var(--aff-serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
	color: var(--aff-green-dark); text-align: center; font-style: normal;
	margin: 2em auto; max-width: 640px; padding: 1.2em 1em; position: relative;
	border-top: 2px solid var(--aff-accent); border-bottom: 2px solid var(--aff-accent);
}
.pull-quote::before {
	content: "\201C"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
	background: var(--aff-cream); padding: 0 14px;
	font-size: 56px; line-height: 1; color: var(--aff-accent);
}
.entry-content.dropcap > p:first-of-type::first-letter {
	font-family: var(--aff-serif); font-weight: 700; font-size: 4.2em; line-height: .82;
	float: left; margin: 6px 10px 0 0; color: var(--aff-green);
}

/* --- TOC: card-like, mirrors heading text (no auto-numbers; headings carry their own) --- */
.toc { border-left: 4px solid var(--aff-accent); box-shadow: 0 6px 20px rgba(47, 82, 51, .07); }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.toc li::before {
	content: "\2192"; position: absolute; left: 0; top: 1px;
	font-weight: 800; color: var(--aff-accent);
}
.toc-level-3 { padding-left: 42px !important; }
.toc-level-3::before { left: 18px !important; }

/* --- Author box: richer --- */
.author-box { border-left: 4px solid var(--aff-green); box-shadow: 0 6px 20px rgba(47, 82, 51, .07); align-items: center; }
.author-avatar img { border: 3px solid var(--aff-border); width: 84px; height: 84px; object-fit: cover; }
.author-box .author-bio { max-width: 60ch; }

/* --- Related posts --- */
.related-posts { border-top: 2px solid var(--aff-border); padding-top: 28px; }
.related-posts .section-title { display: flex; align-items: center; gap: 12px; }
.related-posts .section-title::after { content: ""; flex: 1; height: 2px; background: var(--aff-border); border-radius: 2px; }

/* --- Footer: richer columns --- */
.site-footer { background: linear-gradient(180deg, #2A4A2E 0%, var(--aff-green-dark) 40%); }
.site-footer .widget-title {
	color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: 1.6px;
	padding-bottom: 10px; margin-bottom: 16px; position: relative;
}
.site-footer .widget-title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px;
	background: var(--aff-accent); border-radius: 2px;
}
.site-footer .widget li { margin-bottom: 10px; font-size: 15px; }
.site-footer .widget a { opacity: .92; }
.site-footer .widget a:hover { opacity: 1; padding-left: 2px; }
.footer-bottom-inner { padding-top: 22px; padding-bottom: 22px; }

/* --- Form inputs polish --- */
.search-form .search-field, .comment-form input, .comment-form textarea {
	transition: border-color .2s, box-shadow .2s;
}
.search-form .search-field:focus, .comment-form input:focus, .comment-form textarea:focus {
	border-color: var(--aff-accent); box-shadow: 0 0 0 3px rgba(180, 85, 31, .15); outline: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.post-card:hover { transform: none; }
	.post-card:hover .card-image img { transform: none; }
}

/* ============================================================
   v1.2.0 — 3D Gen Z Farmhouse
   Claymorphism SVG, sticker badges, ticker, masonry, spotlight,
   chunky buttons, scroll reveals. All motion gated behind
   body.motion-on + prefers-reduced-motion.
   ============================================================ */

/* --- Extended palette --- */
:root {
	--aff-forest: #1E3A22;
	--aff-sun: #FFC93C;
	--aff-coral: #FF6B4A;
	--aff-lime: #A3D635;
	--aff-sky: #7FD1F0;
	--aff-hard-shadow: rgba(30, 58, 34, .9);
}

/* --- Clay 3D elements --- */
.clay { filter: drop-shadow(0 14px 16px rgba(30, 58, 34, .22)); }
.clay use { pointer-events: none; }

/* --- Sticker badges: thick white border, hard 3D shadow, slight tilt --- */
.sticker {
	display: inline-block; background: #FFFDF8; color: var(--aff-forest);
	border: 3px solid #FFFDF8; border-radius: 999px; padding: 9px 22px;
	font-weight: 800; font-size: 13px; letter-spacing: 2.2px; text-transform: uppercase;
	box-shadow: 4px 4px 0 var(--aff-hard-shadow);
	outline: 3px solid var(--aff-forest);
	outline-offset: -3px;
}
.sticker-tilt { transform: rotate(-4deg); }
.sticker-tilt-sm { transform: rotate(-2deg); }

/* --- Chunky 3D buttons --- */
.btn-chunky {
	border-radius: 18px; padding: 15px 32px; font-size: 17px;
	box-shadow: 0 6px 0 var(--aff-hard-shadow);
	transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn-chunky:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--aff-hard-shadow); }
.btn-chunky:active { transform: translateY(6px); box-shadow: 0 0 0 var(--aff-hard-shadow); }
.btn-sun { background: linear-gradient(135deg, var(--aff-sun), var(--aff-coral)); color: #2B2A24; border: none; }
.btn-sun:hover { color: #2B2A24; filter: brightness(1.05); }

/* --- Motion keyframes (applied only under body.motion-on) --- */
@keyframes aff-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes aff-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(38px); } }
@keyframes aff-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes aff-spin { to { transform: rotate(360deg); } }
@keyframes aff-ticker { to { transform: translateX(-50%); } }
@keyframes aff-pop-in { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 70% { transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(-4deg); } }

body.motion-on .float-y { animation: aff-float-y 5.2s ease-in-out infinite; }
body.motion-on .float-x { animation: aff-drift 9s ease-in-out infinite; }
body.motion-on .float-sway { animation: aff-sway 6.5s ease-in-out infinite; transform-origin: 50% 92%; }
body.motion-on .aff-sun-rays { animation: aff-spin 48s linear infinite; transform-origin: 60px 60px; transform-box: fill-box; }
body.motion-on .d1 { animation-delay: -1.6s; }
body.motion-on .d2 { animation-delay: -3.1s; }
body.motion-on .d3 { animation-delay: -4.4s; }

/* --- Scroll reveal --- */
body.motion-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
body.motion-on .reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   HERO 3D
   ============================================================ */
.hero-3d {
	background: linear-gradient(180deg, #F8F0DA 0%, var(--aff-cream) 80%);
	padding: 64px 0 0; position: relative; overflow: hidden;
}
.hero-3d::after { display: none; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-3d .hero-inner { position: relative; z-index: 1; padding-bottom: 70px; }
.hero-sun { position: absolute; top: 34px; right: 7%; width: 112px; }
.hero-cloud-1 { position: absolute; top: 11%; left: 3%; width: 132px; opacity: .95; }
.hero-cloud-2 { position: absolute; top: 32%; right: 30%; width: 88px; opacity: .8; }
.hero-chicken { position: absolute; bottom: 16%; left: 5%; width: 118px; }
.hero-egg-1 { position: absolute; bottom: 10%; right: 11%; width: 68px; }
.hero-egg-2 { position: absolute; bottom: 24%; right: 21%; width: 48px; }
.hero-wheat { position: absolute; bottom: 7%; left: 21%; width: 78px; }

.hero-3d .hero-text .sticker { margin-bottom: 22px; }
body.motion-on .hero-3d .sticker { animation: aff-pop-in .7s cubic-bezier(.2, .7, .3, 1) .15s both; }
.hero-title-xl { font-size: clamp(48px, 8vw, 94px); font-weight: 900; letter-spacing: -.03em; line-height: 1.0; margin: 0 0 18px; }
.hl-sun {
	background: linear-gradient(transparent 60%, rgba(255, 201, 60, .8) 60%);
	padding: 0 .08em; border-radius: 4px;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-3d .hero-excerpt { font-size: 19px; max-width: 46ch; }
.hero-art { position: relative; min-height: 440px; }
.hero-barn { position: absolute; left: 8%; bottom: 6%; width: 200px; }
.hero-jar { position: absolute; right: 16%; bottom: 22%; width: 128px; }
.hero-sprout { position: absolute; right: 2%; bottom: 4%; width: 118px; }
.hero-3d .divider-scallop { position: relative; z-index: 1; }

/* Scalloped section dividers (CSS half-discs) */
.divider-scallop {
	height: 14px;
	background-image: radial-gradient(circle at 14px 0, var(--aff-forest) 13px, transparent 14px);
	background-size: 28px 14px; background-repeat: repeat-x;
}
.divider-scallop-dark {
	background-image: radial-gradient(circle at 14px 0, var(--aff-cream) 13px, transparent 14px);
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
	background: var(--aff-forest); color: #FBF7EC; overflow: hidden;
	padding: 13px 0; border-top: 3px solid #16291a; border-bottom: 3px solid #16291a;
}
.ticker-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; padding-right: 30px; will-change: transform; }
body.motion-on .ticker-track { animation: aff-ticker 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; font-size: 14px; }
.ticker-star { color: var(--aff-sun); font-size: 16px; }

/* ============================================================
   MAGAZINE GRID
   ============================================================ */
.magazine { padding: 64px 0 20px; }
.mag-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.mag-feature {
	background: var(--aff-paper); border: 3px solid var(--aff-forest); border-radius: 26px;
	overflow: hidden; box-shadow: 8px 8px 0 var(--aff-hard-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.mag-feature:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 12px 12px 0 var(--aff-hard-shadow); }
.mag-feature-image { position: relative; display: block; overflow: hidden; }
.mag-feature-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s ease; }
.mag-feature:hover .mag-feature-image img { transform: scale(1.05); }
.mag-feature-image .sticker-cat { position: absolute; left: 20px; bottom: 18px; }
.mag-feature-body { padding: 30px 30px 34px; }
.mag-feature-title { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.015em; margin: 0 0 10px; }
.mag-feature-title a { color: var(--aff-forest); }
.mag-feature-excerpt { color: var(--aff-muted); margin: 12px 0 22px; font-size: 17px; }
.mag-compact-list { display: flex; flex-direction: column; gap: 16px; }
.mag-compact {
	display: flex; gap: 14px; align-items: center; background: var(--aff-paper);
	border: 2px solid var(--aff-border); border-radius: 20px; padding: 12px 16px 12px 12px;
	color: var(--aff-ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mag-compact:hover { transform: translateY(-3px); border-color: var(--aff-forest); box-shadow: 5px 5px 0 var(--aff-hard-shadow); color: var(--aff-ink); }
.mag-compact-thumb { flex-shrink: 0; }
.mag-compact-thumb img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; }
.mag-compact-title { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.35; color: var(--aff-forest); margin-bottom: 4px; }

/* ============================================================
   3D PILLAR TILES
   ============================================================ */
.pillars-3d { padding: 64px 0; }
.pillar-tile {
	position: relative; border-radius: 28px; padding: 32px 28px; overflow: hidden;
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	border: 3px solid var(--aff-forest); box-shadow: 7px 7px 0 var(--aff-hard-shadow);
	transition: transform .22s ease, box-shadow .22s ease; color: var(--aff-forest); min-height: 320px;
}
.pillar-tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 12px 12px 0 var(--aff-hard-shadow); color: var(--aff-forest); }
.tile-green { background: linear-gradient(150deg, #DCEFAE, var(--aff-lime) 85%); }
.tile-sun { background: linear-gradient(150deg, #FFEDB0, var(--aff-sun) 55%, #FF9E4A 110%); }
.tile-coral { background: linear-gradient(150deg, #FFDCCB, #FF9E7E 55%, var(--aff-coral) 115%); }
.tile-blob { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .35); top: -70px; right: -70px; }
.tile-icon { width: 112px; height: 112px; position: relative; }
.tile-body { display: flex; flex-direction: column; gap: 8px; position: relative; }
.tile-title { font-family: var(--aff-serif); font-weight: 900; font-size: 27px; letter-spacing: -.01em; }
.tile-desc { font-size: 15.5px; color: #3d4a35; }
.tile-cta {
	margin-top: 10px; font-weight: 800; font-size: 15px; background: #FFFDF8;
	padding: 9px 20px; border-radius: 999px; border: 2px solid var(--aff-forest);
	box-shadow: 3px 3px 0 var(--aff-forest); display: inline-flex; align-items: center; gap: 6px;
}
.pillar-tile:hover .tile-cta span { transform: translateX(4px); }
.tile-cta span { transition: transform .2s; display: inline-block; }

/* ============================================================
   SPOTLIGHT BAND
   ============================================================ */
.spotlight { position: relative; background: var(--aff-forest); color: #F4EFE2; padding: 96px 0 120px; overflow: hidden; text-align: center; }
.spotlight-glow {
	position: absolute; width: 760px; height: 760px; border-radius: 50%;
	background: radial-gradient(circle, rgba(163, 214, 53, .20), transparent 65%);
	top: -260px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.spotlight-inner { position: relative; z-index: 1; }
.spotlight .sticker { background: var(--aff-sun); outline-color: var(--aff-sun); margin-bottom: 24px; }
.spotlight-quote { font-family: var(--aff-serif); font-weight: 900; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -.02em; color: #FFFDF8; max-width: 840px; margin: 0 auto 20px; }
.spotlight-sub { opacity: .88; max-width: 620px; margin: 0 auto 30px; font-size: 18px; }
.spotlight-sun { position: absolute; top: 44px; left: 6%; width: 118px; opacity: .92; z-index: 0; }
.spotlight-chicken { position: absolute; bottom: 56px; right: 6%; width: 128px; z-index: 0; }
.spotlight .divider-scallop { position: absolute; bottom: 0; left: 0; right: 0; }

/* ============================================================
   PIN-STYLE MASONRY
   ============================================================ */
.masonry { columns: 3 280px; column-gap: 26px; }
.masonry-item { break-inside: avoid; margin-bottom: 26px; }
.masonry .post-card { border: 2px solid var(--aff-forest); border-radius: 22px; box-shadow: 5px 5px 0 var(--aff-hard-shadow); }
.masonry .post-card:hover { transform: translateY(-4px) rotate(.4deg); box-shadow: 9px 9px 0 var(--aff-hard-shadow); }
.masonry .card-image img { aspect-ratio: auto; border-radius: 20px 20px 0 0; }
.masonry .card-title { font-family: var(--aff-sans); font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.35; }
.masonry .card-cat {
	background: linear-gradient(135deg, var(--aff-sun), var(--aff-coral)); color: #2B2A24;
	border-radius: 999px; padding: 5px 14px; font-size: 11.5px; margin-bottom: 6px;
}

/* ============================================================
   SINGLE POST — decorative header + pin callout
   ============================================================ */
.entry-header-3d { text-align: center; max-width: 860px; margin: 6px auto 10px; }
.entry-header-3d .sticker { margin-bottom: 20px; }
.entry-title-xl { font-size: clamp(36px, 5.6vw, 62px); font-weight: 900; letter-spacing: -.025em; line-height: 1.08; }
.entry-header-3d .entry-meta { margin-bottom: 26px; }

.pin-callout {
	display: flex; align-items: center; gap: 20px; margin: 32px 0;
	background: linear-gradient(135deg, #FFF6E2, #FFE7C2);
	border: 3px solid var(--aff-forest); border-radius: 24px; padding: 22px 24px;
	box-shadow: 6px 6px 0 var(--aff-hard-shadow);
}
.pin-callout .clay-jar { width: 76px; height: 76px; flex-shrink: 0; }
.pin-callout-title { font-weight: 900; font-size: 20px; margin: 0; color: var(--aff-forest); letter-spacing: -.01em; }
.pin-callout-sub { margin: 3px 0 0; font-size: 14.5px; color: var(--aff-muted); }
.pin-callout-btn {
	margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
	background: #BD081C; color: #fff; font-weight: 800; font-size: 16px;
	padding: 13px 26px; border-radius: 999px; border: 3px solid #FFFDF8;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .28); transition: transform .15s;
}
.pin-callout-btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }

/* ============================================================
   HEADER — 3D logo lockup
   ============================================================ */
.logo-mark { background: none; width: auto; height: auto; display: inline-flex; }
.logo-mark svg { display: block; filter: drop-shadow(0 4px 5px rgba(30, 58, 34, .3)); transition: transform .25s ease; }
.site-logo-text:hover .logo-mark svg { transform: rotate(-8deg) scale(1.06); }
.logo-word { font-weight: 900; letter-spacing: -.015em; }
.nav-list a { border: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item a { background: #F1EAD6; border-color: var(--aff-forest); box-shadow: 2px 2px 0 var(--aff-hard-shadow); }

/* ============================================================
   NEWSLETTER 3D + FOOTER
   ============================================================ */
.newsletter-3d { background: linear-gradient(135deg, #35603B, var(--aff-forest)); position: relative; overflow: hidden; }
.newsletter-3d::before {
	content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 201, 60, .16), transparent 65%);
	top: -160px; right: -120px;
}
.newsletter-3d .newsletter-inner { position: relative; }
.newsletter-egg { position: absolute; left: 2%; top: 50%; width: 92px; transform: translateY(-50%); }

.footer-hills { line-height: 0; margin-bottom: -2px; }
.footer-hills svg { width: 100%; height: 90px; display: block; }
.site-footer { background: linear-gradient(180deg, #26432b, var(--aff-forest)); }
.footer-giant { text-align: center; padding: 26px 0 18px; overflow: hidden; }
.footer-giant-text {
	font-family: var(--aff-serif); font-weight: 900; letter-spacing: -.025em; line-height: .95;
	font-size: clamp(52px, 11vw, 138px); white-space: nowrap; display: block; line-height: 1.05;
	color: rgba(251, 247, 236, .07); -webkit-text-stroke: 2px rgba(251, 247, 236, .4);
}

/* ============================================================
   v1.2.0 RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
	.hero-art { min-height: 330px; }
	.hero-barn { width: 160px; left: 4%; }
	.hero-jar { width: 104px; right: 12%; }
	.hero-sprout { width: 96px; }
	.hero-chicken { width: 96px; }
	.mag-grid { grid-template-columns: 1fr; }
	.spotlight-sun { width: 84px; top: 24px; }
	.spotlight-chicken { width: 92px; bottom: 40px; }
	.newsletter-egg { display: none; }
	.pin-callout { flex-wrap: wrap; }
	.pin-callout-btn { margin-left: 0; }
}
@media (max-width: 640px) {
	.hero-cloud-2, .hero-egg-2, .hero-wheat { display: none; }
	.hero-sun { width: 84px; top: 22px; right: 5%; }
	.hero-chicken { width: 84px; bottom: 12%; }
	.hero-egg-1 { width: 54px; }
	.hero-art { min-height: 280px; }
	.hero-barn { width: 132px; }
	.hero-jar { width: 86px; bottom: 18%; }
	.hero-sprout { width: 80px; }
	.sticker { font-size: 11px; padding: 8px 18px; }
	.spotlight { padding: 70px 0 96px; }
	.footer-giant-text { font-size: clamp(30px, 10.5vw, 80px); }
}

/* ============================================================
   v1.2.1 BUILT-IN FORMS (newsletter + guest-post order)
   ============================================================ */
.aff-form { width: 100%; }
.aff-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 520px; margin: 0 auto; }
.aff-newsletter-form .aff-input { flex: 1 1 240px; }
.aff-input { font: inherit; padding: 12px 16px; border: 2px solid var(--aff-border); border-radius: 12px; background: #fff; color: var(--aff-ink); width: 100%; box-sizing: border-box; }
.aff-input:focus { outline: none; border-color: var(--aff-forest); box-shadow: 0 0 0 3px rgba(46, 94, 54, .15); }
.aff-guest-form { max-width: 640px; margin: 0 auto; text-align: left; }
.aff-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aff-field { margin-bottom: 14px; }
.aff-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.aff-form-msg { width: 100%; margin: 10px 0 0; font-weight: 600; min-height: 1.4em; }
.aff-form-msg.ok { color: var(--aff-green-dark); }
.aff-form-msg.err { color: #B3261E; }
.aff-form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-form-slot { background: var(--aff-paper); border: 2px solid var(--aff-border); border-radius: 20px; padding: 28px; box-shadow: 6px 6px 0 var(--aff-hard-shadow); }
@media (max-width: 640px) { .aff-form-row { grid-template-columns: 1fr; } .contact-form-slot { padding: 20px; } }
