/* ==========================================================================
   Harpoon Hobby Co design tokens (--hh-*) — PREVIEW tokens-20261030. Not on production.
   1) ALIASES ONLY: every --hh-* points at the site's existing variable (styles.css --bg/--accent..., site.css --rd-*,
      polish.css --rp-*, boost.css --hb-*). Nothing is renamed; existing CSS and JS keep working unchanged.
   2) STATUS: bright red/green/yellow status colours replaced by the muted sage / amber / clay set (DESIGN_SYSTEM.md §1).
      Loaded last by scripts/site_build.py (after site.css and polish.css). Delete this file + its <link> to roll back.
   Does not touch storefront/card/sold logic, boost/top-loader, functions/ or gate files.
   ========================================================================== */
:root {
  /* Navy */
  --hh-navy-950: var(--bg, #020711);
  --hh-navy-ink: var(--navy-ink, #03080f);
  --hh-navy-900: var(--bg-elevated, #07101d);
  --hh-navy-850: var(--bg-card, #0a1627);
  --hh-navy-800: #0d1b30;
  --hh-navy-700: #1e3a5f;
  --hh-navy-600: #3d6b9e;
  /* Gold */
  --hh-gold-900: #8f7319;
  --hh-gold-700: var(--accent-deep, #a8861f);
  --hh-gold-600: #b48f1e;
  --hh-gold-500: var(--accent, #c9a227);
  --hh-gold-400: #d4af37;
  --hh-gold-300: var(--accent-bright, #e0c56a);
  --hh-gold-200: #e7cd78;
  --hh-gold-100: #f6e3a1;
  --hh-gold-ink: var(--nfl-ink, #140e04);
  /* Text */
  --hh-cream: var(--rd-cream, #f3ead7);
  --hh-text: var(--text, #e6d9c4);
  --hh-text-2: var(--rd-text, #d9cfbd);
  --hh-muted: var(--rd-muted, #98a2b3);
  --hh-muted-2: var(--muted, #8490a3);
  /* Status (muted). *-hi = text on a tinted chip; base = dots, borders, solid fills */
  --hh-ok: var(--rd-sage, #8fb39a);   --hh-ok-hi: #a9cfb4;   --hh-ok-bg: var(--rd-sage-bg, rgba(143, 179, 154, 0.14));
  --hh-warn: #b98a55;                 --hh-warn-hi: #dcb684; --hh-warn-bg: rgba(185, 138, 85, 0.14);
  --hh-bad: var(--rd-clay, #c8907a);  --hh-bad-hi: #ecc7b8;  --hh-bad-bg: var(--rd-clay-bg, rgba(200, 144, 122, 0.14));
  --hh-info: #3d6b9e;                 --hh-info-bg: rgba(61, 107, 158, 0.16);
  /* Lines / glass / glow */
  --hh-line: var(--rd-line, rgba(201, 162, 39, 0.22));
  --hh-line-strong: var(--rd-line-strong, rgba(224, 197, 106, 0.5));
  --hh-glass: var(--rp-glass, rgba(10, 22, 39, 0.52));
  --hh-glass-strong: var(--rp-glass-strong, rgba(2, 7, 17, 0.8));
  --hh-edge: var(--rp-edge, rgba(224, 197, 106, 0.34));
  --hh-edge-soft: var(--rp-edge-soft, rgba(224, 197, 106, 0.14));
  --hh-hi: var(--rp-hi, rgba(255, 244, 214, 0.07));
  --hh-glow: var(--rp-glow, rgba(201, 162, 39, 0.35));
  --hh-hairline: var(--rp-hairline);
  --hh-grad-gold: linear-gradient(180deg, #e7cd78 0%, #c9a227 55%, #b48f1e 100%);
  --hh-grad-gold-text: linear-gradient(180deg, #f6e3a1 0%, #e0c56a 45%, #b48f1e 100%);
  /* Type */
  --hh-font-display: var(--rd-serif, "Cormorant Garamond", "Times New Roman", Georgia, serif);
  --hh-font-ui: var(--rd-sans, "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif);
  --hh-font-script: var(--font-script, "Great Vibes", cursive);
  /* Shape */
  --hh-r-sm: var(--rd-radius-sm, 12px);
  --hh-r: var(--rd-radius, 18px);
  --hh-r-pill: 999px;
  --hh-shadow: var(--rd-shadow);
  /* Motion */
  --hh-dur-instant: 80ms; --hh-dur-fast: 150ms; --hh-dur-base: 200ms; --hh-dur-medium: 320ms; --hh-dur-slow: 700ms; --hh-dur-reveal: 900ms;
  --hh-ease: var(--rp-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
  --hh-ease-out: var(--hb-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  --hh-ease-reveal: var(--hb-ease-reveal, cubic-bezier(0.25, 0.1, 0.25, 1));
  --hh-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --hh-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Existing variable re-pointed (no rename): was #f87171 */
  --danger: var(--hh-bad);
}

/* ---- SOLD (clay): reads as "gone" at a glance; never bright red ---- */
.badge-sold,
:is(.page-home, .page-news) .badge-sold {
  color: var(--hh-bad-hi);
  background: rgba(2, 7, 17, 0.82);
  border-color: rgba(200, 144, 122, 0.75);
}
.drop-sold-sash-label {
  color: var(--hh-bad-hi);
  background: rgba(10, 22, 39, 0.86);
  border-top-color: rgba(200, 144, 122, 0.6);
  border-bottom-color: rgba(200, 144, 122, 0.6);
}

/* ---- ERROR (clay) ---- */
.state-box.error {
  border-color: rgba(200, 144, 122, 0.6);
  color: var(--hh-bad-hi);
  background: rgba(200, 144, 122, 0.1);
}
.hhc-toast.is-error { border-color: rgba(200, 144, 122, 0.65); color: var(--hh-bad-hi); }
.hhc-toast.is-ok { border-color: rgba(143, 179, 154, 0.6); }
.pulse-flag { border-color: rgba(200, 144, 122, 0.65); color: var(--hh-bad-hi); }
.story-conflict { border-color: rgba(200, 144, 122, 0.55); background: rgba(200, 144, 122, 0.08); color: #f1dcd3; }

/* ---- LIVE (sage) ---- */
.live-now-inner { border-color: rgba(143, 179, 154, 0.65); background: rgba(143, 179, 154, 0.1); }
.live-now-badge { background: var(--hh-ok); box-shadow: 0 0 0 4px rgba(143, 179, 154, 0.25); }
.score-chip.is-live .status,
.countdown-live,
.alert-form-note { color: var(--hh-ok-hi); }
.nfl-pill-live {
  color: var(--hh-navy-ink);
  background: linear-gradient(135deg, #b9d3c0, #8fb39a);
  box-shadow: 0 0 0 1px rgba(185, 211, 192, 0.45), 0 4px 14px rgba(143, 179, 154, 0.3);
}
.nfl-pill-final { color: var(--hh-ok-hi); background: var(--hh-ok-bg); border-color: rgba(143, 179, 154, 0.6); }

/* ---- Releases (sage upcoming / amber TBA) ---- */
.rel-badge-upcoming { color: var(--hh-ok-hi); background: var(--hh-ok-bg); border-color: rgba(143, 179, 154, 0.6); }
.rel-badge-tba { color: var(--hh-warn-hi); background: var(--hh-warn-bg); border-color: rgba(185, 138, 85, 0.75); }
