/* Georgia Farm & Food Initiative — draft site styles
   Palette: "Blue Ridge morning" (website/palette.csv) */
:root {
  --slate-dark: #26323D;   /* text, nav, outlines */
  --slate-blue: #4A6A86;   /* primary brand */
  --sage: #8FA88A;         /* secondary, cards */
  --wheat: #E3C97A;        /* accent, buttons */
  --cream: #F6F1E6;        /* page background */
  --page: #FFFFFF;         /* page background (white) */
  --blue-sage: #294649;
  --blue-wheat: #425440;
  --sage-wheat: #7F8442;
  --center: #253723;

  --ink: var(--slate-dark);
  --ink-soft: #4b5a66;
  --card: #FFFFFF;
  --line: rgba(38, 50, 61, 0.14);
  --sage-tint: #e6ece2;
  --blue-tint: #e3e9ef;
  --wheat-tint: #f6ecce;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--slate-blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-sage); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--slate-blue); margin-bottom: .75em; display: block; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* Draft banner */
.draft-banner { background: var(--wheat); color: var(--slate-dark); font-size: .85rem; text-align: center; padding: 6px 16px; font-weight: 600; }

/* Header */
.site-header { background: var(--page); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-dark); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--slate-dark); font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 8px; display: block; }
.site-nav a:hover { background: var(--sage-tint); }
.site-nav a[aria-current="page"] { background: var(--slate-dark); color: var(--cream); }

@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-name { font-size: 1rem; }
  .site-nav { flex: 1 1 auto; }
  .site-nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .site-nav a { padding: 6px 7px; font-size: .85rem; }
}
@media (max-width: 560px) {
  .brand svg { width: 34px; height: 34px; }
  .brand-name { font-size: .86rem; }
  .site-nav a { padding: 4px 6px; font-size: .8rem; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wheat); color: var(--slate-dark); }
