/*
 * Cloud Sleeper: tokens
 * Feel: a starry indigo night with painted clouds drifting through it. Pages sit
 * on a deep violet-black, the top of each page is a framed card of sky (tiny
 * stars, slow cloud banks lit rosy from below), headlines are a bookish serif
 * set centred, and a dark product window floats over the bottom of the sky
 * showing a canvas of connected cards. Small radii, hairline borders, one
 * violet button.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,500;7..72,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces, darkest to lightest */
  --cs-deep: #0D0C14;
  --cs-night: #14121D;
  --cs-panel: #1B1927;
  --cs-raise: #262336;
  --cs-hover: #2F2B42;
  --cs-line: rgba(232, 226, 255, .09);
  --cs-line-bright: rgba(232, 226, 255, .17);

  /* Text */
  --cs-text: #F2EFF8;
  --cs-dim: #ABA5BE;
  --cs-faint: #6F6987;

  /* Accents */
  --cs-violet: #7A5BE2;
  --cs-violet-deep: #6446C9;
  --cs-violet-soft: rgba(122, 91, 226, .18);
  --cs-lilac: #BBA8F6;
  --cs-mint: #62D4A6;
  --cs-mint-soft: rgba(98, 212, 166, .14);
  --cs-amber: #F1B86A;
  --cs-amber-soft: rgba(241, 184, 106, .14);
  --cs-star: #FFF5DD;

  /* The sky */
  --cs-sky: linear-gradient(180deg, #17142A 0%, #221D36 45%, #2E2541 78%, #3A2C47 100%);
  --cs-glow: radial-gradient(60% 50% at 50% 100%, rgba(150, 104, 150, .32) 0%, rgba(150, 104, 150, 0) 100%);
  --cs-stars:
    radial-gradient(1px 1px at 18px 24px, var(--cs-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 96px 150px, rgba(255, 245, 221, .7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 170px 60px, var(--cs-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 230px 200px, rgba(255, 245, 221, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 60px 210px, rgba(255, 245, 221, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 140px 100px, rgba(255, 245, 221, .45) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 250px 30px, rgba(255, 245, 221, .6) 50%, transparent 52%);
  --cs-stars-size: 210px 190px;

  /* Painted clouds: a dim back bank high up, a rosy front bank along the bottom.
     Each puff is drawn twice, a lit rim first and the body a few pixels lower. */
  --cs-clouds-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='400' viewBox='0 0 1440 400'%3E%3Cg fill='%234A3D60' opacity='.75'%3E%3Ccircle cx='120' cy='250' r='62'/%3E%3Ccircle cx='215' cy='222' r='86'/%3E%3Ccircle cx='320' cy='262' r='56'/%3E%3Cellipse cx='220' cy='292' rx='210' ry='42'/%3E%3Ccircle cx='1150' cy='190' r='74'/%3E%3Ccircle cx='1262' cy='160' r='96'/%3E%3Ccircle cx='1372' cy='204' r='66'/%3E%3Cellipse cx='1262' cy='242' rx='236' ry='48'/%3E%3C/g%3E%3Cg fill='%2333294A'%3E%3Ccircle cx='124' cy='258' r='60'/%3E%3Ccircle cx='219' cy='231' r='84'/%3E%3Ccircle cx='324' cy='270' r='54'/%3E%3Cellipse cx='222' cy='300' rx='212' ry='40'/%3E%3Ccircle cx='1154' cy='199' r='72'/%3E%3Ccircle cx='1266' cy='169' r='94'/%3E%3Ccircle cx='1376' cy='212' r='64'/%3E%3Cellipse cx='1264' cy='250' rx='238' ry='46'/%3E%3C/g%3E%3C/svg%3E");
  --cs-clouds-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='400' viewBox='0 0 1440 400'%3E%3Cg fill='%23A27C98'%3E%3Ccircle cx='70' cy='330' r='84'/%3E%3Ccircle cx='200' cy='296' r='108'/%3E%3Ccircle cx='340' cy='340' r='76'/%3E%3Ccircle cx='1080' cy='334' r='80'/%3E%3Ccircle cx='1224' cy='298' r='116'/%3E%3Ccircle cx='1376' cy='326' r='92'/%3E%3C/g%3E%3Cg fill='%23614A70'%3E%3Ccircle cx='76' cy='342' r='82'/%3E%3Ccircle cx='206' cy='310' r='106'/%3E%3Ccircle cx='346' cy='352' r='74'/%3E%3Cellipse cx='210' cy='392' rx='330' ry='60'/%3E%3Ccircle cx='1086' cy='346' r='78'/%3E%3Ccircle cx='1230' cy='312' r='114'/%3E%3Ccircle cx='1382' cy='338' r='90'/%3E%3Cellipse cx='1240' cy='392' rx='340' ry='60'/%3E%3C/g%3E%3Cg fill='%23453656'%3E%3Ccircle cx='150' cy='376' r='70'/%3E%3Ccircle cx='1300' cy='378' r='74'/%3E%3Cellipse cx='720' cy='400' rx='520' ry='34'/%3E%3C/g%3E%3C/svg%3E");
  --cs-grid: radial-gradient(rgba(232, 226, 255, .10) 1px, transparent 1.4px);
  --cs-grid-size: 20px 20px;

  /* Fonts */
  --cs-serif: "Literata", Georgia, "Times New Roman", serif;
  --cs-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --cs-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --cs-text-hero: clamp(38px, 5.4vw, 66px);
  --cs-text-h2: clamp(28px, 3.3vw, 42px);
  --cs-text-h3: 18px;
  --cs-text-lead: clamp(17px, 1.5vw, 20px);
  --cs-text-body: 16px;
  --cs-text-small: 14px;
  --cs-text-micro: 12px;
  --cs-track-serif: -0.02em;
  --cs-track-mono: 0.04em;

  /* Shape */
  --cs-radius-xs: 4px;
  --cs-radius-sm: 6px;
  --cs-radius: 8px;
  --cs-radius-lg: 12px;
  --cs-radius-xl: 16px;
  --cs-radius-pill: 999px;
  --cs-border: 1px solid var(--cs-line);
  --cs-border-bright: 1px solid var(--cs-line-bright);

  /* Shadows */
  --cs-shadow-btn: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(150, 120, 255, .35), 0 8px 24px rgba(100, 70, 201, .35);
  --cs-shadow-window: 0 0 0 1px rgba(232, 226, 255, .10), 0 30px 80px rgba(4, 3, 10, .65);
  --cs-shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(4, 3, 10, .35);
  --cs-focus: 0 0 0 3px rgba(122, 91, 226, .45);
  --cs-text-shadow: 0 2px 18px rgba(13, 12, 20, .6);

  /* Space */
  --cs-space-1: 4px;
  --cs-space-2: 8px;
  --cs-space-3: 12px;
  --cs-space-4: 16px;
  --cs-space-5: 24px;
  --cs-space-6: 40px;
  --cs-space-7: 64px;
  --cs-space-8: 96px;
  --cs-container: 1160px;
  --cs-text-width: 680px;
  --cs-frame-gap: 16px;

  /* Motion */
  --cs-ease: cubic-bezier(.22, .61, .36, 1);
  --cs-fast: 160ms;
  --cs-drift: 90s;
}
