/*
 * Marker Ledger: design tokens
 * A warm, nerdy editorial dark style. Soil-brown near-black surfaces, a narrow regular-weight
 * serif for headlines with one italic phrase laid on a skewed teal highlighter swatch, a calm
 * sans for body text and a mono for anything typed. Feature tiles sit on a faint dot grid with
 * a small bracket glyph in the corner, and one deep teal band per page holds a comparison table.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: warm soil browns, never pure black */
  --ml-soil: #1d1815;        /* page background */
  --ml-soil-2: #27211d;      /* cards, tiles, inputs */
  --ml-soil-3: #322a25;      /* hover, the raised CLI card, table header */
  --ml-line: #3d3530;        /* every border and divider */
  --ml-line-strong: #574c44; /* outlined buttons, focus edges */

  /* Text */
  --ml-cream: #efe7da;       /* headlines and body */
  --ml-soft: #b1a698;        /* leads, secondary text */
  --ml-faint: #7a6f65;       /* meta, captions, dot grid */

  /* Accents. Teal is the main one; moss is the quiet second swatch */
  --ml-teal: #1e7068;        /* highlighter swatch, primary button */
  --ml-teal-hover: #258378;
  --ml-teal-deep: #10393a;   /* the one deep band per page */
  --ml-mint: #86d4c2;        /* checks, links, mono highlights */
  --ml-moss: #56632c;        /* second swatch under a small note */
  --ml-straw: #e6c35c;       /* mono highlights in terminals only */
  --ml-clay: #d8735b;        /* crosses, errors */

  /* The cream window bar on terminals */
  --ml-paper: #ece4d6;
  --ml-paper-ink: #5a5048;

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

  --ml-text-hero: clamp(52px, 7.6vw, 104px);
  --ml-text-h2: clamp(38px, 4.6vw, 60px);
  --ml-text-h3: 26px;
  --ml-text-lead: 18px;
  --ml-text-body: 16px;
  --ml-text-small: 14px;
  --ml-text-mono: 13.5px;

  --ml-leading-tight: 0.98;
  --ml-leading-body: 1.6;
  --ml-tracking-hero: -0.025em;

  /* Shape */
  --ml-radius-sm: 6px;
  --ml-radius: 12px;
  --ml-radius-lg: 18px;
  --ml-radius-xl: 26px;
  --ml-radius-pill: 999px;
  --ml-border: 1px solid var(--ml-line);

  --ml-shadow: 0 1px 0 rgba(255, 240, 220, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.28);
  --ml-shadow-lg: 0 1px 0 rgba(255, 240, 220, 0.05) inset, 0 30px 70px rgba(0, 0, 0, 0.45);

  /* The dot grid on feature tiles */
  --ml-dots: radial-gradient(rgba(239, 231, 218, 0.09) 1px, transparent 1.2px);
  --ml-dots-size: 9px 9px;

  /* Swatch shape: the highlighter behind an italic phrase */
  --ml-swatch-skew: -9deg;
  --ml-swatch-tilt: -2deg;

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

  --ml-container: 1120px;
  --ml-wide: 1240px;
  --ml-narrow: 720px;
  --ml-gutter: 24px;
}
