// Leonard's Farm learning center content.
// Nine full guides for new farmers. Edit copy here; the cards and reader update automatically.
// Each hero image is a real photo, saved locally in images/. Swap any file for
// your own photo of the same name to change it.
window.LF_GUIDES = [
  {
    slug: 'getting-started',
    topic: 'Getting started',
    title: 'Getting Started With Farming in Makueni',
    readTime: '5 min read',
    image: 'images/guide-getting-started.jpg',
    summary: 'What the land is like here, and the honest first steps for anyone starting a farm on dry ground.',
    intro: 'If you are just beginning, welcome. Farming in Makueni is not the same as farming in the highlands, and nobody should pretend it is. But dry land is not dead land. With water, patience and a bit of planning, this soil will grow more than most people expect. Here is how we would tell a neighbour to begin.',
    sections: [
      {
        heading: 'Know the land you are standing on',
        paras: [
          'Makueni sits in a semi-arid belt. The rains come twice a year (the short rains around October to December, and the long rains around March to May), but they are never guaranteed. Some seasons they arrive late, and some seasons they barely arrive at all. Between them, the sun is strong and the soil dries hard.',
          'That single fact shapes every decision. You are not farming against the drought so much as farming around it: storing water when it comes, holding moisture in the soil, and choosing crops that can wait out a dry spell.',
        ],
      },
      {
        heading: 'Start small and start with water',
        paras: [
          'The most common mistake we see is planting a big field first and thinking about water second. Do it the other way around. Decide how much water you can reliably reach (a borehole, a river line, a tank filling in the rains) and plant only what that water can carry.',
          'A well-watered quarter acre will always beat a thirsty two acres. You learn faster on a small plot too, and mistakes cost less.',
        ],
        bullets: [
          'Walk your land after rain and note where water collects; those are your richest spots.',
          'Test your soil by wetting a handful; if it ribbons and holds, it will hold moisture for crops.',
          'Clear one manageable block fully rather than half-clearing a large one.',
        ],
      },
      {
        heading: 'Pick forgiving crops for year one',
        paras: [
          'For a first season, grow things that reward you quickly and forgive small errors. Leafy greens, onions and tomatoes turn around fast and teach you the rhythm of watering and weeding. Alongside them, put in a few fruit tree seedlings (mango, pawpaw, oranges) that will take a couple of years but reward you for decades.',
          'The short crops pay the bills while the trees grow into your real income.',
        ],
      },
    ],
    tips: {
      label: 'Key Takeaways',
      items: [
        'Water first, land second: plant only what you can reliably water.',
        'A small plot done well beats a large plot done thin.',
        'Fast crops for cash now; fruit trees for income later.',
        'Expect the rains to be unreliable and plan storage before you plant.',
      ],
    },
    related: ['choosing-fruit-trees', 'farming-seasons'],
  },

  {
    slug: 'choosing-fruit-trees',
    topic: 'Fruit trees',
    title: 'Choosing the Right Fruit Trees for Your Farm',
    readTime: '6 min read',
    image: 'images/guide-choosing-fruit-trees.jpg',
    summary: 'Mangoes, pixie oranges, pawpaw, avocado and more: how to pick trees that suit dry land and your market.',
    intro: 'Fruit trees are the backbone of a Makueni farm. They handle heat far better than most annual crops, and once established they need less water and less work each year. But not every tree suits dry ground, and choosing well now saves you years of disappointment. Here is how we weigh them up.',
    sections: [
      {
        heading: 'Match the tree to the climate first',
        paras: [
          'Before you fall in love with a fruit, ask whether it wants to live here. Mangoes are the easy champion of dry land: deep-rooted, heat-loving, and reliable once they mature. Pawpaw grows fast and starts fruiting within a year, though the plants are short-lived and thirstier. Oranges, especially the pixie and Washington varieties, do well with steady irrigation.',
          'Avocado is possible but fussier: it needs more water and hates waterlogged roots, so it suits only your best-drained, best-watered spots. Be honest about which of these your water can support.',
        ],
      },
      {
        heading: 'Think about your market, not just your soil',
        paras: [
          'A tree that grows beautifully but sells for nothing is a poor choice. Pixie oranges fetch a strong price and store well, which is why so many farms here have turned to them. Mangoes flood the market in peak season, so growers who can push fruit into the off-season earn far more.',
          'Talk to buyers and other farmers before you plant a whole block of anything.',
        ],
        bullets: [
          'Mango: toughest for dry land, high volume, price drops in glut season.',
          'Pixie / pixie oranges: strong price, stores and travels well.',
          'Pawpaw: fast money in year one, but replant every few years.',
          'Avocado: premium price, only for well-watered, well-drained ground.',
        ],
      },
      {
        heading: 'Mix, do not gamble on one',
        paras: [
          'The safest orchard has more than one crop. If mango prices crash one year, your oranges carry you. If a pest hits one species, the others keep earning. Plant a main crop you believe in, but leave room for a second and even a third so no single bad season can wipe you out.',
        ],
      },
    ],
    tips: {
      label: 'Quick Tips',
      items: [
        'Buy grafted, certified seedlings; they fruit sooner and true to type.',
        'Space trees for their full-grown size, not the sapling in your hand.',
        'Plant at the start of the rains so young roots get a free drink.',
        'Never bet the whole farm on one fruit or one buyer.',
      ],
    },
    related: ['growing-mango', 'getting-started'],
  },

  {
    slug: 'growing-mango',
    topic: 'Mango',
    title: 'Growing Healthy Mango Trees',
    readTime: '6 min read',
    image: 'images/guide-growing-mango.jpg',
    summary: 'From planting the orchard to caring for the tree, flowering, fruit set and getting the harvest off cleanly.',
    intro: 'The mango is the tree Makueni was made for. It sinks its roots deep, drinks the dry season out of the ground, and rewards a patient grower for thirty years or more. But a healthy, heavy-bearing mango is made in its early years. Get the establishment right and the tree mostly looks after itself.',
    sections: [
      {
        heading: 'Establishing the orchard',
        paras: [
          'Dig your planting holes wide and deep (about two feet each way) well before the rains, and let the sun work the soil. Mix the topsoil with well-rotted manure and refill, leaving a slight basin to catch water. Plant grafted seedlings at the start of the rains so the young tree settles in on free water.',
          'Give each tree room. Mangoes spread wide with age; crowding them invites disease and cuts your yield per tree.',
        ],
      },
      {
        heading: 'Caring for the young tree',
        paras: [
          'For the first two or three years, water regularly and keep a wide, weed-free, mulched circle around the trunk. Prune to build a strong open frame (remove low branches and any growing inward) so light and air reach the whole canopy. An open tree flowers better and dries fast after rain, which keeps disease down.',
        ],
        bullets: [
          'Water young trees deeply but less often to pull roots downward.',
          'Mulch the root zone to hold moisture and cool the soil.',
          'Prune after harvest to shape the tree and remove dead wood.',
        ],
      },
      {
        heading: 'Flowering, fruit and harvest',
        paras: [
          'Mangoes flower in the dry, cool spell. This is the make-or-break window: humidity and rain at flowering bring powdery mildew and anthracnose, which blacken the flowers and drop the fruit. Watch the trees closely and treat early if you see trouble.',
          'Once fruit sets, steady moisture swells it evenly and prevents splitting. Harvest when the shoulders fill out and the first fruits show colour. Pick with a small stalk attached to stop the sap burning the skin, and lay fruit in shade, never in a hot heap.',
        ],
      },
    ],
    tips: {
      label: 'Key Takeaways',
      items: [
        'Big, well-fed planting holes give the tree its whole life a head start.',
        'An open, pruned canopy means more light, less disease, more fruit.',
        'Protect the flowers: that is where the crop is won or lost.',
        'Harvest with a stalk and keep fruit cool and shaded from the start.',
      ],
    },
    related: ['choosing-fruit-trees', 'harvesting-selling'],
  },

  {
    slug: 'growing-tomatoes',
    topic: 'Tomatoes',
    title: 'Growing Tomatoes for Better Yields',
    readTime: '5 min read',
    image: 'images/guide-growing-tomatoes.jpg',
    summary: 'Land prep, transplanting, staking and feeding, then picking and grading for a crop buyers want.',
    intro: 'Tomatoes turn around fast and sell steadily, which makes them a favourite for bringing in cash while your trees grow. They also punish carelessness: with disease, with cracking, with a poor price for rough fruit. Grown with attention, though, a tomato bed pays for itself several times over in a single season.',
    sections: [
      {
        heading: 'Prepare the land and the seedlings',
        paras: [
          'Choose ground that has not grown tomatoes, peppers or potatoes recently; rotating breaks the disease cycle. Dig it over, work in plenty of well-rotted manure, and form raised beds so water drains and roots breathe. Raise your seedlings in a nursery bed or trays and harden them off in the sun for a few days before they go out.',
        ],
      },
      {
        heading: 'Transplant and support',
        paras: [
          'Move seedlings to the field in the cool of late afternoon so they do not wilt in the first day. Water them in well. Once they take, stake or trellis every plant; tomatoes left on the ground rot and bruise, and staked plants get the light and air that keep them healthy.',
        ],
        bullets: [
          'Space plants so air moves between them; crowding spreads blight.',
          'Prune side shoots on staked plants to focus energy into fruit.',
          'Water at the base, in the morning; wet leaves invite disease.',
        ],
      },
      {
        heading: 'Feed, protect and harvest',
        paras: [
          'Feed steadily rather than in one big push, and keep water even; swinging between dry and flooded is what splits the skins. Scout the crop often for early signs of blight and for pests like the tomato leafminer, and act the moment you see them rather than waiting.',
          'Pick as the fruit turns colour but is still firm, especially if it must travel. Handle gently, harvest into shallow crates, and sort as you pick so bruised fruit never touches the good.',
        ],
      },
    ],
    tips: {
      label: 'Quick Tips',
      items: [
        'Rotate beds so tomatoes never follow tomatoes.',
        'Stake every plant; it is the single biggest quality upgrade.',
        'Keep watering even to stop the fruit cracking.',
        'Pick firm, sort as you go, and never pile fruit deep.',
      ],
    },
    related: ['harvesting-selling', 'common-challenges'],
  },

  {
    slug: 'farming-seasons',
    topic: 'Seasons',
    title: 'Understanding Farming Seasons in Makueni',
    readTime: '4 min read',
    image: 'images/guide-farming-seasons.jpg',
    summary: 'Reading the two rains and the long dry spell so your planting, watering and selling all land at the right time.',
    intro: 'Everything on a dry-land farm turns on timing. Plant a week too late and the rains leave your seedlings behind; harvest into a glut and your price collapses. You cannot control the weather here, but you can learn its pattern and place your work inside it. That is most of the skill.',
    sections: [
      {
        heading: 'The two rains',
        paras: [
          'Makueni gets two wet seasons. The short rains run roughly from October to December, and the long rains from March to May, though in practice both wander, and some years one fails almost entirely. Between and after them come long, hot dry spells where nothing grows without irrigation.',
          'Treat the rain calendar as a rough guide, not a promise. Watch the sky and your neighbours, and be ready to plant the moment the ground is properly wet rather than on a fixed date.',
        ],
      },
      {
        heading: 'Placing your crops in the year',
        paras: [
          'Line short crops up with the rains so they get free water in their early weeks, when they need it most. Prepare land and nursery seedlings in the dry spell before, so you can plant fast when the rain arrives. Use the dry season for the work that suits it: pruning trees, building water storage, repairing lines and clearing new ground.',
        ],
        bullets: [
          'Dry spell: prepare land, prune trees, fix and build water storage.',
          'Onset of rains: transplant and direct-sow your short crops quickly.',
          'Through the rains: weed, feed and protect the growing crop.',
          'End of rains into dry: harvest, sort and sell.',
        ],
      },
      {
        heading: 'Selling at the right moment',
        paras: [
          'Prices swing hard with the seasons. When everyone harvests at once, the market floods and prices fall. The farmers who earn most are the ones who can hold storable crops, or time trees to fruit slightly off the peak. Even a few weeks either side of the glut can change your income noticeably.',
        ],
      },
    ],
    tips: {
      label: 'Key Takeaways',
      items: [
        'Two rains, both unreliable: plant by the ground, not the calendar.',
        'Do land prep and water-building work in the dry spell.',
        'Aim harvests away from the market glut where you can.',
        'Storage and off-season timing are worth more than raw volume.',
      ],
    },
    related: ['getting-started', 'harvesting-selling'],
  },

  {
    slug: 'harvesting-selling',
    topic: 'Harvest & market',
    title: 'Harvesting, Sorting, and Selling Produce',
    readTime: '5 min read',
    image: 'images/guide-harvesting-selling.jpg',
    summary: 'How careful harvesting, honest grading and clean packing turn the same crop into a much better price.',
    intro: 'You can grow a beautiful crop and still lose half its value in the last few days: dropped in the field, piled in the sun, sold ungraded to the first buyer who shows up. Harvest and market handling is where good farming turns into good money, and it costs little more than care and a bit of planning.',
    sections: [
      {
        heading: 'Harvest at the right moment, the right way',
        paras: [
          'Pick in the cool of the morning or late afternoon, never in the heat of the day. Fruit and vegetables keep far longer when they leave the field cool. Handle everything gently (a bruise you cannot see today is a rotten spot tomorrow) and harvest into shallow crates rather than deep sacks that crush what is underneath.',
        ],
      },
      {
        heading: 'Sort and grade honestly',
        paras: [
          'Grade your produce into clear classes as you pick: top fruit for the best buyers, second grade for local sale, and damaged stock for your own use or the animals. Buyers pay more for a crate they can trust, and a reputation for honest grading brings them back season after season.',
        ],
        bullets: [
          'Separate bruised or diseased items immediately; one bad fruit spoils many.',
          'Grade by size and quality so each crate is even.',
          'Keep the top grade genuinely top; do not sneak in seconds.',
        ],
      },
      {
        heading: 'Pack, store and sell smart',
        paras: [
          'Pack into clean crates and keep produce in shade and out of the wind while it waits. The cooler and calmer you keep it, the longer you have to find a good price. Sell as soon as it is practical, but not so fast that you take the first low offer.',
          'Where you can, sell together with neighbours; a bigger, consistent volume attracts better buyers and gives you a stronger voice on price than one small load ever will.',
        ],
      },
    ],
    tips: {
      label: 'Quick Tips',
      items: [
        'Harvest cool, handle gently, use shallow crates.',
        'Grade honestly; trust is what earns repeat buyers.',
        'Keep produce shaded and cool right up to the sale.',
        'Pool volume with neighbours for a better price.',
      ],
    },
    related: ['growing-tomatoes', 'common-challenges'],
  },

  {
    slug: 'common-challenges',
    topic: 'Challenges',
    title: 'Common Challenges Every Farmer Faces',
    readTime: '5 min read',
    image: 'images/guide-common-challenges.jpg',
    summary: 'Drought, pests, disease and swinging prices: the real problems here and the practical ways farmers get through them.',
    intro: 'No one farms Makueni without hitting hard patches. Drought, pests, disease and a market that will not sit still are simply part of the work. The difference between farmers who last and farmers who give up is rarely luck; it is having a plan ready before the trouble arrives. Here are the big four and how we handle them.',
    sections: [
      {
        heading: 'Drought and unreliable rain',
        paras: [
          'The dry is the first challenge, always. Build your defence around water: harvest and store the rains, mulch heavily to hold soil moisture, and lean on deep-rooted crops that ride out a dry spell. Above all, never plant more than your stored and reachable water can carry through to harvest.',
        ],
      },
      {
        heading: 'Pests and disease',
        paras: [
          'Pests and disease do the most damage when they are caught late. Walk your crop often and learn its normal look, so anything wrong jumps out early. Rotate crops to break disease cycles, keep the farm clean of old diseased material, and act fast and small rather than waiting for a problem to spread across the whole field.',
        ],
        bullets: [
          'Scout regularly; early action is cheap, late action is not.',
          'Rotate crops and clear diseased debris to starve the cycle.',
          'Encourage healthy, open, well-spaced plants that resist trouble.',
        ],
      },
      {
        heading: 'Prices that will not sit still',
        paras: [
          'A good harvest into a bad market is heartbreaking, and it happens often. You cannot fix the market, but you can soften it: grow more than one crop so no single price crash sinks you, store what will keep, and time harvests away from the glut. Selling together with other farmers steadies your bargaining power too.',
          'Every farmer here has lost a crop or a season at some point. What matters is that you learn one thing from each setback and come back a little wiser.',
        ],
      },
    ],
    tips: {
      label: 'Key Takeaways',
      items: [
        'Plan for drought before you plant, not after.',
        'Catch pests and disease early by walking the crop often.',
        'Diversify crops so one price crash cannot ruin you.',
        'Treat every setback as a lesson, not a defeat.',
      ],
    },
    related: ['farming-seasons', 'lessons-learned'],
  },

  {
    slug: 'feeding-the-soil',
    topic: 'Soil health',
    title: 'Feeding Your Soil the Natural Way',
    readTime: '5 min read',
    image: 'images/guide-getting-started.jpg',
    summary: 'Compost, manure and mulch: how to build living soil that holds water and grows stronger crops for free.',
    intro: 'On dry land, your soil is your savings account. Healthy soil holds water longer, feeds crops steadily, and forgives a missed rain. The good news is you can build it from what the farm already gives you (animal manure, crop waste, kitchen scraps) instead of buying it in a bag. Here is how we feed our ground.',
    sections: [
      {
        heading: 'Why living soil matters here',
        paras: [
          'Bare, sun-baked soil sheds water and bakes hard. Soil rich in organic matter behaves like a sponge: it soaks up the rains, holds moisture through the dry weeks, and releases nutrients slowly to the roots. In a place where every drop counts, that difference decides whether a crop survives a dry spell or wilts.',
          'Feeding the soil is not a one-time job. It is a habit: return organic matter every season and the ground gets steadily richer and easier to work.',
        ],
      },
      {
        heading: 'Make good compost',
        paras: [
          'Compost turns farm waste into free fertiliser. Build a heap in layers: dry material like maize stalks and leaves, then green material like weeds and kitchen scraps, then a little manure and soil. Keep it damp, not soaked, and turn it every couple of weeks so it breaks down evenly.',
          'In a month or two it becomes dark, crumbly and sweet-smelling. Dig it into beds before planting, or ring it around your fruit trees.',
        ],
        bullets: [
          'Layer dry (brown) and fresh (green) material roughly half and half.',
          'Keep the heap as damp as a wrung-out cloth, never bone dry.',
          'Turn it regularly for air; a heap that smells bad needs more dry matter and turning.',
        ],
      },
      {
        heading: 'Manure and mulch',
        paras: [
          'Well-rotted animal manure is one of the best feeds you have. Never use it fresh; let it age first, or it will burn young roots and carry weed seeds. Alongside feeding, mulch the surface with dry grass, leaves or crop residue. A blanket of mulch keeps the soil cool, slows evaporation, smothers weeds, and slowly rots down to feed the ground.',
          'Between compost, aged manure and mulch, you can improve your soil year after year at almost no cost, and a crop grown in living soil needs less water and stands up better to pests.',
        ],
      },
    ],
    tips: {
      label: 'Key Takeaways',
      items: [
        'Organic matter makes soil hold water, vital on dry land.',
        'Compost is free fertiliser made from farm and kitchen waste.',
        'Only ever use well-rotted manure, never fresh.',
        'Mulch the surface to keep moisture in and weeds out.',
      ],
    },
    related: ['getting-started', 'growing-tomatoes'],
  },

  {
    slug: 'lessons-learned',
    topic: "Our story",
    title: "Lessons We've Learned at Leonard's Farm",
    readTime: '6 min read',
    image: 'images/story.jpg',
    summary: 'The real mistakes, the small wins, and the advice we wish someone had given us when we started out.',
    intro: 'We did not start this farm knowing what we were doing. We started with one pump, a length of pipe up from the Athi River, and a lot of hope. Everything below we learned the slow way, by getting it wrong first. We are sharing it so your road can be a little smoother than ours was.',
    sections: [
      {
        heading: 'We planted too much, too soon',
        paras: [
          'In the first season we cleared far more land than we could water, and watched half of it wilt while we ran ourselves ragged trying to keep up. The lesson stuck: a small plot you can truly look after will always feed you better than a big one you cannot. We shrank the farm before we grew it, and everything improved.',
        ],
      },
      {
        heading: 'Water was always the answer',
        paras: [
          'Every problem we thought was about soil or seed usually came back to water: too little, too much, or at the wrong time. Once we started harvesting the rains into storage and getting water to the root instead of the air, the whole farm steadied. If we could give a new farmer one instruction, it would simply be: solve water first.',
        ],
        bullets: [
          'Store the rains when they come; you will need them when they do not.',
          'Water the root, not the leaf and not the path between.',
          'A reliable little water beats an ambitious lot.',
        ],
      },
      {
        heading: 'The trees taught us patience',
        paras: [
          'We nearly gave up on the mangoes waiting for them to earn. Those same trees are now our steadiest income, needing less each year while paying more. Fruit trees do not reward the impatient, but they reward the patient for decades. Plant them early, tend them young, and let the fast crops carry you while you wait.',
        ],
      },
      {
        heading: 'Neighbours make the farm',
        paras: [
          'The best thing we ever did was open the gate. Neighbours came to learn, and in teaching them we learned more ourselves, and selling together got us all a better price. Farming here is hard to do alone and much easier to do side by side. Come and see the fields; we would rather show you than tell you.',
        ],
      },
    ],
    tips: {
      label: 'What we would tell our younger selves',
      items: [
        'Start smaller than feels ambitious.',
        'Fix water before anything else.',
        'Be patient with the trees; they are the long game.',
        'Farm alongside your neighbours, not against them.',
      ],
    },
    related: ['getting-started', 'common-challenges'],
  },
];
