/* ============================================================
   HuahinFood V2 — design tokens
   Additive only. Nothing here renames or redefines an existing
   v1 token. Bennie can drop this file in with zero regression risk.

   Source of truth (unchanged v1):
     platform.css                       --ink --sand --teal --coral ...
     partner-platform-chrome.css        --hf-ink --hf-sand --hf-teal ...
   This file EXTENDS the --hf-* namespace only, plus adds the
   V2 night-bar palette and the type/space scale.
   ============================================================ */

:root {
  /* ---- v1 values, restated so V2 pages work standalone ---- */
  --hf-ink: #1c1814;
  --hf-sand: #f5efe6;            /* NOTE: brief said #f7f3ec — repo truth is #f5efe6 */
  --hf-sand-deep: #ebe3d6;
  --hf-teal: #0d5c63;
  --hf-teal-light: #14808a;
  --hf-coral: #e85d4c;
  --hf-muted: #5e564e;
  --platform-main-h: 52px;

  /* ---- V2 additions: brand ---- */
  --hf-cream: #fffdf8;           /* card / raised surface on sand */
  --hf-sunset: #ffb347;          /* was unprefixed --sunset in platform.css */
  --hf-gold: #c9a24a;            /* already used literally by .demo-lamtete-star */
  --hf-gold-light: #e8cc72;      /* ditto */
  --hf-teal-veil: rgba(13, 92, 99, 0.08);
  --hf-coral-veil: rgba(232, 93, 76, 0.12);
  --hf-line: rgba(13, 92, 99, 0.14);
  --hf-line-strong: rgba(13, 92, 99, 0.28);
  --hf-ink-70: rgba(28, 24, 20, 0.70);
  --hf-ink-55: rgba(28, 24, 20, 0.55);

  /* ---- V2 additions: night-bar (Soi Vibe demo) ---- */
  --hf-night-bg: #0b0710;
  --hf-night-surface: #17101d;
  --hf-night-line: rgba(255, 255, 255, 0.10);
  --hf-neon-coral: #ff5e8a;      /* neon sibling of --hf-coral, dark backgrounds only */
  --hf-neon-cyan: #4fe0d8;
  --hf-neon-amber: #ffc861;

  /* ---- type scale (clamp = fluid, mobile-first) ---- */
  --hf-font-body: "Sarabun", system-ui, sans-serif;
  --hf-font-display: "Cormorant Garamond", Georgia, serif;
  --hf-t-eyebrow: 0.65rem;
  --hf-t-caption: 0.75rem;
  --hf-t-small: 0.82rem;
  --hf-t-body: 0.94rem;
  --hf-t-lead: 1.05rem;
  --hf-t-h3: clamp(1.05rem, 1.5vw + 0.6rem, 1.3rem);
  --hf-t-h2: clamp(1.35rem, 2.2vw + 0.7rem, 2rem);
  --hf-t-h1: clamp(1.7rem, 4.6vw, 2.9rem);
  --hf-t-hero: clamp(2rem, 8vw, 3.4rem);

  /* ---- space ---- */
  --hf-s1: 4px;
  --hf-s2: 8px;
  --hf-s3: 12px;
  --hf-s4: 16px;
  --hf-s5: 22px;
  --hf-s6: 30px;
  --hf-s7: 44px;
  --hf-s8: 64px;
  --hf-section: clamp(40px, 7vw, 76px);

  /* ---- radius / shadow ---- */
  --hf-r-sm: 10px;
  --hf-r-md: 16px;
  --hf-r-lg: 20px;               /* matches platform.css --radius */
  --hf-r-xl: 28px;
  --hf-r-pill: 999px;
  --hf-sh-1: 0 4px 14px rgba(28, 24, 20, 0.07);
  --hf-sh-2: 0 12px 32px rgba(28, 24, 20, 0.11);
  --hf-sh-3: 0 18px 48px rgba(28, 24, 20, 0.16);
  --hf-sh-night: 0 16px 44px rgba(0, 0, 0, 0.45);

  /* ---- layout ---- */
  --hf-max-page: 1120px;         /* platform.css --max */
  --hf-max-shop: 920px;          /* demo-shop.css --demo-max */
  --hf-max-read: 680px;
  --hf-tap: 44px;                /* minimum touch target, 390px phones */
}

/* Utility layer used by V2 fragments. Prefixed hf2- so it can never
   collide with an existing platform.css or demo-shop.css selector. */
.hf2-eyebrow {
  display: inline-block;
  font-size: var(--hf-t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hf-coral);
}

.hf2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Language switch — duplicated deliberately so a page that links only
   tokens.css + promo-shop.css is still fully bilingual. Idempotent with
   partner-platform-chrome.css and platform.css, which both ship the
   same two rules. */
html[lang="en"] .th-only { display: none !important; }
html[lang="th"] .en-only { display: none !important; }
