/*
 * Ink Margin: design tokens
 * A quiet, bookish companion-app look: plain white pages, light-weight serif headlines,
 * a friendly geometric sans for everything else, flat gray tiles with drawn app screens,
 * and pen-and-ink illustrations with cross-hatching. Almost monochrome, with one muted
 * sap-green accent used for small marks only.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,300;7..72,400;7..72,500&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: white first, flat gray tiles for features */
  --im-paper: #ffffff;
  --im-tile: #f4f4f2;
  --im-tile-2: #eaeae6;
  --im-line: #e3e3de;
  --im-line-strong: #cfcfc8;

  /* Ink: drawings, headlines, primary buttons */
  --im-ink: #121211;
  --im-ink-2: #2c2c29;
  --im-soft: #62625c;
  --im-faint: #9c9c94;

  /* The one accent: progress bars, a small dot, a tag. Never a whole button */
  --im-sap: #56704a;
  --im-sap-soft: #e7eddf;
  --im-blush: #f6e4dc;      /* only behind a drawn object inside an app screen */

  /* Type */
  --im-serif: "Literata", "Iowan Old Style", Georgia, serif;
  --im-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --im-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --im-text-hero: clamp(40px, 5.2vw, 64px);
  --im-text-h2: clamp(30px, 3.4vw, 42px);
  --im-text-h3: 24px;
  --im-text-lead: 18px;
  --im-text-body: 16px;
  --im-text-small: 14px;
  --im-text-tiny: 12px;

  --im-serif-weight: 300;
  --im-tracking-tight: -0.02em;

  /* Shape */
  --im-radius-tile: 14px;
  --im-radius-window: 12px;
  --im-radius-btn: 8px;
  --im-radius-sm: 6px;
  --im-radius-phone: 34px;

  --im-border: 1px solid var(--im-line);
  --im-stroke: 1.6px;       /* pen width for drawings */

  --im-shadow-window: 0 1px 2px rgba(18, 18, 17, 0.06), 0 18px 40px -18px rgba(18, 18, 17, 0.22);
  --im-shadow-none: none;

  /* Space */
  --im-space-1: 4px;
  --im-space-2: 8px;
  --im-space-3: 12px;
  --im-space-4: 16px;
  --im-space-5: 24px;
  --im-space-6: 32px;
  --im-space-7: 48px;
  --im-space-8: 72px;
  --im-space-9: 112px;

  --im-container: 1180px;
  --im-text-width: 640px;
  --im-gutter: 20px;
}
