<section data-block="coffee:roast_profile" class="py-12 md:py-16 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
	<div class="mx-auto max-w-4xl px-4">
		<div class="coffee-card grid gap-8 p-6 md:grid-cols-[3fr_2fr] md:p-8">
			<div class="flex flex-col gap-4">
				<div class="flex items-start justify-between gap-4">
					<div>
						{% if origin %}<p class="coffee-hand text-2xl text-accent">{{ origin }}</p>{% endif %}
						{% if name %}<h3 class="coffee-display text-3xl text-primary">{{ name }}</h3>{% endif %}
						{% if producer %}<p class="coffee-body mt-1 text-sm text-muted-foreground">{{ producer }}</p>{% endif %}
					</div>
					{% if roastLevel %}<span class="coffee-stamp shrink-0">{{ roastLevel }}</span>{% endif %}
				</div>
				{% if notes %}<div class="coffee-body text-foreground">{{ notes|safe }}</div>{% endif %}
				<dl class="mt-2 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-dashed border-border pt-4 text-sm">
					{% if process %}<div><dt class="coffee-hand text-base text-accent">Process</dt><dd class="coffee-body font-medium">{{ process }}</dd></div>{% endif %}
					{% if varietal %}<div><dt class="coffee-hand text-base text-accent">Varietal</dt><dd class="coffee-body font-medium">{{ varietal }}</dd></div>{% endif %}
					{% if altitude %}<div><dt class="coffee-hand text-base text-accent">Altitude</dt><dd class="coffee-body font-medium">{{ altitude }}</dd></div>{% endif %}
					{% if harvest %}<div><dt class="coffee-hand text-base text-accent">Harvest</dt><dd class="coffee-body font-medium">{{ harvest }}</dd></div>{% endif %}
				</dl>
			</div>
			<div class="overflow-hidden rounded-sm bg-secondary coffee-torn-top">
				{% if image %}{% img image alt=name|default:"Roast profile" class="h-full w-full object-cover" %}{% else %}<div class="flex h-full min-h-[12rem] items-center justify-center coffee-hand text-2xl text-muted-foreground">Bean photo</div>{% endif %}
			</div>
		</div>
	</div>
</section>
