<?php
/**
 * The full-page "canvas" template, served when a builder page carries the AIPB_META_CANVAS flag. It
 * bypasses the theme's header/footer/sidebar: the page is BUILT ENTIRELY out of the AI's sections
 * (header/nav, hero, …, footer included).
 *
 * A note on the tokens: the document here is full width (no theme wrapper), but the design tokens
 * are still honoured, because it is the SECTIONS that use them through var(--aipb-*) — in particular
 * the content width (--aipb-container / --aipb-container-narrow) to centre the content inside
 * full-bleed bands. wp_head() injects tokens, fonts and the runtime (AIPB_Render).
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class( 'aipb-canvas' ); ?>>
<?php
while ( have_posts() ) {
	the_post();
	the_content();
}
wp_footer();
?>
</body>
</html>
