/* Theme: Eiwitsnacks.nl ("het etiket"). The nutrition table on the back of the pack is the sign system:
 * black-on-white table with thick rules, a pale sage page (kwark/edamame), deep bean green for brand and action,
 * egg-yolk yellow to mark the protein row and "let op". Archivo (condensed, like label type) + Libre Franklin.
 * Rule 12: main surface is sage, ink is green-black; no cream + espresso + terracotta, no purple. */
@font-face { font-family: "Archivo"; src: url("../../fonts/archivo-wdth-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../../fonts/libre-franklin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --zs-bg: #eef4f0;            /* sage page */
  --zs-surface: #ffffff;       /* label white */
  --zs-surface-alt: #dfece5;
  --zs-ink: #142420;           /* green-black, like printed label ink */
  --zs-muted: #45574f;
  --zs-line: #c9d8d0;
  --zs-brand: #0f5e4f;         /* bean green (white text 7.6:1) */
  --zs-brand-deep: #0a4238;
  --zs-on-brand: #f1f7f3;
  --zs-accent: #0f5e4f;
  --zs-accent-hover: #0a4238;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #f7cf3d;     /* egg yolk: the protein row, "let op" */
  --zs-highlight-ink: #142420;
  --zs-font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --zs-font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zs-display-weight: 800;
  --zs-display-tracking: -.005em;
  --zs-radius: 10px;
  --zs-radius-sm: 5px;
  --zs-radius-btn: 8px;
  --zs-picto: #0f5e4f;
  --es-label-ink: #142420;     /* table rules and text: always dark on white, also in dark mode */
  --es-label-bg: #ffffff;
  --es-yolk: #f7cf3d;
  --es-bar: #0f5e4f;           /* gram-per-portion bars */
  --es-bar-alt: #8fb8a8;       /* comparison bars (the "gewone snack") */
  --es-mark-source: #0f5e4f;   /* "bron van eiwit" threshold */
  --es-mark-rich: #142420;     /* "rijk aan eiwit" threshold */
}

/* Dark mode (rule 8): a coloured dark (deep bean green), not grey. The label itself stays white with dark ink,
 * like a real pack under a lamp: that is the identity. Headings and links use --zs-brand-text. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #0e1d19; --zs-surface: #152822; --zs-surface-alt: #1b322b; --zs-ink: #e6f0eb; --zs-muted: #a8bcb3; --zs-line: #2c463d;
    --zs-brand: #0f5e4f; --zs-brand-deep: #08322a; --zs-on-brand: #f1f7f3; --zs-brand-text: #8fd6bd;
    --zs-accent: #7fcfb2; --zs-accent-hover: #9ddcc6; --zs-accent-ink: #0b1f1a;
    --zs-highlight: #f2c935; --zs-highlight-ink: #142420;
    --zs-picto: #0f5e4f; --es-bar: #7fcfb2; --es-bar-alt: #3f6a5c; --es-mark-source: #7fcfb2; --es-mark-rich: #e6f0eb;
  }
}
:root[data-theme="dark"] {
  --zs-bg: #0e1d19; --zs-surface: #152822; --zs-surface-alt: #1b322b; --zs-ink: #e6f0eb; --zs-muted: #a8bcb3; --zs-line: #2c463d;
  --zs-brand: #0f5e4f; --zs-brand-deep: #08322a; --zs-on-brand: #f1f7f3; --zs-brand-text: #8fd6bd;
  --zs-accent: #7fcfb2; --zs-accent-hover: #9ddcc6; --zs-accent-ink: #0b1f1a;
  --zs-highlight: #f2c935; --zs-highlight-ink: #142420;
  --zs-picto: #0f5e4f; --es-bar: #7fcfb2; --es-bar-alt: #3f6a5c; --es-mark-source: #7fcfb2; --es-mark-rich: #e6f0eb;
}