.btn-primary:hover { background: #d9bb5e; color: var(--slate-dark); }
.btn-ghost { border-color: currentColor; color: var(--cream); }
.btn-ghost:hover { background: rgba(246,241,230,.12); color: var(--cream); }
.btn-outline { border-color: var(--slate-dark); color: var(--slate-dark); }
.btn-outline:hover { background: var(--slate-dark); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: var(--slate-dark); color: var(--cream); position: relative; overflow: hidden; }
.hero .wrap { padding-top: 88px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero h1 { max-width: 15em; }
.hero .lead { color: #d9dfe4; }
.hero .eyebrow { color: var(--wheat); }
.hero-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 340px; z-index: 0; }
@media (max-width: 960px) { .hero-art { width: 300px; right: -120px; opacity: .25; } }
.hero .wrap { padding-right: 420px; }
@media (max-width: 960px) { .hero .wrap { padding-right: 24px; } }

.page-hero { background: var(--slate-blue); color: var(--cream); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero .eyebrow { color: var(--wheat); }
.page-hero .lead { color: #e8edf1; }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.bg-sage { background: var(--sage-tint); }
.bg-blue { background: var(--blue-tint); }
.bg-dark { background: var(--blue-sage); color: var(--cream); }
.bg-dark .eyebrow { color: var(--wheat); }
.bg-dark a { color: var(--wheat); }
.section-head { max-width: 46em; margin-bottom: 40px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.stat { border-top: 3px solid var(--wheat); padding-top: 14px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--slate-dark); }
.stat span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--cream); background: var(--slate-blue); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.card.accent-sage { border-top: 5px solid var(--sage); }
.card.accent-blue { border-top: 5px solid var(--slate-blue); }
.card.accent-wheat { border-top: 5px solid var(--wheat); }
.card.accent-olive { border-top: 5px solid var(--sage-wheat); }

/* Region cards */
.region { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.region-top { padding: 18px 22px; color: var(--cream); }
.region-top h3 { margin: 0; font-size: 1.2rem; }
.region-top span { font-size: .85rem; opacity: .9; }
.region-body { padding: 18px 22px 22px; font-size: .98rem; }
.region-body ul { margin: 0; padding-left: 1.1em; }
.r1 { background: var(--slate-blue); }
.r2 { background: var(--blue-sage); }
.r3 { background: var(--blue-wheat); }
.r4 { background: var(--sage-wheat); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 4px var(--sage-tint); }
.bg-dark .checks li::before { background: var(--wheat); box-shadow: inset 0 0 0 4px var(--blue-sage); }

/* Pull quote */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; max-width: 34em; margin: 0; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; margin-top: 14px; color: var(--wheat); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--slate-dark); color: var(--cream); font-weight: 700; font-size: .95rem; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--sage); }
.timeline li { position: relative; padding-left: 44px; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--page); border: 4px solid var(--slate-blue); }
.timeline li.done::before { background: var(--slate-blue); }
.timeline .when { font-weight: 700; color: var(--slate-blue); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* People */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.avatar { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 2.8rem; color: var(--cream); }
.avatar.a1 { background: var(--slate-blue); }
.avatar.a2 { background: var(--sage-wheat); }
.person .role { color: var(--slate-blue); font-weight: 700; margin-bottom: .6em; }
.person .links a { margin-right: 16px; font-weight: 600; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .avatar { width: 112px; height: 112px; font-size: 2rem; } }

/* Resources */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-size: .95rem; font-weight: 600; border: 1.5px solid var(--slate-dark); background: transparent; color: var(--slate-dark); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--slate-dark); color: var(--cream); }
.resource { display: flex; flex-direction: column; }
.resource .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tag { padding: 3px 10px; border-radius: 999px; }
.tag-policy { background: var(--blue-tint); color: var(--slate-blue); }
.tag-data { background: var(--sage-tint); color: var(--blue-wheat); }
.tag-webinar { background: var(--wheat-tint); color: var(--sage-wheat); }
.tag-report { background: #e9e6df; color: var(--slate-dark); }
.tag-partner { background: #e4ebe9; color: var(--blue-sage); }
.status { color: var(--ink-soft); }
.status.live { color: var(--blue-sage); }
.resource p { font-size: .98rem; color: var(--ink-soft); flex: 1; }
.resource .more { font-weight: 700; text-decoration: none; }
.resource.hidden { display: none; }

/* Callout */
.callout { background: var(--wheat-tint); border-left: 5px solid var(--wheat); border-radius: 10px; padding: 18px 22px; }
.callout p:last-child { margin-bottom: 0; }

/* Join band */
.join { background: var(--slate-blue); color: var(--cream); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.join .lead { color: #e8edf1; }
.join ul { margin: 0; padding: 0; list-style: none; }
.join li a { display: flex; justify-content: space-between; text-decoration: none; color: var(--cream); padding: 12px 0; border-bottom: 1px solid rgba(246,241,230,.25); font-weight: 600; }
.join li a:hover { color: var(--wheat); }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.site-footer { background: var(--slate-dark); color: #c9d1d8; padding: 48px 0 36px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--wheat); }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid rgba(246,241,230,.15); padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Root / branch / fruit */
.toc-diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.toc-diagram > div { padding: 30px 26px; color: var(--cream); }
.toc-diagram .step { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; opacity: .85; }
.toc-diagram h3 { margin: 6px 0 8px; }
.toc-diagram p { margin: 0; }
.toc-root { background: var(--center); }
.toc-branch { background: var(--blue-sage); }
.toc-fruit { background: var(--slate-blue); }
@media (max-width: 760px) { .toc-diagram { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 640px) { .hero-art { display: none; } }
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats.stats-3 { grid-template-columns: 1fr 1fr; } }
.stat sup { font-size: .7em; }
/* Hero photo slot: drop a landscape photo at images/hero.jpg (about 2000px wide). Falls back to solid slate if missing. */
.hero { background: linear-gradient(90deg, rgba(38,50,61,.92) 0%, rgba(38,50,61,.78) 55%, rgba(38,50,61,.55) 100%), url("images/hero.jpg") center / cover no-repeat, var(--slate-dark); }
/* Equal-size region cards and headers, even when a name wraps to two lines */
.region { display: flex; flex-direction: column; height: 100%; }
.region-top { min-height: 4.6rem; display: flex; flex-direction: column; justify-content: center; }
.region-top:has(span) { min-height: 6rem; }
.region-body { flex: 1; }
/* Searchable resource library */
.lib-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.lib-tools .filters { margin-bottom: 0; }
#lib-search { font: inherit; font-size: 1rem; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); max-width: 520px; width: 100%; }
#lib-search:focus { outline: 2px solid var(--slate-blue); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--blue-tint); color: var(--slate-dark); }
.resource p.origin { flex: 0; margin: 0 0 10px; }
/* Accessibility: stronger contrast on small text and visible keyboard focus */
.tag-webinar { color: #5a5d2c; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--slate-blue); outline-offset: 2px; }
.hero a:focus-visible, .page-hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--wheat); }
/* Thinner inner-page banners */
.page-hero .wrap { padding-top: 28px; padding-bottom: 28px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: .25em; }
.page-hero .eyebrow { margin-bottom: 4px; }
.page-hero .lead { margin-bottom: 0; font-size: 1.05rem; }
section.page-hero { padding-top: 0; padding-bottom: 0; }
/* Thinner home hero, closer to the inner-page banners */
section.hero { padding-top: 0; padding-bottom: 0; }
.hero .wrap { padding-top: 36px; padding-bottom: 36px; padding-right: 220px; }
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); max-width: none; margin-bottom: .3em; }
.hero .lead { margin-bottom: 16px; }
.hero .btn-row { margin-top: 0; }
.hero-art { width: 150px; right: 8%; }
@media (max-width: 960px) { .hero .wrap { padding-right: 24px; } .hero-art { width: 150px; right: -40px; } }

/* Vision page charts and pictograms (from Kate) */
.viz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .viz-grid { grid-template-columns: 1fr; } }
.vz-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.vz-card figcaption { font-size: 1rem; line-height: 1.4; color: var(--ink); }
.vz-card figcaption strong { font-family: var(--serif); font-size: 1.35rem; color: var(--slate-dark); display: block; }
.vz-stack { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; }
.vz-stack div:first-child { min-width: 6px; }
.vz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--ink-soft); }
.vz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.vz-row { display: grid; gap: 4px; }
.vz-lab { font-size: .85rem; color: var(--ink-soft); }
.vz-track { display: flex; align-items: center; gap: 8px; }
.vz-bar { height: 18px; border-radius: 0 4px 4px 0; min-width: 4px; flex: none; max-width: calc(100% - 52px); }
.vz-val { font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.vz-note { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.vz-row:hover .vz-bar, .vz-stack:hover { filter: brightness(1.08); }
/* Pictogram stats */
.pi-group { font-size: 1.25rem; margin: 8px 0 14px; color: var(--slate-dark); }
.pi-group ~ .pi-group { margin-top: 36px; }
.pi-card figcaption strong { font-size: 1.9rem; line-height: 1.1; margin-bottom: 4px; color: var(--slate-blue); }
.pi-lab { margin: 4px 0 -4px; font-size: .85rem; color: var(--ink-soft); }
.pi-row { display: flex; flex-wrap: wrap; gap: 4px; }
.pi { position: relative; display: inline-block; width: 22px; height: 22px; }
.pi-row.big .pi { width: 34px; height: 34px; }
.pi svg { width: 100%; height: 100%; display: block; fill: #C3CBD2; }
.pi-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.pi-on svg { width: 22px; fill: var(--slate-blue); }
.pi-row.big .pi-on svg { width: 34px; }
.pi.lost svg { fill: none; stroke: var(--wheat); stroke-width: 1.4; stroke-dasharray: 2 2; }
.pi-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 170px; gap: 2px; }
.pi-grid span { position: relative; aspect-ratio: 1; background: #C3CBD2; border-radius: 2px; overflow: hidden; }
.pi-grid i { position: absolute; inset: 0 auto 0 0; background: var(--slate-blue); }
