/* Theme: Clubdossier.nl ("the noticeboard in the clubhouse"). Warm cream paper, dark clubhouse wood
 * for header/footer, ONE strong club colour (club red) for action, pennant yellow for status.
 * Bree Serif (friendly slab-ish, like club lettering) + Red Hat Text.
 *
 * Contrast (relative luminance, WCAG):
 *   white on accent #b3261e ........ 6.54:1   white on accent-hover #8f1d17 ... 8.91:1
 *   on-brand #f6ecd9 on brand #3a2a20 11.70:1  on brand-deep #2a1d15 ......... 13.94:1
 *   muted #6a5744 on bg #fbf5e8 .... 6.32:1   muted on surface-alt #f1e4c8 ... 5.45:1
 *   muted on white-ish surface ..... 6.75:1   ink #2b2118 on bg ............. 14.49:1
 *   ink on highlight #f2c230 ....... 9.40:1   accent as link on bg .......... 6.02:1
 *   white on pin green #2f6b4a ..... 6.32:1   ink on pin yellow #f7dc7a ..... 11.60:1
 */
@font-face { font-family: "Bree Serif"; src: url("../fonts/bree-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/red-hat-text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/red-hat-text-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/red-hat-text-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --zs-bg: #fbf5e8;                /* cream paper */
  --zs-surface: #fffdf8;
  --zs-surface-alt: #f1e4c8;       /* light wood / cork wash */
  --zs-ink: #2b2118;               /* dark wood */
  --zs-muted: #6a5744;
  --zs-line: #dccaa5;
  --zs-brand: #3a2a20;             /* clubhouse wood */
  --zs-brand-deep: #2a1d15;
  --zs-on-brand: #f6ecd9;
  --zs-accent: #b3261e;            /* the club colour; CTA and link hover only */
  --zs-accent-hover: #8f1d17;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #f2c230;         /* pennant yellow: "deze maand", status only */
  --zs-highlight-ink: #2b2118;
  --zs-font-display: "Bree Serif", Georgia, serif;
  --zs-font-body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zs-display-weight: 400;
  --zs-display-tracking: 0;
  --zs-radius: 6px;                /* paper cards: barely rounded */
  --zs-radius-sm: 3px;
  --zs-radius-btn: 6px;
  --zs-picto: #b3261e;             /* pictogram tiles: club red, white glyph */
  /* own tokens */
  --cd-cork: #c99a62;              /* noticeboard cork, only as frame colour */
  --cd-pin: #b3261e;               /* drawing pin */
  --cd-note: #fffdf8;
  --cd-note-yellow: #f7dc7a;       /* ink on it 11.6:1 */
  --cd-note-green: #2f6b4a;        /* white on it 6.32:1 */
  --cd-now: 11;                    /* current month 1-12, set per page by the server */
}

/* Dark mode (rule 8): the clubhouse after sunset. --zs-brand stays dark wood (header, wood tiles);
 * headings, links, month tabs and roles use --zs-brand-text (light honey wood). The CTA becomes a light
 * club red with dark ink; pennant yellow, picto red and pin green keep their light-mode colours.
 *   ink #f1e7d6 on bg #191411 ........ 14.9:1   muted #c2b19a on surface #231b15 ... 8.1:1
 *   brand-text #f0c98f on surface-alt . 9.6:1   accent-ink #2a0d0a on accent ...... 6.6:1
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #191411; --zs-surface: #231b15; --zs-surface-alt: #2f251c; --zs-ink: #f1e7d6; --zs-muted: #c2b19a; --zs-line: #46392c;
    --zs-brand: #3a2a20; --zs-brand-deep: #120d0a; --zs-on-brand: #f6ecd9; --zs-brand-text: #f0c98f;
    --zs-accent: #ef7a6e; --zs-accent-hover: #f59a90; --zs-accent-ink: #2a0d0a;
    --zs-highlight: #f2c230; --zs-highlight-ink: #2b2118;
    --cd-note: #2a2119; --cd-cork: #8a6a44;
  }
}
