/*
 * Plan Line: design tokens
 * A drafting-table look: warm paper, a framed page with thin vertical rails and full-width
 * horizontal rules that meet at small diamond markers, faint graph paper inside panels,
 * italic serif headlines flanked by rules, and mono captions like a technical drawing.
 * One cobalt accent, one brick-red secondary, used sparingly.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: warm paper outside the frame, white panels inside it */
  --pl-paper: #f5f4ef;
  --pl-panel: #ffffff;
  --pl-tint: #efede6;        /* inset strips, code wells, table heads */
  --pl-grid: #e6e3da;        /* the faint graph-paper lines */
  --pl-rule: #d3cfc4;        /* frame rails, rules, every border */
  --pl-rule-strong: #b9b4a7; /* diamond markers, focused borders */

  /* Text */
  --pl-ink: #1c1d21;
  --pl-soft: #66676c;
  --pl-faint: #9c9a93;

  /* Accents: cobalt is the main one, brick is for the second product or a warning */
  --pl-cobalt: #2f50d0;
  --pl-cobalt-dark: #2440ae;
  --pl-cobalt-soft: #e4e9fa;
  --pl-brick: #c9553d;
  --pl-brick-soft: #f9e5df;
  --pl-moss: #3f8a5c;        /* status only: done, in stock */

  /* Type */
  --pl-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --pl-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pl-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pl-text-hero: clamp(44px, 6.4vw, 84px);
  --pl-text-h2: clamp(34px, 4.2vw, 54px);
  --pl-text-h3: 22px;
  --pl-text-lead: 19px;
  --pl-text-body: 16px;
  --pl-text-small: 14px;
  --pl-text-micro: 12px;

  --pl-tracking-hero: -.015em;
  --pl-tracking-mono: .02em;

  /* Shape: crisp. Thin rules, small radii, almost no shadow */
  --pl-radius-xs: 3px;
  --pl-radius-sm: 5px;
  --pl-radius: 8px;
  --pl-border: 1px solid var(--pl-rule);
  --pl-shadow: 0 1px 0 rgba(28, 29, 33, .04), 0 6px 18px rgba(28, 29, 33, .06);
  --pl-shadow-key: inset 0 -1px 0 var(--pl-rule);  /* the keycap chip */
  --pl-diamond: 7px;         /* size of the junction markers */
  --pl-grid-size: 24px;      /* graph-paper cell */

  /* Space */
  --pl-frame: 1180px;        /* width between the two rails */
  --pl-narrow: 720px;
  --pl-gutter: clamp(16px, 3vw, 40px);
  --pl-section: clamp(64px, 8vw, 112px);

  /* Motion */
  --pl-ease: cubic-bezier(.2, .7, .2, 1);
}
