<?php
/**
 * Snippet: html-head
 * Params:
 *   $pageTitle  string  Full <title> value
 *   $extraCss   array   Optional additional CSS asset paths
 *   $bodyClass  string  Optional extra class(es) for <body>
 */
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?= html($pageTitle ?? $site->title()->value()) ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if ($page->seo_description()->isNotEmpty()): ?>
<meta name="description" content="<?= $page->seo_description()->html() ?>">
<?php endif ?>


<?= css('assets/css/shared.css') ?>
<?= css('@auto') ?>
<?php foreach ($extraCss ?? [] as $stylesheet): ?>
<?= css($stylesheet) ?>
<?php endforeach ?>
</head>
