/* Gallery Guide design tokens (working name; v1 from the brand kit summary, 2026-11-19).
   Layer 1 = brand palette (raw values). Layer 2 = semantic names. Screens and components use ONLY layer 2.
   If the brand kit's own tokens.css differs, replace layer 1 here; nothing else should need to change.
   test/brand.test.mjs checks the contrast of the pairs the app actually uses. */
:root {
  /* ---- Layer 1: brand palette ---- */
  --turf: #0F3D2E;
  --fairway: #2F7D4F;
  --sand: #F2E8CF;
  --ball: #FAF8F2;
  --flag: #E8590C;   /* signal only: "coming to you soon" alerts, the logo flag, attention accents. */
  --ink: #14201A;
  /* Neutrals derived from Ink/Ball (not in the kit; kept minimal). */
  --ink-muted: #4B5B52;
  --line: #D8DDD2;
  --sand-soft: #F8F2E1;
  --white: #FFFFFF;
  --you-blue: #1D4ED8; /* The user's own location dot. Blue is the universal "you are here"; not a brand color. */

  /* ---- Layer 2: semantic ---- */
  --surface: var(--white);
  --surface-page: var(--ball);
  --surface-soft: var(--sand-soft);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --border: var(--line);

  --brand: var(--turf);
  --on-brand: var(--ball);       /* text on Turf or Fairway */
  --accent: var(--fairway);
  --on-accent: var(--white);

  --attention: var(--flag);      /* a dot or rule only. Text on Flag must be --on-attention. Never white (3.37:1). */
  --on-attention: var(--ink);    /* Ink on Flag is 4.69:1 */

  --chip-on-bg: var(--turf);
  --chip-on-text: var(--ball);

  /* Map markers (mirrored in public/coursemap.js, which has no CSS access) */
  --marker-tee: var(--turf);
  --marker-green: var(--fairway);
  --marker-practice: var(--sand);
  --marker-player: var(--ink-muted);
  --marker-followed: var(--sand);
  --marker-me: var(--you-blue);

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", Arial, system-ui, -apple-system, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 24px;

  /* ---- Space, shape, depth ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --tap: 44px;   /* minimum touch target */
  --shadow-card: 0 1px 2px rgba(20, 32, 26, .08);
  --shadow-marker: 0 1px 4px rgba(0, 0, 0, .55);
}
