/* ============================================================
   Design tokens -- the one place the site's fonts and colors are set.
   Imported by assets/css/site.css, teaching/laar61400/assets/css/main.css and
   workflow-shared.css, so every page has them, and by the presenter window that
   deck.js writes. deck.css and page <style> blocks read these variables instead
   of naming a font or a UI color.
   Content colors (diagram swatches, brand logos, type specimens) stay literal
   in their pages -- they depict something, they are not the site palette.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&family=Noto+Serif+SC:wght@300&family=STIX+Two+Text:ital@0;1&display=swap');

:root {
  /* ── type ── */
  --font-sans:    'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;
  --font-zh:      'Noto Serif SC', serif;
  --font-math:    'STIX Two Text', 'Cambria Math', 'Times New Roman', serif;   /* equations */

  /* ── neutral grays, dark to light. Kept free of hue: tinted grays read oddly
     on the dark title slides and presenter window. ── */
  --gray-900: #1a1a1a;   /* text */
  --gray-800: #333;
  --gray-750: #474747;
  --gray-700: #555;      /* secondary text */
  --gray-600: #6b6b6b;
  --gray-500: #767676;   /* notes, captions; 4.5:1 on white, the floor for small text */
  --gray-400: #aaa;
  --gray-300: #bbb;
  --gray-250: #ccc;
  --gray-200: #e0e0e0;   /* rules, borders */
  --gray-150: #ebebeb;
  --gray-100: #f4f4f4;   /* panels */
  --gray-50:  #fafafa;

  /* ── accent: 大繎 #822327, a deep red with no brown ── */
  --accent:         #822327;   /* 大繎; 9.4:1 on white */
  --accent-dark:    #5e181c;   /* link hover */
  --accent-soft:    #d8b0b2;   /* resting underline */
  --accent-line:    #e5c7c9;   /* borders on tinted panels */
  --accent-tint:    #f6eaeb;   /* active-row background */
  --accent-on-dark: #d9727a;   /* accent on the dark presenter window */

  /* ── teaching semantics: deadlines and warnings ── */
  --alert:      #c3272b;   /* 赤 */
  --alert-bg:   #fcefe8;   /* 鱼肚白 */
  --alert-line: #f0c4be;
  --alert-soft: #b36d61;   /* 檀 — secondary reminder */

  /* ── software colors for tool badges: each tool's hue, nearest traditional color ── */
  --tool-cad: #c32136;   /* 枣红 AutoCAD */
  --tool-ai:  #ca6924;   /* 琥珀 Illustrator */
  --tool-ps:  #177cb0;   /* 靛青 Photoshop */
  --tool-id:  #cb3a56;   /* 茜色 InDesign */
  --tool-rh:  #9d2933;   /* 胭脂 Rhino */
  --tool-gh:  #057748;   /* 松花绿 Grasshopper */
  --tool-osm: #549688;   /* 铜绿 OpenStreetMap */
  --tool-ge:  #ae7000;   /* 棕黄 Google Earth */

  /* ── page ground for site pages, after the ink-wash wallpaper
     (workflows/wallpaper-maker/themes/ink-wash.css): its fine horizontal paper
     striation on white. Teaching pages and slides stay plain white. ── */
  --page-ground:
    repeating-linear-gradient(0deg, rgba(120,105,80,.022) 0 1px, transparent 1px 5px),
    #fff;
}
