<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}{{ page_title | default(product_name) }}{% endblock %}</title>
  <link rel="icon" href="{{ _favicon | default('/static/assets/dazzle-favicon.svg') }}" type="image/svg+xml">
  {# Inter font #}
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
  {# CSS Cascade Layer order #}
  <style>@layer base, framework, app, overrides;</style>
  {# Tailwind CSS + DaisyUI — compiled bundle replaces both CDNs (#377) #}
  {% if _tailwind_bundled | default(false) %}
  <link rel="stylesheet" href="/static/css/dazzle-bundle.css">
  {% else %}
  <link href="https://cdn.jsdelivr.net/npm/daisyui@5/daisyui.css" rel="stylesheet" type="text/css" />
  <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
  {% endif %}
  {% set _cdn_base = "https://cdn.jsdelivr.net/gh/manwithacat/dazzle@v" ~ _dazzle_version ~ "/dist" %}
  {# DAZZLE design system layer #}
  {% if _use_cdn | default(false) %}
  <link rel="stylesheet" href="{{ _cdn_base }}/dazzle.min.css">
  {% else %}
  <link rel="stylesheet" href="/styles/dazzle.css">
  {% endif %}
  {% if custom_css %}
  {# Project custom CSS #}
  <link rel="stylesheet" href="/static/css/custom.css">
  {% endif %}
  {# Lucide icons #}
  {% if _use_cdn | default(false) %}
  <script src="{{ _cdn_base }}/dazzle-icons.min.js"></script>
  {% else %}
  <script src="/static/vendor/lucide.min.js"></script>
  {% endif %}
  {% block og_meta %}{% endblock %}
  {% block head_extra %}{% endblock %}
</head>
<body class="dz-site {% block body_class %}bg-base-100{% endblock %}" {% block body_attrs %}{% endblock %}>
  {% block body %}{% endblock %}
  <script src="/site.js"></script>
  {% block scripts_extra %}{% endblock %}
</body>
</html>
