{# feature-grid override — earthen: paper-grain ground, botanical eyebrow rule, Fraunces heading, soft botanical cards. Field reads, columns/layout control flow and icon <use> split preserved verbatim from the builtin; only classes/style/fonts reskinned. #}
<section data-block-override="earthen:feature-grid" class="py-12 md:py-20 bg-paper-grain text-foreground{% if class %} {{ class }}{% endif %}">
  <div class="mx-auto max-w-6xl px-4">
    {% if eyebrow %}<div class="mb-3 flex items-center justify-center gap-3"><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span><p class="text-xs font-semibold uppercase tracking-wider" style="color:hsl(var(--primary));">{{ eyebrow }}</p><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span></div>{% endif %}
    {% if heading %}<h2 class="mt-2 text-center text-3xl md:text-4xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ heading }}</h2>{% endif %}
    {% if intro %}<p class="mx-auto mt-4 max-w-2xl text-center text-lg text-muted-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ intro }}</p>{% endif %}
    <div class="mt-12 grid grid-cols-1 gap-6 sm:grid-cols-2 {% if columns == 2 %}lg:grid-cols-2{% elif columns == 4 %}lg:grid-cols-4{% else %}lg:grid-cols-3{% endif %}">
      {% for item in items %}
      <div class="{% if layout == "card" %}earthen-panel earthen-blob-soft p-6 transition-shadow{% elif layout == "centered" %}text-center{% endif %}">
        {% if item.icon %}<div class="mb-4 inline-flex h-11 w-11 items-center justify-center earthen-blob-soft bg-primary/10 text-primary{% if layout == "centered" %} mx-auto{% endif %}"><svg class="h-6 w-6" aria-hidden="true"><use href="/icons/{{ item.icon|split:":"|first }}.svg#{{ item.icon|split:":"|last }}"></use></svg></div>{% endif %}
        <h3 class="text-lg font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground))">{% if item.linkUrl %}<a href="{{ item.linkUrl }}" class="transition-colors hover:text-primary">{{ item.title }}</a>{% else %}{{ item.title }}{% endif %}</h3>
        {% if item.text %}<p class="mt-2 text-muted-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ item.text }}</p>{% endif %}
        {% if item.linkUrl and item.linkLabel %}<a href="{{ item.linkUrl }}" class="earthen-link mt-3 inline-flex items-center gap-1 text-sm">{{ item.linkLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
      </div>
      {% endfor %}
    </div>
  </div>
</section>
