/*
 * HoneyLink design tokens. This is the only file that defines brand colours, fonts, radii and
 * shadows. The storefront and the admin both import it; change a value here and both follow.
 *
 * Colour values come from docs/brand/honeylink-logo-pack/brand/colors.json.
 * The five brand colours sit on one hue path, so they are the named stops of a single ramp:
 *
 *   honey-100  Wax Cream    #FBF1DC   page background, light surfaces
 *   honey-400  Honey Gold   #F3B229   accent fill, buttons on dark. Never text on white or cream.
 *   honey-500  Amber        #E0861A   secondary accent fill (badges, sale tags). Never small text.
 *   honey-700  Amber Deep   #9A5A12   links and text buttons on white or cream (AA)
 *   honey-900  Bark Brown   #4E260A   primary: headings, body text, dark surfaces
 *
 * The other stops are interpolated for hover, border and tint use.
 * Components use the semantic tokens below, not the ramp, unless they need a tint.
 */
:root {
  /* ------------------------------------------------------------------ brand ramp */
  --color-honey-50: #fdf8ec;
  --color-honey-100: #fbf1dc;
  --color-honey-200: #f8e3b3;
  --color-honey-300: #f6cd6e;
  --color-honey-400: #f3b229;
  --color-honey-500: #e0861a;
  --color-honey-600: #bd6f16;
  --color-honey-700: #9a5a12;
  --color-honey-800: #74400e;
  --color-honey-900: #4e260a;
  --color-honey-950: #321806;

  /* ------------------------------------------------------------------ semantic colours */
  --color-page: var(--color-honey-50); /* page background */
  --color-surface: #ffffff; /* cards, panels, inputs */
  --color-surface-tint: var(--color-honey-100); /* tinted bands and callouts */
  --color-surface-dark: var(--color-honey-900); /* header bar, footer, dark bands */
  --color-ink: var(--color-honey-900); /* headings and body text */
  --color-ink-soft: #6b4a33; /* secondary text */
  --color-ink-on-dark: var(--color-honey-100); /* text on dark surfaces */
  --color-line: #ecdcbc; /* borders and dividers */
  --color-accent: var(--color-honey-400); /* accent fill */
  --color-accent-strong: var(--color-honey-500); /* badges, sale tags */
  --color-link: var(--color-honey-700); /* links and text buttons */

  /* Status colours, chosen to read on white and on cream. */
  --color-success: #2f6b3a;
  --color-success-tint: #e6f2e4;
  --color-danger: #b3261e;
  --color-danger-tint: #fbe9e7;
  --color-info: #2b5c8a;
  --color-info-tint: #e5eef6;
  --color-warning: var(--color-honey-700);
  --color-warning-tint: var(--color-honey-100);

  /* ------------------------------------------------------------------ type */
  --font-sans: 'DM Sans Variable', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  /* Fraunces SemiBold with SOFT 100, the wordmark's face: storefront page titles and section headings
   * only (brand guide v2). Never body or UI text, never in the admin. */
  --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --font-display--font-variation-settings: 'SOFT' 100;

  /* ------------------------------------------------------------------ shape */
  --radius-control: 0.5rem; /* buttons, inputs */
  --radius-card: 0.75rem; /* cards, panels */
  --radius-panel: 1rem; /* hero, large bands */

  --shadow-card: 0 1px 3px rgb(78 38 10 / 0.08), 0 1px 2px rgb(78 38 10 / 0.05);
  --shadow-pop: 0 12px 32px rgb(78 38 10 / 0.16);

  --container-page: 80rem; /* 1280px content width */
}

/* ---------------------------------------------------------------------- type scale additions
 * Tailwind's text-xs to text-3xl are used as they are. Two sizes are added. */
:root {
  --text-micro: 0.6875rem;
  --text-micro--line-height: 1rem;
  --text-display: clamp(2.25rem, 5vw, 3.5rem);
  --text-display--line-height: 1.1;
}

/* ---------------------------------------------------------------------- surface art
 * Gradients and the honeycomb pattern that give the storefront's bands depth (owner's review,
 * 2026-11-12: flat solid backgrounds everywhere were not eye-catching enough). They are built
 * only from the ramp above. Components use them through the .bg-* classes in each app's
 * stylesheet, never by copying a value. Text on any of them must still pass scripts/contrast-check. */
:root {
  /* A honeycomb line drawing, one 56 x 100 tile. Bark Brown lines for light bands, Honey Gold
   * lines for dark bands. */
  --pattern-comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%234e260a' stroke-opacity='0.07' stroke-width='1.5'/%3E%3C/svg%3E");
  --pattern-comb-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23f3b229' stroke-opacity='0.09' stroke-width='1.5'/%3E%3C/svg%3E");

  /* The hero: cream warming to honey, with a gold glow behind the product. */
  --gradient-hero:
    radial-gradient(ellipse 55% 65% at 78% 50%, rgb(243 178 41 / 0.5), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgb(224 134 26 / 0.14), transparent 70%),
    linear-gradient(165deg, var(--color-honey-50) 0%, var(--color-honey-100) 50%, var(--color-honey-200) 100%);
  /* Dark bands (quality promise, footer): Bark Brown lit by amber from two corners. */
  --gradient-dark:
    radial-gradient(ellipse 50% 70% at 10% 0%, rgb(243 178 41 / 0.2), transparent 70%),
    radial-gradient(ellipse 45% 60% at 100% 100%, rgb(224 134 26 / 0.24), transparent 70%),
    linear-gradient(180deg, var(--color-honey-900), var(--color-honey-950));
  /* Tinted bands (testimonials, promos). */
  --gradient-tint: linear-gradient(180deg, var(--color-honey-100), var(--color-honey-50));
  /* Behind a product photo: a soft pool of honey light. */
  --gradient-product:
    radial-gradient(circle at 50% 42%, var(--color-honey-50) 0%, var(--color-honey-100) 55%, var(--color-honey-200) 100%);
  /* Promo tiles. */
  --gradient-gold: linear-gradient(135deg, var(--color-honey-300) 0%, var(--color-honey-400) 45%, var(--color-honey-500) 100%);
  --gradient-amber: linear-gradient(135deg, var(--color-honey-800) 0%, var(--color-honey-900) 60%, var(--color-honey-950) 100%);

  --shadow-glow: 0 18px 50px rgb(224 134 26 / 0.28);
}
