/*
  Slate Portal: tokens
  A late-2000s free-software portal at night. A slate page that darkens as
  you scroll, glossy gel buttons with a white shine on top, beveled gradient
  panels in a three-column portal grid, lowercase rounded headings with a
  hairline rule under them, and drawn star-chart art where dots are joined
  by thin lines.

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

:root {
  /* Surfaces: slate, from the lit top band down to the night floor */
  --sl-dusk: #565C6C;        /* top band, start of the page gradient */
  --sl-slate: #3A3E4B;       /* page middle */
  --sl-night: #22252E;       /* page floor, footer */
  --sl-panel-top: #3F4452;   /* panel gradient top */
  --sl-panel-bottom: #2C2F3A;/* panel gradient bottom */
  --sl-well: #1B1D25;        /* inputs, code, recessed wells */
  --sl-sky-top: #121A33;     /* drawn sky art, top */
  --sl-sky-bottom: #3B3554;  /* drawn sky art, horizon */
  --sl-line: rgba(255, 255, 255, 0.10);
  --sl-line-strong: rgba(255, 255, 255, 0.22);
  --sl-shine: rgba(255, 255, 255, 0.14); /* bevel highlight on the top edge */

  /* Text */
  --sl-snow: #EEF0F5;        /* headlines */
  --sl-text: #C7CBD6;        /* body copy */
  --sl-dim: #8D93A2;         /* captions, metadata, placeholders */
  --sl-link: #9CC6F2;        /* inline links, list links */

  /* Accents */
  --sl-gel: #2F80D2;         /* primary gel button, focus, selected */
  --sl-gel-top: #5FA9EC;     /* gel gradient top */
  --sl-gel-deep: #1A5AA3;    /* gel gradient bottom, pressed */
  --sl-moon: #F2C86A;        /* stars, badges, the one warm note */
  --sl-moon-deep: #C99A35;
  --sl-ink: #10131A;         /* text on moon */

  /* Gradients */
  --sl-page: linear-gradient(180deg, var(--sl-dusk) 0, var(--sl-slate) 520px, var(--sl-night) 1400px, var(--sl-night) 100%);
  --sl-panel: linear-gradient(180deg, var(--sl-panel-top), var(--sl-panel-bottom));
  --sl-gel-fill: linear-gradient(180deg, var(--sl-gel-top) 0%, var(--sl-gel) 48%, var(--sl-gel-deep) 100%);
  --sl-moon-fill: linear-gradient(180deg, #FBE2A2 0%, var(--sl-moon) 50%, var(--sl-moon-deep) 100%);
  --sl-sky: linear-gradient(180deg, var(--sl-sky-top) 0%, #1E2447 55%, var(--sl-sky-bottom) 100%);
  --sl-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));

  /* Shadows: soft drop under panels, inset bevel on top */
  --sl-shadow-panel: inset 0 1px 0 var(--sl-shine), 0 6px 18px rgba(0, 0, 0, 0.35);
  --sl-shadow-raised: inset 0 1px 0 var(--sl-shine), 0 14px 34px rgba(0, 0, 0, 0.45);
  --sl-shadow-gel: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.35), 0 6px 16px rgba(47, 128, 210, 0.35);
  --sl-shadow-well: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 var(--sl-shine);
  --sl-focus: 0 0 0 3px rgba(47, 128, 210, 0.45);

  /* Fonts */
  --sl-font-head: "Ubuntu", "Trebuchet MS", sans-serif;
  --sl-font-body: "PT Sans", "Verdana", sans-serif;
  --sl-font-mono: "Ubuntu Mono", "Courier New", monospace;

  /* Type scale */
  --sl-text-hero: clamp(38px, 5.4vw, 66px);
  --sl-text-h1: clamp(34px, 4.2vw, 52px);
  --sl-text-h2: clamp(26px, 2.8vw, 34px);
  --sl-text-h3: 21px;
  --sl-text-lead: clamp(17px, 1.4vw, 19px);
  --sl-text-body: 16px;
  --sl-text-small: 14px;
  --sl-text-micro: 12px;

  /* Shape */
  --sl-radius-panel: 8px;
  --sl-radius-art: 10px;
  --sl-radius-input: 5px;
  --sl-radius-chip: 6px;
  --sl-radius-pill: 999px;

  /* Space */
  --sl-space-1: 4px;
  --sl-space-2: 8px;
  --sl-space-3: 12px;
  --sl-space-4: 16px;
  --sl-space-5: 24px;
  --sl-space-6: 32px;
  --sl-space-7: 48px;
  --sl-space-8: 72px;
  --sl-container: 1120px;
  --sl-narrow: 700px;
}
