/*
  Slow Night: design tokens
  A deep indigo night inside a rounded window of sky. Tiny stars, soft
  mauve cloud banks, a calm serif headline, and one violet button with a
  lit edge. Below the sky, the product sits in a dark app window with a
  dotted canvas. Quiet, unhurried, a little dreamy.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --sn-night: #13111F;        /* the page */
  --sn-deep: #0E0C18;         /* app window canvas, footer */
  --sn-sky: #1D1932;          /* top of the sky panel */
  --sn-sky-low: #2A2342;      /* horizon of the sky panel */
  --sn-panel: #191628;        /* cards, app window chrome */
  --sn-raise: #231F38;        /* hover, badges, selected rows */
  --sn-raise-2: #2E2948;      /* pressed, active tabs */

  /* Text */
  --sn-text: #F1EEF8;
  --sn-dim: #ABA5C2;
  --sn-faint: #716B8A;

  /* Accents */
  --sn-violet: #6A48D6;       /* the one filled button colour */
  --sn-violet-hi: #9479F2;    /* button edge, links, active tab line, focus */
  --sn-violet-glow: rgba(122, 92, 240, 0.35);
  --sn-star: #FFF3D9;         /* stars, nothing else */
  --sn-mint: #86D4B4;         /* online, available, ticks */
  --sn-amber: #E9B872;        /* waiting, small warnings */

  /* Clouds */
  --sn-cloud: #4B3B5E;        /* cloud body */
  --sn-cloud-hi: #6E5781;     /* lit top edge of a cloud */
  --sn-cloud-lo: #2F2742;     /* far clouds */

  /* Lines and rings */
  --sn-line: rgba(241, 238, 248, 0.08);
  --sn-line-strong: rgba(241, 238, 248, 0.16);
  --sn-ring: inset 0 0 0 1px rgba(241, 238, 248, 0.08);
  --sn-dot-grid: radial-gradient(circle, rgba(241, 238, 248, 0.10) 1px, transparent 1.4px);

  /* Gradients */
  --sn-sky-fill: linear-gradient(180deg, var(--sn-sky) 0%, #241E3B 55%, var(--sn-sky-low) 100%);
  --sn-stars:
    radial-gradient(1px 1px at 23px 41px, var(--sn-star) 60%, transparent 62%),
    radial-gradient(1px 1px at 131px 87px, rgba(255, 243, 217, 0.7) 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 77px 156px, var(--sn-star) 60%, transparent 62%),
    radial-gradient(1px 1px at 201px 19px, rgba(255, 243, 217, 0.55) 60%, transparent 62%),
    radial-gradient(1px 1px at 251px 203px, rgba(255, 243, 217, 0.8) 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 309px 121px, rgba(255, 243, 217, 0.6) 60%, transparent 62%);

  /* Fonts */
  --sn-serif: "Source Serif 4", Georgia, serif;
  --sn-sans: "Inter", system-ui, -apple-system, sans-serif;
  --sn-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale */
  --sn-text-hero: clamp(40px, 5.6vw, 68px);
  --sn-text-h2: clamp(30px, 3.6vw, 44px);
  --sn-text-h3: 20px;
  --sn-text-lead: clamp(17px, 1.5vw, 20px);
  --sn-text-body: 16px;
  --sn-text-small: 14px;
  --sn-text-micro: 12px;

  /* Shape */
  --sn-radius-sm: 6px;        /* inputs, buttons, badges */
  --sn-radius: 10px;          /* cards, rows, panels */
  --sn-radius-lg: 16px;       /* app windows, plans */
  --sn-radius-sky: 22px;      /* the sky frame */

  /* Shadows */
  --sn-shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px var(--sn-violet-hi), 0 8px 24px -8px var(--sn-violet-glow);
  --sn-shadow-window: 0 0 0 1px var(--sn-line-strong), 0 40px 80px -30px rgba(5, 3, 14, 0.9);
  --sn-shadow-card: 0 0 0 1px var(--sn-line), 0 18px 40px -24px rgba(5, 3, 14, 0.8);

  /* Space */
  --sn-space-1: 4px;
  --sn-space-2: 8px;
  --sn-space-3: 12px;
  --sn-space-4: 16px;
  --sn-space-5: 24px;
  --sn-space-6: 32px;
  --sn-space-7: 48px;
  --sn-space-8: 72px;
  --sn-space-9: 112px;
  --sn-container: 1160px;
  --sn-text-column: 680px;
  --sn-gutter: 24px;

  /* Motion */
  --sn-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --sn-drift: 90s;
}
