/* HOLDKRAFT design tokens v4 (quiet luxury, built on the H that holds, 2 Dec 2026)
   Layer 1 = primitives (raw palette, never used directly in components)
   Layer 2 = semantic (what components use). Themes swap layer 2 only.
   Brand colours come from the original site: #0e0e0f, #f5f1ea, #1c1c1f, #8a8c91, #c9a24a, #2a2a2e. */

:root{
  /* ---------- primitives: night (black) ---------- */
  --night-950:#0b0b0c;
  --night-900:#0e0e0f;   /* brand background */
  --night-850:#141416;
  --night-800:#1c1c1f;   /* brand card */
  --night-750:#232327;
  --night-700:#2a2a2e;   /* brand border */
  --night-600:#3a3a3f;
  --night-500:#8a8c91;   /* brand muted */
  --night-400:#a9aaae;

  /* ---------- primitives: gold ---------- */
  --gold-100:#f6ecd4;
  --gold-200:#ecd7a4;
  --gold-300:#e2bf6e;
  --gold-500:#c9a24a;    /* brand gold */
  --gold-600:#b08a35;
  --gold-700:#8c6a1f;    /* gold that passes AA on cream */
  --gold-900:#3a2c0c;

  /* ---------- primitives: cream ---------- */
  --cream-50:#fbf9f4;
  --cream-100:#f5f1ea;   /* brand ink / light background */
  --cream-200:#ece5d8;
  --cream-300:#ddd4c3;
  --cream-400:#c4b9a4;
  --stone-600:#5a5a60;
  --stone-800:#2b2b30;
  --stone-900:#17171a;

  --whatsapp:#25d366;
  --whatsapp-ink:#04210f;
  --success:#3fa66b;
  --danger:#d0564a;

  /* ---------- type ---------- */
  --font-display:'Instrument Serif',Georgia,'Times New Roman',serif;  /* calm editorial serif for headings */
  --display-stretch:100%;
  --display-weight:400;
  --font-body:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;  /* the wordmark's family */

  --text-xs:.75rem;     /* 12 */
  --text-sm:.875rem;    /* 14 */
  --text-md:1rem;       /* 16 */
  --text-lg:1.125rem;   /* 18 */
  --text-xl:1.3125rem;  /* 21 */
  --text-2xl:clamp(1.5rem,1.2rem + 1vw,1.875rem);
  --text-3xl:clamp(2.2rem,1.4rem + 2.8vw,3.9rem);
  --text-4xl:clamp(2.8rem,1.4rem + 5vw,6rem);

  --leading-tight:1.08;
  --leading-snug:1.3;
  --leading-body:1.6;
  --tracking-tight:-.02em;
  --tracking-label:.14em;

  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --weight-bold:700;

  /* ---------- space (4px base) ---------- */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px;
  --space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;
  --section-y:clamp(96px,8vw + 40px,168px);
  --gutter:clamp(16px,4vw,32px);
  --container:1200px;
  --container-narrow:820px;

  /* ---------- shape ---------- */
  --radius-sm:2px;
  --radius-md:2px;
  --radius-lg:2px;
  --radius-xl:2px;
  --radius-pill:2px;
  --radius-round:50%;
  --bar-w:28px;        /* the logo's gold crossbar, used as the one accent mark */
  --bar-h:3px;

  /* ---------- elevation ---------- */
  --shadow-sm:0 1px 2px rgba(0,0,0,.18);
  --shadow-md:0 8px 24px -8px rgba(0,0,0,.35);
  --shadow-lg:0 24px 60px -20px rgba(0,0,0,.55);
  --shadow-gold:0 10px 30px -10px rgba(201,162,74,.55);

  /* ---------- motion ---------- */
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --dur-fast:150ms;
  --dur-base:250ms;
  --dur-slow:500ms;

  /* ---------- semantic: dark theme (default) ---------- */
  --surface:var(--night-900);
  --surface-sunken:var(--night-950);
  --surface-raised:var(--night-800);
  --surface-raised-2:var(--night-750);
  --text:var(--cream-100);
  --text-strong:#ffffff;
  --text-muted:var(--night-400);
  --text-subtle:var(--night-500);
  --border:var(--night-700);
  --border-strong:var(--night-600);
  --accent:var(--gold-500);
  --accent-hover:var(--gold-300);
  --accent-text:var(--gold-300);      /* gold used as text on this surface */
  --accent-soft:rgba(201,162,74,.12);
  --on-accent:var(--night-900);
  --focus-ring:var(--gold-300);
}

/* Light (cream) theme: put data-theme="light" on any section */
[data-theme="light"]{
  --surface:var(--cream-100);
  --surface-sunken:var(--cream-200);
  --surface-raised:#ffffff;
  --surface-raised-2:var(--cream-50);
  --text:var(--stone-900);
  --text-strong:#000000;
  --text-muted:var(--stone-600);
  --text-subtle:#77777d;
  --border:var(--cream-300);
  --border-strong:var(--cream-400);
  --accent:var(--gold-500);
  --accent-hover:var(--gold-600);
  --accent-text:var(--gold-700);
  --accent-soft:rgba(201,162,74,.16);
  --on-accent:var(--night-900);
  --focus-ring:var(--gold-700);
  --shadow-md:0 8px 24px -10px rgba(40,30,10,.18);
  --shadow-lg:0 24px 60px -24px rgba(40,30,10,.28);
}

/* Sunken dark band, for alternating dark sections */
[data-theme="dark-sunken"]{
  --surface:var(--night-850);
  --surface-raised:var(--night-800);
}
