/*
 * Stone Mesh: design tokens
 * Calm, precise and warm. A warm stone-gray page, paper cards with hairline borders, one
 * grotesk at medium weight for big plain headlines, mono for labels, and a single brick-red
 * accent that fills the one "active" tile in a row. The signature visual is a mesh map:
 * people and places drawn as node chips on a dotted panel, joined by thin lines.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: stone is the page, paper and white sit on top of it */
  --sm-stone: #eeece8;
  --sm-stone-2: #e4e1db;
  --sm-paper: #f8f7f4;
  --sm-white: #ffffff;
  --sm-line: #d9d5ce;
  --sm-line-strong: #bdb8af;
  --sm-dot: #c9c4bb;          /* the dot grid on mesh panels */

  /* Text */
  --sm-ink: #1c1a19;
  --sm-soft: #5f5b56;
  --sm-faint: #8f8a83;

  /* The one accent: the active tile, one key number, live links on the mesh */
  --sm-brick: #a8372b;
  --sm-brick-dark: #8c2c22;
  --sm-brick-soft: #f2dcd7;

  /* Icon inks: small line icons only, one color per tile, never for text or buttons */
  --sm-indigo: #4b4f9c;
  --sm-moss: #3f6b4e;
  --sm-plum: #7a3f78;
  --sm-ochre: #9a6a1c;

  /* Type */
  --sm-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sm-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --sm-text-hero: clamp(42px, 6.4vw, 84px);
  --sm-text-h2: clamp(30px, 3.8vw, 48px);
  --sm-text-h3: 20px;
  --sm-text-lead: 19px;
  --sm-text-body: 16px;
  --sm-text-small: 14px;
  --sm-text-micro: 12px;

  --sm-tracking-hero: -.035em;
  --sm-tracking-h2: -.025em;

  /* Shape: flat. Hairlines instead of shadows, small radius on controls, bigger on panels */
  --sm-radius-xs: 6px;
  --sm-radius: 14px;
  --sm-radius-lg: 24px;
  --sm-radius-pill: 999px;
  --sm-border: 1px solid var(--sm-line);
  --sm-shadow: 0 1px 0 rgba(28, 26, 25, .04);
  --sm-shadow-pop: 0 1px 2px rgba(28, 26, 25, .08), 0 10px 28px rgba(28, 26, 25, .08);

  /* Space */
  --sm-section: clamp(72px, 9vw, 120px);
  --sm-container: 1200px;
  --sm-narrow: 720px;
  --sm-gutter: 24px;

  /* Motion */
  --sm-ease: cubic-bezier(.25, .8, .25, 1);
}
