// http.js — minimal fetch wrapper for JSON with error handling
export async function getJSON(url, opts = {}) {
  const res = await fetch(url, Object.assign({ cache: "no-store" }, opts));
  if (!res.ok) throw new Error(`HTTP ${res.status} ${res.statusText}`);
  return res.json();
}
