<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= htmlspecialchars($pageTitle ?? 'dispelled.ca') ?></title>
  <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=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Slab:wght@100..900&family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
  <link rel="icon" type="image/png" href="<?= BASE_PATH ?>/rosie.png">
  <link rel="stylesheet" href="<?= BASE_PATH ?>/css/style.css?v=<?= filemtime(__DIR__ . '/../css/style.css') ?>">
</head>
<body>
<div class="site-bg" aria-hidden="true"></div>
<div class="site-bg-fade" aria-hidden="true"></div>
<div class="site-wrapper">

<header class="site-header">
  <div class="container">
    <a href="<?= BASE_PATH ?>/" class="site-logo">
      <img src="<?= BASE_PATH ?>/rosie.png" alt="Rosie" title="Rosie" class="logo-tortoise">
      dispelled<span>.ca</span>
    </a>

    <div class="header-right">
    <div class="nav-wrap">
      <input type="checkbox" id="nav-cb" class="nav-cb">
      <label for="nav-cb" class="nav-toggle" aria-label="Menu">
        <svg class="icon-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <line x1="3" y1="6"  x2="21" y2="6"/>
          <line x1="3" y1="12" x2="21" y2="12"/>
          <line x1="3" y1="18" x2="21" y2="18"/>
        </svg>
        <svg class="icon-close" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
          <line x1="18" y1="6"  x2="6"  y2="18"/>
          <line x1="6"  y1="6"  x2="18" y2="18"/>
        </svg>
      </label>

      <nav class="nav-dropdown" role="navigation">
        <a href="<?= BASE_PATH ?>/"              <?= ($currentPage??'') === 'home'      ? 'class="active"' : '' ?>>Home</a>
        <a href="<?= BASE_PATH ?>/cori.php"      <?= ($currentPage??'') === 'cori'      ? 'class="active"' : '' ?>>Cori&#8217;s Stuff</a>
        <a href="<?= BASE_PATH ?>/j.php"         <?= ($currentPage??'') === 'j'         ? 'class="active"' : '' ?>>J&#8217;s stuff</a>
        <a href="<?= BASE_PATH ?>/weather.php"   <?= ($currentPage??'') === 'weather'   ? 'class="active"' : '' ?>>Weather</a>
        <a href="<?= BASE_PATH ?>/community.php" <?= ($currentPage??'') === 'community' ? 'class="active"' : '' ?>>Community</a>
        <a href="<?= BASE_PATH ?>/github.php"    <?= ($currentPage??'') === 'github'    ? 'class="active"' : '' ?>>GitHub</a>
        <a href="<?= BASE_PATH ?>/stocks.php"    <?= ($currentPage??'') === 'stocks'    ? 'class="active"' : '' ?>>Stocks</a>
        <a href="<?= BASE_PATH ?>/links.php"       <?= ($currentPage??'') === 'links'    ? 'class="active"' : '' ?>>Links</a>
        <a href="<?= BASE_PATH ?>/categories.php" <?= ($currentPage??'') === 'articles' ? 'class="active"' : '' ?>>Articles</a>
        <a href="<?= BASE_PATH ?>/about.php"      <?= ($currentPage??'') === 'about'    ? 'class="active"' : '' ?>>About</a>
        <a href="<?= BASE_PATH ?>/agent.php"    <?= ($currentPage??'') === 'agent'     ? 'class="active"' : '' ?>>Agent&#8217;s Picks</a>
        <a href="https://animeday.ca"  target="_blank" rel="noreferrer" class="nav-external">Animeday.ca</a>
        <a href="https://sellco.ca"    target="_blank" rel="noreferrer" class="nav-external">Sellco.ca</a>
        <div class="nav-divider"></div>
        <a href="<?= BASE_PATH ?>/source.php" <?= ($currentPage??'') === 'source' ? 'class="active"' : '' ?> class="nav-source">[ view source ]</a>
      </nav>
    </div>
    </div><!-- /.header-right -->
  </div>
</header>

<main>
<div class="container">
