/*
  ThreadNudge design tokens
  Every size, color and radius on the landing comes from here.
  - spacing: only --s-* steps (4px grid)
  - type: one family, Geist, weights 400 and 500, sentence case everywhere.
    Geist Mono only for things that are literally typed: the URL field and the tracked link
  - color: one dark graphite ramp tinted green, three text roles, one grass accent
  - the dithered grass canvases are the only place with rich color
*/

:root {
  /* ---------- Color: night graphite, tinted toward grass ---------- */
  --bg: #080a08;             /* page */
  --surface: #111411;        /* cards, panels */
  --raised: #1a1e1a;         /* inputs, active rows */
  --ink: #f1f4ec;            /* primary text */
  --ink-2: #a5ac9f;          /* secondary text, body copy */
  --ink-3: #7c8477;          /* meta and captions */
  --line: rgba(241, 244, 236, 0.09);
  --line-strong: rgba(241, 244, 236, 0.17);

  /* One accent: fresh grass. Dark text on it is 12:1 */
  --accent: #b9e44c;
  --accent-hover: #cbf062;
  --accent-soft: rgba(185, 228, 76, 0.13);
  --on-accent: #0d1a05;
  --warn: #f08a4b;           /* only for "noise" markers */

  /* Glass over the dithered canvases */
  --glass: rgba(7, 14, 9, 0.72);
  --glass-strong: rgba(7, 14, 9, 0.9);
  --glass-line: rgba(255, 255, 255, 0.1);

  /* ---------- Type ---------- */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* size / line-height pairs. Mobile first, desktop overrides below */
  --fs-label: 0.875rem;   --lh-label: 1.25rem;    /* 14/20  labels, meta: nothing on the page is smaller */
  --fs-small: 0.875rem;   --lh-small: 1.25rem;    /* 14/20  captions, table cells */
  --fs-body: 1rem;        --lh-body: 1.5rem;      /* 16/24  body */
  --fs-large: 1.125rem;   --lh-large: 1.625rem;   /* 18/26  item titles */
  --fs-lead: 1.125rem;    --lh-lead: 1.75rem;     /* 18/28 -> 20/30  subheads */
  --fs-figure: 1.75rem;   --lh-figure: 2rem;      /* 28/32 -> 36/40  prices, counters */
  --fs-title: 2rem;       --lh-title: 2.25rem;    /* 32/36 -> 48/52  section titles */
  --fs-hero: 2.5rem;      --lh-hero: 2.625rem;    /* 40/42 -> 72/72  hero headline */

  --track-display: -0.035em;  /* 32px and up */
  --measure: 34rem;

  /* ---------- Spacing: 4px grid ---------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;  --s-5: 20px;  --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* ---------- Layout ---------- */
  --container: 1152px;
  --gutter: var(--s-5);       /* 20 -> 32 */
  --section: var(--s-20);     /* 80 -> 112 -> 128 */
  --header-h: 64px;
  --cell: 104px;              /* hero grid row height */

  /* ---------- Controls ---------- */
  --control-lg: 48px;
  --control-sm: 36px;

  /* ---------- Radius ---------- */
  --r-xs: 6px;    /* tags, chips */
  --r-sm: 10px;   /* buttons, inputs, avatars */
  --r-md: 16px;   /* cards, tiles */
  --r-lg: 24px;   /* panels, stage */

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-enter: 600ms;
  --t-draw: 1200ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--s-8);
    --section: 112px;
    --fs-lead: 1.25rem;     --lh-lead: 1.875rem;
    --fs-figure: 2.25rem;   --lh-figure: 2.5rem;
    --fs-title: 2.5rem;     --lh-title: 2.75rem;
    --fs-hero: 3.5rem;      --lh-hero: 3.5rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --section: var(--s-32);
    --fs-title: 3rem;       --lh-title: 3.25rem;
    --fs-hero: 4.5rem;      --lh-hero: 4.5rem;
  }
}
