<?xml version="1.0" encoding="UTF-8"?>
<!--
  public/sitemap.xml
  Static sitemap for Mathemagic Sandbox.

  Why static (not dynamic):
    The previous pages/sitemap.xml.js used getServerSideProps, which is
    incompatible with Next.js output: 'export'. This file replaces it.
    Cloudflare Pages serves it directly as a static asset at /sitemap.xml.

  Maintenance:
    When adding a new trick or article, add a <url> entry here.
    Update <lastmod> dates to reflect actual content changes.
    Submit this URL to Google Search Console after each content update:
    https://search.google.com/search-console → Sitemaps → https://mathemagicsandbox.com/sitemap.xml

  Priority scale used:
    1.0  → Homepage
    0.9  → Article pages (long-form SEO content, highest dwell-time)
    0.85 → Interactive trick/mathemagic pages (core product)
    0.7  → Index / listing pages
    0.3  → Legal / utility pages
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- ── Homepage ─────────────────────────────────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/</loc>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- ── Articles index ───────────────────────────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/articles/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- ── Article pages (long-form SEO content) ────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/articles/history-of-mental-math/</loc>
    <lastmod>2024-09-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/articles/overcoming-math-anxiety/</loc>
    <lastmod>2024-10-03</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/articles/top-5-math-games-for-the-classroom/</loc>
    <lastmod>2024-10-22</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.9</priority>
  </url>

  <!-- ── Tricks — Level 1 (Quick Tricks) ──────────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/tricks/elevens-trick/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/tricks/squaring-numbers-ending-in-5/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Tricks — Level 2 (Mental Addition & Subtraction) ─────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/tricks/left-to-right-addition/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/tricks/subtraction-via-complements/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Tricks — Level 3 (Basic Multiplication) ──────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/tricks/2-by-1-multiplication/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/tricks/2-digit-squaring/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Tricks — Level 4 (Intermediate Multiplication & Division) ─────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/tricks/intermediate-multiplication/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/tricks/divide-and-conquer/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Mathemagics — Level 1 (Mind Tricks) ──────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/mathemagics/psychic-math/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/mathemagics/missing-digit-tricks/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Mathemagics — Level 2 (Performance Magic) ────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/tricks/leapfrog-addition/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/tricks/instant-magic-squares/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ── Utility / Legal ───────────────────────────────────────────────────── -->
  <url>
    <loc>https://mathemagicsandbox.com/about/</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/privacy/</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://mathemagicsandbox.com/terms/</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>

</urlset>
