/*
Theme Name: Bluebird Acres
Theme URI: https://example.com/
Author: Bluebird Acres
Description: A one-page family farm theme with a land overview, pond project tracker, wildlife habitat projects and a Wildlife Log. Text, photos and project statuses are edited in Appearance → Customize. Includes a Log Keeper user role, a printable yearly log report, automatic removal of photo location data, and an optional contact form and email signup that are off by default.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bluebird-acres
*/

:root {
	--green-900: #1C2E19;
	--green: #2F4A2A;
	--green-700: #3B5A35;
	--leaf: #4E7A3E;
	--sage: #E4ECD9;
	--cream: #F7F4EC;
	--sand: #EDE7D6;
	--sand-line: #DDD5BF;
	--ink: #26301F;
	--muted: #4A5440;
	--on-dark: #E4E8D8;
	--rust: #B4441F;
	--butter: #F2C94C;
	--blue: #2E5F96;
	--blue-ink: #1F4A78;
	--blue-50: #E6EEF6;
	--blue-100: #D7E6F5;
	--font-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--font-body: 'Nunito Sans', system-ui, sans-serif;
	--shadow: 0 1px 0 #E2DBC7, 0 10px 30px -18px rgba(47, 74, 42, .35);
	--shadow-blue: 0 1px 0 #DCE5EE, 0 10px 28px -20px rgba(46, 95, 150, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; }
p { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--butter); color: var(--ink); border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.site-header { background: var(--green); color: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 16px; display: inline-block; padding: 10px 0; }
.nav a:hover { text-decoration: underline; color: var(--cream); }
.nav a.nav__cta { color: var(--ink); background: var(--butter); padding: 10px 20px; border-radius: 999px; }
.nav a.nav__cta:hover { text-decoration: none; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-size: 17px; line-height: 1.3; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn--butter { background: var(--butter); color: var(--ink); }
.btn--butter:hover { color: var(--ink); filter: brightness(.96); }
.btn--outline { border-color: var(--cream); color: var(--cream); }
.btn--outline:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }
.btn--blue { background: var(--blue); color: #fff; padding: 12px 22px; }
.btn--blue:hover { color: #fff; filter: brightness(1.08); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { color: var(--cream); filter: brightness(1.1); }

.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--rust); }
.eyebrow--butter { color: var(--butter); }
.eyebrow--blue { color: var(--blue); }
.title { font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.title--sm { font-size: clamp(30px, 4vw, 46px); }
.lead { font-size: 19px; color: var(--muted); }

/* Hero */
.hero { background: var(--green); color: var(--cream); overflow: hidden; }
.hero__inner { padding-top: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.025em; max-width: 980px; }
.hero__sub { font-size: 20px; max-width: 640px; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero__art { display: block; width: 100%; height: 340px; margin-top: 40px; }
.hero__photo { margin-top: 48px; }
.hero__photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 28px 28px 0 0; }

/* At a glance */
.glance { padding-block: 32px 64px; }
.glance__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.fact { border-top: 3px solid var(--green); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.fact__value { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--green); }
.fact__label { font-weight: 700; }

/* Sections */
.section { padding-block: 88px; }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue-50); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 720px; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.section-head--split > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.section-head--split > p { flex: 1 1 360px; min-width: 0; color: var(--muted); font-size: 18px; }

/* Land cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--hay { background: #E9D9A6; color: #4A4020; }
.card__media--pond { background: #CFE3EA; color: #23424D; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card__body h3 { font-size: 26px; font-weight: 700; }
.card__body p { color: var(--muted); }
.card__body a { font-weight: 700; }

/* Pond steps */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.steps { flex: 999 1 440px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: 0 1px 0 #E2DBC7; }
.step__num { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--sage); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step--in-progress .step__num { background: var(--butter); color: var(--ink); }
.step--done .step__num { background: var(--green); color: var(--cream); }
.step__body { display: flex; flex-direction: column; gap: 4px; }
.step__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.step__head h3 { font-size: 22px; }
.step__body p { color: var(--muted); }

.pill { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill--in-progress { background: #F6E3A8; color: #4A3A0A; }
.pill--planned { background: var(--blue-100); color: var(--blue-ink); }
.pill--future-idea { background: var(--sage); color: var(--green); }
.pill--done { background: var(--green); color: var(--cream); }
.pill--area { background: var(--blue-100); color: var(--blue-ink); text-decoration: none; }
.pill--private { background: #F3D6CC; color: #6B2A14; }

/* Wildlife */
.animals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.animal { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.animal h3 { font-size: 22px; color: var(--blue); }
.animal p, .note { color: var(--muted); }
.note { margin-top: 28px; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.project { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-blue); display: flex; flex-direction: column; gap: 10px; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__area { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.project h3 { font-size: 22px; font-weight: 700; }
.project p { color: var(--muted); }

.log-preview { margin-top: 56px; background: var(--blue-50); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.log-preview__head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.log-preview__head h3 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.log-preview__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.log-mini { background: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.log-mini:hover { color: var(--ink); box-shadow: var(--shadow-blue); }
.log-mini__meta { font-size: 14px; font-weight: 700; color: var(--muted); }
.log-mini__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.story__media { flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #D9D0B8; border: 2px dashed #B3A884; display: flex; align-items: center; justify-content: center; color: #5C5440; font-weight: 700; }
.story__media.has-image { border: 0; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.story__text p { font-size: 19px; }

/* Contact (optional) */
.contact { background: var(--green); color: var(--cream); }
.contact .split__intro p { font-size: 19px; color: var(--on-dark); }
.form-card { flex: 1 1 420px; min-width: 0; background: var(--green-700); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: inherit; padding: 12px 16px; border-radius: 12px; border: 2px solid #6C8A5F; background: var(--cream); color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form-msg--ok { background: var(--sage); color: var(--green); }
.form-msg--err { background: #F3D6CC; color: #6B2A14; }

/* Signup (optional) */
.signup { padding-block: 80px; }
.signup__band { background: var(--butter); border-radius: 32px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.signup__band > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.signup__band h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; }
.signup__band p { color: #3A3A22; font-size: 18px; }
.signup__form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup__form .field { flex: 1 1 220px; }
.signup__form input { border-radius: 999px; border-color: var(--ink); background: #FFFDF5; }

/* Footer */
.site-footer { border-top: 1px solid var(--sand-line); }
.site-footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 15px; }
.site-footer__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--green); }

/* Log archive */
.page-head { padding-block: 64px 24px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -.025em; }
.page-head p { max-width: 640px; color: var(--muted); font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 16px 8px; }
.chip { font-weight: 700; font-size: 15px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid #B9CDE2; background: #fff; color: var(--blue-ink); text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { color: var(--blue-ink); border-color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.entries { padding-block: 24px 96px; display: flex; flex-direction: column; gap: 20px; }
.entry-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-blue); display: flex; flex-wrap: wrap; }
.entry-card__media { flex: 1 1 240px; min-height: 180px; background: #D6E4C8; display: flex; align-items: center; justify-content: center; }
.entry-card__media img { width: 100%; height: 100%; object-fit: cover; }
.entry-card__body { flex: 999 1 420px; min-width: 0; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; }
.entry-card h2 { font-size: 26px; font-weight: 700; }
.entry-card h2 a { color: var(--ink); text-decoration: none; }
.entry-card h2 a:hover { text-decoration: underline; }
.entry-card p { color: var(--muted); }
.empty { padding: 32px; background: #fff; border-radius: 22px; color: var(--muted); }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--blue); color: #fff; }

.counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.counts li { background: var(--blue-50); color: var(--blue-ink); border-radius: 10px; padding: 4px 12px; font-weight: 700; font-size: 15px; }

/* Single entry & pages */
.single { padding-block: 56px 96px; max-width: 820px; }
.single .back { font-weight: 700; display: inline-block; margin-bottom: 24px; }
.single h1 { font-weight: 800; font-size: clamp(36px, 5vw, 54px); letter-spacing: -.02em; margin: 12px 0 20px; }
.single__image { margin: 0 0 28px; }
.single__image img { border-radius: 22px; width: 100%; }
.content > * + * { margin-top: 1em; }
.content img { border-radius: 16px; }
.content figure { margin-inline: 0; }
.single .counts { margin-top: 28px; }
