/*
  Dither Corner tokens
  A blue-black terminal night where everything is set in monospace. Text is a soft
  periwinkle, the one action color is a flat lime, and loose olive pixels gather in
  the corners of the page like a dithered fade, thick at the edge and thinning out
  toward the middle. Hairline boxes, near-square corners, no shadows.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300;400;500;600&family=Spline+Sans+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --dc-night: #0E0E15;        /* the page */
  --dc-deep: #14141E;         /* panels, cards, inputs */
  --dc-raise: #1B1B28;        /* ghost buttons, hovered rows, code */
  --dc-line: #262636;         /* hairlines */
  --dc-line-bright: #3A3B52;  /* input borders, outline buttons */

  /* Text */
  --dc-mist: #B3B7E6;         /* headlines, strong text */
  --dc-haze: #7C80A8;         /* body, leads, nav links */
  --dc-dim: #4C4F6B;          /* meta, placeholders, numbers */

  /* Accent */
  --dc-lime: #A9DC6C;         /* the one action color: solid buttons, checks, live dots */
  --dc-lime-soft: rgba(169, 220, 108, 0.12);
  --dc-lime-line: rgba(169, 220, 108, 0.45);
  --dc-on-lime: #11160B;      /* text on lime */

  /* Dither pixels */
  --dc-moss: #2F3B26;         /* most corner pixels */
  --dc-moss-bright: #4F6838;  /* a few brighter pixels */

  /* Extra swatch colors: only for theme strips, tags and the odd note */
  --dc-amber: #E2B862;
  --dc-rose: #E08394;         /* errors */
  --dc-sky: #7FB8E0;

  /* Fonts */
  --dc-font-head: "Martian Mono", ui-monospace, monospace;
  --dc-font-body: "Spline Sans Mono", ui-monospace, monospace;

  /* Type scale */
  --dc-text-display: clamp(30px, 4.4vw, 56px);
  --dc-text-h1: clamp(28px, 3.6vw, 44px);
  --dc-text-h2: clamp(22px, 2.6vw, 32px);
  --dc-text-h3: 17px;
  --dc-text-lead: 17px;
  --dc-text-body: 15px;
  --dc-text-small: 13px;
  --dc-text-micro: 11px;

  --dc-track-head: -0.02em;
  --dc-track-label: 0.08em;
  --dc-leading-body: 1.7;

  /* Shape */
  --dc-radius: 2px;
  --dc-radius-0: 0;
  --dc-border: 1px solid var(--dc-line);
  --dc-border-bright: 1px solid var(--dc-line-bright);
  --dc-border-lime: 1px solid var(--dc-lime-line);
  --dc-focus: 0 0 0 2px var(--dc-night), 0 0 0 4px var(--dc-lime);

  /* Pixel grid */
  --dc-pixel: 10px;           /* size of one dither pixel */
  --dc-pixel-step: 18px;      /* grid the pixels snap to */

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

  --dc-container: 1120px;
  --dc-narrow: 680px;
  --dc-gutter: 32px;
}

@media (max-width: 640px) {
  :root {
    --dc-gutter: 16px;
    --dc-pixel: 8px;
    --dc-pixel-step: 14px;
  }
}
