{# heading override — Fraunces display headings; section h2s carry the hand-drawn crayon underline. Fields mirror builtin: text, level, textClass. Wiring preserved. #}
{% if level == 1 %}<h1 data-block-override="earthen:heading" class="earthen-h1 text-5xl md:text-6xl font-semibold tracking-tight leading-tight flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ text }}</h1>
{% elif level == 3 %}<h3 data-block-override="earthen:heading" class="earthen-h3 text-2xl md:text-3xl font-semibold leading-snug flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground));">{{ text }}</h3>
{% elif level == 4 %}<h4 data-block-override="earthen:heading" class="earthen-h4 text-xl md:text-2xl font-semibold flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground));">{{ text }}</h4>
{% elif level == 5 %}<h5 data-block-override="earthen:heading" class="earthen-h5 text-lg font-semibold flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground));">{{ text }}</h5>
{% elif level == 6 %}<h6 data-block-override="earthen:heading" class="earthen-h6 text-base font-semibold uppercase tracking-wider flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--muted-foreground));">{{ text }}</h6>
{% else %}<h2 data-block-override="earthen:heading" class="earthen-h2 crayon-underline text-3xl md:text-4xl font-semibold leading-snug flex-1 {{ textClass }}" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ text }}</h2>{% endif %}
