<?php
require_once __DIR__ . '/auth.php';
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?= htmlspecialchars($title ?? 'Hoonhub') ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    /assets/css/style.css
</head>
<body>

<header>
    <h1>Hoonhub</h1>
    <nav>
        /public/index.phpHome</a>

        <?php if (isLoggedIn()): ?>
            /public/logout.phpLogout</a>
        <?php else: ?>
            /public/login.phpLogin</a>
            /public/register.phpRegister</a>
        <?php endif; ?>
    </nav>
</header>

<main class="container">
    <?= $content ?>
</main>

<footer>
    Community‑first NZ automotive hub
</footer>

</body>
</html>