/*
 * Night Graph: tokens
 * Feel: a private thinking tool at night. Soft charcoal pages (not black),
 * big left-aligned Geist headlines, one violet accent, and the product shown
 * as a three-pane app window: a file tree, a note set in a reading serif, and
 * a graph of linked dots. [[Links]] and #tags glow violet. A faint field of
 * dots and lines drifts behind the hero like a constellation.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces, darkest to lightest */
  --ng-night: #17161B;
  --ng-pane: #1F1E24;
  --ng-raised: #28272E;
  --ng-hover: #312F38;
  --ng-line: #35333D;
  --ng-line-bright: #4A4754;

  /* Text */
  --ng-text: #ECEAF1;
  --ng-dim: #A29EAD;
  --ng-faint: #6D6978;

  /* The one accent: violet, with a lavender for links and a soft wash for tags */
  --ng-violet: #8A6CF4;
  --ng-violet-deep: #6A4CD6;
  --ng-lavender: #BBA9FF;
  --ng-violet-soft: rgba(138, 108, 244, .16);
  --ng-violet-line: rgba(138, 108, 244, .45);

  /* Node colours for the graph and tiny status marks only */
  --ng-moss: #5FC48C;
  --ng-amber: #E6AE4E;
  --ng-node: #CFCBD8;

  /* Atmosphere */
  --ng-haze: radial-gradient(55% 60% at 80% 20%, rgba(138, 108, 244, .16) 0%, rgba(23, 22, 27, 0) 70%);
  --ng-field: radial-gradient(circle at 1px 1px, rgba(236, 234, 241, .10) 1px, transparent 1.6px);
  --ng-field-size: 28px 28px;
  --ng-sheen: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 30%);

  /* Fonts */
  --ng-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ng-serif: "Source Serif 4", Georgia, serif;
  --ng-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --ng-text-hero: clamp(42px, 6.4vw, 84px);
  --ng-text-h2: clamp(30px, 3.8vw, 48px);
  --ng-text-h3: 19px;
  --ng-text-lead: clamp(19px, 2vw, 26px);
  --ng-text-body: 16px;
  --ng-text-read: 18px;
  --ng-text-small: 14px;
  --ng-text-micro: 12px;
  --ng-track-tight: -0.04em;
  --ng-track-snug: -0.02em;

  /* Shape */
  --ng-radius-xs: 4px;
  --ng-radius-sm: 6px;
  --ng-radius: 10px;
  --ng-radius-lg: 14px;
  --ng-radius-xl: 22px;
  --ng-radius-pill: 999px;
  --ng-border: 1px solid var(--ng-line);

  /* Shadows */
  --ng-shadow-btn: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 18px rgba(106, 76, 214, .35);
  --ng-shadow-window: 0 0 0 1px rgba(255, 255, 255, .05), 0 40px 90px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
  --ng-shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .28);
  --ng-shadow-phone: 0 0 0 1px rgba(255, 255, 255, .10), 0 30px 60px rgba(0, 0, 0, .6);
  --ng-ring: 0 0 0 3px var(--ng-violet-soft);

  /* Space */
  --ng-space-1: 4px;
  --ng-space-2: 8px;
  --ng-space-3: 12px;
  --ng-space-4: 16px;
  --ng-space-5: 24px;
  --ng-space-6: 32px;
  --ng-space-7: 48px;
  --ng-space-8: 80px;
  --ng-space-9: 128px;

  /* Layout */
  --ng-container: 1160px;
  --ng-gutter: 24px;
  --ng-measure: 680px;

  /* Motion */
  --ng-ease: cubic-bezier(.2, .7, .2, 1);
  --ng-fast: 140ms;
  --ng-slow: 420ms;
}
