/*
 * Red Thread: design tokens
 * A friendly, hand-made app style. Plain white pages, a soft rounded humanist sans, one warm
 * tomato-red accent, a hand-drawn teal underline under one word, little four-point sparkles,
 * and a real-looking app window (dark sidebar, note list, open note) as the hero. Feature rows
 * float on big soft blobs of teal, plum and sage.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: white first, a warm off-white for quiet sections */
  --rt-paper: #ffffff;
  --rt-cream: #faf7f4;
  --rt-line: #ebe6e2;
  --rt-line-strong: #d9d2cc;

  /* Text */
  --rt-ink: #2c2a2e;
  --rt-soft: #6d686f;
  --rt-faint: #a29ca3;

  /* The one accent: logo, active note, links inside notes, the cursor */
  --rt-red: #d94a3d;
  --rt-red-dark: #bd3a2f;
  --rt-red-soft: #fbe6e2;

  /* Hand-drawn marks: the underline and the sparkles */
  --rt-teal: #47aebb;

  /* Blobs behind feature rows (never behind text alone) */
  --rt-blob-teal: #93d0da;
  --rt-blob-plum: #a982ab;
  --rt-blob-sage: #9fb8a6;

  /* Inside the app window */
  --rt-sidebar: #2e2f34;
  --rt-sidebar-2: #3b3c42;
  --rt-sidebar-text: #c9c8cc;
  --rt-mark: #fbeea0;         /* highlighter, only inside notes */
  --rt-amber: #e3a23a;        /* callout rule, only inside notes */

  /* Type */
  --rt-sans: "Figtree", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rt-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --rt-text-hero: clamp(40px, 5.6vw, 68px);
  --rt-text-h2: clamp(32px, 3.8vw, 46px);
  --rt-text-h3: 24px;
  --rt-text-lead: 21px;
  --rt-text-body: 17px;
  --rt-text-small: 14px;
  --rt-text-micro: 12px;

  --rt-tracking-hero: -.025em;
  --rt-tracking-h2: -.02em;

  /* Shape: gentle corners, thin borders, one big soft shadow under windows */
  --rt-radius-sm: 6px;
  --rt-radius: 10px;
  --rt-radius-lg: 16px;
  --rt-radius-pill: 999px;
  --rt-border: 1px solid var(--rt-line);
  --rt-shadow: 0 1px 2px rgba(44, 42, 46, .06), 0 6px 18px rgba(44, 42, 46, .07);
  --rt-shadow-lg: 0 2px 6px rgba(44, 42, 46, .06), 0 30px 70px rgba(44, 42, 46, .18);

  /* Space */
  --rt-section: clamp(80px, 10vw, 128px);
  --rt-container: 1120px;
  --rt-narrow: 700px;

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