{# newsletter-signup (earthen) — the {% signup_form %} tag carries the untouchable subscribe wiring (/api/lists/subscribe HTMX post + honeypot); this template supplies only the earthen chrome around it. #}
<section data-block-override="earthen:newsletter-signup" class="bg-paper-grain py-12 text-foreground md:py-16{% if class %} {{ class }}{% endif %}">
<div class="mx-auto max-w-3xl px-4">
<div class="earthen-panel earthen-blob-soft {% if layout == "inline" %}bg-primary px-6 py-12 text-primary-foreground md:px-12{% else %}px-6 py-12 text-card-foreground md:px-10{% endif %} text-center">
<svg class="mx-auto mb-4 h-9 w-9 {% if layout == "inline" %}text-primary-foreground{% else %}earthen-glyph{% endif %}" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><ellipse cx="24" cy="24" rx="6" ry="10"></ellipse><path d="M24 14V6M18 18l-6-6M30 18l6-6M24 34v8M18 30l-6 6M30 30l6 6"></path></svg>
{% if title %}<h2 class="text-2xl md:text-3xl" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ title }}</h2>{% endif %}
{% if description %}<p class="mx-auto mt-4 max-w-xl {% if layout == "inline" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);">{{ description }}</p>{% endif %}
<div class="mx-auto mt-6 max-w-md">{% signup_form list=listSlug source=source submit=submitText success_message=successMessage placeholder=placeholder %}</div>
</div>
</div>
</section>
