<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>PresidentialBallot.com is for sale</title>
  <meta name="description" content="This domain name is available for purchase.">
  <style>
    :root { color-scheme: light dark; }
    * { box-sizing: border-box; }
    body {
      margin: 0; min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: #fbfbf7; color: #14160c;
    }
    main { max-width: 34rem; width: 100%; text-align: center; }
    .name {
      font-size: clamp(1.6rem, 6vw, 3rem);
      font-weight: 600; letter-spacing: -0.02em;
      overflow-wrap: anywhere; margin: 0;
    }
    .sale {
      margin: 0.6rem 0 0;
      font-size: clamp(1rem, 3vw, 1.3rem);
      color: #4169e1; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.14em;
    }
    .meta {
      margin-top: 2rem; padding-top: 1.25rem;
      border-top: 1px solid #d8d9cd;
      font-size: 0.9rem; color: #45483b; line-height: 1.6;
    }
    .soon { margin-top: 1.5rem; font-size: 0.9rem; color: #45483b; }
    /* The visitor count. A bare number, no label -- styled like the
       figure in buyandsellpage's Live badge: small, semibold, in the
       body text colour. Placed a quarter down and three quarters
       across, so it sits upper-right without being pinned to the
       corner. Fixed, so it holds that spot regardless of content. */
    .count {
      position: fixed; top: 25vh; left: 75vw;
      font-size: 0.9rem; font-weight: 600;
      color: #14160c; font-variant-numeric: tabular-nums;
      pointer-events: none; user-select: none;
    }
    @media (prefers-color-scheme: dark) {
      body { background: #14160c; color: #f2f3ec; }
      .meta { border-top-color: #3a3d31; color: #c9cbbe; }
      .soon { color: #c9cbbe; }
      .sale { color: #8fa6f2; }
      .count { color: #f2f3ec; }
    }
  </style>
</head>
<body>
  <div class="count" id="count"></div>
  <script>
    // The number is already rendered by the server, so it is correct
    // before this runs and correct if this never runs. All this does
    // is keep it fresh while a tab is open -- someone watching sees
    // it move as other people arrive.
    //
    // Twenty seconds, matching the Live badge on buyandsellpage.
    // A failed poll leaves whatever is on screen alone rather than
    // blanking it.
    (function () {
      var el = document.getElementById('count');
      if (!el || !el.textContent.trim()) return;

      function refresh() {
        fetch('/count', { headers: { Accept: 'application/json' } })
          .then(function (r) { return r.ok ? r.json() : null; })
          .then(function (d) {
            if (d && typeof d.views === 'number') el.textContent = d.views;
          })
          .catch(function () {});
      }

      setInterval(refresh, 20000);
    })();
  </script>
  <main>
    <h1 class="name">PresidentialBallot.com</h1>
    <p class="sale">This domain is for sale</p>
    <div class="meta">
      Registered since 2003.
    </div>
    <p class="soon">Offers will be accepted here shortly.</p>
  </main>
</body>
</html>

